Google Home With Arduino | NodeMCU

In this article I am showing you how to connect your device to google assistant or amazon alexa via NodeMCU.

tp-link1-1000x500

Step 1: Collect stuff

  • NodeMCU esp8266
  • Realy Module
  • Wifi Connection
  • 5v Power Supply

Step 2: Assemble

  • I used two way relay module and Connected their in pins to D5 & D6 of nodemcu board.
  • Connect the nodemcu to power supply through Vin pin.

Step 3: Adafruit & ifttt

Adafruit

  1. Create account in adafruit.io
  2. Create a new dashboard

adafruit dashboard

3.Create two feeds

  • Click on create a new block

Capture2

  • Then click on Toggle block

Capture4

  • Create two feeds “light1” & “light2”

Capture5

  • Then select one feed and go to next step

Capture6

  • Then change their on and off text

Capture7

  • Do this for light2 also and finally you will have bellow interface at the created dashboard

Capture8

 

IFTTT

  1. Create account in ifttt.com
  2. Create new applet(Turn on light 1)

10

11

3.Then click +this link and select google assistant in services

12

4.Then give google voice command and its reply

13

5.Next choose adafruit (send data to Adafruit IO)

14

6.Then select light1 in the feed name and 1 for the data(To turn on light)

  • 1 – ON
  • 0 – OFF

15

Create applet for following commands as shown above 

  • Turn off light 1
  • Turn on light 2
  • Turn off light 2

 

Step 4: Code

 

Step 5:

This slideshow requires JavaScript.

 

Tutorial Video