Control Home Appliances Using Node MCU and Google Assistant | IOT | Blynk | IFTTT

by sairushan in Circuits > Wireless

2252 Views, 4 Favorites, 0 Comments

Control Home Appliances Using Node MCU and Google Assistant | IOT | Blynk | IFTTT

Structural Brain Changes (13).png
Screenshot 2019-07-02 at 8.31.45 AM.png
Control Home Appliances Using Node MCU andGoogle Assistant | IOT | Blynk | IFTTT

A simple project to control Appliances Using Google Assistant:

Warning: Handling Mains Electricity can be Dangerous. Handle with extreme care. Hire a professional electrician while working with open circuits. I won't take responsibilities for the damages caused. Have a safe experience.

Do check out my Youtube Channel:

Supplies

Parts used:

NodeMCU

Relay

Jumpers

Bulb and holder

Connect the Wires to the Bulb Holder:

Screenshot 2019-07-02 at 8.32.03 AM.png
Luxue Nature Spa.png

Cut wire into two pieces and Strip the ends.

Screw the wires to the bulb holder

Connect the Bulb to Relay:

Screenshot 2019-07-02 at 8.32.36 AM.png

Connect the Wire from Mains to Common.

Connect the wire to the bulb in Normally open.

Connecting Relay to NodeMCU:

Screenshot 2019-07-02 at 8.33.27 AM.png
Screenshot 2019-07-02 at 8.33.08 AM.png

Connect jumpers from Vcc of Relay to Vin of nodemcu, Ground to ground and input 1 to D4.

Configuring Blynk:

Screenshot 2019-07-02 at 8.44.58 AM.png
Screenshot 2019-07-02 at 8.34.16 AM.png

Adding NodeMCU to Boards:

Screenshot 2019-07-02 at 8.34.33 AM.png

NodeMCU board manager URL http://arduino.esp8266.com/stable/package_esp8266com_index.json

Uploading the Code:

Screenshot 2019-07-02 at 8.34.42 AM.png

Code: https://github.com/sairushan/IOT

Setting Up IFTTT:

Screenshot 2019-07-02 at 8.35.14 AM.png
Screenshot 2019-07-02 at 8.35.25 AM.png
Screenshot 2019-07-02 at 8.35.03 AM.png

WebHooks URL: http://188.166.206.43/Your Authentication token/update/D2?value=0

The pin number specified here is the GPIO pin of the NodeMCU and not the physical board number.

Once the action is triggered, A web request is made. This turns the Relay-ON.

Similarly a trigger can be made to turn off by using Value=1 and body "[1]"

Now We Are Done:

Screenshot 2019-07-02 at 8.35.41 AM.png
Control Home Appliances Using Node MCU andGoogle Assistant | IOT | Blynk | IFTTT