We’re here to help in the event of a school closure. See our resources.
relay projects for home automation cover photo

3 Projects using Relays & Arduino for Home Automation

We sometimes use affiliate links in our content. This won't cost you anything, but it helps us to offset the costs of paying our writing team. You can support us directly on BuyMeACoffee. Thank you!

Online Robotics Course by Learn Robotics
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Spring is in the air, and what better way to spend the weekend than working on a Home Automation project?! I scoured the internet and found three projects using relays and Arduino for home automation. I plan on completing some of these projects myself in the near future, so be on the lookout for an update to this article, soon!

Oh, and all of these projects incorporate Arduino ESP8266 and 5V relays. So if you’ve been looking for applications using RELAYS, here ya go! 🙂

Here’s what’s on deck for this week’s projects:

1. Build an Arduino Controlled Power Outlet
2. Control & Monitor your Garage door with Arduino & Relays
3. Make an Irrigation System with Arduino + Relays

Time to jump into it!

Project #1: Build an Arduino Controlled Power Outlet by Circuit Basics

Difficulty: ★★★☆☆

This is a project I’ve been wanting to complete for a while – and quite frankly, I’ll probably end up adding this project to the blog at some point.

  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn
Photo Credit: Circuit Basics

But for those of you who’ve been asking me about 5V relay projects, this is what I’d recommend taking a look at. All credit for this project goes to Circuit Basics. Feel free to check out the full tutorial on their blog here.

Goal: Use a relay + Arduino to control a lamp plugged into a wall outlet.

In this project, rather than modify the lamp or device’s cable, we’re going to create a universal wall outlet controlled by the 5V relay and Arduino. It’s more practical to go one step closer to the source and switch the power at the outlet.

Iot Relay - Enclosed High-power Power Relay for...
Safe, Reliable Power Control; One circuit, 4 outlets, 2x NC, 2x NO; Wires to your Arduino, Raspberry Pi, PIC, or other micro

That way you can use it for multiple devices without having to re-wire the relay or cut into the device’s power supply. If you’re looking for a project like this, then I recommend checking the full tutorial on the Circuit Basics website!

Caution! This project isn’t recommended for use on high current-drawing appliances such as vacuum cleaners.

Materials List

Use this list to gather materials for your project!

Additional Resources

I’ve also compiled some similar projects at the following links. Feel free to use these sites as well for additional resources and information!

Arduino Controlled Power Outlet by Electronics Hub
Controllable Power Outlet by SparkFun

Project #2: Control & Monitor your Garage Door with Arduino & Relays

Difficulty: ★★★★☆

This project is brought to you by Mike Mackes and Noah Mackes from Hackster.io. If you’ve been looking for a way to upgrade your garage door opener, then this tutorial is for you!

Goal: Control & Monitor your garage door with ESP8266, openHAB, & a 5V Relay

The project consists of an ESP8266, 5V relay, power supply, resistors, and LEDs. The ESP8266 connects to your local WIFI and runs a small web server that responds to simple HTTP GET/POST requests that will be sent to it via openHAB.

Projects using Relays & Arduino for Home Automation
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

The relay works just like your existing wired garage door switch to activate the opener except for it’s controlled over WIFI via the ESP8266. The LEDs are there to provide you status information. You can also 3D print a case to store your Garage Door opener electronics. More details can be found in the full write-up on Hackster.io.

Projects using Relays & Arduino for Home Automation
  • Facebook
  • Twitter
  • Pinterest
  • Buffer
  • reddit
  • LinkedIn

Project #3: Make an Irrigation System with Arduino + Relays

Difficulty: ★★☆☆☆

If you’re into gardening or like building devices for any & everything, here’s a classic example of using relays to create an automatic irrigation or watering system for plants. You can scale this system to work for watering lawns, gardens, or single plants depending on your use case.


I find this example to be pretty fascinating, so if you’re looking for an applied use for using Arduino and Relays, then this is definitely a project you’re going to want to check out!

Subscribe to YouTube

In this example project, we are going to make an automatic irrigation system that will sense the moisture of the soil and open or close the valve according to it. Read the full tutorial on the Maker Pro website, here.

Additional Plant projects can be found on the Arduino Project Hub.

Which of these Home Automation projects are you going to try next? Leave a comment below!

You May Also Like

Have a question? Need Help?

Thanks for dropping by! Comments are no longer moderated daily.
Before posting your comment, please consider buying me a coffee. If you need immediate support, you can schedule an appointment. Providing customized information for your individual scenario takes a lot of my time. I’m happy to help, but I can no longer provide individualized advice pro bono.
Thank you for understanding.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Free Learn Robotics Swag

Patch/Sticker with every LR Kit

Work with an Engineer

Live Chat with an Instructor

365 Day Course Access

1 year access to every course

100% Secure Checkout

PayPal / MasterCard / Visa

Become a Learn Robotics Insider

Sign up and receive product announcements and discounts!


Success! Check your email for a surprise!

Pin It on Pinterest