ESP Light

From ElectroDragon
Jump to navigation Jump to search

Quick Start Guide

  • See the general board setup on this page.
  • Set unique and complex your own control ID (module ID and topic), for example named ID is electroled, than full ID is "ESP-electroled"
  • Control command is, for exmaple, change light to green, hex command is #00ff00.


Schematics, Dimension

Board Definition and jumper select

  • Input power jumper
  • On board left side is power supply in, on board right side pin definition is W B R G V
  • If your RGB LED strip pin definition is V G R B you can connect to terminal bottom 4 port directly via the connetor cable in package.
W - W4 single white LED strip
B - RGB blue channel 
R - RGB red channel (or ws2812 gnd, select by jumper)
G - RGB green channel (or ws2812 io2, select by jumper)
V - power supply for all other channels
  • Power supply, use 12V or 24V power supply that can match to LED strip power
Board Pin Description Jumper Select
Terminal_in (->Vin power) Power supply for On Board ESP8266 Control (27-5V) 27-5V input (default) <Vin> 5V direct input
Terminal_in (->V_LED power) Power supply for LED Strip (27-5V, normally 12V or 24V) 27-5V input (default) <Vin> 5V direct input
  • RGB/WS2812 output Jumper
Board Pin Jumper Select for RGB (default) Jumper Select for WS2812
G RGB red channel (or single white W4) WS2812 IO2 signal
R RGB green channel (or single white W3) or WS2812 ground
B RGB blue channel (or single white W2) -
W Single white W1 -

Pin Definition and Configuration

  • Press BTN0 (GPIO0) down, and power up the board, will enter into firmware flash mode
  • Following pin definition also compare to H801
ESP8266 Pin ESP Light Pin Other similar board pin (H801)
15 R R - Red
13 G G - Green
12 B B- Blue
14 W1 - White W1 - White
4 IIC W2 - White
1 ESP-Tx Signal green led
5 IIC Power red led
2 WS2812 signal ESP-Tx


WS2812 for nodeMCU

uart.setup(0, 115200, 8, uart.PARITY_NONE, uart.STOPBITS_1, 1) -- re-init uart in case
ws2812.write(string.char(255, 255, 255, 255, 0, 0)) -- turn the two first RGB leds to green

Arduino ESPHome example configuration for SK6812 RGB LED strip, neopixel library. Also can support FastLED library.

 - platform: neopixelbus
   name: "NeoPixel Light"
   id: neopixel_light
   type: GRB
   pin: GPIO2
   num_leds: 60
   variant: SK6812
   method: ESP8266_UART1

Commands send in H801 protocol

  • Install sendip in linux
  • commands should be: sendip -p ipv4 -is -p udp -us 5070 -ud 5060 -d "Hello" -v


Orignal Firmware avaialble here. Demo code


APP MQTT Dashboard commands reference

  • use in MQTT Dashboard
Send Function Demo code
1ON/1OFF, 2ON/2FF Turn ON or OFF
0 ~ 255 Set light brightness
RGB Color Hex value: #6FC2F4 Supported
RGB Color rgb(244,44,244)