Professional Documents
Culture Documents
* 512x LEDs
* 64x resistors.
* 1x or 2x large prototype PCBs.
* 1x ATmega32 microcontroller
* 3x status LEDs..
* 3x resistors for the status LEDs.
* 8x 74HC547 ICs
* 1x 74HC138 IC
* 5v power supply
Each of the 64 columns are connected to the controller board with a separate wire.
Each column can be controlled individually. Each of the 8 layers also have a separate
wire going to the controller board.
Each of the layers are connected to a transistor that enables the cube to turn on and off
the flow of current through each layer.
By only turning on the transistor for one layer, current from the anode columns can only
flow through that layer. The transistors for the other layers are off, and the image
outputted on the 64 anode wires are only shown on the selected layer.
To display the next layer, we simply turn off the transistor for the current layer, change
the image on the 64 anode wires to the image for the next layer. Then we turn on the
transistor for the next layer.
The layers will be referred to as layers, cathode layers or ground layers.
The columns will be referred to as columns, anode columns or anodes.
Cube size and IO port requirements
To drive a LED cube, we 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, wel need x^2 IO ports, where x^3 is the size of our LED
cube. For an 8x8x8 (x=8), we need 64 IO ports to drive the LED anodes.
(8x8). We also need 8 IO ports to drive the cathodes.
We shoud keep in mind that the number of IO ports will increase exponentially. So will
the number of LEDs. We can see a list of IO pin requirement for different cube sizes in
table
For a small LED cube, 3x3x3 or 4x4x4, we 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.