Arduino – LED Cube 3x3x3

122,659

144

63

About: Author, Blogger, Electronics Enthusiast and Entrepreneur. For complete Electronics Projects and Tutorials go to: https://RandomNerdTutorials.com
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:

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
(I included a picture with all the parts)

Step 2: Video Tutorial + Schematics

If you follow my video tutorial I think you'll understand how you can finish each step! If you have any problem please leave a comment below. (I also included my schematics in the pictures)

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!



P.S. If you enjoyed this tutorial perhaps you might like my next ones. (Make sure you visit my website for more projects just like this one)

16 People Made This Project!

Recommendations

  • First Time Author

    First Time Author
  • Toys Contest

    Toys Contest
  • Make it Glow Contest 2018

    Make it Glow Contest 2018

63 Discussions

0
None
MalindaW3ChomnabK

Reply 1 year ago

Uploading using IDE 1.0.6 worked for me! Thanks!

0
None
HarshitA7

3 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

7 replies
0
None
snehazzzHarshitA7

Reply 1 year ago

Hi Harshit, I am getting the same error. Could you tell me how you fixed it?

0
None
mahfuz097HarshitA7

Reply 3 years ago

I am also facing same type of problem. Kindly send the accurate/ error free code :(

0
None
AyberkESzymonD

Reply 2 years ago

maybe you can check local variables. its seems to be variable problem.

0
None
HarshitA7mahfuz097

Reply 2 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.

0
None
jiroleminenHarshitA7

Reply 2 years ago

Hi, I have same problem... Can you send me the fixed code????

0
None
TanapolR

1 year ago

How to code C++ Ardunio (Led Cube 3x3x3)

0
None
Arslanimtiaz

1 year ago

sir can you give me truth table of this

0
None
omkar2309

1 year 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?

0
None
vignesh kailas

2 years ago

how to output names in this 3x3x3 led cube somebody pls help !!!!!!!!

0
None
vaasu070

2 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

0
None
TitD

2 years ago

Hi Rui!
Code error. Help me !!!!!!!!!

0
None
EthanS28

3 years ago

Hello, I'm very new to the entire Arduino & Maker movements so forgive me for my inexperience but I am confused about one portion of the schematic and would greatly appreciate some assistance.

In the instance of the two black jumper wires leading from the layer 2 & 3 transistors they appear to meet at the layer 1 transistor which I understand then leads its own wire to the Arduino board. However in the video tutorial the creator shows that on the PCB board all three of the jumper wires meet at the layer one transistors input, the question is, do I solder all three of these wires and the transistor input together?

Thank you.

0
None
Aman123456789

3 years ago

can anybody give me a code that lights up all the led's in the cube

0
None
Charlie fl

5 years ago

OMG! this is incredible Im new in this app and I wanna do everything! haha I like your project. Good job.