Basic STAMP 2 and Relays.
Derek126
Posts: 1
Hello!
I am having a bit of a problem using the stamp to power on and off some relay switches.
What I am trying to accomplish is have the stamp turn on two relays at the same time
to power to other devices. I have used a transistor and it turns on one relay just fine.
When I mimic the circuit and try and turn two on (using separate pins) one will turn on,
but the other just 'vibrates'.
Anyone have any solutions?
I am having a bit of a problem using the stamp to power on and off some relay switches.
What I am trying to accomplish is have the stamp turn on two relays at the same time
to power to other devices. I have used a transistor and it turns on one relay just fine.
When I mimic the circuit and try and turn two on (using separate pins) one will turn on,
but the other just 'vibrates'.
Anyone have any solutions?
Comments
Welcome to the forum!
It's a good idea to include a schematic or drawing of what you are trying to accomplish, so that we may have a look at it.
Also, including the code that you are using is a big help.
What is you power source? Batteries? Wall transformer?
Nice page on using relays with a microcontroller at http://www.kronosrobotics.com/Anotes/Relays.pdf
Info also applies to Stamps.
If you only need on/off, you can get 5V 20 mA SPST reed relays from radio shack and use them directly, no transistor needed. There are also rare DPDT relays (for instance, Aromat TF2-5V) that only use 20 mA and can be driven directly w/o transistors.