The LED edition firmware allows you to create LED controllers with configurable, rich functionality. The firmware can control WS2812B LED strips and other LEDs using PWM outputs.

⚠️ THIS FEATURE REQUIRES PREMIUM VERSION

The firmware based on the regular PTVO firmware except the following:

  • The firmware contains a limited set of sensors that are applicable for LED controllers.
  • It cannot work as a router and does not support the power saving mode (PSM).

Unique features:

  • The firmware allows you to control LED color, even for three PWM outputs, working together (the “LightColor” Zigbee cluster).
  • Creating a custom converter for Zigbee2MQTT that supports color control.
  • The firmware supports up to 1000 LEDs on CC2652 and 200 LEDs on CC2530. You can split these LEDs to few strips.
  • It can change brightness of LED strips. Moreover, the firmware can smoothly change brightness on the selected output.
  • You can select from 10 built-in patterns on the selected LED strip: solid color, running light, rainbow, etc. Moreover, the firmware can automatically change the patterns after a specified interval. You can combine this feature with brightness control and create a nice garland.
LED firmware settings example.
Zigbee2MQTT exposes for connected device with a custom converter.

Hardware limitations

CC2530: You can add LED strips on the following pins: P00 – P03, P10 – P15. If you use P03, the firmware uses the special SPI mode to generate impulses. This method provides a better signal stability, but requires more time to send data for all LEDs. Moreover, you cannot use pins P02, P04, P05 for other purposes because they are assigned to the SPI interface.
CC2652: You can add LED strips on the following pins: P00 – P03, P16 – P21, P25 – P30.

⚠️ WS2812B: if you add a LED strip with more than 100 LEDs, you need an external pull-up resistor for the DATA pin. For example, for 235 LEDs, the resistor is 300 Ohm.

PWM look here.

Pattern and brightness control channels can use any virtual pins.

Software limitations

You should define pattern and brightness control channels immediately after the controlled LED strip (see figure above). Both, pattern and brightness control channels are optional.

Color control with PWM outputs

The firmware supports up to four PWM outputs for separate White, Red, Green, and Blue channels, defined in the WRGB order (see figure below and pay your attention to the “Role” parameter). The white channel is optional. When the firmware receives the “LightColor” Zigbee command, it converts X and Y color values to R, G, B levels and sets the corresponding PWM output value.

Please note, the firmware expects the “LightColor” Zigbee command on the “Red” channel only.

You can combine PWM outputs with LED strips.

Color LED control using PWM outputs.

Zigbee2MQTT commands

on/off – Look for commands and examples for GPIO outputs.

Level control of individual PWM channels – Look for commands and examples for PWM outputs.

Color control

Topic: zigbee2mqtt/[friedly_name]/set/[channel]
Channel: l1, l2, l3 … l16
Payload: {"color":{"x":value_x,"y":value_y}}
value_x - 0 .. 1 (data type: float).
value_y - 0 .. 1 (data type: float).
example - {"color":{"x":0.49107142857142855,"y":0.42857142857142855}}

There are no comments.

Leave a Reply