Page 1 of 1

WS2812B, PIC18F47Q10 not work error!(Solved)

Posted: Mon Jun 07, 2021 3:04 am
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: WS2811, PIC18F47Q10 Compile error!

Posted: Mon Jun 07, 2021 11:11 am
by BenR
Hello,

Many thanks for letting us know, I have now fixed the compilation error.

As for the SK6812, this looks like it should be compatible with the current WS2811 component. It would just be a case of using the custom mode and getting the timings right.

Re: WS2811, PIC18F47Q10 Compile error!

Posted: Mon Jun 07, 2021 2:54 pm
by seokgi
Thank you for your kindness.
As seen in SK6812-RGBW, it has 4 colors and is a 32-bit command. Is this applicable to WS2811/12/12B?

Re: WS2811, PIC18F47Q10 Compile error!

Posted: Wed Jun 09, 2021 7:22 am
by seokgi
Thank you for your help.
Compile works fine. However, the example program does not work. We will send you the oscilloscope screen for your reference.

I tested the external crystal and internal oscillator on PIC18F26K22, and PIC18F47Q10.

I used WS2812B.

I think the timing isn't right.

Help.

Thank you.

Re: WS2812B, PIC18F47Q10 not work error!

Posted: Thu Jun 10, 2021 12:37 am
by seokgi
I tried to run it at 32MHz using an external crystal in PIC16F1937, but it doesn't work.

Re: WS2812B, PIC18F47Q10 not work error!(Solved)

Posted: Thu Jun 10, 2021 8:13 am
by seokgi
I use WS2812b.
I solved it by correcting the time in Custom in the library.

I upload the program I solved.

Be sure to check the timing using an oscilloscope.

SK6812 seems to be difficult for 8-bit PIC. It seems possible on a 16-bit PIC with a higher clock speed.

Thank you.