ARMDUINO V1 Open-Source Robotic Arm!

ARMDUINO V1 Open-Source Robotic Arm!

Description

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 <Servo.H> 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); }

Statistics

Likes

42

Downloads

0

Category

Engineering