logo elektroda
logo elektroda
X
logo elektroda

OpenBeken WS2812B animations - new HTTP panel integration, PixelAnim driver

p.kaczmarek2 
LED control panel with brightness, color, and animation options.
OpenBeken, our Tasmota/Esphome style firmware for new chinese WiFi modules with BK7231T, BK7231N and similiar chipsets, has a new WS2812 LED driver - along with animations system. The driver should also work for similiar LED strips, not just WS2812B, so SM16703, etc, is supported as well. This means you can now flash your Action/LSC per-pixel coloured devices and run them without the cloud.

Here I will show you how to run the new driver. This time, no scripting is needed! Keep in mind that I already have shown the per-pixel LED scripting details in the other topic:
https://www.elektroda.com/rtvforum/topic4036716.html

UPDATE - it's now enabled in releases past 1.17.600
Ok, so first, it's important to know that PixelAnim driver may not be yet available in the main release. To check it, open command execution and try starting it:
Screenshot of BK7231T_WB3S_WhiteStripWindows console showing unknown PixelAnim driver.
If it does not start, you need to either enable correct #define in obk_config and compile your version yourself, see:
https://www.elektroda.com/rtvforum/topic4033833.html
or just get an already-enabled version from PRs:
https://github.com/openshwprojects/OpenBK7231T_App/pulls
In either case, check our tutorial to learn how to get binaries compiled online, on Github:
https://www.elektroda.com/rtvforum/topic4033833.html

Now, let's focus on the device configuration.
You will need to create autoexec.bat, see:



Here is the required script:

startDriver SM16703P
SM16703P_Init 16 
startDriver PixelAnim

That's really all you need to run your LEDs! No pin setting required. Those LEDs are always on hardware SPI port pin, P16. Well, the only more thing you may want to configure, is the color format. You can use SM16703P_Init command for that:
Screenshot of a section of instructions for initializing SM16703P LEDs.
Saving and executing (or rebooting your device) should give you extended HTTP panel:
Screenshot of LED lighting control interface.
Here you can either control your device in single color mode or run one of the predefined animations. We will have more animations as the time goes. Keep in mind that settings like led power on/off or brightness are also linked to animations, that means you can control that easily even from Home Assistant.
Animation setting itself is not yet available for Home Assistant Discovery, but we're working on it.
Ok, here are some sample effects, played on our setup from LED smart drawers organiser topic:
LED drawers with animated blue lighting
Animated LED lights mounted on drawers in a workshop.
LED-lit drawers with light effects.
As you can see, animations are working correctly.
It is worth to mention that those LEDs are also working in OBK simulator:
OpenBeken simulator with connected WS2812 LEDs.

Ok, that's all for now. Let me know if the animations are working for you! They should work not only for WS2812B, but also for other similiar chips like SM16703P, etc. I will try to add more advanced animations soon, or maybe I will just port a part of WLED? We will see!

PS: Next feature that is planned to be supported is RGB (IC) + CW (two PWMs) combination

Added after 9 [minutes]:

@divadiow are WS2812B animations working stable for you? I am thinking about adding
#define ENABLE_DRIVER_PIXELANIM 1
to main release.

About Author
p.kaczmarek2
p.kaczmarek2 wrote 11824 posts with rating 9927 , helped 564 times. Been with us since 2014 year.

Comments

Add a comment
divadiow 30 May 2024 22:40

for the short periods I was testing yes. I'll leave one anim going all night tonight [Read more]

p.kaczmarek2 30 May 2024 22:59

I've checked things again and decided to give it a chance, it's enabled in release 1.17.600 [Read more]

divadiow 31 May 2024 06:59

rainbow cycle running. I realised last night my strip is GRB https://obrazki.elektroda.pl/9501311000_1717104552_thumb.jpg Added after 7 [hours] 31 [minutes]: still going strong ... [Read more]

p.kaczmarek2 31 May 2024 12:38

Ok so now it's time to also add a CW + RGB IC integration. By that, I mean a device that has: - two PWM pins for Cool White and Warm White colors - WS2812B or similiar strip I will do that entirely... [Read more]

divadiow 09 Jun 2024 12:43

I didn't notice you had completed this. annoyingly this device , with unused CW and W, looks to be missing some components for those channels https://obrazki.elektroda.pl/7203194600_1717921058_thumb.jpg... [Read more]

divadiow 11 Jun 2024 21:48

thanks @dedamraz. of course it is. SM16703P_Init GRB animations look like how theyre meant to now https://obrazki.elektroda.pl/9165249800_1718135296_thumb.jpg [Read more]

p.kaczmarek2 12 Jun 2024 10:14

I have split SPI DMA backend into separate file and added SM15155 support. @divadiow can you check whether last binary from my PR still works for you? Or did I break something? https://github.com/openshwprojects/OpenBK7231T_App/pull/1263 Related... [Read more]

divadiow 12 Jun 2024 10:27

it seems fine with my WS2812B. All animation colours are what I would expect and the colour picker is as accurate as before [Read more]

p.kaczmarek2 12 Jun 2024 11:05

Ok so SM15155 driver is merged. We're officialy the first open source project to support SM15155 i guess it should be possible to solder transistors and resistors there to get CW running [Read more]

divadiow 12 Jun 2024 11:11

yes, sure. i just rather they'd already be there :) I'd have to use normal sized ones I guess or delicately try to solder the little ones from a donor device in my parts box [Read more]

twoenter 22 Dec 2024 20:58

Is there also already support for RGBIC + CCTIC ledstrips based on SM16703? Like this one: https://www.elektroda.com/rtvforum/topic4091111.html [Read more]

Vein 09 Jan 2025 00:58

@ . Any chance of controlling the animations from HA? [Read more]

p.kaczmarek2 09 Jan 2025 01:01

We can look into this soon, but for the moment you'll need to make the button manually: Home Assistant - how to create an event trigger button, MQTT, dashboard . And yes you'll have to wait for the... [Read more]

Vein 10 Jan 2025 15:28

. the problem is that I don't know what command to send over mqtt to make the individual animations visible [Read more]

p.kaczmarek2 10 Jan 2025 16:04

Such things are in the documentation: https://github.com/openshwprojects/OpenBK7231T_App/blob/main/docs/commands.md https://obrazki.elektroda.pl/6676453600_1736521449_bigthumb.jpg . Start by checking... [Read more]

Vein 10 Jan 2025 16:06

thank you [Read more]

divadiow 26 Mar 2025 22:36

Not exactly a professional installation but here's Rainbow Cycle PixelAnim brightening up the holiday boat this week ❤️ [Read more]

p.kaczmarek2 26 Mar 2025 23:44

Very nice, are you also going to try running bulbs with DDP? We could try to make such a project. Btw, today i've ordered: RGBCW, 1m 30 IP65, White PCB, CHINA for testing with OBK [Read more]

divadiow 27 Mar 2025 11:55

DDP is one of the many things I've yet to play with. The recent xlights chats were intriguing. Id definitely like more animation options. I should explore what can be achieved within OBK too using... [Read more]