Mid-Senior Engineers: Reinvent your career with Robotics, earning $100k-$200k+ in the next 90 days. Learn More

3 Projects using Relays & Arduino for Home Automation

Liz Miller Learn Robotics

About the Author, Liz Miller, Founder/CEO @ Learn Robotics

Liz graduated with a degree in Robotics Engineering from Worcester Polytechnic Institute and researched drones at UPenn's GRASP Lab. Liz is a former Raytheon Engineer, where she managed major $MM automation projects worldwide. Today, she's the driving force behind Learn Robotics, offering the Robotics Career Blueprint for Engineering Professionals and beginner courses through the Online Robotics Class. Liz is a third-generation entrepreneur who is all about the application of innovation in robotics, automation, and AI. Follow Liz on LinkedIn and Facebook.

Disclosure: Some of the links below are affiliate links. This means that, at zero cost to you, Learn Robotics will earn an affiliate commission if you click through the link and finalize a purchase. Learn Robotics is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a way for websites to earn advertising revenues by advertising and linking to Amazon.com.

Join our Private Discord Server, MakeRobots! Sign Up

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

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

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

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.

[et_bloom_inline optin_id=optin_25]

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!

Experienced Engineer (Mechanical, Electrical, Computer, Software): If I offered to help you upgrade your engineering career to robotics, earning $100k-$200k+ in the next 90 days, would you take me up on that offer? Click here for details.
Liz Miller Learn Robotics

🚀 Pre-Launch: Become a "MakeR" with MakeRobots!

Hey Reader, 👋

Liz Miller, Founder/CEO, here with some Exciting News!

Learn Robotics just acquired MakeRobots™, an Online Robotics Community, and are prepping its Official Learn Robotics Debut in Late 2023.

MakeRobots™ is your one-stop-shop for learning, gaining coding, electronics, and robotics skills, connecting, and building robots for one low monthly membership!

Join MakeRobots™ at our Special Pre-launch Rate!
🤖 Access our Private Community & Robotics Courses
💬 Network, Collaborate, Connect with Other Makers
🔓 Only $5.99/month – locked in for life
⏱️ Pre-launch deal is Limited to the first 1,000 subscribers

This is a perfect opportunity for you to get into the fastest growing robotics community on the internet, at our ground-level, pre-launch membership rates.

👇 Click the button below to Claim your Pre-launch Membership and become a MakeR in the MakeRobots Community, today!

Learn Robotics Botly Favicon

MORE LEARN ROBOTICS ARTICLES