3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Cube and Arduino Lib

Step 3Build the Circuit

Build the Circuit
«
  • 3.jpg
  • 3a.jpg
  • 3b.jpg
  • 3c.jpg
  • 3d.jpg
  • cube-solder-diagram.png
  • cube-solder-diagram-bottom.png
The circuit is pretty simple. Each of the nine columns will connect to a pin on the Arduino through a current limiting resistor. Each of the three levels connects to ground via a NPN transistor when activated by an Arduino pin.

We'll be using 12 output pins total on the Arduino but there are 18 LEDs to power. The trick is that only a single level can be lit at a time. When a level is connected to ground, each of the LEDs on that level can be powered individually through one of the nine other Arduino pins. If we light the levels fast enough it will appear as if all three levels are lit at the same time.

Let's build the circuit.

The first step is to prepare the nine current limiting resistors. I'm using 220 ohms per pin which will draw around 22mA. The value may vary depending on the LEDs that are being used but stay between about 135 and 470 ohms. Each pin is capable of sourcing up to 40mA.

In order to save room we want to solder the resistors in a vertical position. Bend one lead down so that both leads are parallel to each other. Do this for all nine of the resistors.

Once the resistors are ready we'll solder them one by one. To make it easy we're going to solder the resistor leads directly to the other components instead of using a separate wire for each. One end of the resistor will connect to a column and the other will connect to a header. Start with the first row of LEDs which is closest to the resistors and work your way back.

Once each row is finished you can use a small piece of tape to isolate the overlapping leads in order to prevent a short. Refer to the photos and diagram to see what this will look like once it's finished.

Now that the columns are out of the way, the next step is to solder the components which control the levels. The base of a NPN transistor will be activated by an Arduino pin through a current limiting resistor of 22k (or thereabouts). This will connect the corresponding level to ground which will allow current to flow through the LEDs. Refer to the photos and diagram.

The circuit is now complete, time to move on to the software!

« Previous StepDownload PDFView All StepsNext Step »
2 comments
Apr 23, 2012. 8:36 PM4eyes12 says:
Forgive me if I missed something but it would be nice if you posted a picture or a list of what headers from the cube pcb are connected to which pins on the Arduino. Other than that good tutorial, thank you!
Feb 24, 2012. 1:21 PMBrigadaBogeyStalker says:
How do i connect the cube to the PC ? Please tell me...
Feb 25, 2012. 12:42 PMBoskoSLO says:
the most important part u need is a "ARDUINO controller"
u can get them on ebay or in many other shops.

for example this arduino:

http://www.ebay.com/itm/DUEMILANOVE-Arduino-Compatible-/290672951360?pt=LH_DefaultDomain_0&hash=item43ad754040#ht_2120wt_901

u get a cable with it. with the USB cable u can connect the arduino to the PC and install the program into it or program it by your self.

go to arduino.cc and download the software. that here on the last step u can download and example and send it to the arduino.

hope it helps. thats all i know :)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
41
Followers
5
Author:gzip