Quick question about a simple switch
NosePicker
Posts: 54
On the motherboard of most any computer there are two pins that usually are connected to two wires which runs to a spring switch on the case of the computer. I have measured the voltage of the motherboard I am testing with and it has 3v on one side of it. In testing I found if I simply connect the + side of the switch to any ground I get the desired response from the computer. So the next test I did was I wrote a program for my basic stamp which just had four lines of code:
output 7
output 8
OUT7 = 1
OUT8 = 0
then if I touched the + wire from the switch to pin 7 nothing seemed to happen which is what I would expect and when I touched the wire to pin 8 I got the desired response from the computer.
Is this safe? Is there any chance this will burn up my BS?·To connect a wire with 3v to an output pin and normally I would set the output pin to 1 then when I am ready to "switch it", I would set the output pin to 0, pause for about 250 ms then set it back to 1 again?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks
NosePicker
output 7
output 8
OUT7 = 1
OUT8 = 0
then if I touched the + wire from the switch to pin 7 nothing seemed to happen which is what I would expect and when I touched the wire to pin 8 I got the desired response from the computer.
Is this safe? Is there any chance this will burn up my BS?·To connect a wire with 3v to an output pin and normally I would set the output pin to 1 then when I am ready to "switch it", I would set the output pin to 0, pause for about 250 ms then set it back to 1 again?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks
NosePicker
Comments
You could still use your setup by going between INPUT and LOW. That lets the + signal float or connects it to ground. The problem is that you don't know what's on the other side of the + wire. There might still be voltages or currents that could damage the Stamp. A transistor is cheap to replace and the transistor and resistor would partially isolate the Stamp from whatever is attached to the + line.
Post Edited (Mike Green) : 7/14/2008 2:46:24 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks
NosePicker