Easy Home Automation Using NodeMCU ESP8266 and GOOGLE Assistant

by noor akhunji in Circuits > Arduino

943 Views, 4 Favorites, 0 Comments

Easy Home Automation Using NodeMCU ESP8266 and GOOGLE Assistant

Screenshot (158).png

In this tutorial you're going to see you how you can control your electronic appliances like T.V, fans, lights etc. over the internet with your voice and that to under a budget of $20. You can follow this tutorial even if you have no prior knowledge about Programming or NodeMCU. So lets begin learning Home Automation Using NodeMCU(ESP8266).

List of Components That I Used:

 NodeMCU esp8266

 4-relay switch board

 bulb

 Bread board

 black & red cables/wires

 Jumper cables : male to male & male to female

 Arduino UNO R3 (I used it as power supply)

Install and Configure Blynk App

normal_e7801888-75ee-472e-92d1-be20b8d25cae.png
Screenshot (159).png
Screenshot (160).png
Screenshot (161).png
Screenshot (162).png
Screenshot (163).png
Screenshot (164).png
Screenshot (165).png

Firstly you need to download Blynk app from play store or app store.

Blynk :- https://play.google.com/store/apps/details?id=cc.b...

after downloading app login the app and create new project by clicking new project.

give project name of your liking then select device as NodeMCU and select connection type is WIFI.

The auth-token is send to your e-mail id which you registered, we use auth-token for configuration.

Now we need to add 4 buttons to operate.

click on buttons and give names and select pins. in this convert push button into switch buttons.

Downloading and Setting Up Arduino IDE and Blynk Libraries

Screenshot (166).png
Screenshot (167).png
Screenshot (172).png
Screenshot (173).png

Arduino IDE : https://www.arduino.cc/en/software

Blynk Libraries : https://github.com/blynkkk/blynk-library/tree/mast...

now in Arduino ide go to files > examples > Blynk > Board_WIFI > ESP8266_Standalone

in ESP8266_Standalone.ino file we need to change only three lines of code:-

step:-1 Paste auth-token which Blynk app send to your e-mail.

step:-2 Enter your wifi name in code.

step:-3 Enter your wifi password.

now connect NodeMCU ESP8266 with pc/laptop and select board and upload the code.

Connections / Hardware Assembly

Screenshot (157).png

Part_1 :- Home Automation Using NodeMCU Esp8266

Home automation using blynk app | control lights and fan using mobile | using nodemcu esp8266

Part_2 :- Operate Home Lights Using Google Assistant

Home automation using Google assistant | just say Ok google command and enjoy with nodemcu esp8266