help how hookup a relay
vw_gti
Posts: 10
hi im kinda new and i need to hook up a relay to my education bored what pins do u use and is the any thing special to put in the programs
thanks
for your help
thanks
for your help
Comments
In your program, a HIGH <pin> would turn the relay on and a LOW <pin> or INPUT <pin> would turn the relay off. Look at the chapters in the Stamp Basic Syntax and Reference Manual for a description of those statements.
Nuts & Volts Index: www.parallax.com/Resources/NutsVoltsColumns/tabid/272/Default.aspx
If you are using a HomeWork Board, there's already a 220 Ohm resistor in series with the I/O pins. You'll need to subtract that from the resistance shown in the Nuts and Volts Column. If you have it, use a 150 or 180 Ohm resistor in series with the built-in 220 Ohm resistor. With the Board of Education, use the 390 Ohm resistor that's recommended in the column.
Post Edited (Mike Green) : 6/14/2009 6:12:40 PM GMT
the output pins. I'd suggest using a transistor to drive the relay.
If you use a 220 ohm or larger resistor between the Stamp output
pin and the base of your transistor, the Stamp will be able to
operate the relay.
Find a small relay that can operate on +5 volts.
Programming the Stamp is then jusy a matter of making
that output pin high or low.
phil
thanks