Create An Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks - Arduino Hacks
Create An Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks - Arduino Hacks
Search...
RECENT POSTS
RECENT COMMENTS
ARCHIVES
CREATE AN ARDUINO 3X3 LED CUBE IN 30 MINUTES
June 2014
FEBRUARY 2, 2014 ARDUINO PROJECTS / CODE / GUIDES / HACKS TIMOTHY LEAVE A COMMENT
April 2014
March 2014
February 2014
Arduino Arduino Tutorial
January 2014
Jumper wires
9 220Ω resistors
3 22K resistors
arduino board
STEP 1
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 1/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
Make an LED mold. You can do this by making holes on a cardboard like the one used to make cartons.
Poke 9 holes in it in the shape of a square.
Search...
HOME TUTORIALS CODE SNIPETS PROJECTS ABOUT LOGIN
STEP 2
Bend the negative terminal (cathode) of all the LEDs that you are going to use and arrange them on the
mold as shown below. The bent cathode of one LED should touch the bent cathode of the other LED.
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 2/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
STEP 3
Solder the bent cathodes together so that they form one layer of 9 LEDs as shown below. Each layer
represents the cathode terminal. This will leave the LED anodes pointing upwards. (Open the images to
see the writings)
Once the three layers are done, solder them together. This is accomplished by soldering the anodes of
one layer to the corresponding anodes of the other layer as shown below. To effectively solder the
positive terminals together, use a crocodile clip to hold the LED layers in place. Alternatively, use a
cardboard piece, which has a width that is equal to the height that separates the LED layers, to hold the
upper layer as you solder. This is demonstrate in the pictures.
Cardboard piece
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 3/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
STEP 4
Arrange the other components on the perforated circuit board and solder them as shown in the photos
below.
components
PCB
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 4/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 5/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
STEP 5
a. Solder jumper wires, from each of the LED cube anodes that are soldered on the PCB, to the 220 ohm
resistors. Each pin should be connected to one resistor.
b. Solder jumper wires from the resistors. These jumper wires will be connected to the arduino board.
c. Solder a jumper wire onto each layer. Do this, by soldering 1 wire onto each layer.
layers
d. Wire the transistors. The emitter pins should be connected to the ground of the arduino, the base of
the transistors should be connected to digital pins 11,12 and 13 of the arduino and the collector pins
should be connected to the layers of the LED cube.
To do this solder the 3 wires that come from the layers to the collector terminals of the 2N3904
transistors. Each wire should go to one transistor as shown in numbers 1,2 and 3
Connect the emitter terminals of the three transistors, by soldering a wire from the emitter pin of one
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 6/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
transistor to the emitter pin of the other. Then solder a jumper wire from the last emitter pin that will be
connected to the ground pin of the arduino. The connections are labelled 1,2 and 3.
Solder or attach three 22k ohm resistors on three jumper wires. Solder the jumper wires on the base
terminals of the transistors as shown in 1,2 and 3. These jumper wires will be connected on to the arduino
digital pins 11,12 and 13.
STEP 6
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 7/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
Once the arduino 3X3 LED cube setup is complete, upload the following short code to check if it works.
1 void setup()
2 {
3 pinMode(2,OUTPUT);
4 pinMode(3,OUTPUT);
5 pinMode(4,OUTPUT);
6 pinMode(5,OUTPUT);
7 pinMode(6,OUTPUT);
8 pinMode(7,OUTPUT);
9 pinMode(8,OUTPUT);
10 pinMode(9,OUTPUT);
11 pinMode(10,OUTPUT);
12 pinMode(11,OUTPUT);
13 pinMode(12,OUTPUT);
14 pinMode(13,OUTPUT);
15 }
16
17 void loop()
18 { //set pin 11-13 high so as to light all the layers
19 digitalWrite(11,HIGH);
20 digitalWrite(12,HIGH);
21 digitalWrite(13,HIGH);
22
23 digitalWrite(6,HIGH);//set the middle column ON throughout
24
25 //light the other columns on and off in a sequence
26 for(int i=2; i<11;i++)
27 {
28 if (i==6)
29 {
30 }
31 else
32 {
33 digitalWrite(i,HIGH);
34 delay(100);
35 digitalWrite(i,LOW);
36 }
37 }
38 }
Here is a short clip of how the Arduino 3X3 LED cube should light when the code is uploaded.
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 8/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
TIMOTHY
LEAVE A REPLY
Name *
Email *
Website
Submit Comment
MORE POSTS
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 9/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 10/11
29/6/2014 Create an Arduino 3X3 LED Cube in 30 Minutes - Arduino Hacks | Arduino Hacks
Apart from creating an adhoc network with your
arduino wifly you can join other networks with…
Arduino Wifi Redback Webserver example Arduino projects 4 pin push button 4 pin push button arduino
Arduino Wifi RedBack-YellowJacket Compatible Code adruino LED arduino arduino blinking LED
Snipets
converting int to char Fade LED arduino
About Login
http://www.arduino-hacks.com/create-arduino-3x3-led-cube-30-minutes/ 11/11