Pages: 1 2 [3] 4 5 ... 18   Go Down
Author Topic: 8x8x8 multiplexed LED cube with an Arduino Mega 2560  (Read 35316 times)
0 Members and 1 Guest are viewing this topic.
Global Moderator
Offline Offline
Brattain Member
*****
Karma: 474
Posts: 18696
Lua rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

The common cathodes need 64 wires, 1 per column, usually soldered to the PCB that makes the base of the cube.
72 wires total.
Vs  8 x 16 wires = 128

Ach, you hardware guys always come up with cool ways of doing things! smiley
Logged

Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 524
Posts: 26459
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, indeed - but its always the software that actually makes it look cool when running!
For instance, I have no idea how to write the code that makes it do the vertical paddle wheel kind of rotation, or the bubble rise up thru the middle kind of thing.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Well then, the theory is clear smiley
All that remains to do is to order the components, wait 5 weeks until they arrive from China, solder them together and write the software smiley Should be ready by spring smiley
Too bad I can't buy the components here in Romania in some local store. Well, I could, but they'd cost 10 times more as sellers and stores are really greedy here.

Anyway, I know I've said this quite a few times already, but I'll say it one more time: thank you very much for taking the time and patience to explain this to me in detail. I've learned a lot from this discussion.
I'll be back with pictures and videos when I'll have something usable or perhaps with a few more questions even before that if things don't go well smiley

Thanks!
Andras
Logged


Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 I have built a 5x5x5 cube which is not powered yet but, getting close.

 For the wires that go to the layers, I used bare 24Ga. craft wire that I found in Walmart. The wire has a similar shine as the LED leads so, it is not as obvious that the wires are in the cube. Care has to be taken running the wires but, they work nicely.


Logged


Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

 Let me know if you can see this image. At this point, I have only soldered the cube to the board. No wires have been ran yet in this picture.

Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I can see it smiley Nice! Aren't those 5mm LEDs?
Logged


Global Moderator
Boston area, metrowest
Online Online
Brattain Member
*****
Karma: 524
Posts: 26459
Author of "Arduino for Teens". Available for Design & Build services. Now with Unlimited Eagle board sizes!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks nice!

Andras, you can start writing software while you wait.
Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17.
Arduino for Teens available at Amazon.com.

Greenville, IL
Offline Offline
Edison Member
*
Karma: 15
Posts: 1328
Warning Novice on board! 0 to 1 chance of errors!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I can see it smiley Nice! Aren't those 5mm LEDs?

 Yes they are 5mm diffused LEDs. I started with a 3x3x3 cube and made it work basically but, had one bad LED. I then bought 100 more LEDs and made the cube bigger to 5x5x5.

Here is where I got the LEDs. They did take around 3 weeks to arrive using the standard mailing option.
http://stores.ebay.com/LED-Wholesale-World/Blue-LED-/_i.html?_fsub=2777255010&_sid=1016205190&_trksid=p4634.c0.m322
Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Funny thing, I was looking at the same seller, only at his 3mm LEDs. I guess he has good prices. I'd like to use 3mm ones because it makes the cube more empty, more transparent, more visible (up to 5x5x5 it probably does not matter but when you get to 8x8x8 it does).
Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

CrossRoads, I have made a few modifications to your wiring diagram, to make it more understandable for amateurs like myself and to be sure that I have understood things well. I hope you don't mind.



The information I have added:
1. The polarity of the LEDs
2. The value of the resistors
3. The value of the capacitors
4. The type of the MOSFETs and which of their legs goes where
5. The connections between the Arduino and the shift registers

I have removed all the additional circuitry that was around the Arduino or other micro controller on the other pins because I thought that it's not needed. In other words the only pins of the Arduino that need to be connected to anything are D10/SS, D11/MOSI, D13/SCK and GND. I hope I was not wrong...
Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you please suggest some other MOSFET instead of NDP6020P-ND? These are barely found and expensive on eBay and cannot be found at all in my town's local shops...

Thanks,
Andras
Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Also, do you think this power supply is good enough?
http://www.ebay.com/itm/5V-2A-DC-2-5mm-EU-Plug-Power-Supply-Adapter-Converter-Chager-for-Tablet-PC-/190705402077?pt=US_Server_Power_Supplies&hash=item2c66ed80dd
It doesn't say that it's regulated, I don't know if that matters or not...
Logged


Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Or perhaps a 5V 3A power supply, might be good for future projects which need more juice:
http://www.ebay.com/itm/BRAND-NEW-5V-3A-AC-100-240V-DC-Switching-Power-Supply-Converter-Adapter-EU-Plug-/390494389454?pt=Multipurpose_AC_to_DC_Adapters&hash=item5aeb4784ce
This one says that it's a "Switching power supply"...
Logged


United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Could you please suggest some other MOSFET instead of NDP6020P-ND? These are barely found and expensive on eBay and cannot be found at all in my town's local shops...

You'll probably not find a suitable P-channel mosfet in your local shops. I suggest you order them from one of the major component distributors. If you are prepared to use a mosfet in an SMD package, then the prices are much better, for example this one http://uk.farnell.com/taiwan-semiconductor/tsm2311cx/mosfet-p-ch-20v-4a-sot23/dp/1864586.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

United Kingdom
Offline Offline
Tesla Member
***
Karma: 224
Posts: 6593
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

PS - the SMD mosfets will also switch faster and can be driven from the cheaper 74HC595 instead of the more expensive TPIC6B595.
Logged

Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Pages: 1 2 [3] 4 5 ... 18   Go Up
Jump to: