#define MIN_PULSE_WIDTH 544 // the shortest pulse sent to a servo #define MAX_PULSE_WIDTH 2400 // the longest pulse sent to a servo #define DEFAULT_PULSE_WIDTH 1500 // default pulse width when servo is attached #define REFRESH_INTERVAL 20000 // minumim time to refresh servos in microseconds
(...)
or servo.ccp ?
(...) #define SERVO_MIN() (MIN_PULSE_WIDTH - this->min * 4) // minimum value in uS for this servo #define SERVO_MAX() (MAX_PULSE_WIDTH - this->max * 4) // maximum value in uS for this servo
(...)
Maybe is finished library for these servo (360dgr) ?
Regards
Pawel
update : Im trying with change defaults impulses ex. myservoAZ.attach(2,500,4800);
What you have bought is a servo modified for "continuous rotation". It is no longer a servo that can be directed to a particular position: it is a gear-motor with a speed control. Send it a pulse near 1500 microseconds to stop. Lower values (down to about 1000 uS) turn one way and higher values (up to about 2000 uS) turn the other way.
If you want a servo that you can point in any direction you probably want a multi-turn sail winch servo like this 4-turn model:
A continuous rotation servo does not go to a position like a normal servo, but can spin in either direction at speeds from 0 to whatever its maximum is. So it's just like a DC motor with a controller.
So,
the 1500us pulse which would centre a normal servo, stops a continuous one,
the 1000us pulse which would send a normal servo to 0 degrees, spins a continuous one full speed one way, and
the 2000us pulse which would send a normal servo to 180 degrees, spins a continuous one full speed the other way.