Google Home - esp8266 question - regarding serial data

OK, firstly thanks for looking.

Currently I have an addressable led strip that I control with an Arduino, I have a Bluetooth module connected to RX/TX on the Arduino. When the Bluetooth receives a single character it sends the data to the Arduino which is listening and then the Arduino executes the code. I already made an Android app so I can control the leds with my phone, and it works well.

Now I have recently bought an esp8266 and have been wondering if I can send the serial data via the google home to the esp8266 - so this would effectively take the place of the Bluetooth module.

For example if I said, 'hey google turn leds red' how can I get the google home to send the character A to the esp8266 so that it can send it out of the TX pin.

Is this possible? and if so is there any kind of guide?

Is your plan to use the ESP8266 in place of the Bluetooth module and still use the Arduino (you have not said what Arduino)?

Or do you plan to use the ESP8266 standalone without the Arduino board?

Have you any experience with web programming? If not. then IMHO it is easier to learn with a PC as there are hundreds (or thousands) of online tutorials aimed at PC users. When you understand how to do it with a PC it should be straightforward to transfer your knowledge to the ESP288.

...R

Robin2:
Is your plan to use the ESP8266 in place of the Bluetooth module and still use the Arduino (you have not said what Arduino)?

Or do you plan to use the ESP8266 standalone without the Arduino board?

Have you any experience with web programming? If not. then IMHO it is easier to learn with a PC as there are hundreds (or thousands) of online tutorials aimed at PC users. When you understand how to do it with a PC it should be straightforward to transfer your knowledge to the ESP288.

...R

Yes that's correct - I'll still keep the Arduino, but replace the bluetooth module with the Esp8266, the Arduino is just a homemade version using an ATmega328P with an Arduino bootloader.

I don't have any knowledge of web programming, only with Python/lua and Arduino. I know how to set up a web server and make a webpage/website and how to use mysql for creating a database, I doubt it would be a hassle to learn some java or php.

I just really wonder if I can integrate google home to send a command to the esp8266. So really I need to make a google home developer account and then get it to send data when I speak to it. I imagine I need to get the esp8266 to run a small webserver which would connect to my wifi + google account, this is where I am looking for some info or to know if it's feasable.

mrdude:
I just really wonder if I can integrate google home to send a command to the esp8266.

I know nothing about Google home (Google already knows too much about me).

However I wonder if you should be thinking of a system in which your Arduino / ESP8266 makes regular enquires to the Google server?

I also wonder if you may be confusing the simple way Bluetooth works with the very much more complex web interface. Bluetooth is just a substitute for wires. You send an 'A' in one end and an 'A' comes out the other end.

But with a web system the message might be "turn the led on" or "wiggleWaggle" and the Arduino then needs to identify that and act on it. This is why I suggested you start your web programming learning on a PC. I use the w3schools website for most of my web reference material

...R

Robin2:
I know nothing about Google home (Google already knows too much about me).

However I wonder if you should be thinking of a system in which your Arduino / ESP8266 makes regular enquires to the Google server?

I also wonder if you may be confusing the simple way Bluetooth works with the very much more complex web interface. Bluetooth is just a substitute for wires. You send an 'A' in one end and an 'A' comes out the other end.

But with a web system the message might be "turn the led on" or "wiggleWaggle" and the Arduino then needs to identify that and act on it. This is why I suggested you start your web programming learning on a PC. I use the w3schools website for most of my web reference material

...R

I know how Bluetooth works, but thanks for replying. I only used the Bluetooth to connect the RX/TX pins on the Atmega, and everything is working fine.

I found this tutorial:

It seems to work for what I need, no need to mess about with my code on the Atmega, a very simple script to load on to the Esp8266. I set up a google assistant account as per the guide, also an account with IFTTT and Adafruit.

The google assistant 'talks' to the IFTTT server - which runs applets you create, then the applet sends info to Adafruit, which connects to the esp8266. The esp8266 sends TX data to the RX pin on the Atmega - which in turn triggers the code.

I just need to use a 3.3v-5v level shifter between the Atmega and Esp8266, then I'm done. I've tested the applets made on IFTTT website and then checked Adafruit website to see if the data was sent - and it is, also you can receive notifications when an Applet is triggered.

Thanks for the replys, I got there in the end :-).

mrdude:
a very simple script to load on to the Esp8266. I

Glad you have a solution.

I was concerned that you might not want to load code on the ESP8266 as you had decided not to use it standalone.

...R