Individual LEDs Vs. Dot Matrix - How To

Arduino, Seeeduino Serials and mutants. Share your problems and experence on arduino compatible board such as seeeduino/stalker, etc.

Moderators: lily.li, violet, salmanfarisvp

Post Reply
xDGx
Pre-kindergarten
Pre-kindergarten
Posts: 6
Joined: Thu Feb 25, 2010 12:03 am

Individual LEDs Vs. Dot Matrix - How To

Post by xDGx » Thu Feb 25, 2010 12:26 am

Hey guys.. I'm new here :)
And I have a question! :P
How do I wire up 192 LEDs on a Rainbowduino ? I want to light individual LEDs instead of a 8x8 RGB DOT Matrix.
Thank you in advance,

xDGx

User avatar
saw0
Pre-kindergarten
Pre-kindergarten
Posts: 14
Joined: Wed Sep 16, 2009 6:29 pm

Re: Individual LEDs Vs. Dot Matrix - How To

Post by saw0 » Thu Feb 25, 2010 6:20 am

I already did this. Do you user 192 single Leds or do you use 64 RGB Leds ?

The wiring itself follows the one for the matrix provided in the Rainbowduino Manual.

You posted in the wrong section btw, this should go to "Tech Support"

Icing
Elementary-1
Elementary-1
Posts: 140
Joined: Wed Oct 21, 2009 10:39 pm

Re: Individual LEDs Vs. Dot Matrix - How To

Post by Icing » Thu Jun 03, 2010 5:37 pm

Hi xDGx,

To control 192 LEDs, the difficult part is how to connect them to the rainbowduino and how to control the spcific led.

I suggest you look at my rainbowduino demo code(Rainbowduino_v1_0_4.zip), which may give you some instructions. (Not fully finished yet ;) )
http://code.google.com/p/rainbowduino/downloads/list

To control 192 LEDs, you may try this way:

1. led0~led23 as the first group of which anode use the same VCC.
conect anode of led0~led23 -> VCC1
connect cathode of led0->R8,led1->G8,led2->B8;led3->R7,led4->G7,led5->B7;... led21->R0,led22->G0,led23->B0

2. led24~led47 as the second group of which anode use the same VCC.
conect anode of led24~led47 -> VCC2
connect cathode of led24->R8,led25->G8,led26->B8;led27->R7,led28->G7,led29->B7;... led45->R0,led46->G0,led47->B0

...

8. led168~led191 as the 24th group of which anode use the same VCC.
conect anode of led168~led191 -> VCC8
connect cathode of led168->R8,led169->G8,led170->B8;led171->R7,led172->G7,led173->B7;... led189->R0,led190->G0,led191->B0

Then change matrixColorData[line][column] with different value will change the brightness of specific led.
For example matrixColorData[0][0] = 0x000f -> led0 brightest
matrixColorData[0][0] = 0x0000 -> led0 off
matrixColorData[0][0] = 0x00f0 -> led1 brightest
matrixColorData[0][0] = 0x0f00 -> led2 brightest
matrixColorData[0][1] = 0x000f -> led3 brightest
matrixColorData[1][0] = 0x000f -> led24 brightest

You can try it! Feel free to ask any question!

All the best,

-Icing
Attachments
rainbowduino.jpg
rainbowduino layout
rainbowduino.jpg (43.35 KiB) Viewed 4045 times

Post Reply