A 24v relay will not work with the 5v UNO will it? I have been playing with and researching it, but all I find is a diagram. Posted. I was just in an explorative mood, and could not get the relay to switch between two LEDs. Any thoughts?
What do you mean by a 24 volt relay? Is 24 v what the relay coils wants, or is 24 v the output rating of the contacts.
With almost all relays, you will need a driver transistor between the arduino and the coil.
Hi Jack, it says 24v on the side. The model is g5le-1. I am using a pn222 transistor. Now in the starter kit, It had a 5v relay, also 5 pins, and it works just fine, so I just wanted to switch the 5 for the 24. The 24 has five pins, but configured differently. I tried hooking the wires in every configuration possible. I took the relay out of a control board of a massage chair, and that thing ate a lot of power. Hope that helps. Thanks.
Sounds like the relay coils require 24 volts. Do you have a 24 volt power supply to provide power to the coils (through a transistor)?
Look at Arduino Playground - HomePage
A relay is basicly a solenoid, so same circuit.
If you don't realize, pin 2 and 5 are the coil pins.
I was not sure of the pins, thank you. It must be a 24v need. I do not have such a supply. But that makes sense now. I appreciate that. Thank you. 2 and 5 get the voltage then, correct?
Yes, apply 24 v across the coil, pins 2 and 5, should cause the relay to energise.
Thanks for the help.