Hi Peter,
I looked up the schematic of the mega <http://arduino.cc/en/uploads/Main/arduino-mega-schematic.pdf>, and it looks like it has a 500mA resettable fuse in between the USB input and its 5V output. This is different than the spark, which connects its USB power input directly to the 5V bus.
Two suggestions:
The first is to limit the brightness of the LEDs in software. For most of the spark code, we scale down the R,G, B values to a max value of 50 (instead of 255). We found this value by trial and error — it kept the LEDs visible in daylight, but was low power enough that the current-limiting circuit didn’t kick in and distort the color during normal operation. For a pure software fix, you could try using a scaling function like this one, to scale down your (R, G, B) values to something that works with the available power.
color scaleColor(color voxelColor, int maxBrightness)
{
voxelColor.red=map(voxelColor.red, 0, 255, 0, maxBrightness);
voxelColor.green=map(voxelColor.green, 0, 255, 0, maxBrightness);
voxelColor.blue=map(voxelColor.blue, 0, 255, 0, maxBrightness);
return voxelColor;
}
If you want to remove the hardware constraint altogether, you can solder a separate 5V power supply to the connector you mention that's on the underside of the board (see attached image for reference). BE CAREFUL — that connector drives straight in to the 5V bus, and if you apply more than 5V to your cube, it’s possible to blow out the LEDs.
That will provide 5V power to your arduino, as well. If you go this route, it’s best if you unplug the USB cable from your arduino, so you’re not driving the same bus with two competing power sources.
Happy hacking,
Alex
On Dec 20, 2014, at 7:41 PM, Peter Chestna <peter....@gmail.com> wrote:
Will the bus be able to handle 10A? This is what I have: https://www.adafruit.com/products/658. I used it to drive a 350 led Christmas Tree project. Also was my reading of the schematic correct? All LED reeds connect directly to the common power bus?
--
You received this message because you are subscribed to the Google Groups "cubetalk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cubetalk+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cubetalk/f7e099a9-6352-44b6-b6e7-902fd6ce88b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.