top of page

I bought this robot arm from BANGGOOD. I had to modify the arm before It can be used..... 

More than that, this arm came with no instruction. Please look for "Robot arm instruction" for a slide show that I made while building the arm. How ever. here you can find the code for the arm

CODE

/* Robotic Arm
 by Yohi Zucker January 2019
 This example code is in the public domain.
*/

#include <Servo.h>

Servo myservo1;  // create servo object to control a servo
Servo myservo2;                // twelve servo objects can be created on most boards
Servo myservo3;
Servo myservo4;

int pos1 = 70;// Right Servo
int pos2 = 45;//Left Servo
int pos3 = 30;//Gripper
int pos4 = 10;//rotating Servo

// variable to store the servo position

void setup()
{
  myservo1.attach(6);  // attaches the Right Servo on pin 6
  myservo2.attach(7);  // attaches the Left  Servo on pin 7
  myservo3.attach(8);  // attaches the Gripper Servo on pin 8
  myservo4.attach(9);  // attaches the Rotating Servo on pin 9

 


}
void loop()
{
  myservo1.write(100);
  delay(1000);
  myservo2.write(150);
  delay(1000);
  myservo4.write(90);
  delay(1000);
 

  myservo1.write(120);
  delay(1000);
  myservo3.write(10);
  delay(1000);
  myservo3.write(70);
  delay(1000);
  myservo1.write(100);
  delay(1000);
  myservo4.write(180);
  delay(1000);
  myservo1.write(120);
  delay(1000);
    myservo3.write(10);
  delay(1000);
  myservo3.write(70);
delay(1000);

 

}

bottom of page