ntalekt / FauxMoESP_WS2812

Control WS2812 RGB & RGBW pixels from Alexa using a NodeMCU ESP8266.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

FauxMoESP_WS2812FX

Control WS2812 RGB & RGBW pixels from Alexa using a NodeMCU ESP8266.

Requirements

Hardware

This code was tested on a HiLetgo NodeMCU ESP8266 board. You need some WS2812B LEDs (e.g. NeoPixel) connected to 5V and GND and a data pin of the ESP8266. I used an 74AHCT125 level-shifter in my project but I've found that it will do fine without one.
alt text

Software

You need to install the following additional libraries to compile the code:
Adafruit_NeoPixel: https://github.com/adafruit/Adafruit_NeoPixel
ESPAsyncTCP: https://github.com/me-no-dev/ESPAsyncTCP
ESPAsyncWebServer: https://github.com/me-no-dev/ESPAsyncWebServer
FauxmoESP: https://bitbucket.org/xoseperez/fauxmoesp
WS2812FX: https://github.com/kitesurfer1404/WS2812FX

How to use

  1. Update the credentials.h with your WIFI_SSID & WIFI_PASS
#define WIFI_SSID "EnterYourSSID"
#define WIFI_PASS "EnterYourPASS"
  1. Update the LED_COUNT & LED_PIN variables.
  2. Compile and run on your NodeMCU
  3. Execute the Discover Devices option from your Alexa app or tell Echo/Dot to do it.
  • You should see several new "WeMo Switch" devices that the fauxmoESP has created.

About

Control WS2812 RGB & RGBW pixels from Alexa using a NodeMCU ESP8266.


Languages

Language:C++ 99.0%Language:C 1.0%