Thingiverse
ARMDUINO V1 Open-Source Robotic Arm!
di Doctorfizzle
57
Download
47
Likes
0
Makes
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);
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);
Hai stampato questo modello? Accedi e condividi il tuo make!
Accedi per lasciare un commento
AccediAncora nessun commento – sii il primo!