How to delay the Servomotor Blynk2.0?

You can post the whole sketch after including the timer so we can take a look at it.

ok i will try and tell you .

thank you now my servo delay becuse of you and Mr.Pete
my wrong i was use
#include <SimpleTimer.h>

i should use
BlynkTimer timer;

first i put
BlynkTimer timer;
under the
#include "BlynkEdgent.h"

like this :

#include "BlynkEdgent.h"
BlynkTimer timer;

then i write this to delay the servo:

   timer.setTimeout(10000L, [](){     //to delay the servo for 10sec
   
    
      myservo.write(0);  //the servo goes to angle 0
    
    
    });

I have another question, can I make the servo unstable when no signal is given to it?
For example, when it is in a state of sleep, can it be moved manually?

Do you mean servo.detach() function ?

Yes i was try it now and i will tell you if it’s work with me
thanks broπŸ‘πŸ»

1 Like