MULTIPAL SERVO PROGRAMING CODE

     Multipal servo code


                           CODE

 #include <Servo.h>

Servo myservo1;
Servo myservo2;
Servo myservo3;
void setup() {
    myservo1.attach(3);
    myservo2.attach(4);
    myservo3.attach(5);
}
void loop() {
myservo1.write(180);
delay(500);
myservo1.write(0);
delay(10);
myservo2.write(180);
delay(500);
myservo2.write(0);
delay(10);           
myservo3.write(180);
delay(500);
myservo3.write(0);
delay(10);
}

Post a Comment

Previous Post Next Post

Contact Form