Home > Projects > Other Projects > DIY Arduino Relay Driver Shield

DIY Arduino Relay Driver Shield

Summary of DIY Arduino Relay Driver Shield


This DIY project details the design and construction of a 3-Channel Arduino Relay Shield for controlling AC appliances via home automation. The shield features an isolated PCB with optocouplers, transistors, and screw terminals to safely interface low-voltage Arduino signals with high-voltage loads. Users can fabricate the board using EasyEDA or order it directly from JLCPCB, connecting three relays to specific Arduino pins to operate devices like bulbs.

Parts used in the 3-Channel Arduino Relay Shield:

  • SPDT relay 12v
  • 817 Optocoupler
  • Transistor BC547
  • SMD LEDs
  • PCB ordered from JLCPCB
  • Terminal Block 2 pin
  • 1N4007 Diode
  • 1k Resistor
  • Burg sticks male
  • Jumper
  • Push Button
  • Power supply
  • Arduino Uno
  • Connecting wire
  • AC appliances

In this DIY project we make a 3-Channel Arduino Relay Shield Circuit for relay based applications. We designed an isolated PCB for 3 relays. By using this Arduino Relay Shield, we can operate 3 AC appliances at a time. We have put a two pin screw terminal blocks (Neutral, NO) for connecting appliances. Here we have provided PCB layout, circuit diagram, and Gerber files so that you can build or directly order this Relay Driver Module.

DIY Arduino Relay Driver Shield

Previously we have built 4-channel Relay Driver Module, but this time we are building this relay module as Arduino Shield, so that you just have to fix it over Arduino and it will be ready to use. Relays are useful for triggering home AC appliances with low signal and they are used in Home Automation Systems.

Components Required:

  1. SPDT relay 12v -3
  2. 817 Optocoupler -3
  3. Transistor BC547 -3
  4. SMD LEDs -4
  5. PCB (ordered from JLCPCB) -1
  6. Terminal Block 2 pin -4
  7. 1N4007  Diode -3
  8. 1k Resistor -7
  9. Burg sticks male -1
  10. Jumper – 1
  11. Push Button
  12. Power supply
  13. Arduino for demonstration
  14. Connecting wire
  15. AC appliances

Arduino Relay Driver Shield Circuit Diagram:

In this 3-Channel Relay Driver Circuit, we have used an optocoupler to trigger the NPN transistor which further drives the relay. And optocoupler will be triggered by the active LOW signal. Here we have used a 12v 10Amp relay in this PCB board, you can also use 5v relays.

Working and Demonstration:

For demonstrating this Arduino Relay Driver Shield, we have used an Arduino Uno board for controlling relays. We have connected all 3 relays with Arduino at 7, 9, and 12 pins (RLY1, RLY2, and RLY3). We have used a 12v adapter for powering the circuit. Then we have connected 220VAC bulbs at the terminal block of the PCB board and AC supply is also applied to the board. Check the Demonstration Video at the end of this project.

Complete Arduino code is given at the end of this project, code is simple and easily understandable. If you want to learn more about Relay and its interfacing with Arduino then follow this link.

You just have to fix the Arduino shield over Arduino and control 3 Appliances using this shield. You can use the given code (in the end) or use your own code for controlling the AC appliaces.

DIY Arduino Relay Driver Shield schematics

Circuit and PCB Design using EasyEDA:

To design this Arduino Relay Shield, we have chosen the online EDA tool called EasyEDA. I have previously used EasyEDA many times and found it very convenient to use since it has a good collection of footprints and it is open-source. After designing the PCB, we can order the PCB samples by their low cost PCB fabrication services. They also offer component sourcing service where they have a large stock of electronic components and users can order their required components along with the PCB order.

Read more: DIY Arduino Relay Driver Shield

Quick Solutions to Questions related to 3-Channel Arduino Relay Shield:

  • How many AC appliances can this shield operate?
    You can operate 3 AC appliances at a time.
  • What voltage relays are used in this PCB board?
    The project uses a 12v 10Amp relay, though 5v relays can also be used.
  • Which Arduino pins are used to connect the relays?
    All 3 relays are connected to Arduino pins 7, 9, and 12.
  • Can I order the PCB without building it myself?
    Yes, you can order the PCB samples directly from JLCPCB fabrication services.
  • Does the circuit use isolation for safety?
    Yes, the design includes an isolated PCB that uses an optocoupler to trigger the NPN transistor.
  • What tool was used to design the PCB layout?
    The online EDA tool called EasyEDA was chosen to design the Arduino Relay Shield.
  • How is the optocoupler triggered in this circuit?
    The optocoupler is triggered by an active LOW signal.
  • What power supply is recommended for demonstration?
    A 12v adapter is used for powering the circuit during demonstration.

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter
Scroll to Top