How to turn off a LED

Eindhar

New Member
hello to all, sorry if my question is silly and basic, but this is my first try.
I have a LED connected to B.3 but when I run a program is always on.

I tried to turn it off like this, but it's not working

main:
low 3
goto main

funny thing is that if I try to make it flashing, this works fine

main:
high 3
pause 100
low 3
pause 100
goto main

what am I missing?

many thanks
 
I suspect it is the connection of the LED from output 3 to either GND (0V) or Vcc (+), and given the behavior of the first loop I think it is connected to Vcc in your case (am I right?). In this way, when command LOW 3 is executed, the LED is connected to GND as well, with a current nicely flowing. In the second loop the LED is disconnected from GND with the HIGH 3 command and so will be off for 100 ms, which explains the flashing ... .

Welcome to the forum by the way!

/Jurjen
 
Last edited:
Are you using a M2 picaxe? if so you need to specify the output as c.3 or B.3 etc.
high b.3 or low b.3
Bill
 
Last edited:
Back
Top