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
2- go to the menue bar and select the following Tools>> Boards>> Arduino AVR Boards>> Arduino UNO
3- now connect the arduino to your laptop and from the same tools bar select the correct port
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
5- now you can upload the servo motor code from the file bar>> examples>> servo>> sweep
as i mentioned before you can change the number of the attached yellow wire
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
this is the end result
here is my robot arm waving and say HI