Arduino – LED Cube 3x3x3

119,986

141

63

Published

Introduction: Arduino – LED Cube 3x3x3

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

  • Woodworking Contest

    Woodworking Contest
  • Planter Challenge

    Planter Challenge
  • Oil Contest

    Oil Contest
user

We have a be nice policy.
Please be positive and constructive.

Tips

Questions

63 Comments

Uploading using IDE 1.0.6 worked for me! Thanks!

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

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

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

Do you found any solutions?

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

Yah. I found the solution.

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.

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

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

sir can you give me truth table of this

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?

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

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

user

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

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.

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

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