WS2812B, PIC18F47Q10 not work error!(Solved)

For general Flowcode discussion that does not belong in the other sections.
Post Reply
seokgi
Posts: 217
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 6 times
Been thanked: 7 times

WS2812B, PIC18F47Q10 not work error!(Solved)

Post 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?
Attachments
WS2811.fcfx
(8.65 KiB) Downloaded 566 times
K-002.png
K-002.png (142.85 KiB) Viewed 5094 times
Last edited by seokgi on Thu Jun 10, 2021 8:06 am, edited 3 times in total.

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: WS2811, PIC18F47Q10 Compile error!

Post 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.

seokgi
Posts: 217
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 6 times
Been thanked: 7 times

Re: WS2811, PIC18F47Q10 Compile error!

Post 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?

seokgi
Posts: 217
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 6 times
Been thanked: 7 times

Re: WS2811, PIC18F47Q10 Compile error!

Post 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.
Attachments
K-004.png
K-004.png (136.07 KiB) Viewed 5058 times
AnimLightStrip2 (1).fcfx
(12.63 KiB) Downloaded 468 times

seokgi
Posts: 217
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 6 times
Been thanked: 7 times

Re: WS2812B, PIC18F47Q10 not work error!

Post by seokgi »

I tried to run it at 32MHz using an external crystal in PIC16F1937, but it doesn't work.

seokgi
Posts: 217
Joined: Thu Dec 03, 2020 1:43 pm
Has thanked: 6 times
Been thanked: 7 times

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

Post 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.
Attachments
WS2812B_PIC18F47Q10.fcfx
(19.26 KiB) Downloaded 609 times

Post Reply