Introduction: Arduino – LED Cube 3x3x3
In this tutorial I’ll show how you can create your own LED Cube 3x3x3. I’m sure you already saw some similar projects to this one but you never took action and made your own. Now it’s time to make your own!
By the way you can find more project here: http://randomnerdtutorials.com/
Watch this Demo Video of my project:
By the way you can find more project here: http://randomnerdtutorials.com/
Watch this Demo Video of my project:
Step 1: All Parts Required
- 1x Arduino Board
- 27x LED’s
- 1x Stripboard
- 3x 22k ohm Resistors
- 9x 220 ohm Resistors
- 3x NPN Transistors (for example: 2N2222, BC547, 2N3904)
- Wires
Step 2: Video Tutorial + Schematics
Step 3: Upload Source Code
Download the library here.
Be sure to download the library and unzip it to libraries. If everything is correct you should find an example in the Arduino IDE software under File > Examples > LedCube > ledcube.
Upload that ledcube example!
Step 4: Final Product
That's the final product!
Did you enjoyed this project?
Make sure you share this project and leave a comment below... It helps me a lot!
Did you enjoyed this project?
Make sure you share this project and leave a comment below... It helps me a lot!
17 People Made This Project!
- Bigbadhodad1 made it!
- AnkushTheCuber made it!
- MalindaW3 made it!
- fecofabian made it!
- Lance_Tronic made it!
- ssahoo1 made it!
- AyberkE made it!
- Sud007i made it!
- Lance_Tronic made it!
See 8 More
64 Comments
1 year ago
This code does not work, even when looking through comments and suggestions made, it still does not work. I have wasted an Arduino board, LED's and other parts which is very frustrating. I am no expert in coding and just a beginner so any help on this would be great.I have found other codes but those circuits dont use any transistors so i'm not sure if they will work.
6 years ago
hi
while compiling i am getting error as
"
ledcube.pde: In function 'void loop()':
ledcube:49: error: taking address of temporary array
ledcube:50: error: taking address of temporary array
ledcube:51: error: taking address of temporary array
ledcube:52: error: taking address of temporary array
ledcube:53: error: taking address of temporary array
ledcube:54: error: taking address of temporary array
ledcube:55: error: taking address of temporary array
ledcube:56: error: taking address of temporary array
taking address of temporary array
"
how to resolve
i am using latest arduino on windows
Reply 2 years ago
Solved it by changing to that code :
static const byte frame1[6] = {0,6, 1,6, 2,6};
static const byte frame2[6] = {0,7, 1,7, 2,7};
static const byte frame3[6] = {0,8, 1,8, 2,8};
static const byte frame4[6] = {0,5, 1,5, 2,5};
static const byte frame5[6] = {0,2, 1,2, 2,2};
static const byte frame6[6] = {0,1, 1,1, 2,1};
static const byte frame7[6] = {0,0, 1,0, 2,0};
static const byte frame8[6] = {0,3, 1,3, 2,3};
cubeFrame* f[] = {
cube.createFrame(frame1, 6, 80),
cube.createFrame(frame2, 6, 70),
cube.createFrame(frame3, 6, 60),
cube.createFrame(frame4, 6, 50),
cube.createFrame(frame5, 6, 40),
cube.createFrame(frame6, 6, 30),
cube.createFrame(frame7, 6, 20),
cube.createFrame(frame8, 6, 10)
};
Reply 2 years ago
it works !!! tnx
Reply 4 years ago
Hi Harshit, I am getting the same error. Could you tell me how you fixed it?
Reply 6 years ago
I am also facing same type of problem. Kindly send the accurate/ error free code :(
Reply 6 years ago
Do you found any solutions?
Reply 6 years ago
maybe you can check local variables. its seems to be variable problem.
Reply 6 years ago
Yah. I found the solution.
Reply 6 years ago
HI
Its very simple by the way.
You just have to get potential difference to blink any of the 27 led.
Put high on the longer terminal and low on the shorter one while coding. Its very easy if you no the basis of embedded C.
Reply 6 years ago
Hi, I have same problem... Can you send me the fixed code????
4 years ago
How to code C++ Ardunio (Led Cube 3x3x3)
Reply 2 years ago
Sir I'm studying in jiet college jodhpur we have a science fare in which iam making an led cube I need coding for it please send me coding
5 years ago
why Error compiling for board Arduino
Reply 4 years ago
Uploading using IDE 1.0.6 worked for me! Thanks!
4 years ago
sir can you give me truth table of this
5 years ago
It was smart to use loops to configure the pin layout but I'm having trouble understanding the pin configuration and having trouble arranging different sequence of my choice. That's it.
simply following the stuff would show me what to do and not teach me how it works, right?
5 years ago
hi
what is the this circuit voltage ?
5 years ago
how to output names in this 3x3x3 led cube somebody pls help !!!!!!!!
5 years ago
how could i resolve this?
someone help me out.
ledcube.pde: In function 'void loop()':
ledcube:49: error: taking address of temporary array
ledcube:50: error: taking address of temporary array
ledcube:51: error: taking address of temporary array
ledcube:52: error: taking address of temporary array
ledcube:53: error: taking address of temporary array
ledcube:54: error: taking address of temporary array
ledcube:55: error: taking address of temporary array
ledcube:56: error: taking address of temporary array
taking address of temporary array