Here's some background on charlieplexing: en.wikipedia.org/wiki/Charlieplexing
I took about 80 pictures & not all of them made it into the main steps, but you can find them in step 9: Extra Pictures
If you have any comments, questions &/or suggestions please ask them!
Remove these ads by
Signing UpStep 1: Parts List:
- 12 LED's; I'm using some 3 mm Red LED's
- 4, 270 Ohm resistors; You can use other values as well
- Perfboard/Veroboard; I used a piece 27 holes x 5 holes
- Wire; I used some 26 gauge, solid core wire
- Header pins (optional)
- Arduino
Tools:
- Soldering Iron
- Hot glue gun (optional)
- Helping hand (optional)












































Visit Our Store »
Go Pro Today »




The Arduino uses 5V not 3 so you do need the resisters.
Your christmas tree leds either have resistors in them somehow, are a higher voltage or... Shrug, you got luck somehow...
Charlieplexing.
My plan is to have play with the code to see if I can improve the bounce of the larson, and perhaps port it to an ATTiny rather than monopolising an Arduino!
Great instructable by the way. Having a look at your new ones now!
Additionally, you both use pin 1, 2, 3, 4 in your schematic and then use 0, 1, 2, 3 in the code.
Lastly, neither of these schematic allow the program to work in all three modes.
Am I missing something or was this just a very poor example of charlieplexing. It is complicated enough without getting contradicting info.
The instructable is a really good example of charlieplexing and helped me a lot. It's not the only resource I used to understand the concept.
(a good explanation is here
http://uzimonkey.blogspot.com/2009/01/charlieplexing-on-arduino.html
to figure out how many pins you need, well the relationship for pins to leds is
y = x^2 - x
with y being leds, and pins being x.
{1+root(1+4y)}/2 or
{1-root(1+4y)}2
(and then take the positive number)
so for 22 LED's this would be 5.7 lines (=6) -> 22 is an ineffecient number of LED's with regard to the number of datalines
3 lines wld service 6 LED's
4 lines wld service 12 LED's
5 lines wld service 20 LED's
6 lines wld service 30 LED's
I have 8bit level PWM here:
http://www.youtube.com/watch?v=8apRaZQbv5w
Nice instructable!
Great instructable.
Nice work.
Seems to be a relatively 'simple' how-to. I've been wanting to do this for a while but have been a bit bamboozled when it comes to actually wiring it.