Skip to content

A program written for the ESP8266 for interfacing with WS28(11/12/12B) LED drivers which are commonly found in led strips. This particular program exposes a UDP server allowing easy control from other devices

License

Notifications You must be signed in to change notification settings

Yamakaja/esp8266-ws2811

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP8266-WS2811

Requirements

  • Linux (I've not tried other environments)
  • The esp-open-sdk
  • An environment variable "ESP_ROOT" pointing to the root of the above sdk
  • An addition to the PATH environment variable, pointing into $ESP_ROOT/xtensa-lx106-elf/bin/

Setup

  • Copy the user_config.h.template header to user_config.h (Within the include/ directory) and enter your SSID and password.
  • Get your hardware setup - the signal will be sent to the uart RX pin - see the KiCad project and schematic in pcb/ for more information.
  • Connect your ESP and find out which port it is connected to.
  • Get your ESP ready for flashing over UART
  • Comile and flash by running make flash PORT=<esp>, where <esp> would usually be something like /dev/ttyUSB0

The protocol

You can then control the led strip by sending UDP packets with the following format:

[Packet] 	:= [LED] * ledCount
[LED]		:= [r: byte][g: byte][b: byte]
Example:

Set the first driver to magenta:

byte[] packet = new byte[]{0xFF, 0x00, 0xFF};

Timing

More timing information can be found in the Timing file

High

©2017 Yamakaja

About

A program written for the ESP8266 for interfacing with WS28(11/12/12B) LED drivers which are commonly found in led strips. This particular program exposes a UDP server allowing easy control from other devices

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published