WS2812

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
Maxheadroom
Posts: 10
Joined: Thu Sep 03, 2015 12:59 pm
Been thanked: 3 times
Contact:

WS2812

Post by Maxheadroom »

can you help, I am trying to get the WS2812b module working, however all that seems to happen is all the LED turn on full blast.
CPU is the ECIO40P16
code 8.2.0.12
LED's is the WS2812b 98 of them in a 1D strip (just addressing the first 9 for now)
I am using a 3.3v to 5v converter.
when I look at the output on a scope all I get is a saw tooth signal (assuming the scope is working)
the attached is a simple program all green LEDs on for 1 second then all off for a second. I have added a normal LED just to inform me its looping ok.
so can you help I think is a clock issues (I can't change it under the options) not sure what to do now.

Thanks...
Attachments
lights test.fcfx
(11.9 KiB) Downloaded 166 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: WS2812

Post by Benj »

Hello,

Try lowering the timings slightly. I have these working really well here so I'll dig out my timing settings for you.

Maxheadroom
Posts: 10
Joined: Thu Sep 03, 2015 12:59 pm
Been thanked: 3 times
Contact:

Re: WS2812

Post by Maxheadroom »

HI BenJ, I am using the standard setting, but if you have a custom settings which work, that would be great :shock:

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: WS2812

Post by Benj »

Hello,

Right give these settings a go and let me know how you get on.
Settings.jpg
Settings.jpg (53.02 KiB) Viewed 2462 times
I've made a note to try and fix the default settings for the 16-bit PIC devices.

Maxheadroom
Posts: 10
Joined: Thu Sep 03, 2015 12:59 pm
Been thanked: 3 times
Contact:

Re: WS2812

Post by Maxheadroom »

OMG its working, thank you :mrgreen:

Post Reply