top of page
Dhanush

Interfacing Relay Module with Arduino

Updated: Sep 25

In this topic, we are going to learn about how to control a relay module with Arduino. Here we will be controlling two devices by using them. It can be used to control the devices with a voltage 5V or less as Input. But if we want to control more than 5V or A.C devices then we need to use the relay module which can control this capacity.


List of Components:

  1. Arduino Uno

  2. Relay module

  3. LED

  4. Resistor

  5. Breadboard

Arduino Uno: It is an open-source microcontroller board. It is based on the Microchip named ATmega328P microcontroller. The circuit board is having a set of digital and analogue input/output pins. They will be interfaced with different expansion boards.

interfacing relay module with aurdino
Arduino



Relay Module: It is an electrical switch in a circuit. It will on/off the circuit. Also, it can be controlled by fewer voltages like 5V from #Arduino.


interfacing relay module with aurdino
Relay module

LED: It is used to find the circuit is on/off by blinking.


Interfacing relay module with aurdino
LED

Resistor: The #resistor plays one of the major roles in the relay module. It will protect other elements in the circuit from voltage spikes.





Circuit Diagram:



In the above diagram pin of Arduino is connected to the relay module and then further it is connected with #LED. The relay is connected with LED in open state i.e, NO pin which goes to the LED, and the common pin is connected to the breadboard. Also, the relay is receiving supply from Arduino.


Code:



Working:


The circuit looks like below one after turning on.


If we increase the relay pin high then relay #module will be turned on.





If we decrease the relay pin it then it will off.





 

See Also:





Order Electronics Projects


Want us to guide you through your project or make the project for you? Click on the button below or reach out to us via Call/WhatsApp at (+91) - 7600948607


You can -


  • Order Basic Electronics Projects

  • Order Embedded Systems Projects

  • Order IoT Projects

  • Order FPGA Projects

  • Order VLSI Projects

  • Order Image Processing Projects

  • Order Matlab Projects

  • Order TinkerCAD Projects

  • Order Proteus Projects


Click on the button below to fill out the project inquiry form -





Create Various Projects


Check out our Free Arduino Projects Playlist - Arduino Projects 

Check out our Free Raspberry Pi Projects Playlist - Raspberry Pi Projects 

Check out our Free TinkerCAD Projects Playlist - TinkerCAD Projects 

Check out our Free IoT Projects Playlist - IoT Projects 

Check out our Free Home Automation Projects Playlist - Home Automation Projects 

Check out our Free NodeMCu Projects Playlist - NodeMCu Projects 


Follow us -


Please do follow us i.e. #learnelectronicsindia to get daily updates about new blogs, videos, courses, products, offers, competitions, quizzes, and Internship Opportunities.




177 views2 comments

2 Comments


Anushka Gupta
Anushka Gupta
Jul 26, 2023

Wow! This blog by Learn Electronics India is a gem for Arduino enthusiasts like me. The clarity of explanation and detailed instructions on interfacing relay modules with Arduino made complex concepts seem so easy to grasp. Great job.

Like

ashitanarvekar2002
Jul 21, 2023

Clear and concise. LearnElectronics India's expertise shines through.

Like
bottom of page