Hi -
I'm a digital electronics guy with what is probably a simple analog electronics problem. Please help educate the clueless (me).
I'm designing a simple circuit that uses two infrared detector/emitter pairs as triggers. I've got the basics working - I've got +5v going into the two IR detectors which pass the voltage through as long as the light path from the emitters is uninterupted. So far so good.
I envision the two IR detectors as simple switches: when IR is present they turn on (a digital 1 bit), when it is interupted they turn off (a digital zero bit). I've taken the output of these two detectors and connected them to a NAND gate. My goal is to have the NAND output go high whenever EITHER IR detector is shielded from the IR source. Like I said - I'm confident of the digital part of this circuit however the IR detector LEDs don't behave as I expected.
First I tried using a CMOS 4011 gate. This caused the IR detector output to be held high even when the IR source was interupted. Weird...
Just for grins I tried using a TTL 7400 gate. This worked a little better in the sense that the IR detectors work properly - they turn off when the IR source is removed (as they should) but the NAND gate does not trigger.
My hunch is that I am not understanding something about the relationship between the output of the IR detector (a diode) and the digital gate (transistors). Obviously the output of the IR LED is more complex than a simple on/off voltage.
So far this is the worlds simplest circuit - there is only one resistor to trim the voltage down to an appropriate level for the IR transmitter. Other than that everything else is digital gates.
Any suggestions how I can get the output of the IR detectors to act as proper inputs to the digital side of the circuit?
For extra credit - where did I go wrong? Why isn't the +5 I see on the output side of the IR detector sufficient to trigger the gate. Remember, I'm a digital kindof guy so use small words (pun intended).
Thanks in advance! GuitarManDave