| Arduino Forum ::  Members :: Cranium
 Show Posts Pages: 1 2 3 [4] 5 6
 46 Using Arduino / LEDs and Multiplexing / Re: 5x5x5 LED cube - video on: November 05, 2011, 03:05:51 pm Quote from: j0nathanpae on November 05, 2011, 02:24:58 amThat is so fascinating!!! This is exactly what I wanted to do. I'm currently a freshman in college learning all this as a computer engineering major. So, I don't really have the knowledge of the circuitry and programming, but I am getting there. I really want to make several 5x5x5 LED cubes for my friends as a christmas present! I'm just searching for the best instructions to work off of. I think this is perfect. I don't really have a XML reader for the link that you shared with the components list and PCB. Any suggestions? Also, would you mind if I asked a bunch of questions in the next few weeks about the construction of the cube? I sort of want to know what I will be doing before I do it. Thank you!  I suggest you start here: Instructables 4x4x4 cube (http://www.instructables.com/id/LED-Cube-4x4x4/) as I did.  If you want to open the file I included for my plan, click the Fritzing link and download it (free).   That is the format for the file.  Funny, last weekend my son came over for the weekend from college to build one of these cubes.  He liked it and wanted one as well.
 47 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 04, 2011, 07:30:40 pm Quote from: runaway_pancake on November 04, 2011, 06:35:44 pm(Vcc * Icc) + (VOUT X IMAX X (DCn/63) X dPWM X N)    (Vcc * Icc) + 2V * 0.12A * ? * 0.9 * 16    (2V * 0.12, Fig.5)(Vcc * Icc) + 0.24 * ? * 0.9 * 16             (0.9 assuming high duty)(Vcc * Icc) + 0.216 * ? * 16(Vcc * Icc) + 3.45 * 1                          (DCn/63) = ? = 1  (Vcc * Icc) + 3.45Vcc * Icc = ?? + 3.45So, even w/out (Vcc * Icc) included, 3.45 > 2.45 (dissip. ratings pg.3, at an idealised 25deg_C, and it's worse with heat).Look, I'm not out to be a d**k, OK, but there's a smoking heap of fried ICs.  For that effect there is a cause, there are no accidents - "Absolute max, Unit" is what they say it is.  I'm not burning up ICs and some capacitors aren't going to make this go away.Best of luck.Do you understand the numbers you plugged in the equation was driving 16 leds with 120mA each?  The discussion was for 20mA each.  It is understood that all 16 channels cannot be driven at their max.  That is why they include the power dissipation equation.  But at 20mA, the power dissipation is just fine.  Try it.  Let me know what you come up with.  BTW....since dot correction was not stated as being used, DCn=0.  That would make everything past the '+' equal to zero.
 48 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 04, 2011, 12:32:56 am Quote from: saeveritt on November 04, 2011, 12:11:16 amDoes anyone have knowledge of Photodiodes? I plan on using 1 emitter and 1 receiver under each cup to determine whether the light(controlled by tlc) is active or inactive. Could I wire all of the emitters together and have all of the receivers individually relay information to my mega?Just purchased 50 of these: http://www.fairchildsemi.com/ds/QS%2FQSD2030F.pdf(10 extra for backup)Yes, I played with the idea of having a beam across the top and bottom of the staircase for triggering when someone went onto the stairs.  I quickly dismissed the idea for a couple of reasons.  1.  The emitter needs to be pulsed at 38kHz.  This presented a problem to use with the TLC5940 library since the library uses both interrupts.  2.  They draw a large amount of current (rated at 80mA for the ones you bought) and I wanted it to be more energy efficient when idle.See this for some sample code and a tutorial: http://www.ladyada.net/learn/sensors/ir.htmlPerhaps just a light sensor would work for you?  Not sure what exactly you are trying to detect.....light from an LED or presence of a cup.  If it's light from an LED, I can't think of why you wouldn't know if a LED is on or not since your program turns them on and off.  I'm sure I'm missing something though.
 49 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 04, 2011, 12:03:36 am Quote from: saeveritt on November 03, 2011, 11:54:07 pmAnyone want to jump in and verify that each output has a max of 130 mA? (Of course with the right supply power)Absolute max of 130mA....recommended max of 120mA.Along with the total power dissipation being below 1572mW calculated using:PD=(VCC X ICC) + (VOUT X IMAX X (DCn/63) X dPWM X N)You wouldn't even get close to the thermal max if it were limited to just 130mA total output.
 50 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 11:26:30 pm Quote from: runaway_pancake on November 03, 2011, 10:08:46 pmThe 130mA Absolute Max is for the device in toto, just like the other items called out on page 2 there, it's not "per sink".  The sum (total) of your outputs, at any time, ought to be less than that absolute max figure, if you go beyond that then stuff starts frying.[I'm helpful, I'm telling it like it is.]Tie your reference on page 2 of the spec sheet with the figure directly above it on page 1.  The absolute maximum IO of 130mA reference is for each of the outputs (0-15) and NOT all outputs combined.  It wouldn't be much of a lighting and display solution for TI if they could only drive 16 LEDS at 7.5mA each, now would it?
 51 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 09:33:29 pm Quote from: saeveritt on November 03, 2011, 09:22:14 pmCould you maybe make a crude paint drawing of how you jumped from the rails and added capacitors? Any particular areas? Here's a pic of my bread board setup.....I haven't torn it down yet.  It looks a mess but it works great! Click for a larger image.  Does this help?
 52 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 09:15:05 pm Quote from: saeveritt on November 03, 2011, 09:02:17 pmQuote from: runaway_pancake on November 03, 2011, 08:58:35 pmYou can't have all 16 outputs on, 20mA each; the Absolute Max output current for the unit is 130mA (PDF, pg. 2)I've been reading this as the Max for a single OutX!Quote from: Cranium on November 03, 2011, 08:43:28 pmI would guess either bad connection or voltage issues.  I had voltage issues on some of the rails.  Try running additional jumpers to power the rails, moving where the power is coming into the bread board to a different rail or adding additional/larger capacitors on the rails.  This helped a lot with my issue.  And once I went to my circuit board, everything was solid.Doing that as we speak, what size capacitors would you recommend? I agree....that current limit is the absolute max for a single sink.  I'm about to use some TLC5940s to drive some 3w LEDs and plan on tying 8 outputs together to sink 350mA per IC.PD=(VCC X ICC) + (VOUT X IMAX X (DCn/63) X dPWM X N)PD= (5 * 0.03) + (3.8 * .044 * 8 ) = 1.49W <-- within power dissipation limits of the IC.As far as capacitors, I really don't know if there is a great way to select the right one or not.  Perhaps someone more knowledgeable in these things can pipe in.  I used a couple of 1000uF and a couple of 100nF.  The 100nF was a given and the 1000uF was experimentation.
 53 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 08:43:28 pm Quote from: saeveritt on November 03, 2011, 07:41:08 pmYes! The flickering is mainly coming from the 3rd and 4th Tlc's. I've tried switching to 3.3v for the chips, but that causes even more flickering! I tried it out today, low and behold another chip has fried! I would guess either bad connection or voltage issues.  I had voltage issues on some of the rails.  Try running additional jumpers to power the rails, moving where the power is coming into the bread board to a different rail or adding additional/larger capacitors on the rails.  This helped a lot with my issue.  And once I went to my circuit board, everything was solid.
 54 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 06:33:06 pm Quote from: saeveritt on November 03, 2011, 05:20:30 pm5v 2A is powering just the 20 RGB led's across the anodes. (60 Led's running at 20mA each)My arduino is powered by 12v into the Vin. The rating of the 12v source is  5A and 60W. (Also powering my fans)the second 5v power supply is from the arduino's 5v. This is for the Tlc5940's. Now I have a better picture of what you were trying to explain.  From the looks of things, I can see nothing wrong with the schematic.  When I fried the two TLC5940s, it was also the first in line now that I'm thinking about it.  I think mine was a loose/bad connection.  Any flickering of the LEDs?
 55 Using Arduino / LEDs and Multiplexing / Re: TLC5940 Overheating (Daisy Chain) ( Electronic Beer Pong Table) on: November 03, 2011, 03:08:45 pm Nice start for your project.  I see where your priorities are though.   When I was working on my RGB LED Stairs Illumination project with 6 TLC5940s to drive 30RGB LEDs, I initially had some overheating issues as well (fried two TLC5940s) but was able to overcome them after doing a tear down of my breadboard and setting it back up along with adding some additional jumpers across the power rails.  I'm powering mine with a L7805CV (5v 1.5A) regulator with heatsinks added and a 7.5V 3A wall wart.  When I started with a 12V wall wart, the VR would overheat.  My power with the illumination routines I run peaks at about 1.4A which is too close to the max for my comfort and the VR is only barely getting warm but I'm still going to change it.  I have an external 5V 3A power supply that I've tested on my bread board setup running all 30 RGB LEDs at full brightness (~1.8A) for an hour and it worked wonderfully.  The TLC5940s barely got warm while each was supplying 300mA to the LEDs.1.9A is too close to the 2A capability of supply power.  Your arduino needs power as well as the TLC5940s to run.  You may be dropping voltage down too much with a struggling VR.  Is it getting hot?  If so, do you have heat sinks on it?  Have you measured the measured the max current of the entire circuit?  Are the fans drawing power from the 5V 2A power as well?  What is the rating of the 12V source you mentioned?
 56 Using Arduino / LEDs and Multiplexing / Re: 5x5x5 LED cube - video on: November 03, 2011, 02:43:46 pm Here is the Fritzing file I created for the project: http://www.mediafire.com/?n4wcun4zxn40oxzNote that I added a 100nf capacitor across the incoming power since my original design and have reflected that in the file.  I also reduced the current limiting resistors from 82Ω to 68Ω to increase brightness a little.  There was also an issue with one of my traces being routed on the wrong layer requiring me to cut it and use a jumper on the underside.  That was also corrected in the file.If you build this using my PCB design, you might want to increase the hole size for where the anodes attach to the PCB.  This will make it easier to put attach the cube to the PCB.  I've built 4 of these so far and have managed with needle nose pliers and patience though.If you want one of my circuit boards, I still have a few and can sell you one for \$12 shipped in the US.  Or if you want a parts kit with it , I can do that for \$30 shipped in the US.  This would include:130 blue 3mm leds30 transistors (2N3904 or 2N4401 depending on what I have on hand)31-1kΩ 1% resistors5-68Ω 1% resistorspreprogrammed and tested ATMega32816MHz crystal2-22pF capacitors1-100nF capacitorpower connectortwo sided solder masked PCB
 57 Using Arduino / LEDs and Multiplexing / Re: My RGB LED Stairs Illumination video on: October 26, 2011, 06:52:13 pm Quote from: focalist on October 26, 2011, 06:45:41 pmIs it a bounce issue?  You might try using the debounce library if you aren't already... No, not a debounce issue.  I'm checking for a change in the pressure sensor reading to be below a certain threshold.  It then monitors for it to go above the threshold to tell it my foot has lifted off before counting again.  The counts are very accurate.  It is in the functions that the system completely stops responding for some, as yet, unknown issue.  Don't know if it is some kind of buffer overflow or too many functions called within other functions.  I've been spitting out serial data to try to figure out when/why it happens but haven't found anything relevant yet.