Introduction: Universal Internet of Things
Internet Of Things will soon become a $6 trillion dollar business. But installation of IOT into existing houses would require massive amount of work. Drilling walls, check for proper grounding, replacing entire lights and fans, etc.
But is there a simple and easy way to install IOT into your home without replacing any lights, fans or whatever? Is there an option for existing homeowners to install Internet Of Things quick and easily?
Introducing, Universal Internet Of Things (UIOT) ! A device that plop onto your wall switch and instantly connects your electrical appliances to the internet. Let me show you how it's built. Let's get started!
Step 1: Materials & Equipment Needed
The materials needed are:
2x Lithium Ion 18650 3.7v Battery
2x 18650 Single Battery Holder
1x Adafruit Huzzah Breakout
2x Micro Servo
6x M3 Short Screws
2x M3 Long Screws
Couple of M3 Bolts
Male Pin Headers
3D Printer (Don't worry if you don't have one, I'll show you another method)
Step 2: 3D Printing
I've designed a casing for our UIOT project on Autodesk Fusion 360. Go ahead and download the .stl files from my Github and have it printed out.
If you do not have a 3D Printer, you can instead use online 3D Printing services who can take your stl files and ship the model to you.
Step 3: Start Constructing the Circuit on a Perfboard
Now after you've gathered your Adafruit Huzzah Breakout, Pin Headers, Batteries and all that fun stuff. Go ahead and assemble them according to the schematics provided!
You can assemble it however you want but I recommend using two 3x1 pin headers for the servos and 1 2x1 pin header for the Battery. This way if you need to perform future maintenance, you can simply disconnect the connectors and pull the perfboard out.
Make sure to connect the battery holders in parallel. We want extra capacity for our project!
Step 4: Start Assembling Everything
So to start, there are multiple holes on the 3D Print for mounting. the two elevated holes on the 3D Print are for M3 bolts for the perfboard, go ahead and drill two holes on your perfboard and screw your perfboard in.
Next, hot glue your servos to the 3D Printed servo motor holder. This is assembly is later join with the main casing via two long M3 Bolts, you can add 1 or 2 nut before putting the servo holders together to ensure the servos are putting enough pressure against the switch.
After that, put another two M3 Bolts through your 18650 Battery holder to secure it onto the casing
Finally, yet another two M3 Bolts will go onto of the casing. This bolts need to be connected to the capacitive sensor wires.
Step 5: Load the Firmware
Go ahead use the USB-UART converter and load the Arduino Firmware onto the board. Available on my Github as well. It will take a minute to load. Remember to replace the SSID and Password with your home network. I'll explain how to obtain an auth token later.
Step 6: Create a Blynk App
This step is pretty simple. Go ahead and download the blynk app and create a new project. Whenever you do so you'll be given an auth token on your email, copy and paste that token to the firmware code.
Step 7: Mount It Onto Your Wall Switch
This device will work with any wall switch that have a 2 flat mounted switch. Remove two of the screws that hold the cover plate against the wall and put that through the holes already available on the 3D Print. Then screw it against the wall.
Oh and ensure that your battery has been connected. Test if the servo moves before mounting.
Step 8: Impress Your Friends!
Now, go on and show your friends how smart you are for creating such an awesome and useful device! You can mount it on any switch, lights, fans, heater, air conditioning, whatever.
You can now control your house appliances from the internet. Whenever you're unsure whether you've shut off your lights, you can just do it on your phone. How cool is that?
We have a be nice policy.
Please be positive and constructive.
First of all: Awesome! This makes it much easier for some switches who don't have a zero wire.
My tip: design the box (3d printed) so that you can acces the batteries from the front. If the batteries run out, you'll have to recharge them. With this case you'll have to get the whole plate of. Better would be if the batteries would be separately accessible from the front. You then can recharge the batteries (or replace them) without getting the whole device of the wall.
Hi! How many time its working with 2x18650 Battery? You use deep-sleep mode for ESP8266?
Yep, I don't have an ammeter to properly measure the time yet but I estimate about 6 month to a year or so.