Component RGB LED 20x instances

Moderator: Benj

ronaldlijs
Posts: 99
Joined: Tue Jan 05, 2010 10:07 am
Has thanked: 9 times
Been thanked: 22 times
Contact:

Component RGB LED 20x instances

Postby ronaldlijs » Wed Sep 18, 2019 11:18 am

Hi guys,

Just wondering if you think there wouldn't be any trouble with Flowcode handling 20x instances of RGB LED WS2812 with a PIC32?

I have 1 working PIC16 with 3x RGB instances with 30+ LEDs each without trouble, with 1 timer updating the LED strips 60 times per second.

Question is if one can take this further to 20x instances and any potential issues this could cause.

Thanks for your time!
R

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

Re: Component RGB LED 20x instances

Postby Benj » Wed Sep 18, 2019 12:32 pm

Hello,

As long as each channel is given time to complete before starting the next channel yes this should be fine. I think you could have as many channels as you need as long as you have enough on-board RAM to buffer all the various colours.

One cheat way to save on RAM requirements might be to have a single output and then use hardware to multiplex this single output between a number of channels.

ronaldlijs
Posts: 99
Joined: Tue Jan 05, 2010 10:07 am
Has thanked: 9 times
Been thanked: 22 times
Contact:

Re: Component RGB LED 20x instances

Postby ronaldlijs » Wed Sep 18, 2019 6:10 pm

Thanks Ben again!

Makes sense...

One thing I didn't realise for PIC32 family of MCUs is how powerful they are now and how the cost has come down in the past few years. I've been "dicking around" with dsPIC16 devices with 32~64KB or Flash and 4~8KB of RAM for too long...... only to realise this is not enough these days for our application.

The PIC32MZ devices put dsPIC16 specs to a shame, I've chosen the FC8 supported PIC32MZ1024EFE64, insane 1024KB of Flash and 256KB of RAM!

Again, thanks for the clarification and multiplexing outputs sounds like a good idea too.

Regards,
R