Hello,
I am looking for a function to manage the rise and lighting based on LEDs so sigmoid descent (http://fr.wikipedia.org/wiki/Sigmo% C3% AFde_ (% C3 math A9matiques%)).
To start, stop and manage the progression I use a time base in seconds
# define heureSeconde ((RTC.hour * 3600L) + (RTC.minute * 60) + RTC.seconde)
I got no problem to turn on and off lighting using linear function
"map (heureSeconde, start, end, 0, 255)" but the result does not please me.
Someone would help me make a rising and descending sigmoid function?
Thank you in advance for your help ...
check - Saturation Function for Sliding Mode Control - Project Guidance - Arduino Forum - for ideas
use analogwrite() to control the led brightness