Control Programmable RGB LED Strip WS2811 using Amazon Echo Alexa and NodeMCU ESP8266

Today I will show you how easy you can control an Programmable RGB LED Strip WS2811 using Amazon Echo Alexa (Gen1 and Gen2) and NodeMCU ESP8266. You just need a few parts.

Things used in this project

Hardware components

  • One Amazon Echo Alexa (I used an Gen2)
  • One Wemos D1 Mini ESP8266 module
  • One WS2812 5050 RGB LED Strip
  • 5V 2A power supply
  • Some connection wires

Software components (Download all the required software)

 

Lets get started

Step 1 – Install Library

If you are using the ESP devices for the first time, paste the following link in the preferences (to open preferences go to File -> Preferences) as shown below: http://arduino.esp8266.com/stable/package_esp8266com_index.json

 

 

 

 

 

 

 

 

 

Next, ESP boards must be installed. This can be done very easy from the board manager (to open board manager, go to Tools -> Board -> Boards Manager..) as shown below:

 

Next, the required libraries must be downloaded and added to the Arduino IDE. The libraries was downloaded at previews step.

To apply you can unzip them and copy paste to D:\Program Files (x86)\Arduino\libraries (for example the path for ESPAsyncTCP should be D:\Program Files (x86)\Arduino\libraries\ESPAsyncTCP) or you can add all the zips from Arduino IDE by going to Sketch -> Include Library -> Add Zip Library… and select all downloaded zips.

 

After that all the software is successfully installed we are now ready to look on code.

Step 2 – Code

 

Step 3 – Connect Hardware

Connect D5 Pin with Programmable RGB LED Strip WS2811 input pin.

Connect VCC and GND from your power supply to Programmable RGB LED Strip WS2811 VCC and GND pin.

Connect VCC and GND pin from  your power supply to your ESP8266

 

You can check it out on GitHub

https://github.com/cady/Control-Programmable-RGB-LED-Strip-WS2811-using-Amazon-Echo-Alexa-and-NodeMCU-ESP8266/tree/master

Leave a Reply