Pages: 1 ... 16 17 [18]   Go Down
Author Topic: 8x8x8 multiplexed LED cube with an Arduino Mega 2560  (Read 36868 times)
0 Members and 1 Guest are viewing this topic.
Cluj-Napoca, Romania
Offline Offline
Full Member
***
Karma: 3
Posts: 137
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Unfortunately I've found an unwanted side effect of my new solution. The problems just don't seem to go away smiley

As soon as I've started using the cube in real, multiplexed mode, trying out all LEDs in a test pattern, I've noticed that in one column from the 16 that I have in total, the top 3 LEDs are dimly lit all the time. The lowest LED is fine, the one above it, in the same column, is dimly lit, the third one (even higher in the same column) is dimly lit, but not as much as the second one and the fourth one is also dimly lit, but not even as much as the third one. If I remove the 1K resistor which connects the lowest anode layer to ground, then this unwanted effect goes away, but then I'm back to the ghosting smiley-razz
The even more interesting thing is that if I disconnect that column completely from the driving circuit, the top 3 LEDs in that column are still dimly lit, as described above, but when they should really light up at full brightness, they don't (because that column is disconnected). But if the column is disconnected, then it means that they are not grounded at all, so how can they light up, even dimly? And why only this column? And why only when I add a 1K resistor between the lowest anode layer and the ground?  smiley-eek
« Last Edit: March 27, 2013, 06:12:45 pm by Un4Seen » Logged


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

OK, all problems are now fixed. After soldering in all the resistors for the anode layers and cathode columns, the ghosting is completely gone with 30 microseconds software delay after turning everything off before turning a new layer on (during multiplexing). I've updated the schematic and the printed circuit design accordingly:







Unfortunately the printed circuit has now grown to 14 x 12 cm because I had to fit 72 more resistors on it. I've already ordered one from a guy in town who makes PCBs, it cost me about 17$, let's hope it's perfect smiley

As I wrote earlier, these resistors increase the power consumption of the cube by 72 mA in passive mode (when everything is off), which is something that I'm not happy with at all, but it's still better than ghosting...
« Last Edit: March 30, 2013, 04:18:37 pm by Un4Seen » Logged


Canberra Australia
Offline Offline
God Member
*****
Karma: 11
Posts: 518
Hardcore Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Good to see that you finally sorted out your ghosting problems. It would have been a shame to see all that hard work go to waste  smiley-cool Looking forward to more info on the project when you have time, Pedro.
Logged


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

Yepp smiley

Unfortunately the project is advancing slower tan expected. Also, spring is coming, so I'll have less time for it than in the winter. But even if slowly, I will make it happen smiley And those articles on my blog will be written as I complete the steps in real life (the driving circuit, the 8x8x8 cube soldering and the software).

I've just found a great youtube video, by the way, in which Kevin Darrah explains multiplexing and bit angle modulation. The part that I found interesting is that the LEDs can be dimmed from software, so I'll make sure to include that in my code:
Logged


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

Hi guys!

Here's the next article in the series: the driving circuit for the 8x8x8 LED cube, based on CrossRoads' design:
http://iqjar.com/jar/building-an-8x8x8-led-cube-the-driving-circuit/
Logged


Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 534
Posts: 26969
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

Pretty nice writeup! Good looking pictures too.
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

Thanks smiley
Logged


Canberra Australia
Offline Offline
God Member
*****
Karma: 11
Posts: 518
Hardcore Arduino
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Another well written and informative article Un4Seen. Ten points  smiley-cool
Logged


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

Thank you! smiley I do try. the next article will be about the construction of the cube itself. Unfortunately, based on progress so far,  I estimate that it will be done only about 6 to 8 weeks from now  smiley-confuse
Logged


Pages: 1 ... 16 17 [18]   Go Up
Jump to: