Introduction: 4X4X4 LED Cube W/ Arduino Uno


As someone who is very new to digital electronics this LED cube was fun to make, challenging and a great lesson in soldering. If you have some patience (64 LED's to solder!) and steady hands, this project will be well worth it in the end!

Step 1: Materials & Tools

Materials:
-64 LED's ( I used 3mm ones on my cube)
-16 resistors ( I used 330ohm)
-solid uninsulated wire to connect the rows of LED's together
-Arduino Uno 
-Prototype Shield V.5
-2 six pin headers and 2 eight pin headers
-20 pieces of stranded wire (Using multicolored ones will help keep your wiring organized)
-1 stripboard or prototyping board with copper leads (The ones without leads are fine, the copper leads just save you a step)
-A case to hold your cube( I used this one for mine http://www.amazon.com/gp/product/B007POB8PK/ref=oh_details_o01_s00_i01?ie=UTF8&psc=1)
-Optional: A plastic covering to house your cube( I ordered 5 plastic squares with a two way mirror film from TAP Plastics to make my cover. The mirror element gives the illusion of infinity lights)


Tools:
-soldering iron
-solder
-drill with a 3mm bit( or any other size depending on your LED)
-ruler
-masking tape
-pliers 

Step 2: Creating a LED Template

In order to create a LED template you will need to measure out where to place all your LED's.

First, cover the top of your surface with masking tape in order to keep it free from scratches and solder that may drop on it later.

After make 16 marks to represent where each LED will go. Then make an extra 4 marks at one end of the grid. These extra marks will be where we connect the common cathodes of each layer to the Arduino. (Picture 1) A good thing to remember when marking your spots is that the cathode(shorter and negatively charged leg) of each LED will need to overlap with the other. That means the spacing between each LED needs to account for that. (Picture 2) For example, if each cathode leg measures to about 23mm when bent I would subtract about 1mm from that and space each of my holes out by 22mm so I would have a 1mm overlap. 

After marking where to place your LED's grab your drill and fit it with the same size bit as your LED bulb size. I used a 3mm drill bit on mine since my LED's were 3mm. After drilling your 16 holes with that bit switch to a smaller bit for the last 4 holes at the end of the grid. For mine I used a 1.5mm drill bit. 

Step 3: LED Layers

Now to solder all your LED's together!

First, make sure all your LED's are working! Yes, it might take a while to test out 64 LED's but it is definitely worth it. You don't want to find out you have a dead LED in the middle of this project.

Step 1)After testing out your LED's you will need to bend each cathode leg to a 90 degree angle. I bent mine with pliers right below the little nub each LED leg has. This kept each bend at a consistent length. (Picture 1)

Step 2) Next, place 4 LED's into the template you created in the previous step. If all went according to plan your LED's should overlap by about 1mm. (Picture 2) Solder all the LED's together at the place they overlap. Repeat this step 3 more times and fill up your template.
When you're done you should have 4 rows of 4 LED's soldered together. (Picture 3)

Step 3) Now you will need to cut two pieces of solid uninsulated wire and straighten them. The wire should fit the length of the cube. These pieces of  wire will connect the 4 rows of LED's together to form a layer. Place one wire after the first row of LED's and one wire right before the last row of LED's. (Picture 4) Feel free to cut off the remaining legs of the 4 cathodes.

Step 4) Remove the layer and set aside.

Repeat steps 2-4 to create 3 more layers of LED's!

Step 4: Soldering the LED Layers Together

Now you're ready to solder all the LED layers together!

Put one of your LED layers back into your template ( Picture 1). Now bend the end of each anode leg slightly so it will be easier to solder the layer to the one on top of it. (Picture 2)

Place a second layer of LED's on top of the first one. You might want to use something to support the second layer so that it stays perfectly aligned and spaced between the first one. I eyeballed it and used extra hands to hold the second layer above the other one. Now solder the bent ends of each anode leg to the anode leg above it.(Picture 3) Repeat this step for your last two layers. On the last layer don't bend the end of each anode leg since you won't be soldering a layer above it.

Step 5: Circuit

Now you should have finished cube!

Pull the remaining anode wires at the bottom of your cube through the top of the case. 

Before you start wiring up the circuit cut 4 pieces of solid uninsulated wire. Make sure that your pieces of wire are long enough to poke through the top of the case since you will need to solder them onto a stripboard later.(Picture 1) You will then need to bend the end of each of the wires at a 90 degree angle. Thread the wire through your 1.5mm holes and solder them to each common cathode layer. (Picture 2)

To start making your circuit grab your stripboard and resistors. I cut my board into strips so it would be easier to poke 4 of the 16 anode wires into it later instead of poking all of the 16 anode wires into it at the same time. If you are using the stripboard with copper leads make sure you follow the leads and don't accidentally cut it in the wrong direction.(For reference see Picture 4 and 5) If the leads are not connected the circuit won't work!

After you have 4 strips solder 4 resistors onto each of them. (Picture 3 and 4) I placed each strip onto my cube first to mark where each leg poked through so my resistors would fit perfectly with each anode leg. The cathode legs will not need resistors! Repeat this step for each strip.

You should now have 4 strips of stripboard and 4 resistors on each board. Cut off the remaining legs of each resistor.

Next, place a stripboard back onto the cube and solder the 4 anode legs to it. (Picture 6 and 7 )Repeat this step for each board! For the board that has the common cathode legs that also poke through it just solder those legs to any blank column on your stripboard. They don't need to be connected in the anode legs and resistor columns. (Picture 8) 

Your board should look this..(Picture 9) and then cut off all the remaining legs so it looks like this ( Picture 10).

Now get your 20 jumper wires and solder the wires on top of each soldered anode leg and cathode leg. (Picture 11) 

Step 6: Prototyping Shield

Since it's difficult to plug stranded wire into the Arduino board I used a Proto Shield to make the process easier.

You will need to solder the header pins onto the shield so that it matches the header pins on the Arduino. 

After soldering the header pins you will now need to place each wire in the correct position so the circuit can work. If you look at your cube from the top follow the order of the pin labels on my picture and solder each wire to the correct port on the proto shield.(Picture 1) Then solder the cathode wires to the correct ports. (Picture 2) Don't make my mistake of soldering the cathode wires to ground, they go into the analog input pins. I soldered my wires next to each correct header pin to create a stronger connection instead of plugging them directly into the pin.(Picture 3)

Alright now you're all done with the wiring! Go ahead and plug your proto shield into your Arduino!


Step 7: The Code!

If you don't already have the Arduino software installed on your computer you will need to do that before moving on. 

If you do have the software download the code for the cube here. https://dl.dropboxusercontent.com/u/21892130/121118%20-%20LED%20Cube/LED_cube_4x4x4/LED_cube_4x4x4.ino I used the code from Matt who posted a tech made easy tutorial on this cube. If you just want to fire up your cube with his code upload it to your Arduino and you're good to go! I powered my cube with a 9 volt battery but you can plug it into your computer as well! I also coded a few animations on my own cube and I'll explain how to here if you're interested in doing your own too.

So each block of LED's is represented by binary numbers. A row of LED's will look like this in the code B0000. To light up an LED simply replace a 0 with a 1. Like B1000 to light up one LED or B1010 light up two LED's,etc. In each line of code you will have 16 blocks of binary numbers and the single number following the 16 blocks will represent the duration each line is played. (Picture 1)

In my picture you can see I divided 4 blocks of binary numbers into 4 different sections.(Picture 2) Each section represents a different row of leds. 

It helps to delete all the code but one line and then turn all the binary values to 0 except for one. (ex. B0001,B0000,B0000,B0000 B0000,B0000,B0000,B0000  B0000,B0000,B0000,B0000  B0000,B0000,B0000,B0000)  Only one LED should light up. It will take some time to play around with code and really see how it works. 

Alright I hope this tutorial was helpful for you guys! 

(Some code I added! )
B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,6,
B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,6,
B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,6,
B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,6,
B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,6,
B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,6,
B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,6,


B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,6,
B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,6,
B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,6,
B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,6,
B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,6,
B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,B0000,B1111,B0000,B0000,6,
B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B0000,B1111,B0000,B0000,B0000,6,


/*run around*/
B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000,  B0001,B0000,B0000,B0000,6,
B0000,B0001,B0000,B0000, B0000,B0001,B0000,B0000, B0000,B0001,B0000,B0000,  B0000,B0001,B0000,B0000,6,
B0000,B0000,B0001,B0000, B0000,B0000,B0001,B0000, B0000,B0000,B0001,B0000,  B0000,B0000,B0001,B0000,6,
B0000,B0000,B0000,B0001, B0000,B0000,B0000,B0001, B0000,B0000,B0000,B0001,  B0000,B0000,B0000,B0001,6,
B0000,B0000,B0000,B0010, B0000,B0000,B0000,B0010, B0000,B0000,B0000,B0010,  B0000,B0000,B0000,B0010,6,
B0000,B0000,B0000,B0100, B0000,B0000,B0000,B0100, B0000,B0000,B0000,B0100,  B0000,B0000,B0000,B0100,6,
B0000,B0000,B0000,B1000, B0000,B0000,B0000,B1000, B0000,B0000,B0000,B1000,  B0000,B0000,B0000,B1000,6,
B0000,B0000,B1000,B0000, B0000,B0000,B1000,B0000, B0000,B0000,B1000,B0000,  B0000,B0000,B1000,B0000,6,
B0000,B1000,B0000,B0000, B0000,B1000,B0000,B0000, B0000,B1000,B0000,B0000,  B0000,B1000,B0000,B0000,6,
B1000,B0000,B0000,B0000, B1000,B0000,B0000,B0000, B1000,B0000,B0000,B0000,  B1000,B0000,B0000,B0000,6,
B0100,B0000,B0000,B0000, B0100,B0000,B0000,B0000, B0100,B0000,B0000,B0000,  B0100,B0000,B0000,B0000,6,
B0010,B0000,B0000,B0000, B0010,B0000,B0000,B0000, B0010,B0000,B0000,B0000,  B0010,B0000,B0000,B0000,6,
B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000,  B0001,B0000,B0000,B0000,6,
B0000,B0001,B0000,B0000, B0000,B0001,B0000,B0000, B0000,B0001,B0000,B0000,  B0000,B0001,B0000,B0000,6,
B0000,B0000,B0001,B0000, B0000,B0000,B0001,B0000, B0000,B0000,B0001,B0000,  B0000,B0000,B0001,B0000,6,
B0000,B0000,B0000,B0001, B0000,B0000,B0000,B0001, B0000,B0000,B0000,B0001,  B0000,B0000,B0000,B0001,6,
B0000,B0000,B0000,B0010, B0000,B0000,B0000,B0010, B0000,B0000,B0000,B0010,  B0000,B0000,B0000,B0010,6,
B0000,B0000,B0000,B0100, B0000,B0000,B0000,B0100, B0000,B0000,B0000,B0100,  B0000,B0000,B0000,B0100,6,
B0000,B0000,B0000,B1000, B0000,B0000,B0000,B1000, B0000,B0000,B0000,B1000,  B0000,B0000,B0000,B1000,6,
B0000,B0000,B1000,B0000, B0000,B0000,B1000,B0000, B0000,B0000,B1000,B0000,  B0000,B0000,B1000,B0000,6,
B0000,B1000,B0000,B0000, B0000,B1000,B0000,B0000, B0000,B1000,B0000,B0000,  B0000,B1000,B0000,B0000,6,
B1000,B0000,B0000,B0000, B1000,B0000,B0000,B0000, B1000,B0000,B0000,B0000,  B1000,B0000,B0000,B0000,6,
B0100,B0000,B0000,B0000, B0100,B0000,B0000,B0000, B0100,B0000,B0000,B0000,  B0100,B0000,B0000,B0000,6,
B0010,B0000,B0000,B0000, B0010,B0000,B0000,B0000, B0010,B0000,B0000,B0000,  B0010,B0000,B0000,B0000,6,

/*wrapper*/
B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000, B0001,B0000,B0000,B0000,  B0001,B0000,B0000,B0000,6,
B0001,B0001,B0000,B0000, B0001,B0001,B0000,B0000, B0001,B0001,B0000,B0000,  B0001,B0001,B0000,B0000,6,
B0001,B0001,B0001,B0000, B0001,B0001,B0001,B0000, B0001,B0001,B0001,B0000,  B0001,B0001,B0001,B0000,6,
B0001,B0001,B0001,B0001, B0001,B0001,B0001,B0001, B0001,B0001,B0001,B0001,  B0001,B0001,B0001,B0001,6,
B0001,B0001,B0001,B0011, B0001,B0001,B0001,B0011, B0001,B0001,B0001,B0011,  B0001,B0001,B0001,B0011,6,
B0001,B0001,B0001,B0111, B0001,B0001,B0001,B0111, B0001,B0001,B0001,B0111,  B0001,B0001,B0001,B0111,6,
B0001,B0001,B0001,B1111, B0001,B0001,B0001,B1111, B0001,B0001,B0001,B1111,  B0001,B0001,B0001,B1111,6,

B0001,B0001,B1001,B1111, B0001,B0001,B1001,B1111, B0001,B0001,B1001,B1111,  B0001,B0001,B1001,B1111,6,
B0001,B1001,B1001,B1111, B0001,B1001,B1001,B1111, B0001,B1001,B1001,B1111,  B0001,B1001,B1001,B1111,6,
B1001,B1001,B1001,B1111, B1001,B1001,B1001,B1111, B1001,B1001,B1001,B1111,  B1001,B1001,B1001,B1111,6,
B1101,B1001,B1001,B1111, B1101,B1001,B1001,B1111, B1101,B1001,B1001,B1111,  B1101,B1001,B1001,B1111,6,
B1111,B1001,B1001,B1111, B1111,B1001,B1001,B1111, B1111,B1001,B1001,B1111,  B1111,B1001,B1001,B1111,6, 

Step 8: Schematic

Here's a schematic for the cube!

This schematic only shows the wiring for pins A0,A1, D3, D7, D11 and the 4 cathode wires A2,A3,A4,A5. The remaining blank resistors just follow the same pattern as the LED's I've shown. If I were to map out the whole cube it wouldn't fit on one page. 

Comments

author
Tinstructor made it!(author)2016-06-30

Pretty straight forward. However, I altered a few steps and added some for convenience as well as proper operation. First of all, I suggest you use 270 ohm transistors instead of 330 ohm which will make the LEDs light up a bit brighter. Furthermore, the wires need to be soldered to the opposite leads of each resistor instead of the lead to which the LED columns are to be soldered. In your drawings this was done incorrectly. However in the wiring scheme this was done correctly. Failing to do this properly may indeed still have the effect of lighting up the LEDs but this isn't guarenteed and may even cause the LEDs to burn out entirely as they require an interposed resistor in order to cope with the load caused by the electrical current.

20160630_135756.jpg
author
SreekumarM made it!(author)2016-12-08

true.

author
Tinstructor made it!(author)2016-06-30

Obviously I meant to say resistors instead of transistors.

author
Uwhilpe made it!(author)2016-12-06

Great idea!
Pretty good instructions!
Did everything like described beside the first layer.
First layer is placed within the box.

temp_1960403780.jpgtemp_1575629396.jpgtemp_-768035206.jpg
author
Tinstructor made it!(author)2016-06-30

Pretty straight forward. However, I altered a few steps and added some for convenience as well as proper operation. First of all, I suggest you use 270 ohm transistors instead of 330 ohm which will make the LEDs light up a bit brighter. Furthermore, the wires need to be soldered to the opposite leads of each resistor instead of the lead to which the LED columns are to be soldered. In your drawings this was done incorrectly. However in the wiring scheme this was done correctly. Failing to do this properly may indeed still have the effect of lighting up the LEDs but this isn't guarenteed and may even cause the LEDs to burn out entirely as they require an interposed resistor in order to cope with the load caused by the electrical current.

20160630_135756.jpg
author
DhwaniM1 made it!(author)2016-03-20

can i have its circuit diagram please..!

author
pradyum+mohta made it!(author)2016-02-02

hey can any 1 devlop me the code with b00000 for arduino mega for a 5*5*5 led cube

mega has got 60+ pins so i can make a 5*5*5 without any 3to8 decoders or shift registers... so please help in this.... mail : pradyum.cool.rocks.cool@gmail.com

if u help me with the code i will surely give u something

author
pradyum+mohta made it!(author)2016-02-02

hey can any 1 devlop me the code with b00000 for arduino mega for a 5*5*5 led cube

mega has got 60+ pins so i can make a 5*5*5 without any 3to8 decoders or shift registers... so please help in this.... mail : pradyum.cool.rocks.cool@gmail.com

if u help me with the code i will surely give u something

author
LorisG1 made it!(author)2016-01-08

Thanks for tutorial! I made my cube in about 6 hours today. Is not the best cube ever made, but it work really good.

IMG_20160108_185546.jpgIMG_20160108_181947.jpg
author
CamdenS made it!(author)2015-05-09

When I copy the code from the link in to the arduino code uploder it says Arduino: 1.6.3 (Windows 7), Board: "Arduino Uno"

sketch_may09a.ino:10:1: error: 'prog_uchar' does not name a type

sketch_may09a.ino: In function 'void loop()':

sketch_may09a.ino:447:23: error: 'PatternTable' was not declared in this scope

Error compiling.

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

Please help I have already built the cube!

author
blue_jp made it!(author)2015-08-27

Just to update everyone else. (Also mentioned in the comments below)

For newer versions of the Arduino application.

Please change (on line 10):

prog_uchar PROGMEM PatternTable[] = {

to:

const char PROGMEM PatternTable[] = {

author
ryansprojects made it!(author)2015-07-05

Brilliant mate! Best guide I've seen for a 4x4x4. Made it today. Here's a vid: https://youtu.be/msLtWIka88U

Are you also the author of this since it is exactly the same, down to the dropbox code link: http://www.techmadeeasy.co.uk/2013/01/21/make-your-own-4x4x4-led-cube-with-an-arduino

author
izzleskizzle made it!(author)2014-11-15

Doesn't soldering the jumper wires directly on top of the anode leg defeat the purpose of the resistor? Why not solder the wire to the resistor head so the current flows through the resistor and up into the anode?

author
dvberger made it!(author)2015-05-05

I also don't understand this. Isn't the resistor just hanging there with a single connection not being the path of least resistance? I would understand it if the wire to the arduino came off the other side of the resistor.

author
jrathnayake made it!(author)2015-03-29

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

sketch_mar29a.ino:10:1: error: 'prog_uchar' does not name a type

sketch_mar29a.ino: In function 'void loop()':

sketch_mar29a.ino:447:23: error: 'PatternTable' was not declared in this scope

Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

author
jrathnayake made it!(author)2015-03-29

code is not wrking

author
parmarravi made it!(author)2014-06-19

i made an 4*4*4 led cube with ,16 cathodes and 4 anodes but now the issue is only column works perfect and when ,i light an one row ,it also lights up other rows too...could u tell me how to fix this issue.i have not used any transistors in a cube only resistors and leds ..

author
Cal875 made it!(author)2015-03-23

you probably have a led contact that's in reverse somewhere

author
ted.lacey.71 made it!(author)2015-03-03

Can someone help me. I'm not sure whether to use slow or fast LED's.

author
SuperTech-IT made it!(author)2015-03-20

I've never heard of a slow LED.

author
NILS+ALBERTSH made it!(author)2015-03-12

Arduino: 1.6.1 (Windows 7), Board: "Arduino Uno"

kuba_kods_3.ino:10:1: error: 'prog_uchar' does not name a type

kuba_kods_3.ino: In function 'void loop()':

kuba_kods_3.ino:95:23: error: 'PatternTable' was not declared in this scope

Error compiling.

This report would have more information with

"Show verbose output during compilation"

enabled in File > Preferences.

vat i need to doo?

author
MariusG1 made it!(author)2015-03-16

Change "prog_uchar" to "const char". This is a new way to write the code in the new arduino update.

author
hainam8x made it!(author)2015-02-18

Great intruction, thank you so much

DSC_0387.jpg
author
hainam8x made it!(author)2015-02-18

Great intruction, thank you so much

DSC_0387.jpg
author
hainam8x made it!(author)2015-02-18

Great intruction, thank you so much

DSC_0387.jpg
author
hsafwan made it!(author)2015-01-17

thanks :)

just add the following link for the understanding of how different patterns can be generated on software.

https://www.instructables.com/id/3X3-LED-Cube-Programming-tips-Arduino-based/

10358885_709939249126517_3798749811822093493_n.jpg10923551_709939265793182_1635711629511362197_n.jpg1503284_709951465791962_3565148277678080805_n.jpg
author
jueljp made it!(author)2014-12-18

nice project,but I need help with the coding, could someone help me ?

author
Kitchi11 made it!(author)2014-11-10

Works great and the instructions were easy to follow.

author
mohamedslama2012 made it!(author)2014-10-15

what's the code

author
nicopinga made it!(author)2014-10-11

I have a problem when i check the sketch:

"10:33: error: variable ‘PatternTable’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))"

can you help me?

author
bhiew made it!(author)2014-09-20

I used veroboard as shield board. My first LED cube project. Excellent Instructables. Thanks!

temp_1471191042.jpg
author
spotrevoc made it!(author)2014-08-26

I didnt use any resistors for my cube. Seems to light up no brighter than a single led with a resistor off one pinIn going to ground. In fact, resistors made everything incredibly dim. Should I be particularly worried?

author
skelsey made it!(author)2014-08-26

Great instructable! I made one over the weekend. Thanks for posting this!

author
jagadish661 made it!(author)2014-07-10

Superb. A high five!

IMG_4326[1].JPG
author
larsje390 made it!(author)2014-06-29

Hey man, nice instructable!! On my arduino I can't find the ports A13 and A12. I think that they are labeled like this on the shield you put on top of this, but not on the arduino itself. Any idea which ports they would be on the arduino uno itself?

author
laurenk made it!(author)2014-06-29

I think it might be digital ports 12 and 13. I may have mislabeled it. Let me know if that works!

author
V%C3%A4terchen+Frost made it!(author)2014-02-16

Sorry, i have a question, why do a lot of similar project use NPN Transistors and here it isn't necessary?

author
RyanKolk made it!(author)2014-03-04

I believe it is because this one doesn't us an external power source, it's all powered by the arduino

author
RyanKolk made it!(author)2014-02-23

hi Lauren,

Great Project for long weekends and holidays! I have a question, almost all of the LED's work except 3 of them, they work when i apply power to them directly, but not when attached to the atmega328P(I built a standalone arduino for this.) do you by chance have a solution? the LED's are all in different places.

author
EoinM17 made it!(author)2014-02-18

Hi Lauren,

Great instuctable, had been thinking about making one of these for a while now but your instructable made me decide to do it. This was my first arduino project, and I just finished making it, but for some reason it is malfunctioning. The LED's are extremely dim, even in a completely dark room are barely visible. If there is any light in the room at all they are not visible. Not even a phone or camera can pick up the light... it's not that the led's are faulty because I tested them beforehand and they worked fine. Any idea's as to what caused this? Could it be that the resistors (which are 330K) have too much resistance for my leds?

Any help would be much appreciated, and again, this was a fantastic instructable.

author
EoinM17 made it!(author)2014-02-19

Just realised my mistake, I accidentally used 330k resistors instead of 330 ohm...

author
Tony+Gouveia made it!(author)2014-01-17

Hi,

Thanks. I've been searching for a good LED project and yours fits the bill perfectly.

Again, thanks

author
emikayee made it!(author)2013-12-14

This is awesome, I made this same cube from "techmadeeasy" because his instructions were better than any I've seen on instructables.
I was going to do an "ible" just so this site would have it but I never did get around to that, so I'm glad you did!
I'm gonna have to try out your added code since our cubes are compatible!
Nice work!

author
laurenk made it!(author)2013-12-16

Thank you! Yeah, his instructions were great! I only added a few things his tutorial didn't have but all the credit goes to him.

author
mattbowes191 made it!(author)2014-01-09

I'm blushing.
The original guide that I used on Instructables was great but it was missing a few steps. That's why I wrote the one on Tech Made Easy.

Love the drawings on this guide though, miles better than anything I could put together.

author
MoonDocker made it!(author)2013-12-30

I find it easier to lay the cube on it's side while soldering the layers together. I solder the corners first and align it then solder the rest.

author
R0y4L made it!(author)2013-12-26

Just wanted to query the image 8 in step 5. It shows one of the cathodes on the same bus as a resistor and other 3 cathodes are not linked to a resistor bus. Is this an error in the image or is it meant to be this way? I have completed all of the steps and have a working cube but a selection of LEDs seem to be constantly ON and column A1 does not lit up at all.

author
laurenk made it!(author)2013-12-26

Sorry that's an error in my image I'll fix. The cathode shouldn't be in the same column as the resistor since the cathodes don't need resistors.

As for your LED's that are constantly on I'm not exactly sure why that is. The only reason I can think of is that there is something in the code that is turning them on or a wire in step 6 might be in the wrong port.

author
R0y4L made it!(author)2013-12-26



R0y4L says: 1 second agoReply

Just wanted to query the image 8 in step 5. It shows one of the cathodes on the same bus as a resistor and other 3 cathodes are not linked to a resistor bus. Is this an error in the image or is it meant to be this way? I have completed all of the steps and have a working cube but a selection of LEDs seem to be constantly ON and column 0 does not lit up at all.

author
Kiteman made it!(author)2013-12-14

Could we see it running?

About This Instructable

141,968views

557favorites

License:

More by laurenk:4X4X4 LED Cube w/ Arduino Uno
Add instructable to: