Go Down

Topic: Help to setup a Relay for arduino? (Read 1 time) previous topic - next topic

jeggy

I have two relays that look like this:


This is what it says on the top of them:
Red: Nothing
Black:


And this is under the relay:
Red: Nothing
Black: there are the pins named by these numbers: 1, 4, 6, 8, 9, 11, 13, 16

I'm a beginner at electronics, but I have worked with Infrared and 4093, 4030 and those normal ones.

I don't really know if these actually are relays, but if they are, could someone help me to use them? and connect them to the arduino and maybe use the ReadAnalogVoltage example provided by the Arduino IDE to read the voltage output from the relay?

I have found this: http://www.seekic.com/uploadfile/ic-mfg/2013978455488.jpg for the black one, but i don't really understand what all that means and how to connect it to the arduino.

Grumpy_Mike

Quote
connect them to the arduino and maybe use the ReadAnalogVoltage example provided by the Arduino IDE to read the voltage output from the relay?

That says to me that you do not know what a relay is.
You do not read anything from it. A relay is an output only device.

It is an electromechanical switch. You provide voltage to the coil and it will switch over a set of contacts, thus allowing you to switch a much bigger current and voltage that the arduino can do alone. It also provides isolation between what you are switching and the arduino.
You need to drive it with a transistor because the arduino can not supply enough current to drive most relays and there needs to be a diode across the coil.

See this link:-

http://www.arduino.cc/playground/uploads/Learning/relays.pdf

jeggy


That says to me that you do not know what a relay is.
You do not read anything from it. A relay is an output only device.

It is an electromechanical switch. You provide voltage to the coil and it will switch over a set of contacts, thus allowing you to switch a much bigger current and voltage that the arduino can do alone. It also provides isolation between what you are switching and the arduino.
You need to drive it with a transistor because the arduino can not supply enough current to drive most relays and there needs to be a diode across the coil.

See this link:-

http://www.arduino.cc/playground/uploads/Learning/relays.pdf



Alright, thanks, but if I have some kind of a motor that needs 12volt and the arduino only gives 5volt, isn't a relay what i need to power up the motor?

Grumpy_Mike

Yes it is.
There is no way you read anything from a relay though.

larryd

You can use the contacts to access to external voltages for your analog i/ps but this is a different topic.
No technical PMs.
If you are asked a question, please respond with an answer.
If you are asked for more information, please supply it.
If you need clarification, ask for help.

Go Up