Gunner
May 18, 2018, 12:44am
2
Try using timer.timeOut() or timer.setTimer() timers… I did something similar for adjustable timing here. You will have to extrapolate the logic needed for your purposes.
#4 Slow & Variable Servo Sweep Without ‘delay()’ (Yay Timers!)
This is one I dug out of my archive and tweaked a bit to make it variable and stable.
I also have another method of varing a timer, shown in a later post: 20 - Easy Variable Timer
This example will allow you to control the sweep speed of a servo motor… normally they run at one speed, from where they are to where you want them to go. Traditional methods to slow that down is move the servo in incremental steps with a delay between…
#12 - Timers simplified… perhaps…
Some have a difficult time understanding timers… and since this is a fundamental building block of Blynk… I buried this reference in the middle of this entire topic Well anyhow…
This is a “real world” timer example where i am using two timers to alternately turn ON and OFF an LED… yes, there are many ways to do this, but this example is all about timers.
The first timer will run it’s assigned function 500ms (1/2 second) after boo…