Go Down

Topic: need help with led cube (Read 1 time) previous topic - next topic


So i just got a arduino duemilanove so for my first project i build a 3x3x3 led cube.  I used 3 npn transistors to control each level of the cube.  The npn transistors are connected to the arduino with 22k resistors and are in pin13,12,11. All the other leds on the bottom are connected to all the other pins using 220ohm resistors.

I am new to programming could some one give me some sample code to get started or tell me if some thing is wrong with my set up thanks.


A schematic is worth a thousand words. You didn't use even 10% of that, Draw us a picture.

As far as the code, that really depends on what you want to do. Light up one LED? One row? One column? One layer? All of them?
The art of getting good answers lies in asking good questions.


The below published on-line project shows a schematic for one method to drive LED cubes. It utilizes constant current shift registers for the columns and transistors for the level drive. I utilized this in my 5x5x5 cube and was very pleased with it's performance.





Good video describing on how to wire one up, from Makezine.

Go Up