I’m using FastLED to power 130 APA102 LEDs. I found an example confetti demo and modified it a bit for my needs.
I have everything hooked up like so:
-9V 1.5A power supply going into buck converter
-buck converter outputting regulated 5V
-output from buck converter going to breadboard
-two separate power outputs from breadboard: one to the arduino and another to the LEDs
-ground connections for arduino/LEDs
-data and clock pins from arduino to LEDs
There still wouldn’t be enough power to drive 130 LEDs at full brightness, so I tried to control the power with FastLED. setMaxPowerInVoltsAndMilliamps. However, when I do that the buck converter starts making a humming sound. The animation seems to work fine though. It’s even pretty bright, which I don’t understand. I thought it would be pretty dim because of lower power.
The really weird part is when I remove that line of code everything works exactly the same.
So my questions are:
- Why is the buck converter humming?
- Am I using FastLED. setMaxPowerInVoltsAndMilliamps correctly?
- If I’m not using it correctly how do I fix it?
- If I am using it correctly, why is there no change when I remove the line?
Thanks for the help!
https://gist.github.com/anonymous/7a7b760a56f283e1049d6cf2fd95c6fc