#include VarSpeedServo servo_up; VarSpeedServo servo_front; VarSpeedServo servo_claw; VarSpeedServo servo_body; int pino_x = A0; int pino_y = A1; int pino_z = A3; int pino_w = A4; int val_x; int val_y; int val_z; int val_w; void setup() { servo_up.attach(5, 1, 180); servo_front.attach(3, 1, 180); servo_claw.attach(10, 1, 180); servo_body.attach(11, 1, 180); } void loop() { val_x = analogRead(pino_x); val_x = map(val_x, 0, 1023, 1, 180); servo_up.slowmove(val_x, 60); val_y = analogRead(pino_y); val_y = map(val_y, 0, 1023, 1, 180); servo_front.slowmove(val_y, 60); val_z = analogRead(pino_z); val_z = map(val_z, 0, 1023, 80, 180); servo_claw.slowmove(val_z, 40); val_w = analogRead(pino_w); val_w = map(val_w, 0, 1023, 1, 180); servo_body.slowmove(val_w, 40); delay(30); }