Picture of 4x4x4 LED Cube with Charlieplexing
I know there are tons of ibles on this now, but here is the method I used to make a few LED cubes for my brothers this last Christmas. The electronics are cheap and it doesn't take much time to quickly make one of these. I wrote some very simple code to control them as well. I made a green one and a blue one. Both run on batteries (AA or AAA). I tried using coin cells but couldn't get them to spit out enough juice. You could definitely get the LEDs brighter with a more robust power source and transistor network, but that wasn't my goal. 

// scratch that, they are plenty bright

Step 1: Materials Needed

Picture of Materials Needed
A quick list of the parts you will need for this design (or at least what I used):
  • ATMega328P-PU microcontroller
  • ribbon cable or individual wires (both work just as well) as thin as possible
  • 64 LEDs of your color choice
  • 9 resistors (100 ohm or 120 ohm or close)
  • optional] experimenters / prototype board
you will also need:
  • AVR programmer with ISP connection

I have the wrong resistors shown in the picture... It took me up until the 4th resistor while soldering to realize that I had placed a reel of resistors in the wrong place on my shelves. That's what I get for moving to a new room. I have 22kohm resistors shown instead of the 100ohm resistors that they should all be.
EarlRussell10 months ago

So according to your diagram pins 6 and 8 of layer 2 is anode which is to be connected to pins 6 and 8 of layer 3 which are cathode. Then you state to connect all the like numbers together. ( E.G.: All 1's to 1's and all 9's to 9's etc.) I hope I am understanding this correctly. In making the layers I gathered that you don't cross wire the positive and negative lines, which would cause a short. Seemingly I wired them correctly but I'm not sure. But in the stacking of layers you clearly are stating to cross wire positive to negative lines. Is this right?

Onyx Ibex (author)  EarlRussell10 months ago
The reason this isn't a problem is because you only ever have one LED on at a time. Each LED is rapidly toggled on and off in quick succession to make the patterns. You don't end up passing the reverse current through the 'backwards' LED because it will instead flow through the 'forward' LED. Thus, there is no need to worry about a short circuit or damaging and LED. (so yes, correct)

You're awesome, thank you! I will share my outcome soon! :)

jasshopper2 years ago
I'm actually new to these so what is this picture supposed to mean? and how do you program it using a computer (the connection to pc).
Onyx Ibex (author)  jasshopper2 years ago
I think this tutorial will help a lot. You will need avrdude (software). Everything is explained here: http://www.ladyada.net/learn/avr/avrdude.html
Onyx Ibex (author)  Onyx Ibex2 years ago
If this doesn't help all the way, just PM me or something and I will help you out with whatever you are having trouble with.
jasshopper2 years ago
anyway to make the "AVR programming with isp connection" ?
Interesting design. Food of 5 volts?
Onyx Ibex (author)  dmitriyprohorovss2 years ago
Food?? 3.2V input if thats what you are asking. But the microcontroller spits out 5V on the pins.
Kiteman2 years ago
Yes, please make anothef to be videoed!
Onyx Ibex (author)  Kiteman2 years ago
just for you :) It's up.