driving 48 RGB LEDs on BBB

392 views
Skip to first unread message

lynto...@computa.com.au

unread,
Jun 19, 2014, 1:49:10 AM6/19/14
to beagl...@googlegroups.com
Hi, I am programmer and new to electonics and BBB, so please be gentle with me :)

I have a project that involves controlling  48 RGB LEDS and want to be able to control color and brightness and animation of the LEDs based on other sensory inputs.  eg changing colors, brightness and patterns when an imput sensor detects a change in temperature 

After some searching around I have found the Adafruit 24-Channel 12-bit PWM LED Driver - SPI Interface

So I am contemplating getting 6 of these and chaining them together to be able to control the 144 channels (3 x 48) required to drive the LEDs.

My questions are :

Is this the right way to go or is there a better way ? For example are there other breakout boards that can drive 144 channels on there own or is 24 channels the maximum available ? Or do I need to build a custom circuit for this ?

There are arduino libraries available for these LED Driver breakout boards but I need to run on BBB so can anyone tell me how hard it would be to adapt the libraries for BBB from the arduino ones ? Or would it be better to do this on an arduino and pass the logic through to that from the BBB ?

Any other thoughts on additional hardware that might be required to make this work.

If anyone has done similar projects I would be extremely grateful for any advise or pitfalls

thanks
lynton






David Funk

unread,
Jun 19, 2014, 10:35:48 AM6/19/14
to beagl...@googlegroups.com
That's one way.  

There are many ways to do something, it all depends on the materials available, on your skill set and what you're used to.  Anything that works is a right answer.

I take it these are discrete LED's?  Have you looked at LED strips and "intelligent" LED pixels? (WS2811 LEDs and WS2811 LED strips) Those items have PWM drivers built in.

Also for BBB, look at LEDscape,  it's a software package that runs RGB LED's.  http://trmm.net/Category:LEDscape  Read/research through all the LEDscape stuff you can.  A lot of information is available, just not in a step-by-step format.

You'll still need an interface to match the BBB's 3v pins to the 5 volts/12 volts needed for LED strips or Pixels.


Making Arduino libraries work on BBB is an exercise for very advanced programmers, not a trivial task.



-david

William Hermans

unread,
Jun 19, 2014, 12:07:19 PM6/19/14
to beagl...@googlegroups.com
Those WS28xx lights are probably the way to go. There are many projects based on them.

http://forum.beaglefu.com/topic/80-beaglebone-black-drive-a-ws2811-led-strip-with-spi/

is one such project, and there are countless others for different embedded platforms / types.


--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

lynto...@computa.com.au

unread,
Jun 22, 2014, 11:48:58 AM6/22/14
to beagl...@googlegroups.com, lynto...@computa.com.au

thanks for that advise

I hadn't realized those strips had pwm drivers in them already, this looks like a much easier approach.

looking at these now

12mm Diffused Thin Digital RGB LED Pixels (Strand of 25)

https://www.adafruit.com/product/322

Only thing is I need each LED to be about 2 meters apart,
Do you think they would work if I added in an extra 2 meters of cable between each LED ?






William Hermans

unread,
Jun 23, 2014, 12:39:36 AM6/23/14
to beagl...@googlegroups.com
From my understanding the WS28xx LEDs can be cut to however many LEDs ( count wise ) that you like. My assumption here should mean that if this is true, you should be able to "splice" each individual LED at 2M. However, noise may also play a factor here. Get the datasheet, and read :)


lynto...@computa.com.au

unread,
Jun 23, 2014, 1:50:23 AM6/23/14
to beagl...@googlegroups.com
These is a data sheet for the WS2801
http://www.adafruit.com/datasheets/WS2801.pdf

But what should I be looking for ?

I found some cheap alternatives on ebay from hong kong which have 50 pieces for only $30
http://www.ebay.com.au/itm/like/121159316753?limghlpsr=true&hlpv=2&ops=true&viphx=1&hlpht=true&lpid=107

Any experience with cheap chinese parts ? Are they likely to be any good ?



William Hermans

unread,
Jun 23, 2014, 2:15:24 AM6/23/14
to beagl...@googlegroups.com
I have zero personal experience, but have chatted with a few people on IRC who have used them in various projects. Try searching youtube for some awesome xmas demo's using them on houses . . . If you post on that Beaglefu forum on Rickta's post he may ( or may not ) respond. Several people have used them on 43oh.com forums. Perhaps one of them may respond if Rick doesnt.


lynto...@computa.com.au

unread,
Jun 23, 2014, 4:14:52 AM6/23/14
to beagl...@googlegroups.com
This below from the ws2801 datasheet , I think this means they can be up to 6 meters apart. ?


The Connection and Driving of Cascading Operation
The transmit the data over long distance by cascading, the WS2801 integrates push-pull output stage with strong driving capability which enables the data and clock can be transmitted up to 6 meters at 2MHz clock frequency.
To prevent the reflection, it is necessary to connect a 50Ω resistor at the data input or output port for impedance match.

David Funk

unread,
Jun 23, 2014, 11:35:54 AM6/23/14
to beagl...@googlegroups.com
Distance is a problem and I don't remember what it is, I'll dig through my notes and try to find out.  Meanwhile, when distance IS required and it is too long, they leave a Pixel (or two) inline and program it (them) to be off all the time.  I believe the distance affects the timing and any pixel acts as a repeater/amplifier of sorts for the simplistic explanation.



-david

David Funk

unread,
Jun 23, 2014, 11:37:25 AM6/23/14
to beagl...@googlegroups.com
The Christmas lights folks use the Chinese sources all the time.  Ray Wu is one of the better prefered vendors.




-david

David Funk

unread,
Jun 23, 2014, 11:40:42 AM6/23/14
to beagl...@googlegroups.com
I believe so!  Also, the Christmas Lights folks use Cat 6 cabling for connecting things due to it's superior shielding characteristics. Just chop off the plugs and don't untwist any more than you have to to solder to.



-david
Reply all
Reply to author
Forward
0 new messages