WEMOS D1 mini RGBW LED controller (SK6812/WB281X)
maze 03db307225 Added disclaimer 9 months ago
lib Initial import 9 months ago
src Adjust timings; effects take 5 minutes 9 months ago
.gitignore Initial import 9 months ago
.travis.yml Initial import 9 months ago
LICENSE Initial commit 9 months ago
Makefile Added Makefile 9 months ago
README.md Added disclaimer 9 months ago
platformio.ini Added Makefile 9 months ago
tank.jpg POIDH 9 months ago

README.md

wemos-rgbw-leds

WEMOS D1 mini RGBW LED controller (SK6812/WB281X)

tank example

Home Assistant

Light

light:
  - platform: mqtt_json
    name: "Paludarium LEDs"
    state_topic: "stat/paludarium_leds"
    status_value_template: '{{ value_json.POWER }}'
    command_topic: "cmnd/paludarium_leds"
    rgb: true
    white_value: true
    retain: true
    effect: true
    effect_list:
      - daylight
      - sunset
      - moonlight
      - night

Automation

- alias: "Fishtanks moonlight at 23:00"
  trigger:
    - platform: time
      at: '22:00'
  action:
    - service: light.turn_on
      entity_id: light.paludarium_leds
      data:
        rgb_color: [0, 0, 255]
        white_value: 0

Or, using effects:

- alias: "Fishtanks moonlight at 23:00"
  trigger:
    - platform: time
      at: '22:00'
  action:
    - service: light.turn_on
      entity_id: light.paludarium_leds
      data:
        effect: moonlight

Schematic

You can leave out the capacitor, but it will cause flicker if you have a sudden change of light intensity.

You can also leave out the resistor, but it will increase the chance you burn the chip.

                                     +------------+
                   470             o-|TX    W  RST|-o
    LED DATA ]-----[R]-------------o-|RX    E   A0|-o
    LED VIN  ]-----------------o   o-|D1    M   D0|-o
    LED GND  ]---o             |   o-|D2    O   D5|-o
                 |             |   o-|D3    S   D6|-o
     +0v GND ]---o----------o  |   o-|D4        D7|-o
                [C] 1000uF  o--|---o-|GND   D   D8|-o
     +5v VIN ]---o-------------o---o-|5V    1  3V3|-o
                                     +------------+

Disclaimer

Run at your own risk. If you fry your WEMOS, set your house on fire or otherwise brick, harm or destroy property or living beings, it's not my fault.