Dimming and brightening using PWM
Posted: 06 Sep 2017, 07:28
I want to slowly increase and decrease the brightness of a string of LEDs using PWM.
What is the best solution? I can see 3 possibilities:
1) Write a Node-red function to send an increasing (or decreasing) variable to ehe ESP PWM command.
2) Using the ESP rules - but I can't see how to store a variable that is incremented or decremented on a timer loop.
3) Modify a plugin to perform this ramp-up or rampdown function.
Any better ideas - or suggestions for options 2 or 3 above?
What is the best solution? I can see 3 possibilities:
1) Write a Node-red function to send an increasing (or decreasing) variable to ehe ESP PWM command.
2) Using the ESP rules - but I can't see how to store a variable that is incremented or decremented on a timer loop.
3) Modify a plugin to perform this ramp-up or rampdown function.
Any better ideas - or suggestions for options 2 or 3 above?