Control external momentary switch
dacust
Posts: 2
I am a total noob with Stamps and a noob with electronics. Just got the HomeWork board yesterday.
I just got a circuit to work but wondering if there's a better/simpler way to do it.
Project:
I have some LED light sticks powered by the computer power supply. There is a momentary switch that selects the mode that the lights run in. 1.5v.
Solution:
I used a 2N3904 transistor to trigger them, and with a 50ms delay it works great.
Question:
Is there a way the BS2 can do it directly without the transistor? From what I see the BS2 only does off/on, not open/closed. I need to do this circuit 5 times so if it can do it direct, I can cut out 5 transistors and 5 resistors.
-dan
I just got a circuit to work but wondering if there's a better/simpler way to do it.
Project:
I have some LED light sticks powered by the computer power supply. There is a momentary switch that selects the mode that the lights run in. 1.5v.
Solution:
I used a 2N3904 transistor to trigger them, and with a 50ms delay it works great.
Question:
Is there a way the BS2 can do it directly without the transistor? From what I see the BS2 only does off/on, not open/closed. I need to do this circuit 5 times so if it can do it direct, I can cut out 5 transistors and 5 resistors.
-dan
Comments
You would definitely need some kind of device to do the switching. It could be a transistor, MOSFET or even a relay, but you won’t be able to do it directly. I/O pins aren’t designed to do that kind of thing directly. Take care.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
-dan