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.
SK6812 Componenet or Timing maching mathod
-
- Posts: 217
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 03, 2020 1:43 pm
- Has thanked: 6 times
- Been thanked: 7 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SK6812 Componenet or Timing maching mathod
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: SK6812 Componenet or Timing maching mathod
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?
Sends a compiler error message.
Thank you.
PS.
Is there any plan to support library for SK6812-RGBW?
- Attachments
-
- K-001.png (127.99 KiB) Viewed 5527 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SK6812 Componenet or Timing maching mathod
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SK6812 Componenet or Timing maching mathod
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.
I have some LEDs arriving tomorrow so I can give the component a proper test.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SK6812 Componenet or Timing maching mathod
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel