скетч для управления:
/* LarryArm v0.1 Arduino Robot Arm test sketch to check servos and arm works. */ #include <Servo.h> Servo shoulder; Servo elbow; Servo wrist; int pos = 0; void setup() { shoulder.attach(9); elbow.attach(10); wrist.attach(11); } void loop() { for(pos = 0; pos < 180; pos += 1) { shoulder.write(pos); elbow.write(pos); wrist.write(pos); delay(15); } for(pos = 180; pos>=1; pos-=1) { shoulder.write(pos); elbow.write(pos); wrist.write(pos); delay(15); } }
Ссылки
Arduino robot arm larryarm