Pages: 1 ... 5 6 [7] 8 9 ... 18   Go Down
Author Topic: 8x8x8 multiplexed LED cube with an Arduino Mega 2560  (Read 30025 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

Rds(on) = 0.05 Ohms then, so it's good smiley

Thanks!
Logged


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

For anyone else who might be interested in the future to build a LED cube based on this design, I've put together a component list with prices based on what I have bought for the project. I tried to buy the components as cheap as I could, most of them off eBay, but for many of them I have bought more than actually necessary, because they sell in bulk or because I wanted some spare parts. Here's what I got:

NDP6020P: 14 pcs 33.3 EUR (43.8 USD)
3mm diffused blue LEDs: 1000 pcs 19.4 EUR (25.5 USD)
TPIC6B595N shift registers: 20 pcs 9.3 EUR (12.3 USD)
1K variable resistors: 100 pcs 7.4 EUR (9.8 USD)
5V 3A power supply: 1 pcs 7.1 EUR (9.4 USD)
Craft wire 0.8mm 6m: 3 pcs 7 EUR (9.2 USD)
Jumper cables 40 PCS: 2 pcs 6 EUR (7.9 USD)
Capacitors (0.1 uF) + resistors (82R, 220R): 3 pcs 4.6 EUR (6.1 USD)
PCB 18x12 cm: 2   pcs 3.9 EUR (5.2 USD)
Female pin headers: 200 pcs 3.8 EUR (4.9 USD)
TO-220 heatsink: 10 pcs 3.4  EUR (4.5 USD)
IC sockets DIP-20 for TPIC6B595N: 10 pcs 2 EUR (2.7 USD)
Crocodile clips: 2 pcs 0.8 EUR (1 USD)
Total: 108 EUR (142.3 USD)

Sorry, I just can't get the data into a well-formatted table.

This does not include, of course, the price of the Arduino driving the cube or other miscellaneous stuff like soldering materials or the prices of some tools that you use for other projects too.
« Last Edit: December 30, 2012, 06:50:53 pm by Un4Seen » Logged


Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Somehow I got lost on the math there DC. 1.28 * 1.28 = 1.6384, divide by 4 and you get .4096.
How do you come up with .5 watt?
He will need 8 mosfets, each one will run 1/8th of the time (12.5%), each one will need to be able to source between 0 and 1.28A. I see the 1.28 in there, and the 4 was from half watt times 8. So I see some of the numbers, and understand where they came from, Im still confused with the math, and where half a watt came from. it seems arbitrary. 

I tried crossroads technique, and came up with 7 P-channels, I started by searching "p-channel mosfet", then clicked a link that said Fets-Single, That displayed a page with many options, I selected logic level gate, through-hole, and then I scrolled the package column, and selected the TO-220-3

From there, I notice that all of the parts have many mOhm RDS (way way over .4 ohm), not even close to mOhms.
I dont know what a good/bad gate capacitance is, but I can only find gate charge, and input capacitance.

I can also see that the NDP6020 is rated at 60 watts, and if using 1/2 watt, Im guessing you wouldnt need a heatsink.
How many 20mA LEDs could you run on that mosfet?

Also $150 for the parts for a 8x8x8 cube sounds like a lot, but I havnt built a cube that big.

6 Meters of wire seems like a low estimate to me too, I bet you use over 8. what kind of wire is it? soft wire is very difficult, but harder wire is a bit easier, and ends ups being sturdier. I find very hard steel works the best. For cube building, and general keeping wires straight, thinner and softer are more difficult, thicker and harder are easier, but for soldering, thinner is easier.
Logged


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

Hi!

I'm planning to run 64 20 mA LEDs from one of those MOSFETS.
That price of 142$ includes components for the big 8x8x8 cube, but also for the small 4x4x4 learning cube and some spares. I guess that if I tried to but onyl as many components as necessary for the 8x8x8 cube only, I could have pulled it off for about 100$.

6m of craft wire is definitely not enough. But I have bought 3x6=18m, which is probably twice as much as I need. I do not know how soft or hard it is, I bought it blindly from eBay based on the suggestion of somebody who has already used the same or similar craft wire to build a LED cube successfully. It is 0.8mm thick and is sold rolled up, I'll have to straighten it before soldering.
Logged


United Kingdom
Offline Offline
Tesla Member
***
Karma: 220
Posts: 6587
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

Somehow I got lost on the math there DC. 1.28 * 1.28 = 1.6384, divide by 4 and you get .4096.
How do you come up with .5 watt?

See reply #83. I suggested a maximum of 1W for a TO220 mosfet with no heatsink, and 0.5W for a mosfet in a smaller package.
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.

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

CrossRoads, is there a special reason why the LED cube that we've discussed here uses the cathodes as columns (64 cathode columns) and the anodes as planes (8 anode planes) and not the other way around? Many other cubes that I've seen use anode columns and cathode planes and it seems to be more practical that way because the anodes are 2-3 mm longer, which compensates for the fact that the LED heads are taller than wide, so the horizontal and vertical distances between the LEDs could be longer and still equal if we used anode columns and cathode planes. Is it possible to do this reversing of anode/cathode roles? If yes, how?

Thanks,
Andras
Logged


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

Cathodes as columns because the TPIC6B595 can only sink current, not source it.
I have not seen a shift register that is designed to source 20mA (and not running at the Absolute Maximum as many people use 74HC595) outside of the 74AC299P which I think is not procurable in DIP form anymore.  I bought a tube of them from Newark for not much when Newark was getting rid of the last of theirs.

I had not considered LED pin lengths - just figured cube dimension would adjusted to actual parts purchased, which no doubt vary by manufacturer.

* 74AC299.pdf (129.88 KB - downloaded 9 times.)
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, I'll sacrifice those 2 millimeters then smiley
Thanks!

BTW, happy new year!
Logged


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

Thanks! Happy New Year to  you as well!
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

Finally all my parts for the LED cube have arrived (except some minor things that I can start without) smiley I plan to start working on it soon, I will show you pictures when I'll have some results.
The only problem is that the LEDs that I bought seem to have very short legs. The Anodes are 18 mm and the cathodes are 15 mm. It will be a crowded cube...
Logged


Eugene, Oregon
Offline Offline
Sr. Member
****
Karma: 9
Posts: 388
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I thought you were using craft wire? If you are using wire, you will be soldering the leads to wires, then clipping the leads.
Logged


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

My intention was to use craft wire only to strengthen the cube where necessary (diagonally relative to the LED anodes, inside the planes), but given the short legs, I might need to make the whole cube frame from craft wire. That would require twice as much soldering, though...
Logged


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

How do you keep from shorting things out with extra diagonal wires like that?
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, all you have to make sure is that the craft wire inside the anode planes never touches any cathodes. The 64 (8x8) cathodes go down and all the anodes are soldered together in the same horizontal plane, including with craft wire. In other words, you solder the LED anodes together along the X axis. You strengthen the anode plane with craft wire along the Y axis (X and Y are in the horizontal plane) and the cathodes go down along the Z axis.
Logged


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

I'm afraid I have very bad news smiley-sad

A few days ago I've started working on a 4x4x4 cube to see how I can build it, before I jump into the real one (the 8x8x8 cube). So I drilled a 4x4 matrix of 3 mm holes into a piece of wood to help me assemble the horizontal layers of 4x4 LEDs, filled the holes with 3 mm LEDs, cut the craft wire to pieces of appropriate length and set out to solder the pieces of craft wire to the LED anodes. Now this already turned out to be a huge pain. The craft wire is 0.8 mm thick and the LED legs are way thinner so it's close to impossible to hold them together with clips while you solder them together because the clips will only close to the thickness of the craft wire and will not be able to grab the LED legs properly. Because of this the building process was about 3-4 times slower than I thought it would be. I have wasted hours and hours trying to hold the LED legs together with the craft wire, while I was soldering them. Anyway, after about 8 hours of work I managed to  make 4 layers of 4x4 LEDs connected by their anodes into planes.

While I have built the layers, 2 LEDs burned out or something, because after testing the layers, they were not working anymore, even though they had worked before being soldered into the layers. I didn't think much of it at the time, I just replaced them with new LEDs. But the ordeal began when I tried soldering the cathodes together into columns. Holding the LED legs together with the craft wire was a pain, as usual, but that was the least of problems. After soldering the cathodes of 3 layers together  (into 16 columns), several LEDs started not working and instead they seemed to conduct electricity directly, without lighting up, which resulted in several LEDs lighting up instead of just one when I tested the intersections of layers and columns. In other words, when I put the multimeter's positive lead to layer x and the negative lead to column y, instead of having only one LED light up at (x,y), I saw 2 or 3 LEDs light up. This was not for all (x,y) pairs, just for a few. I managed to find some LEDs which did not light up at all, so I figured that they are the problem. I managed to solder them out and solder new ones in their place through very painful work. Imagine if this would have happened in the middle of a 8x8x8 cube, it would have been impossible to replace them. But the problems were far from over. While I replaced those LEDs, others have burned out. And so on, until I had to throw out the whole darn thing into the garbage. Hours of work gone.

Now the question is: what made the LEDs burn out in massive amounts?
1. My best guess is that they are burning out because of the heat from soldering.
2. My second guess is that perhaps the multimeter's diode testing mode is burning them out.
3. Is there any other explanation?

God knows I've tried to limit the soldering time to 3-5 seconds, with a few exceptions. I can't do it faster, the solder just won't adhere any faster. Maybe the soldering iron is too hot? I think it's a bit above 300 degrees Celsius, although it doesn't show the temperature, so I'm only guessing. Turning it lower seemed not to heat the solder fast enough and I had to keep the iron on the LED legs longer because of this, so it wasn't good either. I've watched several videos about how to solder properly and I'm using standard 40-60 rosin core flux, so I don't think the problem lies there.

This is such a disappointment. After spending 150-200 $ on components and who knows how much time on planning and soldering, I'm close to giving up the whole project because I just don't see how I could avoid these problems. This wast just a 4x4x4 test cube. If just one single LED fails in the middle of a 8x8x8 cube, I'm screwed and my whole work goes down the drain, so I'd rather not even start working on it. The only solution I can think of is to somehow solder the LEDs together with some non-traditional, cold soldering method. Honestly, I've never heard of such a thing, but hopefully it exists, otherwise the whole project is wasted.

Maybe the LEDs that I've ordered are poor quality and weak, maybe they can't take as much heat as regular LEDs? Or maybe I should try soldering at really low temperatures? I doubt that it would work. Maybe I'm burning them out with the multimeter's diode test mode? I don't know. It all seems really hopeless right now...
« Last Edit: February 05, 2013, 07:23:01 pm by Un4Seen » Logged


Pages: 1 ... 5 6 [7] 8 9 ... 18   Go Up
Jump to: