output pin of IR detector
kwanzimelonhide
Posts: 20
there's something I'm not understanding about the IR detector.
In the documentation, it states, "In the absence of IR flashing on and off at around 40 kHz, the IR detector sends a 5 V high signal. When IR flashing on and off at around 40 kHz enters this lens, the circuitry inside the IR detector sets its output to 0 V (active-low)."
How come the voltage on the output pin of the IR detector does not measure 0 V once the IR beam·is transmitted? It is always about 5 V.· I want to get a motor to turn on and off without a microcontroller, simply by having the change from 5 V to 0 V create the necessary voltage drop when the motor leads are connected·to·5 V·and the output pin of the IR detector.·
thanks!·
In the documentation, it states, "In the absence of IR flashing on and off at around 40 kHz, the IR detector sends a 5 V high signal. When IR flashing on and off at around 40 kHz enters this lens, the circuitry inside the IR detector sets its output to 0 V (active-low)."
How come the voltage on the output pin of the IR detector does not measure 0 V once the IR beam·is transmitted? It is always about 5 V.· I want to get a motor to turn on and off without a microcontroller, simply by having the change from 5 V to 0 V create the necessary voltage drop when the motor leads are connected·to·5 V·and the output pin of the IR detector.·
thanks!·
Comments
Nuts and Volts Columns: www.parallax.com/tabid/272/Default.aspx
Switching Transistors: knol.google.com/k/electronic-circuits-design-for-beginners-chapter-8#
The last circuit on the webpage uses a PNP transistor to switch on a load like a motor when the input is brought to 0V like what the IR detector does when on.
Post Edited (Mike Green) : 12/22/2009 6:26:16 AM GMT
2) The current capacity of the battery does matter. It needs to be large enough that the battery can supply the requirements of the motor. The other connection of the motor matters too. The current has to go somewhere. If that connection can only provide a limited amount of current, then that's all the current that will flow regardless of what the battery can supply.
' Program Listing 1.1 - Testing the IR Beam.bs2
IR_detect VAR Bit
LOW 15
Main:
PAUSE 50
FREQOUT 15, 1, 38500
IR_detect = IN8
IF IR_detect = 0 THEN unbroken
DEBUG HOME, "Beam is broken; object detected. "
GOTO Main
unbroken:
DEBUG HOME, "Beam is unbroken; object not detected."
GOTO Main
works perfectly, so once again I don't get why the voltage only lowers slightly and doesn't go to 0 V.
The 220 ohm resistor is to limit the CURRENT flowing through the LED (so it doesn't burn out) and to limit the current through the Stamp pin (ditto).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php