1. It's built with a low number of off-the-shelf components and hooks up directly to the Arduino.
2. A clear, easy to reproduce circuit diagram is provided with plenty of photos.
3. A unique approach is used for the software which makes programming the cube easier and more expressive.
Parts needed:
- 1 Perfboard
- 3 NPN Transistors (2N2222, 2N3904, BC547, etc.)
- 12 Resistors (~220 ohms and ~22k ohms)
- 13 Headers (male or female)
- 27 LEDs
- Jumper wires
Remove these ads by
Signing UpStep 1Prepare the LEDs
Each set of nine LEDs will share a common connection amongst their cathodes (negative leads). I'll refer to each of these sets as a "level". Each of the nine LEDs on a level is connected to the corresponding LED on the other two levels through their anodes (positive leads). These will be referred to as "columns". If that didn't make sense it will become self explanatory as we build the cube.
To start we'll use a drill to create a jig out of a small piece of scrap wood. The jig will hold the LEDs in place while we solder them. I decided to space the holes around 5/8 of an inch apart (~15 mm) but the exact distance isn't critical. The hole should have a tight fit around the LED since we don't want them to move around while soldering.
Once the jig is done we're going to bend the cathode of each LED in a 90 degree angle. The cathode is identifiable in three ways: 1) It's the shorter leg, 2) It's on the flat side of a round LED, 3) it's connected to the larger piece inside the LED. Make sure you bend the cathode in the same direction for all of the LEDs.
Now we're ready to begin soldering.
| « Previous Step | Download PDFView All Steps | Next Step » |













































When I try to upload the library directly, I get the following message:
avrdude: stk500_getsync(): not in sync: resp=0x00
Thanks!
Thanks!
In the video (which is the LED cube example) you can put only one LED on the third level, without the need to turn off the rest of the column, the second 4 of the video you can see. Is it possible with Arduino?
How I can do?
My question is because when I try to do, for example, just turn on the LED Level 2 column 4 and the LED Level 1 column 5, the LED on the level 1 column of 4 lights also because the level and column are on
byte levelPins[SIZE] = {11,12,13}; byte colPins[COLS] = {2,3,4,5,6,7,8,9,10};ledcube.cpp:1:21: error: LedCube.h: No such file or directory
ledcube.pde:-1: error: 'LedCube' does not name a type
ledcube.cpp: In function 'void loop()':
ledcube.pde:-1: error: 'cube' was not declared in this scope
Plz help me
Another option is to add the library to the main libraries folder (which is in the same folder as the arduino executable). It's just a less flexible location since you'll have to move any libraries that you've added there the next time you upgrade the arduino software.
Either way you should find the example under File > Examples > LedCube > ledcube if you've set everything up correctly.
The performance of the pattern select button interrupt is still a bit flaky and annoying but overall there's improvement.
http://205.196.120.174/bz76g4wwdkpg/rqi7xkzmjc0yzlg/AlsLEDCube4x4x4Bv2.zip
The other link below has been removed, and the Version 2 really is better, so if anybody actually downloaded the first version, please dump it and use V2 instead.
Thanks for a great time waster !!
--Al
Secondly, how can I expand this to be 4x4, 8x8, etc. Is your library scalable - what modifications would need to be made? I hope you answer, I loved this project...
I tried to keep a scalable library in mind while coding but its still mainly geared towards a 3x3x3. If you're comfortable making modifications I can take a closer look to give you an idea of what it might take. You'll still need either more pins or some type of shift register or driver to power more LEDs.
My power source is the arduino at 5v - I'm using the Modern Device board. Should I be contemplating an external power supply?
I am changing gears and will use shift registers... I want to build an 8x8x8 cube... I now have 3x3x3 and 4x4x4 cubes working fine using your library... Which is great.
I think it would be great to have your library handle the 8x8x8.
I just finished making an acrylic template that will allow me to build a more precise cube. The wood base lent itself to errors... I used a laser cutter for the acrylic...