Home Automation Using IOT With Blynk and ESP8266-01
by Anto B in Circuits > Arduino
2289 Views, 2 Favorites, 0 Comments
Home Automation Using IOT With Blynk and ESP8266-01
![Thumbnail.jpg](/proxy/?url=https://content.instructables.com/F3M/MQKO/K10ZHEAH/F3MMQKOK10ZHEAH.jpg&filename=Thumbnail.jpg)
Whats app guys.. in this video, you are going to learn how to make a simple home automation using esp8266-01 and blynk app. because IoT is the current trend on the market. so at the end of the tutorial, you can able to know how to make the home automation.
Supplies
materials required
1) ESP8266-01
2) 2 channel Relay
3) USB to TTL converter
4) jumper wi
Gather the Required Components
![DSC00514.JPG](/proxy/?url=https://content.instructables.com/FF4/2XJP/K10ZHE1R/FF42XJPK10ZHE1R.jpg&filename=DSC00514.JPG)
![DSC00513.JPG](/proxy/?url=https://content.instructables.com/FQF/ZDJ3/K10ZHE10/FQFZDJ3K10ZHE10.jpg&filename=DSC00513.JPG)
![DSC00515.JPG](/proxy/?url=https://content.instructables.com/FL6/ULTF/K10ZHE82/FL6ULTFK10ZHE82.jpg&filename=DSC00515.JPG)
![DSC00516.JPG](/proxy/?url=https://content.instructables.com/FB7/P0KY/K10ZHEAD/FB7P0KYK10ZHEAD.jpg&filename=DSC00516.JPG)
![esp breakout.jpg](/proxy/?url=https://content.instructables.com/FGB/C49O/K10ZHEAE/FGBC49OK10ZHEAE.jpg&filename=esp breakout.jpg)
i strongly suggest you to buy the ESP breakout board to download the code. I have made a breakout board.
you can use any type of relay to connect. but i recommend you to use optocoupler controlled relay. so that the reverse current cannot affect our esp module.
Install the Blynk App and Make Necessary Arrangements As Per the Picture
![Screenshot_2019-09-26-19-38-16-57.png](/proxy/?url=https://content.instructables.com/F54/DCLS/K10ZHECI/F54DCLSK10ZHECI.png&filename=Screenshot_2019-09-26-19-38-16-57.png)
![Screenshot_2019-09-26-19-38-46-64.png](/proxy/?url=https://content.instructables.com/FRP/ABM3/K10ZHECJ/FRPABM3K10ZHECJ.png&filename=Screenshot_2019-09-26-19-38-46-64.png)
![Screenshot_2019-09-26-19-40-05-71.png](/proxy/?url=https://content.instructables.com/FC1/3HD4/K10ZHED8/FC13HD4K10ZHED8.png&filename=Screenshot_2019-09-26-19-40-05-71.png)
![Screenshot_2019-09-26-19-40-30-72.png](/proxy/?url=https://content.instructables.com/FW5/UV7U/K10ZHEDJ/FW5UV7UK10ZHEDJ.png&filename=Screenshot_2019-09-26-19-40-30-72.png)
![Screenshot_2019-09-26-19-40-39-52.png](/proxy/?url=https://content.instructables.com/FZD/UWBS/K10ZHEDK/FZDUWBSK10ZHEDK.png&filename=Screenshot_2019-09-26-19-40-39-52.png)
![Screenshot_2019-09-26-19-40-44-26.png](/proxy/?url=https://content.instructables.com/FET/0X9I/K10ZHEDM/FET0X9IK10ZHEDM.png&filename=Screenshot_2019-09-26-19-40-44-26.png)
![Screenshot_2019-09-26-19-40-50-01.png](/proxy/?url=https://content.instructables.com/F0B/52ZW/K10ZHEDN/F0B52ZWK10ZHEDN.png&filename=Screenshot_2019-09-26-19-40-50-01.png)
![Screenshot_2019-09-26-18-26-14-98.png](/proxy/?url=https://content.instructables.com/F2L/H6FM/K10ZHEC5/F2LH6FMK10ZHEC5.png&filename=Screenshot_2019-09-26-18-26-14-98.png)
![Screenshot_2019-09-26-18-26-27-13.png](/proxy/?url=https://content.instructables.com/FQ3/5KB9/K10ZHEC6/FQ35KB9K10ZHEC6.png&filename=Screenshot_2019-09-26-18-26-27-13.png)
![Screenshot_2019-09-26-18-26-48-61.png](/proxy/?url=https://content.instructables.com/F5W/KI1U/K10ZHECH/F5WKI1UK10ZHECH.png&filename=Screenshot_2019-09-26-18-26-48-61.png)
![Screenshot_2019-09-26-19-41-08-82.png](/proxy/?url=https://content.instructables.com/FGG/FBMG/K10ZHEED/FGGFBMGK10ZHEED.png&filename=Screenshot_2019-09-26-19-41-08-82.png)
![Screenshot_2019-09-26-19-40-55-20.png](/proxy/?url=https://content.instructables.com/F0J/31OU/K10ZHEDO/F0J31OUK10ZHEDO.png&filename=Screenshot_2019-09-26-19-40-55-20.png)
![Screenshot_2019-09-26-18-26-36-11.png](/proxy/?url=https://content.instructables.com/FB4/GS0B/K10ZHECE/FB4GS0BK10ZHECE.png&filename=Screenshot_2019-09-26-18-26-36-11.png)
![Screenshot_2019-09-26-18-25-54-34.png](/proxy/?url=https://content.instructables.com/FBP/WBZF/K10ZHEC4/FBPWBZFK10ZHEC4.png&filename=Screenshot_2019-09-26-18-25-54-34.png)
Login with your email id and Select new project
Give a suitable name and select the ESP8266 then click create
you get a notification that Token has been send to your email
Add the widgets
select button widget
touch the button symbol on the screen. select the pin to GPIO0, change the type from button to switch
similarly add one more button, here select the pin gpio2
click Run at the top corner
Add Blink Library by Clicking the Following Link Below
![blink website.jpg](/proxy/?url=https://content.instructables.com/FTF/ISSQ/K10ZHFE3/FTFISSQK10ZHFE3.jpg&filename=blink website.jpg)
![library.jpg](/proxy/?url=https://content.instructables.com/FQO/Z62K/K10ZHFE7/FQOZ62KK10ZHFE7.jpg&filename=library.jpg)
![examples.jpg](/proxy/?url=https://content.instructables.com/FB0/U4T8/K10ZHFE5/FB0U4T8K10ZHFE5.jpg&filename=examples.jpg)
download the blink library and paste on the arduino folder as shown in the picture
https://github.com/blynkkk/blynk-library/releases/...
download the rar file.. extract and paste it on the libraries of the arduino.
Now open arduino IDE, examples and then blink--->esp8266 standalone.. refer the picture
Change the Wifi Credential and Token on the Code
![token in ard.jpg](/proxy/?url=https://content.instructables.com/FG4/48P5/K10ZHEAJ/FG448P5K10ZHEAJ.jpg&filename=token in ard.jpg)
![token.jpg](/proxy/?url=https://content.instructables.com/F2A/3Q3S/K10ZHEBH/F2A3Q3SK10ZHEBH.jpg&filename=token.jpg)
copy the auth token code and paste it on the program.. add the wifi SSID and PASSWORD
Fix It on the Breakout Board and Download the Code Using USB to TTL Converter
![image-21.jpg](/proxy/?url=https://content.instructables.com/F14/ZSE2/K10ZHEEE/F14ZSE2K10ZHEEE.jpg&filename=image-21.jpg)
![DSC00232.JPG](/proxy/?url=https://content.instructables.com/F78/ABWY/K10ZHFUC/F78ABWYK10ZHFUC.jpg&filename=DSC00232.JPG)
![ftdi.jpg](/proxy/?url=https://content.instructables.com/FGE/LYFU/K10ZHEEF/FGELYFUK10ZHEEF.jpg&filename=ftdi.jpg)
I have made my own ESP module breakout board, if you have an ESP breakout board, fix the module and download the arduino code using USB to TTL converter. i have used a +3.3v regulator at the bottom of the board.
Note:-
don't forget to change the board from arduino uno to esp8266
don't forget to select the com port
Construct the Hardware As Per the Picture
![Blynk simple auto.png](/proxy/?url=https://content.instructables.com/FF8/SF80/K10ZHDZ5/FF8SF80K10ZHDZ5.png&filename=Blynk simple auto.png)
![DSC00509.JPG](/proxy/?url=https://content.instructables.com/F0T/4SHJ/K10ZHE00/F0T4SHJK10ZHE00.jpg&filename=DSC00509.JPG)
![DSC00510.JPG](/proxy/?url=https://content.instructables.com/F1D/NF2J/K10ZHE03/F1DNF2JK10ZHE03.jpg&filename=DSC00510.JPG)
![DSC00511.JPG](/proxy/?url=https://content.instructables.com/FZ7/1JO5/K10ZHE0U/FZ71JO5K10ZHE0U.jpg&filename=DSC00511.JPG)
connect GPIO0 to IN1
connect GPIO2 to IN2
switch ON the hardware.
Be careful when giving power supply. because ESP module require only 3.3v.
Time to Test the Hardware
![res 2.jpg](/proxy/?url=https://content.instructables.com/FNL/7Y0D/K10ZHGHN/FNL7Y0DK10ZHGHN.jpg&filename=res 2.jpg)
![res.jpg](/proxy/?url=https://content.instructables.com/FMX/HC75/K10ZHGHO/FMXHC75K10ZHGHO.jpg&filename=res.jpg)
switch the internet connection ON on the smart mobile.. run the blynk app.. touch the virtual switch on the screen. check the relay switching or not.
if you want live demo, watch my video..
follow me on telegram
t.me/coffeebreak2231