Arduino mega and servo motor

i've an arduino mega and servo motor i wanna make the motor rotate from 0 to 90 degree and stop little seconds then rotate from 90 to 180 and so on , but don't rotate in opposite angle thanks for your time .

  • What kind of servo motor ?
  • Do you have resolver / encoder in it

TommiP

Have a look at the servo sweep example that comes with the Arduino IDE and at the servo function in Several Things at a Time

...R