Paso 3: Controlar la velocidad del Servo
Este código hará para que el servo cambia de 0 a 180 lentamente.
#include <VarSpeedServo.h> VarSpeedServoservo; void setup() { servo.attach(10); } void loop() { servo.write(0,30,true);//you can change the speed of the servo by changing the second number. servo.write(180,30,true);//you can change the angle of the servo by changing the first number. }