How to Automate Your Room With Google Assistant and Arduino?

About: I'am an Electronics student that really enjoy making new things from garbage, and DIY projects. I am here to share my knowledge with you, and learn with you too.

Intro: How to Automate Your Room With Google Assistant and Arduino?

Hi Instructable community, here i am with an other automation project, specifically a voice controlled system with Google Assistant, Arduino, and some web platforms.

I was one of the people who do not support the control of devices by voice, because I understood that it was impractical, but as soon as I knew that I could mix the convenience of Google Assistant with the hardware control without the need of Alexa, Google Home, or any other expensive Personal assistant, so I opted to make this project.

Hope you like it.

Step 1: Here's a Video Building and Testing the Project!

You can subscribe for more!!

Step 2: Materials You Will Need:

1-Arduino based Esp8266 programmer circuit.

2-Esp8266 wifi module

3-Relay module for the Esp8266 module.

4-USB cable

5- 5 volts power supply

Step 3: Wifi Module Programmer With Arduino:

NOTE: The arduino nano can't supply the enough current to the module to run the code, just use it for programming. Then to test the uploaded code, use the 3.3v of an arduino uno or a 3.3 linear regulator.

Step 4: Setting Up Your Adafruit IO:

Adafruit IO is a Web platform that let you use their services to control things over internet.

In this step we just need to sign up, and create a feed called "lights".

Step 5: Filling Empty Places in the Code With Your Info

In the code you can see some empty forms, where we must fill with our info, 1- Your Adafruit Username, 2- The key gerenated by your adafruit account, 3- Your Wifi SSID, 4-Your Wifi Password.

After selecting the Generic Esp8266 module, and the port correctly, then click upload.

NOTE: if you have not add the Esp8266 board to your Arduino IDE board list, here is a video that show you how:

https://www.youtube.com/watch?v=tsHwlrKLiJA

Step 6: Creating the Trigger and the Response With IFTTT

First you need to sign up to Ifttt, then create a new applet and follow the steps showed in the photos.

Note: You need to create a "Turn off the lights" applet too, as you can see on the last picture, we have 2 applets ready

Step 7: Connecting and Testing

Power up the relay module with the USB cable, then connect the wifi module in it, and just enjoy.

As you can see i disarmed the light switch and connected it to the relay contact and its done.

Enjoy it.

Share

    Recommendations

    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Audio Contest 2018

      Audio Contest 2018
    • Optics Contest

      Optics Contest

    2 Discussions

    0
    None
    TomS390

    Question 5 months ago

    I cannot use a 5 volt supply with my feather huzzah esp8266; it must be a 3.3v power supply. Can I still do this project following your instructions using that?

    1 more answer
    1
    None
    mcmchrisTomS390

    Answer 5 months ago

    Yes, as you can noticed, i'm using the 3.3v out of the arduino to program the module, because it works at 3.3v. The relay module has it own 5v to 3.3v voltage regulator. Never supply more than 3.3v.