Simple 3x3x3 LED Cube With Arduino

by hkerr in Circuits > Arduino

6190 Views, 51 Favorites, 0 Comments

Simple 3x3x3 LED Cube With Arduino

54d2aa9fc6ba5dfcd7000118.jpeg
IMG_20141230_213853242.jpg
54a2e900182470a84f000001.jpeg
IMG_20141231_193813519.jpg
IMG_20141229_174832708.jpg
IMG_20141231_194121604.jpg
IMG_20141231_194158497.jpg

This is my first instructable so leave feedback in the comments please.

When viewing lots of LED Cube tutorials it seemed like they were too complex and like they didn't give enough detail on how to build them. Also the pick controlled ones had very complex coding and complex wiring. Most cubes looked really bad lacking good building instructions like the picture above. So I decided to make this one that is very simple and good for beginners wanting to make something that looks good.

Order the Parts

IMG_20141229_174832708.jpg
IMG_20141230_181738272_HDR[1].jpg

Parts needed:

Optional Parts:

Tools:

  • Soldering Iron
  • *(2x) Pliers (2 or 1 and a Clamp)
  • *Clamp
  • Wire cutters (pliers might have this)

Optional Tools:

  • Hot Glue Gun (+Glue)
  • Saw (if pref-board is too big)
  • *Flux paste

Making of the Cube (Layers)

IMG_20141229_172341081.jpg
IMG_20141229_172409789_HDR.jpg
IMG_20141229_172521152_HDR.jpg
IMG_20141229_173541774_HDR.jpg
IMG_20141229_173817470_HDR.jpg
IMG_20141229_173827261_HDR.jpg
IMG_20141229_174425237.jpg

Tape the template on a piece of cardboard and poke small holes in it with scissors at the joins. Then push an led into each to make the holes the same size as an led (or if you have a drill and a 5mm drill bit drill the holes).

Straighten the bridge wire by putting one end in a clamp and holding the other end in pliers and puling will straighten the wire. If you don't have a clamp use 2 sets of pliers, put an end in each and pull. You will need 15 pieces of straight wire for all 3 layers together a bit longer than the length of the template.

Put an led in each hole and bend the positive legs (longer legs) at around 45 degrees from the lines shown in the pictures.

Cut the shorter legs standing up down to the little square in the metal (in picture).

Once the legs are cut put a straight piece of the bridge wire across all of the legs in a row that are standing and solder it on each leg, do this for the other two rows also. (Labelled Pic1)

When the rows are done place more bridge wire across the end of them and solder it to all 3 rows. (Labelled Pic2)

Do again twice to make 3 layers.

Downloads

Making of the Cube (Shape)

IMG_20141230_150544735.jpg
IMG_20141230_153547395.jpg
IMG_20141230_154319835_HDR.jpg
IMG_20141230_154736378.jpg
IMG_20141230_160511202.jpg
IMG_20141230_160727111.jpg
IMG_20141230_160933172.jpg
IMG_20141230_161311201.jpg
IMG_20141230_162333271_HDR.jpg
IMG_20141230_200436264.jpg
IMG_20141230_210456365.jpg
IMG_20141230_212435379.jpg
IMG_20141230_212702729.jpg
IMG_20141230_213853242.jpg

You will need 11 of the straightened wires. (Cut one in half to make 12)

To mark where the layers are going to go put a light under the cardboard template then the board on top so the light shines through the holes making it easy to mark them. Once marked slide a piece of wire down each hole on the board keeping it standing straight and solder it on the copper side.

Slide the first layer down the wires and solder the remaining LED legs not connected to anything else on to the wires that are pointing up and trim the excess off of the LED legs.

Do the same to the next layer but to get the correct height turn a 9-Volt battery on its side and use it as a spacer.

For the last layer do the same again except put another battery on top as another spacer. When done trim all the long legs and the long wires going to the top.

Test the cube and make sure all the LED's light up if not they might need to be re-soldered. (Connect ground to each layer and power to each rail)

With the remaining wire and two half's put a wire in different holes with one end soldered onto each layer.(Labelled Pic3)

The Circuit (1)

transistor.png
IMG_20141230_215959664.jpg
IMG_20141230_220015288.jpg
IMG_20141230_221307241.jpg
IMG_20141230_221209196.jpg
IMG_20141230_221250159.jpg
IMG_20141230_221556813.jpg

Put the transistors in at the layer connections and solder them there connecting the collector (C) to the layers.

Put a 22k resistor in connected to the base (B) with the other leg going down the board like a wire.

Connect the emitters (E) together as they are going to ground.

The Circuit (2)

IMG_20141231_120003005_HDR.jpg
IMG_20141231_120234329.jpg
IMG_20141231_120913758.jpg
IMG_20141231_122521065.jpg
IMG_20141231_123435786.jpg
IMG_20141231_124638001.jpg
IMG_20141231_125415335.jpg
IMG_20141231_125859359_HDR.jpg
IMG_20141231_125906309.jpg
IMG_20141231_130218365.jpg
IMG_20141231_131134325.jpg
IMG_20141231_131148787.jpg
IMG_20141231_131356263.jpg
IMG_20141231_131521125.jpg
IMG_20141231_131626801.jpg
IMG_20141231_132324152.jpg
IMG_20141231_172206711.jpg
IMG_20141231_172230243_HDR.jpg
IMG_20141231_134445286_HDR.jpg
IMG_20141231_134634753.jpg
IMG_20141231_134641228.jpg
IMG_20141231_165524114_HDR.jpg
IMG_20141231_165923267.jpg
IMG_20141231_172341374.jpg

Bring all the legs of the rails down to one point and solder a resistor to them. I have used wire to "Jump over" the ground "rail" making it neater I have also used hot glue as an insulator. The picture labelled wiring shows this and the picture labelled resistors also shows this.

When all the wires are at a point solder wires (header pins or sockets) onto the board to be able to connect them to the Arduino. I have used header pins and made cables to connect the cube to an Arduino. To make it so much easier to connect pins or sockets to a cable apply some flux paste to the pins or sockets.

The wires are connected to the Arduino as shown in the last picture.

Connecting to the Arduino

IMG_20141231_172341374.jpg

Ground wire goes to a ground pin.

Layer 1 goes to pin 11

Layer 2 goes to pin 12

Layer 3 goes to pin 13

-

Rail 1 goes to pin 10

Rail 2 goes to pin 9

Rail 3 goes to pin 8

-

Rail 4 goes to pin 7

Rail 5 goes to pin 6

Rail 6 goes to pin 5

-

Rail 7 goes to pin 4

Rail 8 goes to pin 3

Rail 9 goes to pin 2

The Code

IMG_20141231_182628783.jpg
IMG_20141231_182627033.jpg

The code will be uploaded soon but to get started use the led cube library available I do not own and did not create the led library, it has a licence file included in the zip file.

LED Library

https://github.com/gzip/arduino-ledcube

Downloads