Is there a built in method in fastLED to throttle max brightness of all

gplus
(Lucas Morgan) #1

Is there a built in method in fastLED to throttle max brightness of all led’s uniformly as the cumulative / total brightness exceeds a certain max brightness or amperage?

I know this would not be terribly hard to implement math wise, but curious if there’s a more efficient way already built in…

Thanks!

(Andrew Tuline) #2

See slide 23 of http://www.slideshare.net/atuline/fast-introduction-to-arduino-and-addressable-led-strips

See the previous 2 slides for the non-power managed original.

(Lucas Morgan) #3

Awesome! seems like exactly what I needed thank you. I tested this out and seem to be getting fuzzy results…

does it work by taking the length of the led array and all the rgb values summed and then using that to scale the brightness when it goes over?

I have an led array of 800,
I’m specifying 5v, 6000ma in the arguments and displaying full white which if my math is right should limit it quite a bit?

Visually it seems to be the same as it’s brightest normally is

(Mark Kriegsman) #4

Could you post your code to https://gist.github.com or pastebin, so we can take a look at it? My first thought is that you’re setting up the power management correctly, but maybe the right ‘show’ function isn’t getting called. Paste up your code and let’s have a look.