Skip to content

WIP: Add RGBW strip support#101

Open
ebrearley wants to merge 2 commits into
ajfisher:masterfrom
ebrearley:add-rgbw-support
Open

WIP: Add RGBW strip support#101
ebrearley wants to merge 2 commits into
ajfisher:masterfrom
ebrearley:add-rgbw-support

Conversation

@ebrearley

@ebrearley ebrearley commented May 30, 2017

Copy link
Copy Markdown

Add RGBW and SK6812 support

This PR is aiming to address both

Description

This is VERY much a work in progress. In fact what I've done in this first iteration is a bit of an educated and guided hack to get the hardware to light up correctly, as a proof of concept.

I have a tangible result with this however, I am able to address LED's individually. Win!

The strip is currently only showing blue and green colours, and it looks like:

red = nothing,
green = blue,
blue = green,
white = nothing,

WIP gif:

(excuse the kitchen, i'm making dinner 🍱 )

johnny-five controlled RGBW SK6812 LEDs! (well kind of)
uqkmdy

Plan

Once I get this working, I'll go back and refactor what i've done to add RGBW as an optional parameter OR as a initialisation configuration option.

  • Control LEDs successfully on all RGBW channels from johnny-five
  • Refactor implementation so somebody can specify whether they want to use RGB or RGBW.
  • Update tests where required, and cover RGBW changes
  • Create RGBW example
  • Update documentation

@LeonFedotov

Copy link
Copy Markdown

@ebrearley Hi, any plans continuing work on this?

@che-effe

che-effe commented Jan 2, 2019

Copy link
Copy Markdown

@ebrearley, I'm in need of this. Are you going to continue with what you mentioned above? Mind if I tag in to get through some of it?

@ajfisher

ajfisher commented Jan 2, 2019

Copy link
Copy Markdown
Owner

@che-effe I reckon this is stale now, so if you are feeling up for it then I can help guide you on what needs doing.

@che-effe

che-effe commented Jan 3, 2019

Copy link
Copy Markdown

@ajfisher I'm in! I'm going to fork from @ebrearley 's work and get myself up to speed with what he had completed. Unless you think I should start fresh.

@ghost

ghost commented Jan 3, 2019

Copy link
Copy Markdown

@che-effe i am also testing on a arduino nano and 60 sk6912 leds right now. If u like i can also support your branch. I really want to get this working in the next few days.

The firmware looks good, i got these leds working with the adafruit lib, fastled and jinx!

@che-effe

Copy link
Copy Markdown

I currently have bandwidth for this. Giving it a shot this week. Will be on vacation for a bit but still planning to work. would love a bit of guidance on where to pick up from here. I have a forked branch here https://github.com/che-effe/node-pixel I made sure to update from latest master and will continue there.

@ghost

ghost commented Jan 14, 2019

Copy link
Copy Markdown

I played arround a bit with all the libs and stuff. Basiclly its not that hard because when you think of the problem twice, you just have to convert rgb to rgbw right before sending data to the leds at the arduino side, doing changes at the javascript side is not needed. 255 255 255 converts to 0 0 0 255

The formular is pretty easy:

w = math.min(r,g,b);
r = r-w;
g= g-w;
b=b-w;

There are also more advanced formulars to extract the white value from a color, but this one works very well.

@ajfisher

ajfisher commented Jan 21, 2019 via email

Copy link
Copy Markdown
Owner

@ScreamZ

ScreamZ commented Oct 27, 2023

Copy link
Copy Markdown

Any body on that in 2023 ?

@ajfisher

ajfisher commented Oct 27, 2023 via email

Copy link
Copy Markdown
Owner

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants