Making a Servo spin for set amount of time

You have to look in the right place :wink:
Servo.cpp:

void Servo::write(int value)
{
  if(value < MIN_PULSE_WIDTH)
  {  // treat values less than 544 as angles in degrees (valid values in microseconds are handled as microseconds)

If you change MIN_PULSE_WIDTH in Servo.h, its again wrong ...

1 Like