LED Cube

by 1041985 in Circuits > Arduino

184 Views, 2 Favorites, 0 Comments

LED Cube

finished01.jpg

Hello my name is Ranvir and today I will be showing you how to make an LED cube. The way the cube works is it is supposed to keep flashing in a pattern, just like the image at the top which is an example. This might seem a bit complicated to do, but I can assure you it's not very hard just time consuming. So now that I have introduced myself and the project, so lets move onto the main supplies you will need in order to make this very cool cube.

Supplies

The supplies you will need for this project are...

  1. LEDs x 18
  2. Resistors 560 x 6
  3. Transistors x 6
  4. Wires (As many as you need)
  5. Arduino x 1
  6. 9V Battery x 1
  7. 9V Battery Cap x 1
  8. 22 gage wire x18 (60in)

Now that the you know the supplies lets move onto the first step.

LED Cube Structure

IMG_20240123_121251.jpg
IMG_20240111_121128.jpg

Arrange LEDs in a 3x3x3 grid, connecting the cathode (shorter leg) of each LED to form layers and columns. Do this by first Twisting The legs into a circle so its easier to solder. cut up the 22 gauze wire, The Anode hole should be vertical and the cathode hole should be horizontal

Wiring

IMG_20240123_121006.jpg

Connect the anodes (longer legs) of LEDs in each layer to a common ground.

Connect the cathodes of LEDs in each column together. (3 each)

Use resistors to limit current between the microcontroller and LEDs.

Arduino Connections

Connect each layer to separate microcontroller pins (3 pins for 3 layers).

Connect each column to separate microcontroller pins (9 pins for 9 columns).

Programming

download.png

 Write code to control each layer and column to create patterns.

 Use a multiplexing technique to cycle through layers and columns rapidly, creating the illusion of a solid display.

Power Supply

download.jpg

Connect an external power supply to provide enough current for the LEDs. This is one of the main components you should have because if you have lower than 9V then it can be a problem. This would mean it will not work or the LEDs will be really dim. So be sure to have an external power supply that is 9V. (If you are using more LEDs then you might need to get a bigger power supply).

Testing

Upload the code to the microcontroller and test the LED cube for functionality. You can also create your own code to learn! and create your own patterns and Ideas. This is important so that you can learn a lot of new things while making this project such as new code variables, new components, etc. So it's highly recommended to try and learn everything as you make this cube.

Enclosure (Optional)

download.jpg

Consider creating an enclosure or frame to protect the cube and enhance its appearance.

Download the Code Here (if You Need It)

Here is the code if you don't want to write your own because it can be a bit difficult especially for this project.

Downloads