Build your own 4x4x4 LED Cube

LED light cubes are a hugely popular and fun project and with the help of the Hobby Components kit you will have all the parts to build your very own. Building on the popular 8x8x8 cube kit (HCKITS0022), we decided to create a through-hole version for those of you who are better suited to this kind of soldering. The kits we sell include all the necessary components to build the driver base board and 64 3mm LEDs to build the 4 x 4 x 4 cube. The kit is offered in several colours.

Demonstration Video

Some familiarity with soldering is required to construct the kit.

So, let’s get started! The guide is split into two parts, the first covers creation of the base board, and the second covers the LED cube creation.

The first thing you need to do is check that all the components are enclosed in your kit. If you’ve purchased components elsewhere, be sure to check you’ve ordered the correct values for each component.

Contents

  • 4 x 4 x 4 Cube Kit PCB
  • 3 x 100nF Ceramic Capacitors
  • 2 x 20pF Ceramic Capacitors
  • 1 x 5 Pin Connector
  • 4 x 5mm White LEDs
  • 1 x Pin Header Strip
  • 1 x 10K Resistor
  • 16 x 100R Resistors
  • 4 x 220 ohm Resistors
  • 1 x Tact Switch
  • 1 x ULN2803 8-Channel Darlington Driver
  • 1 x ATMega328-PU
  • 1 x 16MHz Crystal
  • 64 x 3mm LEDs (Available in Blue, Green, Red and White)
  • Plus: A USB to serial interface cable that can be used to power and reprogram the completed cube*.

*Please see the diagram at the bottom of this guide for how to connect the cable to your cube.

 

Required Tools

In order to built the cube, you will need a few tools:

  • Soldering Iron (Ideally with a fine tip)
  • Solder

Recommended Tools

  • A piece of perspex or plywood which will be used as a jig for soldering the LEDs that make up the cube
  • 3mm drill bit and drill
  • A pair of small long nose pliers

 

Part One – Building your LED Cube: PCB

 

toptip3

Soldering tip: When soldering components to a circuit board it is always best to start with the smallest components first. This helps keep the board flat and stops access to pads from being restricted by larger components. The first step is to start by soldering the resistors and capacitors. In your kit these will be marked appropriately. The orientation of most of the components doesn’t matter. We will point out any components where the orientation does matter. In these cases it is important to make sure you have them inserted correctly.

Components

Edit 10/04/17: Please note that the latest PCBs shipped within our kits have a reversed silk screen print. Therefore the component side will have white text on a black PCB as opposed to the black text on a white PCB as shown in the build guide images below.

Resistors

Locate the following pads on the PCB and solder the appropriate resistors in place.

Pad R1 – Resistor Value: 10K (BROWN, BLACK, BLACK, RED)

HCKITS0041_Build_Guide_Step1_600_450

Pads R18, R19, R20 and R21 – Resistor Value: 220 ohm (RED, RED, BLACK, BLACK)

HCKITS0041_Build_Guide_Step2_600_450

Pads R2, R3, R4, R5, R6, R7, R8, R9, R10, R11, R12, R13, R14, R15, R16 and R17 – Resistor Value: 100 ohm (BROWN, BLACK, BLACK, BLACK)

HCKITS0041_Build_Guide_Step3_600_450

 

Crystal

Locate the X1 pad on the PCB and solder the crystal in place.

HCKITS0041_Build_Guide_Step4_600_450

Capacitors

Locate the following pads on the PCB and solder the appropriate capacitors in place.

Pads C4 and C5 – Capacitor Value: 20pF

HCKITS0041_Build_Guide_Step5_600_450

Pads C1, C2 and C3 – Capacitor Value: 100nF

HCKITS0041_Build_Guide_Step6_600_450

Tact Switch

Locate the following pads on the PCB and solder the switch in place. Note that the switch is a tight fit, but it does push through and sit correctly on the PCB. Note that the orientation of the switch is important – the legs of the switch should be on the left and right hand sides of the components as in the picture below.

Pad SW1 – 4 pin Tact Switch

HCKITS0041_Build_Guide_Step7_600_450

ICs

Locate the following pads on the PCB and solder the appropriate IC in place. Note that the orientation of the IC’s is important – at one end of each IC you will notice a semi circle cut into the case. When the IC’s are inserted into the board these should be on the left as in the picture below.

Pad U1 – ATMega328-P IC

Pad U2 – ULN IC

HCKITS0041_Build_Guide_Step8_600_450

 

Edit: If you have a version V1.1 PCB (marked V1.1 in low right hand corner) you can skip this next step and move on to the connector…

On the opposite side of the board (black side) use some solder to bridge pins 8 and 9 of IC U2. Reference the image below for the correct pins.

HCKITS0041_Build_Guide_Errata_600_450

 

Connector

Locate the five holes shown in the image below on the lower edge of the PCB and solder the right-angled header pins in place. You can solder the connector on the top or bottom side of the board. It’s up to you!

HCKITS0041_Build_Guide_Step9_600_450

 

5mm LEDs (Feet)

Locate the relevant pads and solder each of the four 5mm LEDs in place. Note that the orientation of the LED’s is  important – the short leg of the LED (called the cathode) should be oriented to the outside of the PCB.

Pads D1, D2, D3 and D4 – 5mm LEDs

HCKITS0041_Build_Guide_Step10_600_450

 

LED Sockets

The LED connectors are each stripped from the enclosed male to female header strip. Carefully snap off each pin and solder to the black side of the PCB as shown below. There are a total of 20. Note that whilst creating our demonstration cube, we stripped off the black plastic from all headers (by lightly squeezing pliers around the plastic until it came away), this isn’t a requirement, it just gives a slightly better look to the finished PCB.

HCKITS0041_Build_Guide_Step11_600_450

 

So, you’ve managed to complete all the electronics – Now time to move on to the cube part of the guide.

 

Part Two – Building your LED Cube: the Cube

After soldering LEDs for the 4x4x4 LED (all 64 of them!), this one was a doddle! 🙂

To build your LED cube you will need to solder the 64 LEDs supplied in your kit in to four sets of 4 x 4 grids. This will take a little time and so it is important that you understand how to construct these grids before starting.

Whilst with a little care you can construct the grids by hand, it is recommend that you first construct yourself a jig/template as this will allow you to construct the grids quicker and with more accuracy. To do this you will need a piece of perspex, plywood, or any stiff material you can drill holes into measuring at least 5cm x 5cm (in this example we just used a piece of thick cardboard). You will need to drill a set of 3mm holes arranged in a 4×4 grid. The centre of each hole can be marked easily by placing the PCB on top of your jig material and using a fine pen/pencil, or if using cardboard, pushing a pin through. The holes will then all be exactly where needed to create the jig.

 

Before you start…

Tip 1: Before you start soldering your LEDs together we strongly recommend testing each LED first. You can do this by using your newly built PCB as an LED tester! Simply power the PCB up by connecting the supplied USB cable. Connect the RED cable to the pin marked 5V on the PCB, and the black cable to the pin marked GND. No need to connect the green and white cables, they are just for if you want to reprogram your cube. Next check each LED by inserting it into the two sockets shown in the image below.

 

Testing the LEDs
Testing the LEDs

 

Make sure to connect the LED to the two sockets shown in the image and with the shorter leg of the LED inserted into the outer socket. With the PCB powered the LED should randomly turn on and off as the cube runs through its demo.

Tip 2: When bending the legs of the LEDs we recommend using a pair of long nose pliers. This will help to avoid applying mechanical stress to the base of the LEDs when bending their legs.

led_cube_kit_bending_legs

 

Don’t worry if any of your LEDs don’t work or you make a mistake – we provide extra LEDs in the kit to help cover for any problems.

 

Step One:

HCKITS0041_Build_Guide_Step12_600_450 HCKITS0041_Build_Guide_Step13_600_450

Insert one row of 4 LEDs into your template as shown in the image. Note the orientation of the LED legs with the short legs at the top and the long legs at the bottom. Carefully bend each long leg at a 90 degree angle at the base of the LED so that it points down.

Then carefully bend the short legs by 90 degrees near the base of the LED so that each short leg is touching the short leg of the LED to its left. Note that when bending the short leg, bend it a couple of millimetres higher than the long leg so that it can pass over the long leg of the LED to the left without touching it (see above left diagram).

Make sure these legs to not touch the longer legs of each LED and then apply a small amount of solder to hold them in place.

 

Step Two:

HCKITS0041_Build_Guide_Step14_600_450

Repeat step 1 for the other 3 rows. The result should look like the image above with each short leg soldered to the short leg of the LED directly to its left and no short legs should touch a long leg.

 

Step Three:

HCKITS0041_Build_Guide_Step15_600_450

You have now completed one 4 x 4 grid of LED’s. Carefully remove this grid from your template and set it aside. Now repeat steps 1 to 3 to create 3 more identical grids.

Step Four:

HCKITS0041_Build_Guide_Step16_600_450 HCKITS0041_Build_Guide_Step17_600_450

Your cube grids are now constructed. All the LEDs of each grid should be pointing in the same direction. Now insert each grid into the controller board. Please make sure you disconnect the controller board from your computer before proceeding. Be careful when inserting the legs of the LED’s into the sockets. They are a snug fit but don’t apply too much force otherwise you may bend the leg or break the socket. You will find it easier to insert the legs using a pair of long nose pliers.

 

Step Five:

HCKITS0041_Build_Guide_Step18_600_450

Solder the remaining unconnected short legs of each of your 4×4 grids to the short legs of the grid directly to the right. Start with the top row of legs and work your way down. Before soldering make sure each 4×4 grid is evenly spaced so that the entire cube is square.

HCKITS0041_Build_Guide_Step19_600_450

Repeat for each layer.

Step Six:

HCKITS0041_Build_Guide_Step20_600_450

The final step is to connect the short legs of each horizontal 4×4 grid to the 4 additional row driver pins on the edge of the controller board. Reference the red lines in the above image for the order. Each of the 4 controller pins should be connected to one of the horizontal rows with a piece of wire. If the wire you are using isn’t insulated then you will need to make sure that it is slightly bowed out so that it doesn’t touch any of the LEDs it runs past.

HCKITS0041_Build_Guide_Step21_600_450

At this stage the cube is complete! If you built one, well done! If you are thinking about building one, you now know how easy it is. Pop on over to Hobby Components and order your kit to get started. The order codes are HCKITS0041, HCKITS0042, HCKITS0043 and HCKITS0044.

 

Powering your cube with the supplied serial USB cable:

Supplied with the kit is a serial USB cable. To apply power to your cube connect the cable as shown in the above diagram.

 

The contents of this guide are copyright Hobby Components Ltd and may not be copied, reproduced, or reused elsewhere without permission.

 

57 Comments

Add a Comment

Your email address will not be published.