And here comes the continuation of our IoT blog Alexa..
We've had enough time to get to know Alexa and play music. But now we also want Alexa to drive an ESP8266-01S.
To keep it simple at the beginning, we switch on the OnBoard LED on the ESP8266-01S.
In addition to Alexa and the ESP8266-01S, we need some software. If you can't program the ESP8266-01S yet, take a look at our eBook.
Sources (Used for fauxmoESP, see the blog for instructions)
For the installation of fauxmoESP, see the corresponding blog application.
ESPAsyncTCP and ESPAsyncWebServers can be downloaded directly via github via the green download button on the left (clone or download):
After downloading all packages and copying fauxmoESP into the libraries folder, we integrate the other two libraries.
We start the Arduino software and go to "Sketch > integrate library >.add ZIP library..."
Now we select a package and click Open. We repeat this with the second. Package again.
In the Arduino IDE we get this message of success:
Now we have to edit a file for a while, namely the "credentials.sample.h" under
This file must be renamed "credentials.h" and we open the file with an editor (Notepad++) and add our WLAN data.
\35; define WIFI SSID "..."
\35; define WIFI PASS"..."
Now we have integrated all three required packages and can finally get started on programming.
Now we start with examples > FauxmoESP > fauxmoESP
After loading the example we change the LED to Port 1 in line 11:
\35; define LED 2
\35; define LED 1
We can also change the device name in line 59:
How about "Arduino" as a device name?
With this name Alexa can then address and control the device.
Now we transfer the Arduino sketch to our ESP8266-01S.
Once the upload is completed and the ESP8266 has rebooted, you should have found a new device in your WLAN. The device is now called Amazon-xxxxx.
Now we start the Amazon Alexa app on your phone.