diyhue / Lights

DIY lights with support for diyHue
https://diyhue.org/
172 stars 97 forks source link

Feature Request: New Sketch: Gradient & Gradient TV RGBCCT #139

Open TRusselo opened 1 year ago

TRusselo commented 1 year ago

There is a RGBBCCT (RGBWW) strip sketch for a solid color strip But the Gradient & Gradient TV sketches are based on RGB ( no white/warmwhite) would be great if we could get RGBCCT gradient sketches. (TV and non-TV gradient sketches)

the white color matching between the DIY and official are way off due to official hue using RGBCCT 6-pin strips.

mariusmotea commented 1 year ago

Gradient effect can be created only on the strips with addressable leds. I think you want a sketch for SK6812 leds that have a dedicated powerful white led. Currently we have the regular Gradient Lightstrip sketch for SK6812, but not the TV Gradient .

Paalap commented 1 year ago

There are also FW1906 stips in place which are addressable and RBGCCT but the usual color conversion would not use RGB and CCT at the same time.

Was thinking about to try these (and to adjust the sketches accordingly)

mariusmotea commented 1 year ago

I look to see if there is support for FW1906 in the NeopixelBus library that we are using, and it seams it did not support these leds. I will take a look on these since i like they are using 24V power and may be suitable for a project of mine, but this will require some time.

https://github.com/Makuna/NeoPixelBus

GitHub
GitHub - Makuna/NeoPixelBus: An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the gitter channel to ask questions as the GitHub Issues feature is used for bug tracking.
An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the gitter channel to ask questions as the G...
Paalap commented 1 year ago

It is the same approach instead of 3 or 4 bits there are 5 (actually 6, RGB + empty + cw + ww) sent. Thus neopixel would require just a small adjustment but I would like to use also CCT on RGB mix and not only in CT mode - still searching for this

mariusmotea commented 1 year ago

It require small improvement on this PR #129 . There was added support for rgb to rgbw conversion. I test it with SK6812 and i work.

Paalap commented 1 year ago

@mariusmotea did you started some work here?

There is some initial development at NeopixelBus https://github.com/Makuna/NeoPixelBus/issues/702

But just the initial draft and is not working for me...

Paalap commented 1 year ago

Just an update: with the braches ahead the master @ NeoPixelBus the strip is working (basic generic skech, only usual RGB + CT via separate chips, no blending of CT into RGB so far)

next steps will be

BUT I'm happy - 24v, i.e. voltage drop is not a topic and CT LED are quite important for me

Paalap commented 1 year ago

For now just fyi as I'm waiting for NeoPixelBus to post these as PR. edit: now the changes are in the master branch of NeoPixelBus (but not published to arduino yet)

Almost nothing special, just white blending on two channels (warm and cold) inspired by SK6812 sketch. I was trying to balance the both whites, in additon the maximum blending on each white can be defined on web config. On CT I've added (also on web config) RGB blending for a little bit more brightnes.

Generic Gradient