Saturday, 20 January 2018

How to Build an 8x8x8 LED Cube using Arduino

In this project, we will see how to build an 8x8x8 LED Cube. There are many projects based on the 8x8x8 LED Cube and some of them became quite popular that it became a must-do project for many hobbyists.

Even we were planning on building an 8x8x8 LED Cube for quite some time and now we have finally finished building one and we are very happy with the end result.

The main purpose of this tutorial is to give you a brief idea about how to build an 8x8x8 LED Cube from scratch in a step-by-step manner.

NOTE: The work of “chr” from Instructables inspired us to build our own 8x8x8 LED Cube.     

Overview

An 8x8x8 LED cube is a visual treat with 3D effects and patterns. It works on the concept of Persistence of Vision, a feature of the human eye which tricks our brain in to thinking that an object is present permanently at a place if it appear about 60 times in a second.

Since an 8x8x8 LED Cube consists of, well 8x8x8 = 512 LEDs, we cannot control all these 512 LEDs at once. What we can do is control 64 LEDs at a time at an extremely fast rate and trick our brain as if we were controlling all the 512 LEDs.

Sample Output Video

The following video shows a sample or a demo of the output of the 8x8x8 LED Cube.

Components, Tools and Parts Required for 8x8x8 LED Cube

  • Arduino Nano
  • LEDs (5mm) – 512
  • 100Ω Resistors (1/4 Watt) – 64
  • 1KΩ Resistors (1/4 Watt) – 16
  • 10KΩ Resistors (1/4 Watt) – 8
  • 2N2222 NPN Transistors – 16
  • 74HC574 Octal D Flip-flop – 8
  • 74HC138 3-to-8 Demultiplexer – 1
  • 20-pin IC Socket – 8
  • 16-pin IC Socket – 1
  • 0.1µF Capacitor (104) – 9
  • 1000µF Capacitor – 1
  • 100µF Capacitor – 1
  • 10µF Capacitor – 1
  • Power ON LED – 1
  • 100Ω Resistor for Power ON LED – 1
  • 5V Power Supply
  • Male Headers
  • Female Headers
  • Screw Terminals
  • Connectors with Headers
  • Ribbon Cables
  • Standoffs
  • Screws
  • Connecting Wires
  • Sunboard
  • Cutter
  • Stripper
  • Solder Lead (lot of it)
  • Soldering Iron

How to Build an 8x8x8 LED Cube?

Let us now take a look at how to build the 8x8x8 LED Cube from beginning to end. I’ve tried to include as many steps as possible without you getting bored. Let’s start with LEDs.

Testing the LEDs

As I’ve already mentioned earlier, we need 512 LEDs. The first step is to test all the 512 LEDs. You can use a 3V Lithium Cell to test the individual LED. This step is very important because once you begin soldering the LEDs, it will be difficult to remove them.

8x8x8 LED Cube Image 1

Building the Layers

Next step is to create the layers. Each layer is made up of 8×8 LED Matrix consisting of 64 LEDs. In order to build the layers, take a Sunboard and make holes at a distance of 2.5CM. Place the LEDs and start soldering all the cathodes together.

8x8x8 LED Cube Image 2

In order to increase the strength of the layer, solder few connecting wires between LEDs. In addition to acting as support bars, these wires will also short all the cathodes of that particular layer.

Now, test the LEDs once again as replacing a faulty LED will be somewhat easy at this stage. Once everything is done, put aside the completed layer and continue making seven other layers.

8x8x8 LED Cube Image 3

Stacking up Vertical Layers

After completing eight layers, we will now proceed with stacking those layers vertically. Take a Sunboard and mark 64 holes to insert poles for 64 Anode Terminals. Start soldering layer by layer and use any object like a ruler or even a piece of Sunboard (of width roughly 2.5CM) to separate the layers.

8x8x8 LED Cube Image 4

Finished structure after stacking all the eight layers, will look something like this.

8x8x8 LED Cube Image 5

The 64 Anode poles must protrude out of the Sunboard at the bottom in order solder wires for connection. After soldering all the 8 layers with the Anode Poles, solder wires to the Anode poles. This completes the actual Cube part of the 8x8x8 LED Cube.

8x8x8 LED Cube Image 6

Next, we will continue to design the main circuit board for housing all the ICs, transistors and the Arduino Nano board.

Designing the PCB

We have designed two PCBs for this Project: one for all the eight 74HC574 IC’s that get connected to the Anode rows of the LED cube and the other board for Arduino Nano, transistors and power supply components.

8x8x8 LED Cube Image 7

Fix the boards using standoffs and connect the LED Cube to the PCBs using ribbon cables at their appropriate places.

8x8x8 LED Cube Image 8

Housing for PCBs and Power Supply

Using Sunboard, make a housing for the PCBs and the Power Supply. This piece also acts as a base for the LED Cube. Insert the PCBs into the housing and connect the power supply through a switch.

8x8x8 LED Cube Image 9

Final Build

The final build of the 8x8x8 LED Cube is shown in the image below. The structure is very strong and all the electronics including the power supply are concealed inside the base.

8x8x8 LED Cube Image 12

Circuit Diagram

The following image shows the complete circuit diagram of the 8x8x8 LED Cube using Arduino Nano.

8x8x8 LED Cube Image 10

NOTE: The above image might not be very clear due to extreme compression. If you want a clearer circuit diagram, you can download it from this link.

Code

The code is developed based on the work of “chr” from Instructables. There are many codes available in the internet that you can use.

Final Word

As I said in the beginning of the article, building an 8x8x8 LED Cube is every electronics hobbyist’s dream and we are no exception to that. So, after postponing the LED Cube project for a long time, we have finally finished it.

It took nearly 24 working hours to build the 8x8x8 LED Cube (testing LEDs, bending and cutting the LEDs, making 8 LED Layers each consisting of 64 LEDs, straightening wire for adding tensile strength, stacking those layers vertically, designing PCB, etching PCB, soldering components on the PCB, connecting LED Cube to the PCB, dumping the code and testing the output).

If you have made a similar project (even a smaller one like 4x4x4 LED Cube), congratulations to you. It shows your dedication, effort and patience in building a project.    

The post How to Build an 8x8x8 LED Cube using Arduino appeared first on Electronics Hub.

No comments:

Post a Comment

Scientists produce high-power attosecond X-ray pulses at megahertz repetition rates

A research team has achieved a major advance in X-ray science by generating unprecedented high-power attosecond hard X-ray pulses at megaher...