/* Servo Motor Control using the Arduino Servo Library by Dejan, https://howtomechatronics.com */ #include Servo myservo; // create servo object to control a servo void setup() { myservo.attach(D0,600,2300); // (pin5, min, max) } void loop() { myservo.write(0); // tell servos to go to a particular angle delay(1000); myservo.write(90); delay(1000); myservo.write(135); delay(1000); myservo.write(180); delay(1000); }