November 21, 2024, 08:28:04 AM

News:

Be sure to checkout our Vixen interfaces in the Library forum -- if you want PC automation at near zero cost, EFX-TEK and Vixen is a great combination of tools.


Prop-2 and a standard DC relay

Started by Jeff Haas, October 02, 2011, 09:13:50 PM

Previous topic - Next topic

Jeff Haas

I've searched the Basic Stamp manual and the forums, but I don't quite have a handle on this...what is the correct schematic to hook up a standard, DC relay to a Prop-2?

P. 371 of the Basic Stamp manual has a schematic as part of the RCTIME command; the upper part shows the relay connected directly to a pin and VDD; is this all that's needed?  I've seen other examples where there's a transistor, with a resistor in line, needed to drive the relay.  This is based on old Nuts & Volts articles referenced on the Parallax site, but the difference is that (I think) the Prop-2 has a few features beyond the regular Basic Stamp.

Once I have this set up correctly, I'm pretty sure I have a handle on the code...define the pin, use the constant for IsOn/IsOff and so on.

bsnut

The Prop-2 has ULN to handle for what you want to do. The one side of relay coil gets connected to the +V and the other side gets connected to the OUTx.
William Stefan
The Basic Stamp Nut

Jeff Haas

Thank you!  That worked perfectly.  The additional feature people asked for yesterday is working.

And a fast reply on a Sunday night, too.