A relay is basically an electrical switch that is operated by an electromagnetic switch.
Arduino 5v relay circuit.
1 channel 5v relay module for arduino with optocoupler 62 00 dupont wire male to female jumper wires ribbon cable pack of 40 79 00 141 00 for 2 item s.
5v or 6v relay.
Here we are not using any relay driver ic like uln2003 and will only use an npn transistor to control relay.
In this example we will connect the relay module with arduino in the normally open state.
This circuit is for a 5v relay to be attached to an arduino nano.
Whenever we need to connect any ac appliance in our embedded circuits we use a relay.
Arduino pins provide a low voltage which is only 5v to the relay module to control it.
It can be turned on or off allowing the current through the circuit.
When the relay receives a high signal at the signal pin the electromagnet becomes charged and moves the contacts of the switch open or closed.
The switching contacts of a relay are completely isolated from the coil and hence from the arduino.
The first version is a recommendation that i found on the internet.
Connects the arduino s 5v pin.
The relay module has three low voltage terminals i e vcc gnd and signal.
Since the arduino operates at 5v it can t control these higher voltage devices directly but you can use a 5v relay to switch the 120 240v current and use the arduino to control the relay.
So in this arduino relay control tutorial we will simply learn how to interface a relay with arduino.
This makes it easy as arduino can power up the relay directly.
So connect the 5v and the ground of the arduino with the 5v and the ground of the relay module.
The only link is by the magnetic field.
Inside the relay is a 120 240v switch that s connected to an electromagnet.
Coming to the design of the circuit it is very simple as we used a 5v relay module and not the individual components.
The connections for connecting the relay module with arduino are very simple.
The second version is an actual relay board that i have at home and analyzed the circuit.
If you used a 12v relay like we used in this project arduino relay control you need to use a separate power supply for relay.
The arduino can be programmed to turn on the relay when a certain event occurs for example when the temperature of a thermistor gets higher than 30 c.
The detail instruction code wiring diagram video tutorial line by line code explanation are provided to help you quickly get started with arduino.
Learn how to use relay with arduino how relay works how to connect relay to arduino how to code for relay how to program arduino step by step.