Newbie Question: Make a servo turn 90 degrees and stop.

Eureka!!!

This is the right idea...This moves the "servo" 90 degrees then stops it.

Sorry about the confusion over the servo. I assumed the fact that it was sold as a servo it would be one. Never thought of buying a kitchen sink, that looks like kitchen sink and is labeled as such, would turn out to be a wheel barrow when I got it out of the box :slight_smile:

#include <Servo.h> 
 
Servo myservo;  // create servo object to control a servo 
                // a maximum of eight servo objects can be created 
 
int pos = 0;    // variable to store the servo position 
 
void setup() 
{ 

   myservo.attach(9);  // attaches the servo on pin 9 to the servo object 
   myservo.write(180); //starts servo moving as fast as it can go CCW
   delay(400); //waits for the server to move
   myservo.write(90); //stops the servo
} 
 
void loop() 
{ 
  
  }