1- The first step is to assemble the arm and merge it together correctly and connect the motors together , Majoring in electrical and mechanical engineering
After you finish assembling the arm, you start programming the robotic arm so that you can use it
2 - we open arduino ide
3- Make sure you select the right board from tools > board > arduino avr board > arduino UNO
4 - Make sure you select the right port fome tools > port
5 - go to file > exampels > servo > sweep
now you can program
6 - And you can set the angle of the arm and the speed
the code :
#include <Servo.h>
Servo myservo; // create servo object to control a servo // twelve servo objects can be created on most boards
int pos = 0; // variable to store the servo position
void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object }
void loop() { for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15 ms for the servo to reach the position } for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15 ms for the servo to reach the position } }
7-We use a piece called Uno to connect between the robotic arm and the computer, and we connect it in a correct way , note : Be careful if you don't connect the uno piece correctly, it can damage your device






