DIY Low Cost Home Automation Using Esp8266

by pranav2345 in Circuits > Wireless

1757 Views, 1 Favorites, 0 Comments

DIY Low Cost Home Automation Using Esp8266

Adobe_Post_20190601_090129.png
20190530_141927.jpg
20190530_111146.jpg
20190530_141932.jpg
20190529_193357.jpg
20190530_141916.jpg
20190529_193256.jpg
DIY Home Automation- Controlling appliances over internet
Adobe_Post_20190602_113133.png

Hi everyone,
Today in this instructables I will be going to show you how I prepared my own home automation as a step towards a smart home using an ESP 8266 module generally known as nodemcu so without wasting the time let's get started :)

Supplies

Local store

Bill of Materials (BOM)

20190528_122417.jpg
20190528_122254.jpg
20190528_122236.jpg
20190528_122201.jpg
20190528_122343.jpg
20190528_122355.jpg

First of all we start by taking a look at the things required for this project

the required products includes an
Esp8266 board
Relay board
Diodes
Npn transistor i used bc547
100ohm rasistor
A genral purpose pcb
A 5v adaptor circuit
And also some complementry Components such as terminal blocks, wires ,switches etc

Building the Circuit

Schematic_DIY-Home-Automation_Sheet-1_20190531192702.png

Now we need an circuit to drive our relays i designed this simple schematics for controlling the relays you can connect the transistor's pin to any digital pin of node mcu and that can be replaced in the blynk app so don't be afraid of using any digital pin you like i used pins D5 and D6 respectively

Soldering and Building the Circuit

20190528_124409.jpg
20190529_113716.jpg
20190528_125438.jpg
20190528_124931.jpg
20190528_183126.jpg
20190528_124146.jpg
20190528_183021.jpg
20190529_113733.jpg
20190529_152522.jpg
20190529_152741.jpg
20190529_152322.jpg
20190529_152908.jpg
20190529_113716.jpg
20190529_153112.jpg
20190529_151005.jpg

Now comes the building of the circuit on a perfboard,
I build the same circuit discussed above on the pcb without any changes except that i added an interrupting switch between the both but thats not the topic of discussion

After completing of soldering my pcb begins to take its shape and looks wonderful

Programming

20190526_095054.jpg
20190526_100100.jpg
20190526_100109.jpg
20190526_100124.jpg
20190526_100150.jpg
20190526_100231.jpg
20190526_100433.jpg
20190526_100517.jpg
20190526_100530.jpg
20190526_100437.jpg
20190526_100537.jpg
20190526_100548.jpg
20190526_100635.jpg
20190526_100859.jpg
20190526_100942.jpg
20190526_100940.jpg
20190526_100950.jpg
20190526_100956.jpg
20190526_101013.jpg
20190526_101211.jpg
20190526_101341.jpg
20190526_101401.jpg

Now you need to program the esp8266 board
O took the board out of the circuit and then used a mobile cable to connect it to my computer


Now you first need to install esp8266 library i have already installed but if you dont have you need to install it

Next you also need an app to control it i used blynk app so firstly i downloaded the blynk app and also installed its library in arduino ide

Then i opened

- file
- examples
- blynk
- board wifi
- nodemcu

Now a new program will appear on your screen just you need to paste the authentication token provided to you by blynk app about which we would talk in a moment

Next you need to provide the name of your wifi and password in their respective places

Now just you needto select the right port and the board as nodemcu and just click on upload withlut making any changes

Much easy, isn't it?

Setting Up the Blynk App

Screenshot_20190530-143600_Google Play Store.jpg
Screenshot_20190530-143603_Google Play Store.jpg
Screenshot_20190526-095553_Blynk.jpg
Screenshot_20190526-095613_Blynk.jpg
Screenshot_20190526-095624_Blynk.jpg
Screenshot_20190526-095740_Blynk.jpg
Screenshot_20190526-095808_Blynk.jpg
Screenshot_20190526-095831_Blynk.jpg
Screenshot_20190526-095834_Blynk.jpg
Screenshot_20190526-095845_Blynk.jpg
Screenshot_20190526-095856_Blynk.jpg
Screenshot_20190526-095955_Blynk.jpg
Screenshot_20190526-095957_Blynk.jpg
Screenshot_20190530-143813_Blynk.jpg
Screenshot_20190530-143931_Blynk.jpg

Now forst you need to install blynk app
Nest you need to create a new id and then click on create a new project select the wifi option and board type to node mcu
Now it will send an authentication token to your email just you need to copy the same token in the program in arduino ide as discussed above

Next just add 2 buttons or more equal to the number of appliances you want to control and just select the pins you used and then its done...

Its Just Addicting

Screenshot_20190601-155114_Video Player.jpg
Screenshot_20190601-155102_Video Player.jpg
Screenshot_20190601-155142_Video Player.jpg
Now our project is complete and by connecting it as a switch we can use it to control aur daily appliances as a step towards a smart home

I think its really addictinggggggggggg........