/TurnOnTheServoMotorWithRobotArm

for this task we learn how to assembly a robot arm and connect with the white board and UNO arduino board

TurnOnTheServoMotorWithRobotArm

for this task we learn how to assembly a robot arm and connect with the white board and UNO arduino board

tools you will need to atchieve this task

  • white board
  • four black wires
  • one yellow wire
  • two red wires
  • UNO arduino
  • servo motor
  • Arduino IDE

بورد أبيض

قطعة الاونو

assembly the robot arm as it shown in the image

تركيب الذراع

after that you will work with the wires in the boards

attach the 2 black wire as it shown in the image make sure ton attach on in the positive and the other one at the negative

البورد الأبيض بعد تركيب الأسلاك السوداء للموازنة

now you will attach one red wire at 5v port and one black wire at GND port at the UNO Arduino attach 2 red wires at the positive line in the white board and attach 2 black wires at the negative line in the white board

**Note: the first red wire will be connect with the servo motor wires while the second red wire will be attch at the 5v port in the UNO Arduino

do the same with the black wire but switch between the position so the first one will be attach in the GND port at the UNO Arduino and the second one will be attach to the servo motor wires

as it shown in the image

قطعة الاونو بعد تركيب الاسلاك الحمرا والسودا

attach the yellow 9 port at the UNO Arduino note you can choose any number from 2 to 12 but make sure to change the port number in the servo sweep code

قطعة الاونو بعد توصيل كل الأسلاك

this will be the result for the UNO Arduino and the white board الاونو بعد تركيب كل الأسلاك

البورد الأبيض بعد تركيب الاسلاك الحمرا والسودا

Now it is time to connect the board to the Arduino IDE

1- open Arduino IDE Screenshot (638)

2- go to the menue bar and select the following Tools>> Boards>> Arduino AVR Boards>> Arduino UNO

Screenshot (639)

3- now connect the arduino to your laptop and from the same tools bar select the correct port Screenshot (640)

4- install the library of servo if it is not installed yet by following the next steps sketch bar>> include library>> manage library>> and search for servo then install the last version

Screenshot (641) Screenshot (642)

5- now you can upload the servo motor code from the file bar>> examples>> servo>> sweep

Screenshot (643)

as i mentioned before you can change the number of the attached yellow wire

Screenshot (644)

to change the arm movement angle you can change the initial value of pos in the for loop

you also can chane the speed of the arm movement

Screenshot (645) Screenshot (646)

this is the end result

here is my robot arm waving and say HI

الذراع بالكامل

default.mp4