It’s now the age were the word “Hack” is a relevant word we see and hear everywhere, and i don’t mean the software cyber hacks,I am talking about DIY hacks 😀 . We made this Home Automation Hacks series to help you add fun features to your home stuff by doing it yourself 😉 .
In the first blog of this series, we decided to pick up one of the most popular hacks “Voice Controlled Switches”, we will control home lights with our voice and it’s really easy specially when we have such a powerful tool like the smartphone. Let’s start with…
These are the components we need, so we will test the system first before hacking our real home switch.
1- Arduino Uno
3- Relay board
4- Switched light bulb
5- Female to Male jumpers
6- USB cable
8- Screw driver
1- From the components, we got the switched light bulb to simulate the process of controlling home lights. The switch comes with two wire lines, at first we gonna cut one of these wires and strip the ends to wire them to our relay board.
2- Then connect the relay board to the 1Sheeld&Arduino on Vcc, GND & pin13 for the signal line.
Here’s the full working code. The code uses the Voice Recognition shield library provided with the 1Sheeld library to control pin13 (which already connected to the relay signal pin) and whenever I say certain words like “Turn on the lights”, it will trigger the signal to pin13 to open the way for the current to pass through the light bulb turning it on, and of course when I say “Turn off”, it will close the path making the light bulb to turn off.
1- Now plug your arduino to your PC/Laptop and upload the code (make sure first to put your 1Sheeld to uploading mode preventing errors).
2- Open 1Sheeld application and connect to 1Sheeld board.
3- Make sure to open the switch to always make the path opened for the current to reach the bulb, think of it like a two series switch, the system won’t work unless the two are opened and one of them is controlling the current flow which is the relay in our case.
4- Scroll down and choose voice recognition shield, then speak out the words “Turn on the lights/Turn off” to turn on/off the light bulb.
I have designed a 3D case to hold the electronic parts together, so it won’t look messy over the switch, you can check and download the files from Here, and feel free to design your own 3D cases for your extra electronic parts 🙂 .
1- With same circuitry of testing, we gonna wire things up on a real switch, but before touching or unscrewing anything…! first cut the power off the switch, or preferably the entire section of your home preventing damages.
2- Now unscrew the switch and reach in to one of the wire lines, cut&strip it the same way we did in testing.
3- Connect the two stripped ends to the relay board.
4- Power up the system with a 12V DC adapter or with a 9V battery.
5- Return the power back to the switch, then open the application, connect and open the voice recognition shield and enjoy the hack 😉
This was it for the first hack please share your ideas in the comments bellow and stay tuned for more home automation hacks 🙂 .
Arduino makers …. you can connect your Arduino to MQTT brokers(servers) and launch your IoT with Arduino IoT Shield! It’s the 1Sheeld IoT shield that will do the job for you. It’s one of the most important but recent Arduino shields in 1Sheeld. Simply, it turns your Arduino into MQTT client where you can publish and …
Monitor my home environmental parameters remotely is one of the most desirable things I have ever wanted to make. It’s not about purchasing such a system that can get the job done for me. But, passion to create it myself. So, today, I am going to connect the popular DHT sensor to an online MQTT …
“Oh God! … It seems like I have forgotten the door lock open, again” … the normal saying whenever I am in hurry to go out! Have you encountered this problem before? It always confuses me since I may even think that I have left the door lock opened, and once I go back, …
Here I am with another IoT-based home automation project; Arduino IoT Fan Control. Every day, I get back from work tired and feeling hot. No air conditioner here and the fan takes much time to start cooling the room, sadly! So, I was thinking why not controlling the fan from outside my home with my …
Have you ever forgotten to turn your home lights off when you got outside? Sadly, it happens to me all the time. And this causes confusion once I get my bills! Furthermore, here is one secret about me; I am a lazy man. I always want to control my room lamp from my sweet bed. …
Arduino Plant Watering System Welcome to our home automation hacks series #3, for so many times I had problems with watering my plants while traveling abroad and I have always needed a way to control it remotely, then I decided to do it with one of the fanciest ways you may ever hear off, …