Offline
Newbie
Karma: 0
Posts: 13
|
 |
« on: October 10, 2012, 10:21:54 pm » |
i wanna build a 2x2x2 led cube on my breadboard. i currently have uno, some leds, soldering iron and some jumper wires. i read some post online saying that i have use transistors for each layer, i wonder how that works because i don't see any transistor on top of each layer.
|
|
|
|
|
Logged
|
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3626
@ssh0le
|
 |
« Reply #1 on: October 10, 2012, 10:43:31 pm » |
neither do I, but I have no idea what your looking at
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #2 on: October 11, 2012, 12:55:57 am » |
For layer 1 you will have 4 IO pins connected to current limit resistors and then to the 4 LED anodes. All 4 cathodes will connect to the collector of an NPN transistor, emitter to Gnd. 5th IO pin to 270 ohm resistor to NPN Gate.
For layer 2 you will have the same 4 LED anodes connected to the 4 anodes from layer 2. All 4 cathodes will connect to the collector of a 2nd NPN transistor, emitter to Gnd. 6th IO pin to 270 ohm resistor to NPN Gate.
Drive the anodes, turn on transistor 1 for 5 mS. Turn off transistor 1. Drive the anodes, turn on transistor 2 for 5 mS. Turn off transistor 2. Repeat. Occasionally, change what you drive out on the anodes.
Exand the number of anodes, layers, transistors to make a bigger cube.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 13
|
 |
« Reply #3 on: October 11, 2012, 10:10:42 pm » |
oh, thanx, i now have a sense of what to do now, okay, so my last question is that how do i connect the transistor to the cathode on the second layer? and how i control the transistor to be on and off(sorry for being a noob.), through programming?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16571
Available for Design & Build services
|
 |
« Reply #4 on: October 11, 2012, 11:47:59 pm » |
Generally, folks seem to bend the "layer" pins out at a right angle (cathode in this case), and leave the column pins straight to connect to the LED below it anodes in this case).
|
|
|
|
|
Logged
|
|
|
|
|
|