Arduino Relay Module Circuit Diagram

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.
Arduino relay module circuit diagram. 2 relay module circuit diagram. Below given is relay driver circuit to build your own relay module. As the arduino sends the signal at 5v logic level but the rylr896 lora module can receive the signal at 3 3v logic level. Relay module for arduino is one of the most powerful application for arduino as it can be used to control both a c and d c devices by simply controlling the relay by giving 5v.
An ac bulb is used for demonstration. So the voltage divider is required to drop down 5v to 3 3v. The electromagnet requires a small voltage to get activated which we will give from the arduino and once it is activated it will pull the contact to make the high voltage circuit. We have connected transistor base to arduino pin a0 through a 1k resistor.
In the transmitter circuit the rx pin of the arduino is connected with the tx pin of the lora module through a voltage divider. A relay is basically a switch which is operated by an electromagnet. In the transmitter lora circuit we have connected the transmitter lora module with arduino nano as per the circuit diagram. The relay module we are going to use is the srd 05vdc sl c.
4 if the relay should switch ac loads the use of an opt isolator is recommended to separate the control circuit from the switching circuit relay. A relay is basically a switch which is operated electrically by electromagnet. That means the relay electromagnet is directly powered from the arduino s power pin so the relay module and the arduino circuits are not physically isolated from each other this is the configuration we ll use. Arduino 2 channel relay.
Also the electrical paths for the ac lines on the relay module should be wide enough min 3mm as short as possible separated from any other path on the pcb and not too close to each other. 2 relay module interfacing with arduino wiring diagrams. The detail instruction code wiring diagram video tutorial line by line code explanation are provided to help you quickly get started with arduino. In this arduino relay control circuit we have used arduino to control the relay via a bc547 transistor.
This instructable is for connecting your arduino to a 2 channel relay module and using your sketch to control the switches i bought the 2 relay module on ebay for 9 50 to drive a couple of 240v parts a vacuum cleaner and a rotary engraving tool. First you should have a look at relay interfacing with microcontroller using uln2003a you will get a better idea about its interfacing with different micro controllers. A relay can be used to control high voltage electronic devices such as motors and as well as low voltage electronic devices such as a light. Circuit diagram and working.