Hi all! I have a string of 500 APA102 LEDs that I'm using for a project, but I only have to illuminate 10 at a time. I'm running them off of a Mega 2560 because of the memory requirements for the lights. Here is my problem. If I power the board via USB and my laptop, attaching the LEDs to +5V and GRD, they all light up correctly, as per the code. If I use an external power source (regulated voltage, of course) then all hell breaks loose. I've tried a 5V and 12V DC power supply. Here's what happens.
-
If I power the board via USB but attach the LEDs to a regulated 5V 2A power supply (the lights are supposed to be given 5V) the lights go haywire, lighting up randomly.
-
If I power the board using a 5V 2A power supply with the LEDs attached to +5V, the LEDs do not illuminate and the board goes dark.
-
If I power the board using a 12V 2A power supply with the LEDs attached to +5V, the LEDs momentarily blink on, light up randomly, and then shut off. The voltage regulator on the Ardunio becomes burning hot.
I checked the current draw when powering everything off of USB, and its under 400 mA. I read that I shouldn't draw more than 200 mA off of any single +5V pin on my board, so am I right than in situation 3, I'm just drawing too much current and that's why the voltage regulator burns up? Also, the Mega should be powered by 7-12 V, so using a 5V external supply isn't enough, hence the board going dark in situation 2.
Two things have me perplexed.
-
Why can I run the whole thing off the USB (i.e. it seems to be OK pushing 400 mA through one single +5V terminal, but I can't run it off my 12V supply? Does USB power skip the voltage regulator?
-
Why would I be able to run everything perfectly off the USB, but then when I try to power the LEDs directly off a 5V power supply (but keep the arduino powered via USB), the lights all start misbehaving?
Thanks so much!
-ben