DIY Smart Home

Control Your Lights Like a Geek With These Arduino Projects

Ian Buckley 17-03-2017

There have never been more ways to light your home. Low powered LED strips and bulbs are not only cheap, but can be controlled in a variety of awesome ways which will leave you feeling like the ultimate starship captain, mad scientist, or evil villain – depending on your priorities in life.


Most LED strips come with an infra-red remote control. These are useful for obvious reasons, but using an Arduino instead can add functionality. (If you’re just getting started with Arduino, first look over our beginner’s guide Getting Started With Arduino: A Beginner's Guide Arduino is an open-source electronics prototyping platform based on flexible, easy-to use hardware and software. It's intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Read More ).

How about controlling your lights with your voice? What about lights that come on automatically when you come home at night? Mood lighting controlled by someone else’s mood? How does easing slowly into the day with an artificial sunrise sound?

In this article we will cover them all, and a few more. You can build almost every project here with simple components and a basic grasp of coding, and could even combine them together.

Give It a Hand

Lets start with an old favorite, the clapper. Instructables user MertArduino has created a clapper switch which attaches to any lamp using a relay module along with a sound sensor module, all driven by an Arduino Uno.

You could use almost any Arduino compatible board for this project, cutting the size down even more. If you do decide to build this, I would perhaps suggest making a slightly safer enclosure than the cardboard one featured!


Perfect to look cool walking into a room, less perfect if you are likely to receive a round of applause when you get there.

Catch a Wave

Science fiction is full of cool things happening whenever the hero so much as flicks a finger. Whether it’s the futuristic hand controlled screens from Minority Report, or the ability to shoot media from handheld devices onto big screens in The Expanse, it seems that gestures speak louder than words.

Francisco Castro made a stylish lamp with simple materials — the lampshade itself is a beautifully simple design made from paper. You can check out the tutorial for this project on the Make website here.

Instructables user admarschoonen took this design even further by creating an updated version of Francisco’s lamp. He incorporated a capacitive touch panel on each corner to change the color of the lamp. This time the circuit is housed inside an old glass lamp from IKEA. You can find a detailed how to for this project here.


Control Your Lights Like a Geek With These Arduino Projects admarschoonen gesture lamp 670
Image Credit: admarschoonen via Instructables

Give It Some Color

As mentioned in the intro to this article, many LED strips come with a cheap remote control to control their color and brightness, but these rely on line of sight to operate. A much more convenient way to control LED strips is over Wi-Fi. This of course means your LED controller will also need to communicate by Wi-Fi. While there are shields available for Arduino boards, why not get something cheap, Arduino compatible, with Wi-Fi capability already built in? We have covered the NodeMCU Meet the Arduino Killer: ESP8266 What if I told you a there's an Arduino-compatible dev board with built-in Wi-Fi for less than $10? Well, there is. Read More (ESP8266) board before and it is a firm favorite for many of our projects.

Rui Santos created a mood lamp, which can be controlled by any browser connected to his home Wi-Fi, for under $10. Check out the how to guide on the Random Nerd Tutorial website.

Taking the idea of mood lighting even one step further, Instructables user fjordcarver has created a “Chameleon Lamp” which changes color based on what it sees on the surface below. The build uses a light sensitive resistor, as well as red, blue and green LEDs to detect and reproduce color. See the full Instructable — with hand drawn diagrams no less — for the project details.


Control Your Lights Like a Geek With These Arduino Projects chameleon lamp 670
Image Credit: fjordcarver via Instructables

Give It Some Rhythm

Another alternative for souping up your lighting is making it reactive to what you are listening to. As nostalgic as the LED meter on my childhood stereo system jumping from the yellow into the red may be, we can do much better now.

The above video is by Miska Karvonen, and you can see how he designed this reactive LED lighting to work with almost any audio setup on the Instructables page about the project. He’s used individually addressable Neopixels (also known as WS2812B) strips.

Control It From Your Phone

Smartphones have become ubiquitous, to the point that having an old school phone is seen as a rarity. While controlling technology from your phone is one of the most common home automation projects Getting Started with OpenHAB Home Automation on Raspberry Pi OpenHAB is a mature, open source home automation platform that runs on a variety of hardware and is protocol agnostic, meaning it can connect to nearly any home automation hardware on the market today. Read More , it can still be a fairly daunting task to anyone unfamiliar with networking.


Luckily, there are companies which provide a cloud service allowing us to sidestep this problem. I recently did an introductory article Getting Started With Blynk: Simple DIY IoT Devices Blynk is an Internet of Things (IoT) service designed to make remote control and reading sensor data from your devices as quick and easy as possible. Read More on Blynk — a service designed to make it easier to connect to internet enabled devices from anywhere. They have improved on the service since that article was written, and for an easy to set up cloud based automation service, it’s a great starting point.

Give It a Time and a Place

Sometimes, you just want the lights to come on at a certain time. In a previous article, James covered how to create an Arduino powered sunrise alarm and nightlight Arduino Night Light and Sunrise Alarm Project Today, we'll be making a sunrise alarm clock, which will gently and slowly wake you without resorting to an offensive noise-making machine. Read More , which slowly eases you into the day with lights that fade in over time, and turns a light on when it detects movement at night. It also makes for great dog photography lighting.

Control Your Lights Like a Geek With These Arduino Projects sunrise alarm 670

It is worth noting that if you are going to build this project you should use logic level MOSFETS (such as the IRL540N or something similar) so that you don’t run into the same issues he did!

To take the idea of timed lights even further, we can use IFTTT (If This Then That). IFTTT lets you automate technology The Ultimate IFTTT Guide: Use the Web's Most Powerful Tool Like a Pro If This Then That, also known as IFTTT is a free web-based service to get your apps and devices working together. Not sure how to build your applet? Follow along with this guide. Read More , allowing you to link almost anything from smart home and security systems, to social networks and smart phones. You’ll find thousands of “recipes” already for automated solutions, with many off-the-shelf smart home products supported Amazing Things You Can Do With Smart Appliances and IFTTT Each smart appliance comes with a set of instructions. However, thanks to IFTTT, one can streamline many of these processes so that they all become connected to one another. Read More .

IFTTT’s Maker channel allows you to trigger your own DIY projects too. By sending a web request to a cloud service like Blynk [Broken URL Removed] and (or your own webserver if you have one), you can trigger changes in your home system a variety of ways.

For example, by modifying this tutorial by Alvaro Luis Bustamante on using IFTTT with, you can add location based control to your lighting. Instead of Twitter being the If action, use the Android channel to detect when your phone attaches to your home Wi-Fi network.

Control Your Lights Like a Geek With These Arduino Projects ifttt android 670

In the comments of the same tutorial, Alvaro outlines how to modify the web request to instruct your NodeMCU to do your bidding.

Control Your Lights Like a Geek With These Arduino Projects nodeMCU ifttt 670
Image Credit: alvarolb via

Talk to It!

The pinnacle of geeky control methods is voice control. While there are more complex methods (brain control, anyone?), talking to hardware is the staple of sci-fi, and the best way to channel your inner Jean-Luc Picard.

In an earlier article How to Make a DIY Siri-Controlled Wi-Fi Light In this guide, you're going to learn how to create a Wi-Fi controllable light, and control it with Siri. Read More , we covered how to use Siri along with a Raspberry Pi and a NodeMCU board to control a light completely by voice.

Since that tutorial, the Amazon Echo has been released, pushing voice commands into a much more accessible and powerful method of control. In an article on, Carlos Martin created a voice controlled RGB LED setup for his kitchen, controlled using Alexa.

This setup is fairly elegant as it makes use of a cheap infra-red controlled LED strip, and uses a Particle Photon board to generate IR codes to change the brightness and hue of the lighting, so you can still use the original remote and bypass the need for any hardware hacking. You could do the same with a NodeMCU, which would be even cheaper.

Let the Light Talk to You Instead

So far we have looked into ways you can control your lights directly, but how about handing that control over to someone else. Sounds crazy, right? You may have images of your lights flickering on and off at all hours of the day and night in some kind of haunted house scenario reminiscent of a scene in Mr. Robot How to Get a Smart Home Like in Mr Robot Let's take a look a look at the smart home hardware featured scene-by-scene in a Mr. Robot tv episode, and see what we can figure out. Read More .

No, what I suggest is a little more controlled. Kaustubh Agarwal designed a simple color changing lamp, with the hue determined by an IFTTT search of Twitter tags. The color changes depending on the general mood of Twitter users.

Control Your Lights Like a Geek With These Arduino Projects mood lamp 670
Image Credit: Kaustubh Agarwal via Arduino Create

This exact same setup could be used for something even more specific: you could make your light change when you are mentioned by name, or you are liked or retweeted.

Make Your Dimmer Smart

Most of these so far have concentrated on LED lighting, but you can use your Arduino to control AC dimmer lights too. Instructables user Jestin_Cubetech has put together a project using Arduino and Raspberry Pi to control a bulb’s brightness using pulse width modulation (PWM).

You can find the full project here, though as one comment mentions, it would be worth attaching a heat-sink to the MOSFET in the circuit to prevent overheating.

So there we have it, go forth and control your lights like the captain of your own space ship! This article barely scratches the surface of the many ways you can personalize your set up, and I look forward to seeing what unique things the community will come up with to control their lights in ever more complicated ways. Go forth and be creative!

Have you made a weird and wonderful home setup for your lighting? Are you planning a project and are wondering where to start? Let us know in the comments below!

Related topics: Arduino, LED Lights, Remote Control, Smart Lighting, Smart Sensor.

Affiliate Disclosure: By buying the products we recommend, you help keep the site alive. Read more.

Whatsapp Pinterest

Leave a Reply

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

  1. Keith
    December 10, 2018 at 8:43 am

    I'm looking to install LEDs on the roof of my house and would like to control them and change their color depending on the holiday. Orange on Halloween, multi color at Christmas, and so on.
    I would probably run a wire through the wall into my bedroom for control and power.
    What would be the best controller to use (or put together) I've messed with an ardriuno board a bit, and would you have code written for such an occasion?

  2. Megan Barnett
    April 21, 2017 at 7:29 am

    Nice work Ian, loved your article! Especially, the idea of LED lights responding to any audio setups, really want to try them out! Expect to read more posts about Arduino implementation from you.

    • Ian
      April 21, 2017 at 10:16 pm

      Thank you! It was a lot of fun to write. I do indeed have a few other Arduino articles in the works.

      Thanks for taking the time to comment!

  3. Jonathan
    March 20, 2017 at 12:52 pm

    Pretty sweet looking lights. Would be nice to have something like this in my music studio.

    • Ian Buckley
      March 21, 2017 at 2:04 pm

      Go for it! They are so cheap and easy to set up. I'm in the process of setting up all of the lighting in my room based on a good few of these ideas.

      If it's a music studio, it might be worth looking at the sound activated project linked in the article. While it might be a bit much to have it on all the time, you could have it set so you can switch it on when you want sound reactive lights.

      Let me know if you do anything cool with it, I'm always up for seeing other people's setup!