Pin Reset is slow?
ItsMeNick
Posts: 19
Here is my simple code:
Main:
LOW led
IF PIN6 = 0 THEN Main
HIGH led
GOTO Main
When I put +5V to Pin6... the led lights as it should.
However, when i take the +5 away, it take about a second for the led to finally turn off.
What am I doing wrong?
Thanks,
-Nick
Main:
LOW led
IF PIN6 = 0 THEN Main
HIGH led
GOTO Main
When I put +5V to Pin6... the led lights as it should.
However, when i take the +5 away, it take about a second for the led to finally turn off.
What am I doing wrong?
Thanks,
-Nick
Comments
Sounds like you need a 10k or so resistor tied to ground. This is ususally called a "pulldown" resistor. It will make the LED turn off correctly by making sure that the pin reads 0 as soon as yu remove Vdd.
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax