Hello Noob looking for help
jason0627
Posts: 17
Hello so i am just learning basic stamp and i have a question i was hoping you could help me on
this is regarding bicolor led diode
so i have a basic stamp 2 and my set up is like this
p14 connected to resistor ... then connected to led (anode) then connected to p15
now the idea is current flows from p14 through resistor then diode to p15.
i write the code
do
high 15
low 14 pause 1500
low 15
high 14
pause 1500
low 15
low 14
pause 1500
loop
now it does exactly what i want (goes from green to red then off and loops)
but i was wondering what would happen if i took out the low part of the code. The practice still worked but i became concerned as to where the current was ultimately flowing. since i did not state it should go to low (ground) where is it going. my guess is that since it is connected to the i/o of the processor then it is going back to it. does this hurt it?
thanks
this is regarding bicolor led diode
so i have a basic stamp 2 and my set up is like this
p14 connected to resistor ... then connected to led (anode) then connected to p15
now the idea is current flows from p14 through resistor then diode to p15.
i write the code
do
high 15
low 14 pause 1500
low 15
high 14
pause 1500
low 15
low 14
pause 1500
loop
now it does exactly what i want (goes from green to red then off and loops)
but i was wondering what would happen if i took out the low part of the code. The practice still worked but i became concerned as to where the current was ultimately flowing. since i did not state it should go to low (ground) where is it going. my guess is that since it is connected to the i/o of the processor then it is going back to it. does this hurt it?
thanks
Comments
An I/O pin set to input mode won't supply any current and, in fact, represents a very high resistance connected to a circuit that detects voltages above roughly 2V
while i have you one (or anyone else glad to answer) more easy question.. i am using a bread board and and i am being careful not to allow the wires to touch (say a resistor is close to that diode) . does the touching of the wires cause a connection i should be worried about or does the breadboard provide a more favorable connection for the current to follow. (again i am not trying to make a connection this is for future reference when im sure more wires will be on the board an accidental touching could occur)
thanks again and i consider my first question answered.