Pages: [1]   Go Down
Author Topic: need help with led cube  (Read 861 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So i just got a arduino duemilanove so for my first project i build a 3x3x3 led cube.  I used 3 npn transistors to control each level of the cube.  The npn transistors are connected to the arduino with 22k resistors and are in pin13,12,11. All the other leds on the bottom are connected to all the other pins using 220ohm resistors.


I am new to programming could some one give me some sample code to get started or tell me if some thing is wrong with my set up thanks.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 632
Posts: 50182
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

A schematic is worth a thousand words. You didn't use even 10% of that, Draw us a picture.

As far as the code, that really depends on what you want to do. Light up one LED? One row? One column? One layer? All of them?
Logged

Left Coast, CA (USA)
Offline Offline
Brattain Member
*****
Karma: 361
Posts: 17301
Measurement changes behavior
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The below published on-line project shows a schematic for one method to drive LED cubes. It utilizes constant current shift registers for the columns and transistors for the level drive. I utilized this in my 5x5x5 cube and was very pleased with it's performance.

http://picprojects.org.uk/projects/lc/index.htm#Schematic

Lefty
Logged

Spokane, Washington
Offline Offline
God Member
*****
Karma: 1
Posts: 686
My name is Bob, and I'm an addict.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



Good video describing on how to wire one up, from Makezine.
Logged

Pages: [1]   Go Up
Jump to: