Shopping Cart

⚡️ We’re Helping 1 Million People Build Their First Robots

🇺🇸 Proudly Women-Owned Small Business
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!

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.

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 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

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

Projects using Relays & Arduino for Home Automation

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!

Support Content Like This

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 a coffee.
If you'd like to work with Liz, you can schedule a call here.


  1. Shane Kinsella

    Hi. I’m looking to join two 8 channel relays together running from an arduino mega but dont know how to power both at the same time(off each other) for christmas lights.One works fine with the jumper still connected but i dont know what to do next without wrecking everything. Any pictures of how-to would be greatly appreciated.
    Thanks in advance.

    1. Liz Miller

      Hey Shane, we appreciate your comment, but unfortunately, this is considered custom work. We don’t provide individual support for custom projects in the comments section. Good luck ~Liz from Learn Robotics

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.

Learn Robotics Botly Favicon

Become a Learn Robotics Insider


Be the first to know when we launch new robotics content. Plus gain FREE robotics tips to your inbox.

Awesome! Check your inbox for a surprise!

Remote Robotics Courses for High School, Middle School, or Pre-College Training

Join the Powered by Learn Robotics Program

Teach robotics anywhere with our turnkey robotics program!

Download our free program brochure!

Success! Check your email for the download!