3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Cube 8x8x8

Step 7Cube size and IO port requirements

Cube size and IO port requirements
To drive a LED cube, you need two sets of IO ports. One to source all the LED anode columns, and one to sink all the cathode layers.

For the anode side of the cube, you'll need x^2 IO ports, where x^3 is the size of your LED cube. For an 8x8x8 (x=8), you need 64 IO ports to drive the LED anodes. (8x8). You also need 8 IO ports to drive the cathodes.

Keep in mind that the number of IO ports will increase exponentially. So will the number of LEDs. You can see a list of IO pin requirement for different cube sizes in table 1.

For a small LED cube, 3x3x3 or 4x4x4, you might get away with connecting the cathode layers directly to a micro controller IO pin. For a larger cube however, the current going through this pin will be too high. For an 8x8x8 LED cube with only 10mA per LED, you need to switch 0.64 Ampere. See table 2 for an overview of power requirements for a LED layer of different sizes. This table shows the current draw with all LEDs on.

If you are planning to build a larger cube than 8x8x8 or running each LED at more than 10-ish mA, remember to take into consideration that your layer transistors must be able to handle that load.
« Previous StepDownload PDFView All StepsNext Step »
4 comments
May 26, 2011. 8:39 AMVick Jr says:
If only one layer is on at a time, why do you need 8 IO ports to control them?

Could you use the 74HC138 (or similar chip) connected through some sort of transistor array? That would reduce those 8 IO pins to 3.
Jul 19, 2011. 4:07 PMVick Jr says:
Another idea: you could use a shift register, since you're already turning on the layers in successive order. That would only require 2 IO pins, data and clock.

Actually, could you connect the last out pin of a shift register to its data pin so it shifts in its own data? Then you could just feed it a 1 and 7 zeros and keep looping it with only the clock pin.

Of course I'm not nearly advanced yet to design such a circuit.
Jun 30, 2011. 9:36 PMcocoangle says:
good idea!
Feb 3, 2011. 5:33 AMmmenegali says:
I guess I found a little mistake in the text here. It says that the number of IO ports increases exponentially with x, but in fact it increases quadratically. It would be exponentially if the formula were something like 2^x.

Also, I'd like to thank you for this great instructable! :)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
651
Followers
7
Author:chr
I like microcontrollers and LEDs :D