Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Arduino_Robot_Arm

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

Screenshot 2022-07-20 155318

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

image

4 - Make sure you select the right port fome tools > port

image

5 - go to file > exampels > servo > sweep
now you can program

image

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

image

image

WhatsApp.Video.2022-07-20.at.1.28.12.PM.mp4

image

About

For this task, we learn how to assemble a robotic arm, connect the electric rotors, and communicate with the whiteboard and UNO arduino board.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors