Page 1 of 1

SK6812 Componenet or Timing maching mathod

Posted: Wed May 19, 2021 6:03 am
by seokgi
Good morning?

Thank you for helping me with just a question every time. I have another question.
I am making a sign board using PIC18F47Q10, PIC16F1823, SK6812-RGBW LED. However, it is difficult to get the timing right.
I referenced https://www.matrixtsl.com/mmforums/view ... 12#p105270, but I didn't understand the program very well.
I can't speak c language.

I need a way to keep high and low for 3uS to get the timing right. Another way is to modify WS2811 to make a component.

Please help.
Thank you.

Re: SK6812 Componenet or Timing maching mathod

Posted: Fri May 21, 2021 10:59 am
by BenR
Hello,

They look interesting and like they should be compatible with the WS2811 component.

Can you post your project at the moment and I'll see if I can tweak it for you to get the timings right.

Re: SK6812 Componenet or Timing maching mathod

Posted: Fri Jun 04, 2021 12:26 pm
by seokgi
I am trying to design a PCB using the WS2811 library because SK6812 is difficult to program. However, the WS2811 library does not compile. The program used examples from Wiki Help.

Sends a compiler error message.

Thank you.

PS.

Is there any plan to support library for SK6812-RGBW?

Re: SK6812 Componenet or Timing maching mathod

Posted: Thu Jul 22, 2021 12:42 pm
by BenR
Hello,

Hopefully the WS2811 component compiles correctly for you now. I've been revisiting the WS2811 component and found a bug in the calculations of the output timing and now have the default timings confirmed working on PIC, AVR and dsPIC devices. ESP, PIC32 and ARM devices used a different method anyway and so shoud be unaffected.

Looking at the SK6812 datasheet and it looks to be a similar 24bit LED that should work well with the current WS2811 component.

The problem arrises from the W channel, presumably this comes from a seperate White smart LED that is interleaved between the SK6812 LEDs. If we can find the part number for this W LED then I can try and add something specific to drive these. I'll do a bit more digging and see if I can track anything down.

Edit - I've now found a datasheet for the SK6812 RGBW LED which requires a 32-bit colour as opposed to a 24-bit colour, I'll have a go and see if I can make a component to drive this.

Re: SK6812 Componenet or Timing maching mathod

Posted: Thu Jul 22, 2021 2:44 pm
by BenR
I've created a new component to drive these RGBW LEDs now and this is available via the library update system.

I have some LEDs arriving tomorrow so I can give the component a proper test.

Re: SK6812 Componenet or Timing maching mathod

Posted: Fri Jul 23, 2021 7:58 am
by seokgi
Thank you .

I will test that.

Thank you very much

Re: SK6812 Componenet or Timing maching mathod

Posted: Fri Jul 23, 2021 1:05 pm
by BenR
Hello,

You're very welcome, I've spotted and fixed a compile error this morning and my LEDs have now arrived and are working.

One thing I spotted is the datasheet specified the colour order as RGBW but in practise the order on my LEDs are GRBW. I've fixed it now so that the red and green colour channels are correct on my LEDs but let me know if they seem to be swapped for you.