ARMDUINO V1 Open-Source Robotic Arm! by Doctorfizzle 3d model
3dmdb logo
Thingiverse
ARMDUINO V1 Open-Source Robotic Arm! by Doctorfizzle

ARMDUINO V1 Open-Source Robotic Arm! by Doctorfizzle

by Thingiverse
Last crawled date: 3 years ago
Please Edit things and make it even better! Basic robotic arm compatible with the Arduino Uno! Uses 9g micro servos. Pictures of finished product with shield schematics coming soon.
Code:
(hashtag)include
int led2 = 3;
int led3 = 5;
int led1 = 6;
Servo LazySuzan;
Servo twoLink;
Servo firstLink;
int start = 100;
void setup()
{
//Declare Servo Ports
twoLink.attach(10);
firstLink.attach(9);
LazySuzan.attach(8);
Serial.begin(9600);
delay(1000);
for(int start = 100; start > 0 ; start--) {
analogWrite(led1, start);
delay(10);
analogWrite(led2, start);
analogWrite(led3, start);
}
}
void loop() {
//Declare Controller Ports
int turnVal = analogRead(A0) + 1000;
int firstVal = analogRead(A2) + 1000;
int secondVal = analogRead(A1) + 1000;
// Print Controller Values
Serial.println(turnVal);
Serial.println(firstVal);
Serial.println(secondVal);
//Direct Servo Control (Testing)
//LazySuzan.writeMicroseconds(1600);
// delay(2000);
// firstLink.writeMicroseconds(1600);
// delay(2000);
// twoLink.writeMicroseconds(1600);
// delay(2000);
//Led control as well as servo control
twoLink.writeMicroseconds(secondVal);
firstLink.writeMicroseconds(firstVal);
LazySuzan.writeMicroseconds(turnVal);
analogWrite(led1, turnVal / 8 - 120);
analogWrite(led2, firstVal / 8 - 120);
analogWrite(led3, secondVal / 8 - 120);
}

Tags