You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a couple hundred UCS8904 leds, which are RGBW. I've tried to get them to work with WLED, but the colors see random for the whole length of leds.
I've been experimenting with getting FastLED to work with RGBW, but the same problem with random colors ocoured. I searched around for datasheets on the UCS8904 Chip, and found this site, which shows that they use 16 bits for color.
lock Type
Data-Only
Color Resolution
16 bits
Physical Package
SOP8
RGB
See UCS8903
RGBW
Yes
Output Pixel Voltage
5 – 24V
PWM Rate
1000Hz
Suitable Camera
Up to 34fps, see Refresh Rate and PWM Rate
Data Transfer Rate
800kbps
Redundant Data Line
No
I'm not the best at programming, bit managed to modify the RGBW code for 16 bits of color, which can be found here.
If it's possible would you be able to add a setting in WLED to enable 16 bit color? I'm happy to help with testing changes with the leds, and if need be, help with the programming aspect.
This is really not a request for WLED.
WLED uses NeoPixelBus by @Makuna so you should look there if the chip is supported and request support if not.
Once it is supported in NeoPixelBus we may include it in WLED.
Goto Github: Makuna\NeoPixelBus and create an issue, find a spec sheet and link it, and I can look into it. The linked spec sheet isn't a spec sheet, its just a marketing sheet. Doesn't give a clue about pulse timing.
NeoPixelBus already supports Rgb48Color (16 bits per channel color object), but there isn't a Rgbw64Color (Rgbw version).
Goto Github: Makuna\NeoPixelBus and create an issue, find a spec sheet and link it, and I can look into it. The linked spec sheet isn't a spec sheet, its just a marketing sheet. Doesn't give a clue about pulse timing.
NeoPixelBus already supports Rgb48Color (16 bits per channel color object), but there isn't a Rgbw64Color (Rgbw version).
I've been looking for a datasheet for some time, but am unable to find it. When I used the FastLED library it worked well with similar timing to the WS2812 chipset.
Datasheet Found!
These are the timings that I used with FastLED here and they worked well. Hope that helps.
Regards,
Differentunic
Edit: Issue has been posted here and datasheet available here.
UCS3903 is just RGB (16 bits per element, total of 48 bits per pixel)
UCS3904 is RGBW (also 16 bits per element, total of 64 bits per pixel)
Just use the color feature when you construct the NeoPixelBus and it will work.
For RGB, NeoRgb48Feature or specifically NeoRgbUcs8903Feature;
For RGBW, NeoRgbw64Feature or specifically NeoRgbwUcs8904Feature;
Also note the Rgb48Color and Rgbw64Color objects to get the full 16 bit color ranges these LEDs support.
This is really not a request for WLED. WLED uses NeoPixelBus by @Makuna so you should look there if the chip is supported and request support if not. Once it is supported in NeoPixelBus we may include it in WLED.
16 bit color support has been added to NeoPixelBus #518. I've tested the leds with the new library and it works well. I'd love to see WLED support this new version with the option to enable 16 bit color in the same way that you can enable rgbw in settings.
Just a note for future reference. The feature object (like NeoRgb48Feature or NeoRgbwUcs8904Feature), expose a type for the native color object. NeoRgb48Feature::ColorObject can be used instead of Rgb48Color directly; allowing some abstraction in code written around it. But most color objects will auto-convert, except RGBW will never auto-convert to another non-RGBW (due to loss of data, the W channel has no standard way to be converted).
16bit leds could be amazing. I have a WLED install which has a fade between colours but because the leds are only 8bit/colour it is somewhat "jumpy" as there are only a few intermediate colours. Having 16bit/colour would allow that to be much smoother.
My case is probably a bit unique but I look forward to the potential of these LEDs being available and supported 😀
Just as a point of reference the settings I am using are 24 leds, grouped as 8. Temperature palette and the Palette effect. The leds are 8 units on a pcb stick or WS2812. The flickering is, I think, when the palette loops around.
As I am also a photographer I have yet to see a LED set-up that will benefit 16-bit usage.
When does 16-bit add something to color output? Never, your eyes will not perceive any difference using 8-bit or 16-bit.
Why then 16-bit? You use 16-bit color channel depth when manipulating pixels to reduce color banding. And banding only happens if your color manipulations exceed certain threshold (i.e. extreme curves, contrast, etc). And all this happens in the background image/pixel processing. Not the output.
For the current state of LED pixels deep 16-bit support is not justified as far as the effort needed to implement it.
I only mentioned my specific use case as an outlier example. There is a noticiable "step" as it fades between the colours as there are a limited number available. 16bit would offer more intermediate colours that would smooth out the crossfade.
There is absolutely no need for 16bits/colour when static or have fast moving colour transitions. If the transition is slower 8bit can show its limitations (given there are only 255 shades available and the eye does not perceive all of them equally especially at lower brightnesses). Even more so when gamma correcting.
Is it worth the effort? Probably not, given other exciting things that can be done, but in certain edge cases there may well be a benefit for the additional colour resolution.
I could try creating a 16-bit branch with the newly updated neopixelbus, however I'm not that skilled in this area of programming. I'll let you know if I'm successful.
I have no idea how to add a new led type. I did try to just replace the SK6812 with the new UCS8904Feature, but there were errors in the compilation. (this was after updating the libs)
I do actually plan to use WLED for a Christmas setup but can't figure out how to add the 16-bit support into WLED.
I'd really appreciate it if someone pointed me in the right direction of how to add this support, or wanted to collaborate to make it work. Really looking forward to it!
I too believe 16 bit output is a great step forward - even with only scaling the brightness this will give a noticable benefit to gradient smoothness at low brightness even if we stay with an 8 bit color model in the effect calculation for the time being.
One possible cause for the compilation error you had @Differentunic is that NeoPixelBrightnessBus (which is used by WLED) does not (yet) support the new types, the regular NeoPixelBus should though. BrightnessBus is kind of a compromise, since it has to scale the brightness on the fly and returning the original color is lossy. Still, it saves some memory compared to the alternative, double buffering. We could try switching to the regular NeoPixelBus object in bus_wrapper.h for testing.
Note, there is an example in NeoPixelBus on how to implement a brightness bus using a shader technique. The NeoPixelBrightnessBus was provided for backward compatibility to Adafruits; but I always suggest the shader as it give the sketch writer more control on how brightness is applied.
Even though WLED does not natively support 16-bit color depth, it can utilise 16-bit LED pixels using on the fly up-scaling. Some 16-bit LEDs were successfully added as supported in 0.14.
Closing as it may not be feasible to update core to work with 16-bit color depth.
Feel free to reopen if you find good justification otherwise.
When does 16-bit add something to color output? Never, your eyes will not perceive any difference using 8-bit or 16-bit.
Here's an 8 bit PNG, whose background RGB value is 0,128,0, with some shapes whose RGB values are 0,127,0 and 0,129,0
People's vision can differ a little (or a lot), as well as their displays and hardware driving them. However, I can discern this 1 bit difference at a glance, and so were a few other folks to whom I showed this.
Feel free to reopen if you find good justification otherwise.
The incredible power and value of WLED is in controlling multiple lights across an open, broad ecosystem of vendors and devices. The DMX support takes this to another level. 16 bit support will allow better color matching across the different LEDs and fixtures. Color mismatch across fixtures cheapens the overall look. With 8 bits per color (256 levels), at low brightness levels, this mismatch can be quite visible and impossible to mitigate well.
On a side note, WLED supports HUB75 displays with several thousands of pixels. Try telling ESP to make room in RAM for 4 channel 16-bit pixels in such case. I doubt you will be able to persuade it @chefdeit
A big Thank You, @blazoncek Blaz, for replying so expeditiously, despite not even being with the project!
Now animate that picture and glance again. ;)
I think if I make the text blink it'll pop even more :) Point being, turns out we can see between 8 bits / adjacent 256 levels, particularly in the green channel.
On a side note, WLED supports HUB75 displays with several thousands of pixels.
Of course for any given color depth, including 8 bit, there's going to be one or more displays where all the pixels no longer fit on a given memory. Evolution of hardware. Fortunately, it happens on the memory side as well (e.g. ESP32-P4) for when an application calls for it, which with HUB75 displays it might.
For color match, at a minimum just green and red channels at 12 bits, if one had to squeeze things (perhaps at the cost of bandwidth / compute), would at least be able to match the 8-bit blue such that the overall color across multiple fixtures can still be calibrated to match even at lower output levels. Or any other similar tricks from image compression and early video card architectures - this is just the simplest one I know. Not a replacement for full 16 bit color across the board, but as an additional mode can perhaps get many more folks 70% there.
And BTW I am no longer associated with WLED.
Would you mind tagging someone appropriate or re-opening this issue, then, so it's on the radar? And thank you so much for all your contributions, Blaz.
Not to mention CPU processing resources, usermods, integrations and other external systems.
IMO (as a photographer who dealt with image processing for several years) there is no benefit WLED would see from 16 (or 12) bit processing. It doesn't do color/hue shifts or process photographic images where increased color resolution would reduce posterization and other artefacts.
If one sees difference between green of 127, 128 and 129 the easiest fix is dithering on the boundary. As for above image, yes I can see square and "Can't you see?" letters on my color calibrated display but that doesn't mean you (or I) would be able to see a difference on actual WS2812 LED (which is itself only 8-bit).
And yes, I did add 16-bit output support for @Differentunic as he sent me his UCS8904 from down under. And while I was experimenting with it I didn't see any difference between values 127<<8 and 128<<8 or 32639.
As for low level brightness resolution, see my latest commits in my fork for chips that utilize variable constant current drivers (like APA102/SK9822/HD108/TM1814/SM16825).
Activity
blazoncek commentedon Oct 5, 2021
This is really not a request for WLED.
WLED uses NeoPixelBus by @Makuna so you should look there if the chip is supported and request support if not.
Once it is supported in NeoPixelBus we may include it in WLED.
Differentunic commentedon Oct 5, 2021
Will do. I'll keep you posted on the progress of this. 👍
Regards,
Differentunic
huggy-d1 commentedon Oct 5, 2021
A quick search of the NeoPixelbus repo for UCS8904 yielded 0 results.
Makuna commentedon Oct 5, 2021
Goto Github: Makuna\NeoPixelBus and create an issue, find a spec sheet and link it, and I can look into it. The linked spec sheet isn't a spec sheet, its just a marketing sheet. Doesn't give a clue about pulse timing.
NeoPixelBus already supports Rgb48Color (16 bits per channel color object), but there isn't a Rgbw64Color (Rgbw version).
Differentunic commentedon Oct 5, 2021
I've been looking for a datasheet for some time, but am unable to find it. When I used the FastLED library it worked well with similar timing to the WS2812 chipset.Datasheet Found!
These are the timings that I used with FastLED here and they worked well. Hope that helps.
Regards,
Differentunic
Edit: Issue has been posted here and datasheet available here.
Makuna commentedon Oct 11, 2021
NeoPixelBus v2.6.8 has the changes to support it.
UCS3903 is just RGB (16 bits per element, total of 48 bits per pixel)
UCS3904 is RGBW (also 16 bits per element, total of 64 bits per pixel)
Just use the color feature when you construct the NeoPixelBus and it will work.
For RGB,
NeoRgb48Featureor specificallyNeoRgbUcs8903Feature;For RGBW,
NeoRgbw64Featureor specificallyNeoRgbwUcs8904Feature;Also note the
Rgb48ColorandRgbw64Colorobjects to get the full 16 bit color ranges these LEDs support.like
any further support within the WLED to support this is up "this" group.
Have fun.
Differentunic commentedon Oct 11, 2021
16 bit color support has been added to NeoPixelBus #518. I've tested the leds with the new library and it works well. I'd love to see WLED support this new version with the option to enable 16 bit color in the same way that you can enable rgbw in settings.
Thanks!
blazoncek commentedon Oct 11, 2021
Adding UCS3903 and UCS3904 by themselves can now be arranged rather quickly but full 16bit channel support will take a while if it ever takes place.
Makuna commentedon Oct 11, 2021
Just a note for future reference. The feature object (like NeoRgb48Feature or NeoRgbwUcs8904Feature), expose a type for the native color object. NeoRgb48Feature::ColorObject can be used instead of Rgb48Color directly; allowing some abstraction in code written around it. But most color objects will auto-convert, except RGBW will never auto-convert to another non-RGBW (due to loss of data, the W channel has no standard way to be converted).
smartroad commentedon Oct 25, 2021
16bit leds could be amazing. I have a WLED install which has a fade between colours but because the leds are only 8bit/colour it is somewhat "jumpy" as there are only a few intermediate colours. Having 16bit/colour would allow that to be much smoother.
My case is probably a bit unique but I look forward to the potential of these LEDs being available and supported 😀
Just as a point of reference the settings I am using are 24 leds, grouped as 8. Temperature palette and the Palette effect. The leds are 8 units on a pcb stick or WS2812. The flickering is, I think, when the palette loops around.
Or I have a setting wrong 😆
blazoncek commentedon Oct 25, 2021
As I am also a photographer I have yet to see a LED set-up that will benefit 16-bit usage.
When does 16-bit add something to color output? Never, your eyes will not perceive any difference using 8-bit or 16-bit.
Why then 16-bit? You use 16-bit color channel depth when manipulating pixels to reduce color banding. And banding only happens if your color manipulations exceed certain threshold (i.e. extreme curves, contrast, etc). And all this happens in the background image/pixel processing. Not the output.
For the current state of LED pixels deep 16-bit support is not justified as far as the effort needed to implement it.
smartroad commentedon Oct 25, 2021
I only mentioned my specific use case as an outlier example. There is a noticiable "step" as it fades between the colours as there are a limited number available. 16bit would offer more intermediate colours that would smooth out the crossfade.
There is absolutely no need for 16bits/colour when static or have fast moving colour transitions. If the transition is slower 8bit can show its limitations (given there are only 255 shades available and the eye does not perceive all of them equally especially at lower brightnesses). Even more so when gamma correcting.
Is it worth the effort? Probably not, given other exciting things that can be done, but in certain edge cases there may well be a benefit for the additional colour resolution.
Differentunic commentedon Oct 26, 2021
I could try creating a 16-bit branch with the newly updated neopixelbus, however I'm not that skilled in this area of programming. I'll let you know if I'm successful.
Differentunic commentedon Nov 4, 2021
I have no idea how to add a new led type. I did try to just replace the SK6812 with the new UCS8904Feature, but there were errors in the compilation. (this was after updating the libs)
I do actually plan to use WLED for a Christmas setup but can't figure out how to add the 16-bit support into WLED.
I'd really appreciate it if someone pointed me in the right direction of how to add this support, or wanted to collaborate to make it work. Really looking forward to it!
Regards
Aircoookie commentedon Nov 5, 2021
I too believe 16 bit output is a great step forward - even with only scaling the brightness this will give a noticable benefit to gradient smoothness at low brightness even if we stay with an 8 bit color model in the effect calculation for the time being.
One possible cause for the compilation error you had @Differentunic is that
NeoPixelBrightnessBus(which is used by WLED) does not (yet) support the new types, the regularNeoPixelBusshould though. BrightnessBus is kind of a compromise, since it has to scale the brightness on the fly and returning the original color is lossy. Still, it saves some memory compared to the alternative, double buffering. We could try switching to the regularNeoPixelBusobject inbus_wrapper.hfor testing.Differentunic commentedon Nov 5, 2021
Is there some documentation surrounding how I would go about replacing it with the regular NeoPixelBus, or are you able to do it?
Makuna commentedon Nov 5, 2021
Note, there is an example in NeoPixelBus on how to implement a brightness bus using a shader technique. The NeoPixelBrightnessBus was provided for backward compatibility to Adafruits; but I always suggest the shader as it give the sketch writer more control on how brightness is applied.
blazoncek commentedon Feb 4, 2023
It will be possible to use WLED with UCS890x chips with the (next) release of NeoPixelBus v2.7.3
See Makuna/NeoPixelBus#638
Many thanks go to @Makuna for fixing NeoPixelBrightnessBus.
blazoncek commentedon Aug 14, 2023
Even though WLED does not natively support 16-bit color depth, it can utilise 16-bit LED pixels using on the fly up-scaling. Some 16-bit LEDs were successfully added as supported in 0.14.
Closing as it may not be feasible to update core to work with 16-bit color depth.
Feel free to reopen if you find good justification otherwise.
chefdeit commentedon Sep 29, 2026
Here's an 8 bit PNG, whose background RGB value is 0,128,0, with some shapes whose RGB values are 0,127,0 and 0,129,0

People's vision can differ a little (or a lot), as well as their displays and hardware driving them. However, I can discern this 1 bit difference at a glance, and so were a few other folks to whom I showed this.
The incredible power and value of WLED is in controlling multiple lights across an open, broad ecosystem of vendors and devices. The DMX support takes this to another level. 16 bit support will allow better color matching across the different LEDs and fixtures. Color mismatch across fixtures cheapens the overall look. With 8 bits per color (256 levels), at low brightness levels, this mismatch can be quite visible and impossible to mitigate well.
Thank you for your consideration, @blazoncek !
blazoncek commentedon Sep 30, 2026
Now animate that picture and glance again. ;)
On a side note, WLED supports HUB75 displays with several thousands of pixels. Try telling ESP to make room in RAM for 4 channel 16-bit pixels in such case. I doubt you will be able to persuade it @chefdeit
And BTW I am no longer associated with WLED.
chefdeit commentedon Sep 30, 2026
A big Thank You, @blazoncek Blaz, for replying so expeditiously, despite not even being with the project!
I think if I make the text blink it'll pop even more :) Point being, turns out we can see between 8 bits / adjacent 256 levels, particularly in the green channel.
Of course for any given color depth, including 8 bit, there's going to be one or more displays where all the pixels no longer fit on a given memory. Evolution of hardware. Fortunately, it happens on the memory side as well (e.g. ESP32-P4) for when an application calls for it, which with HUB75 displays it might.
For color match, at a minimum just green and red channels at 12 bits, if one had to squeeze things (perhaps at the cost of bandwidth / compute), would at least be able to match the 8-bit blue such that the overall color across multiple fixtures can still be calibrated to match even at lower output levels. Or any other similar tricks from image compression and early video card architectures - this is just the simplest one I know. Not a replacement for full 16 bit color across the board, but as an additional mode can perhaps get many more folks 70% there.
Would you mind tagging someone appropriate or re-opening this issue, then, so it's on the radar? And thank you so much for all your contributions, Blaz.
Alex | Chef de IT
DedeHai commentedon Sep 30, 2026
16bit native color is just not feasible, sorry. It would mean rewriting all color handling, that is a major endevour with very little usecases
blazoncek commentedon Sep 30, 2026
Not to mention CPU processing resources, usermods, integrations and other external systems.
IMO (as a photographer who dealt with image processing for several years) there is no benefit WLED would see from 16 (or 12) bit processing. It doesn't do color/hue shifts or process photographic images where increased color resolution would reduce posterization and other artefacts.
If one sees difference between green of 127, 128 and 129 the easiest fix is dithering on the boundary. As for above image, yes I can see square and "Can't you see?" letters on my color calibrated display but that doesn't mean you (or I) would be able to see a difference on actual WS2812 LED (which is itself only 8-bit).
And yes, I did add 16-bit output support for @Differentunic as he sent me his UCS8904 from down under. And while I was experimenting with it I didn't see any difference between values 127<<8 and 128<<8 or 32639.
As for low level brightness resolution, see my latest commits in my fork for chips that utilize variable constant current drivers (like APA102/SK9822/HD108/TM1814/SM16825).