AllanBertelsen
Senior Member
I need help to read a datasheet.
I am building a light seeking robot inspired by a resent tread in this forum.
I want 08M to run L293B (H-bridge). For that purpose I need 4 digital outputs. I need to read LDR's via 1 ADC input. I need to read two or more contacts. Here I can us 1 ADC input as I will use resistors to identify the contacts.
4 outputs and 2 inputs is more than 08M can handle by it self.
I got a TC4094BP (8 stage shift and store busregister). This will give me 8 output using 3 PICAXE outputs.
Using 3 outputs on 08M leaves only one ADC-input where I needed two.
Now the question is. Can I use the outputs from TC4094BP as power supply for the LDR's and the resistor/button matrix and then read both – one at the time – with the remaining ADC-pin?
I have been reading the datasheet for TC4094BP. I don’t know how to see how much current I can use from the outputs. Can anyone help me?
EDIT:
This is a part of my setup:
<code><pre><font size=2 face='Courier'>
.______.
| |Out1-------LDR-----.----LDR--- grnd
| 4094 | |
| | |
| |0ut2---btn matrix--+---------- ADC pin
| |
|______|
</font></pre></code>
When Out1 is high and Out2 is low I will read the LDR's.
When Out2 is high and Out1 is low I will read the Resistor/button matrix.
I know there should be a couple of diodes in the diagram to.
Edited by - AllanBertelsen on 04/06/2006 22:02:00
I am building a light seeking robot inspired by a resent tread in this forum.
I want 08M to run L293B (H-bridge). For that purpose I need 4 digital outputs. I need to read LDR's via 1 ADC input. I need to read two or more contacts. Here I can us 1 ADC input as I will use resistors to identify the contacts.
4 outputs and 2 inputs is more than 08M can handle by it self.
I got a TC4094BP (8 stage shift and store busregister). This will give me 8 output using 3 PICAXE outputs.
Using 3 outputs on 08M leaves only one ADC-input where I needed two.
Now the question is. Can I use the outputs from TC4094BP as power supply for the LDR's and the resistor/button matrix and then read both – one at the time – with the remaining ADC-pin?
I have been reading the datasheet for TC4094BP. I don’t know how to see how much current I can use from the outputs. Can anyone help me?
EDIT:
This is a part of my setup:
<code><pre><font size=2 face='Courier'>
.______.
| |Out1-------LDR-----.----LDR--- grnd
| 4094 | |
| | |
| |0ut2---btn matrix--+---------- ADC pin
| |
|______|
</font></pre></code>
When Out1 is high and Out2 is low I will read the LDR's.
When Out2 is high and Out1 is low I will read the Resistor/button matrix.
I know there should be a couple of diodes in the diagram to.
Edited by - AllanBertelsen on 04/06/2006 22:02:00