Hi!
I do believe after reading some docs over servomotors that a servomotor isn't supposed to go over 180°, however, mine turned for a while(in the same direction).
I used this code :
#include <Servo.h>
Servo monServomoteur1;
int position_ini;
void setup() {
// put your setup code here, to run once:
monServomoteur1.attach(7);
}
Standard servos work through a defined range, usually a bit less than 180 degrees, but it varies.
And many servos are modified, either by the end user or at the factory, to be continuous rotation or 360 degree servos. These servos have no positional awareness and are really just nicely packaged DC motors with a driver and gearbox.
If you let us know what you have, we can help you with your understanding.
You got it. With a continuous rotation servo like you have, monServomoteur.write(pos) will control the direction and speed of the rotation, rather than the position as with a standard servo:
On a continuous rotation servo, this will set the speed of the servo (with 0 being full-speed in one direction, 180 being full speed in the other, and a value near 90 being no movement).