Circuit that uses only one pin to drive the IR LED and then to also read the IR
I recently ran across the attached·circuit. It appears to use just one pin to drive the IR LED and then also sense the IR signal on the detector.
Has anyone used this type circuit? Any comments on how well it works?
Has anyone used this type circuit? Any comments on how well it works?
Comments
I haven't used that same circuit, but it is very similar to the Parallax SSIR detector. Something like this should work on it:
FREQOUT 9, 1, 38500
INPUT 9
detect = IN9
Andy
It 'holds' the signal low for a little time after the IR signal goes away. A very clever BS2 user realized this a few years ago, and thus the 'IR-Whisker' was born -- your circuit is a single pin version.
The 10K resistor insures the Detector side 'floats' high. I don't know what the effect is on the biasing of the transistor at that time -- I assume the resistor values are selected to keep it off at that time.
The idea is to allow the BS2 to drive the pin as an output and turn on and off the IR-LED. Then it's supposed to read the same pin as an input -- allowing the IR-Detector to drive the pin low if it sees a reflected light from the IR-LED. It looks to me like there are some bias issues on the transistor -- can an PNP transistor with zero volts on its emitter and zero volts on its base turn on? With 5 volts on its base, isn't it reverse-biased and off?
Oh, it's been too long since I studied Transistors...
P.S. if you used an NPN transistor, and turned the IR-LED around, that may fix the bias issues on the circuit...
Post Edited (allanlane5) : 4/1/2005 3:52:24 PM GMT
...and if a PNP transistor is meant to be used here, shouldn't the C-E be reversed also? Assuming that
the IR LED and the C-E junction was reversed, this condition might cause the circuit to latch if the PNA4602
receives a signal from the IR LED. Otherwise, I don't see the IR LED turning on at all with the current configuration.
I believe that a NPN is meant to be in place of the PNP, and that the Anode/Cathode of the IR LED should be reversed.
...also, the IR LED and 330 Ohm current limiting resistor should be on the Collector side of the transistor while the
Emitter should go directly to GRD.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III
National Semiconductor Corporation
Latest Company News
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
All the comments about the wrong transistor and polarity on the parts makes me extremely curious about trying to get it to work.
Maybe I can find the circuit for the Parallax SSIR detector mentioned by Andy, and use that instead.
You guys are the best...
I re-examined the original circuit and made a few changes that I think should
allow it to function properly. Someone feel free to test this on a SSB.
Basically I added a diode and a resistor, and tweaked some of the resistor
values.
Operation:
If the I/O pin is in Input mode, then a LOW signal at pin3 of the PNA4602
produces about 767mV on the I/O pin. If a HIGH signal is at pin3 of the
PNA4602, then the I/O pin "sees" 5V. In either case the IRLED remains off.
If the I/O pin is in Output mode, then a LOW signal on the I/O pin will cause the
IRLED to come on. (current draw on the I/O pin is about 5mA). If the I/O pin
is HIGH, then the IRLED is off. (current draw on I/O pin is 0uA)
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III
National Semiconductor Corporation
Latest Company News
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
Post Edited (Beau Schwabe) : 4/2/2005 6:52:31 AM GMT
the 330 1K and 10K resistors that are enough to turn the transistor ON. In addition, the IRLED can be influenced by the state
of the PNA4602, which I don't think is the intent of the circuit.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III
National Semiconductor Corporation
Latest Company News
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
It seams that the freqout signal on the transistor would be lost when the 4602 saw the IR light. The 4602 would not have the 38kHz on it so the IR LED would simply be on and cause the 4602 to stop seeing the light. Why wouldn't the circuit be effected by this type of feedback?
(I am refering to Beau's circuit with the PNP.)
Post Edited (Russ) : 4/2/2005 2:58:30 PM GMT
I have redrawn the circuit to contain what I believe were the author's original intention. It is very similar to the one Beau posted. It does not have the voltage divider on the base of the transistor.
where the other version had a 330 Ohm and the voltage divider or shunt across the B-E,
Russ,
The 68 Ohm resistor and Diode form a shunt across the B-E junction where the LOW from the
PNA4602 can't bring the voltage to a level great enough through the 220 Ohm and 1K resistor
to turn the transistor on, however if the I/O pin is driven LOW, there is enough through just
the 1K resistor that the transistor does turn on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe - Mask Designer III
National Semiconductor Corporation
Latest Company News
(Communication Interface Division)
500 Pinnacle Court, Suite 525
Mail Stop GA1
Norcross,GA 30071
Post Edited (Beau Schwabe) : 4/2/2005 9:12:22 PM GMT
1. SSIR draws - 2.7ma (My 4602 draws 2.5ma all by itself.)
2. Transistor circuit without the 68 ohm and diode - 4.2ma
3. Transistor circuit with the 68 ohm and diode - 11.6ma
All circuits work great.
The transistor circuit without the 68 ohm resistor and diode had the best range using the Frequency Sweep program.
Russ
TIA