WS2812B LED's

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

WS2812B LED's

Post by Frank607 »

Hi all,

I want to make a program what can control WS2812B LED’s in a Matrix. I don’t know where to begin because on this forum is one topic on the WS2812B LED’s but it is in French. I don’t understand it.

Is it possible to make a program for these LED’s in FLowcode 5? If so, is there an example on this side?

Thanks for helping me.

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: WS2812B LED's

Post by Benj »

Hello,

Yes it should be possible to get these LEDs working. I created an infinity coffee table using these LEDs.

https://www.youtube.com/watch?v=_uSHBNkZUEU

The hardest part of the project was balancing the timings, the LEDs require quite a fast and accurate signal so this needs to be tweaked until it works.

I'll see if I can dig out my program for you but I think it's written in v6 at the moment. You should at least be able to open the program up in the free version of v6 to see how it works and then port the code across to v5.

Frank607
Posts: 192
Joined: Mon Mar 04, 2013 8:07 pm
Has thanked: 29 times
Been thanked: 15 times
Contact:

Re: WS2812B LED's

Post by Frank607 »

Nice Ben !!

I will wait if you can find the program and post it. If I need v6 for this, then I will upgrade.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: WS2812B LED's

Post by JohnCrow »

Hi Benj
I've had a play with these as well, but so far not got anything to work in FC. As you say looking at the data sheets they do seem to be critical on timings.
I have had them working with the Arduino using the custom library so I know my LEDs are OK.
Will be interesting to see how you did it.
1 in 10 people understand binary, the other one doesn't !

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: WS2812B LED's

Post by Benj »

Hello,

Right I've had a dig and managed to find my file.

I posted it here on the forums: http://www.matrixtsl.com/mmforums/viewt ... =25#p57182

I used one of our new dsPIC based ECIO devices as the target MCU which will hopefully be being released shortly, otherwise an AVR/Arduino should be fine but you might struggle with a standard 8-bit PIC due to the speed of comms required. You never know though it might be possible.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: WS2812B LED's

Post by JohnCrow »

Code: Select all

I used one of our new dsPIC based ECIO devices
Are they going to be compatible with the current ECIO baseboard (They look like a very powerful device with lot of ports) or are you releasing a matching version.
1 in 10 people understand binary, the other one doesn't !

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: WS2812B LED's

Post by Benj »

Hi John,

The ECIO version will be completely compatible with the current PIC ECIO40 and will fit onto the EB061 applications board. It is this same ECIO device that I also used to drive my 8x8x8 LED cube. Release date for this is hopefully October the 1st.

We also have planned a new dsPIC ghost board with a fixed but powerful SMD chip which is the next size up in the same dsPIC EP family and has 6 full E-blocks ports available. This probably isn't going to surface until around next Jan as the prototype has only just landed on my desk.

Both boards feature a nice collection of peripherals ( 4 x UART, 4 x SPI, 2 x CAN, 2 x I2C, 12-bit ADC, USB, 16 x PWM ), 70MIPs @ 16-bit processor speed and the remapping functionality allowing you to move the dedicated pins around.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: WS2812B LED's

Post by JohnCrow »

Thanks I'll keep a watch out for them.
1 in 10 people understand binary, the other one doesn't !

Alberta2012
Flowcode v5 User
Posts: 63
Joined: Fri Apr 19, 2013 2:18 am
Has thanked: 10 times
Been thanked: 14 times
Contact:

Re: WS2812B LED's

Post by Alberta2012 »

I would LOVE to see a component for that !

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: WS2812B LED's

Post by Benj »

Hello,

I initially tried to create a component but the timings proved too critical to make a nice rule that always works. I suppose I could make something which had a fiddle factor property that allowed you to tweak the timings slightly until it started working.

I'll have another look at my file and see if I can work out a nice way to do it.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times
Contact:

Re: WS2812B LED's

Post by JohnCrow »

Hi Benj
We also have planned a new dsPIC ghost board with a fixed but powerful SMD chip which is the next size up in the same dsPIC EP family and has 6 full E-blocks ports available. This probably isn't going to surface until around next Jan as the prototype has only just landed on my desk.
Can I make a suggestion with the new 16bit board. Personally, I find the LEDs on the current version (Certainly mine which is one of the early ones) are a bit too bright for my taste. Maybe drop the intensity a touch. :shock: 8) .

Thanks
1 in 10 people understand binary, the other one doesn't !

Post Reply