Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WS2812B + CCT #953

Open
ToracX opened this issue Nov 20, 2023 · 4 comments
Open

WS2812B + CCT #953

ToracX opened this issue Nov 20, 2023 · 4 comments

Comments

@ToracX
Copy link

ToracX commented Nov 20, 2023

Feature does not already exist?

I searched and did not find an existing feature request

Summarize feature

Would it maybe be possible to combine RGB-CCT firmware and gradient firmware? I have a WS2811 strip with CW/WW leds on different pins. Would be awesome making it a RGB-CCT gradient strip.

@Paalap
Copy link
Contributor

Paalap commented Nov 20, 2023

Why not using Fw1906 strip?

@mariusmotea
Copy link
Member

mariusmotea commented Nov 21, 2023

This is possible, but not on roadmap. I think this is easy with esp32 boards using ledc function for pwm signals on two separate gpio pins.

i can only create a sample sketch with lack of transition on CCT. Basically when CCT is requested the lightEngine() is not used and the light levels are applied directly with no transition. It is possible to move this to lightEngine()to have trnasition but require time and test hardware witch i lack both.

As a hint if you want to enable transition also on CCT it you need to duplicate
if (lights[light].colors[0] != lights[light].currentColors[0] || lights[light].colors[1] != lights[light].currentColors[1] || ....

and add also the cct clannels with ledcWrite for PWM control

if (lights[light].colors[3] != lights[light].currentColors[3] || lights[light].colors[4] != lights[light].currentColors[4]) {`
.........
ledcWrite(LEDC_CHANNEL_0, (int)(lights[light].currentColors[3] * 16));
ledcWrite(LEDC_CHANNEL_1, (int)(lights[light].currentColors[4] * 16));
}

Sample sketch
https://pastebin.com/Lp2C0UKY

We have ledc dimmable sketch as example here

Why not using Fw1906 strip?

I don't see this led on supported list by the neopixel bus library currently used.
https://github.com/Makuna/NeoPixelBus/wiki

Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
GitHub
An Arduino NeoPixel support library supporting a large variety of individually addressable LEDs. Please refer to the Wiki for more details. Please use the GitHub Discussions to ask questions as t...

@Paalap
Copy link
Contributor

Paalap commented Nov 21, 2023

@mariusmotea fw1906 ist supported by NeoPixelBus - see also my commit to the sketch (I've done it after the release of the according version)

@mariusmotea
Copy link
Member

@mariusmotea fw1906 ist supported by NeoPixelBus - see also my commit to the sketch (I've done it after the release of the according version)

Sorry, i have missed that. Somehow the wiki of neopixel bus don't mention this type of led on the first page.

https://github.com/diyhue/Lights/blob/master/ESP8266/Generic_FW1906_Strip/Generic_FW1906_Strip.ino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants