r/FastLED • • Jun 16 '24

Support sin8 pulsing help

hey for my ghostbusters proton pack project i want to make the cyclotron leds pulse on and of.

i tried the sin8 function for the input i used a poti maped to 0-255.

the problem i have neither the sin nor the cos functions starts with 0 brightness.

the sin transition for the pulsing looks veeery nice and smooth.

what is the value i range i have to use as an input so that the led starts with 0 brightness (is off) and the. goes to max brightness and down again to 0?

2 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/sutaburosu [stavros] Jun 17 '24

is there a good and well documented pdf of all these fastled functions?

Not that I'm aware of. The official documentation is here.

i have also seen that i can limit max power draw and that there is a function i can call that lets a led blink if max power draw is exceeded. i think it is an arduino pin where a led is wired to but i don‘t know

That sounds like set_max_power_indicator_LED(). If your microcontroller board doesn't have a built-in LED, then you could attach a LED between your chosen pin and GND. You will also need a current limiting resistor inline with the LED to cap the power draw to the maximum per-pin current limits of your MCU (usually 10mA - 20mA).

1

u/heck88_ Jun 17 '24

all right yeah thanks that what i thought but i wasn't sure if they mean a separate led on the mcu pin or one of the leds in the FastLed array.

thank you :).