Go Down

Topic: how to control levels of 3x3x3 cube? (Read 970 times) previous topic - next topic

ahhreeyell

Does anyone know how to turn individual levels on and off? How do I wire up the cube so that it does this? What code do I use?
I have pretty much everything else figured out, I think.

Grumpy_Mike

It depends on how you have wired it up. Have you got a schematic?

denos

Assuming you plan on multiplexing to control each level

My experience:
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1286580054/7

For a 3x3x3 cube, you will have 3 levels of 3x3 leds. For each row in a level you connect either all the common anode or cathodes together (depends on what you're using). To light that level, you source or sink current to the 3 wires that each run through 3 leds (3x3=9 leds or one level)

Lame text summary:
Code: [Select]

W-L-L-L
W-L-L-L
W-L-L-L

W=wire
L=led


Source or sink (common anode or cathode leds) current to the "W"ire above to light the level.

The next level, move over where you drop the current wire to your breadboard / through your bread board to keep things neat and tidy:

Code: [Select]

L-W-L-L
L-W-L-L
L-W-L-L



Go Up