2007.10.01

Blink on, Blink off

01.08.29 - Mark

3x3x3 LED cube powered by an Arduino board This afternoon / evening, after a great weekend of camping, I finished up the Arduino powered 3x3x3 LED Cube I started on last week. I ended up making a run out to the local Radio Shack to get some transistors since I was too lazy to try and re-purpose some from the junk pile, then ended up walking out of the store with a breadboard and a jumper wire kit. Spent more than I would have liked to but I think it will end up being a sanity preserver.

The way I ended up wiring it is each column of LEDs gets a connection to an output pin of the Arduino board, and each level shares a cathode connection. Each level has a transistor being used as a switch that controls if the circuit is closed.

Now I'm into the programming part of the project. I'm setting up simple animations and I'm slowly exploring the control structures. Arduino is C based, so I'm recognizing a lot of similar syntaxes to PHP, but I'm getting used to the forced camelCasing (which is something I hate)

As I get more ambitious with the programming I think I'm going to try and add some random functions to it and see about connecting a microphone to one of the analog inputs and make it more of a light organ. I want to get a few more animation sequences developed first.

Link | 6 Comments |





Feedback for Blink on, Blink off

Stan - 18:37:01 / 2009.09.21 #

hi this is great... can you tell me what parts are needet for it?


Mark - 12:20:46 / 2009.10.10 #

Pretty simple parts. 27 LEDs 3v-5v preferably, and protecting each one with a resistor is wise, it's skipable 3 Transistors (You can use NPN or PNP) Arduino (using 12 I/O ports, it's the brains of the project) And a mess of wire The 9 columns of LEDs are connected directly to the Arduino I/O ports to get power. Each level is wired in series (though all 9 LEDs per level) ending in connection to one transistor (though the collector terminal if I remember correctly) which are all attached to the ground (though the emitter terminal) to close the circuit. The base of each transistor is attached to one of the I/O pins on the Arduino. To run the Cube, the Arduino is programmed to quickly switch the LEDs on and off using two pins to control them. However the code and process is set up depending on how you wire the LEDs and Transistors to the Arduino output.


SAPDOG - 22:11:03 / 2009.11.22 #

HI I MADE MINE TO DAY AND THE FIRST AND SECOND ROWS WORK BUT THE TOP AND THE LEFT SIDE DONT I LOOKED AND LOOKED BUT I CANT FIND THE PROBLEM I AM 14 AND IF YOU CAN TELL IM NOT TO EXPERIENCED IN ELECTRONICS BUT I LOVE DOING STUFF LIKE THIS . SO IF YOU CAN HELP ME DEBUG THIS IT WOULD BE GRATE. PS.. I PUT THE TRANSISTORS AND THEY WORK BUT DO I NEED THEM PPS..CAN YOU SEND ME A DIAGRAM OF THE LAYOUT SO I CAN TRIPLE CHECK MY WORK


tigox - 17:42:22 / 2010.09.04 #

(sapdog)i had the same problem... did you already put the 220 ohms resistores? maybe thas why ists failing hope i helped


tigox - 17:50:25 / 2010.09.04 #

(sapdog)i had the same problem... did you already put the 220 ohms resistores? maybe thas why ists failing hope i helped


tigox - 17:51:12 / 2010.09.04 #

error srry





Leave Feedback on Blink on, Blink off

Name:
Site:    http://
Email:

Comment: