Arduino Robotic Arm
Arduino Robotic Arm
Table of Contents
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
http://www.instructables.com/id/Arduino-Robotic-Arm/
Author:biomech75
Evo 8, Honda K, B Engines Mods
NOTE: The construction of this robotic arm is for examples purposes only. I have use simple and cheap materials for this project.
And this tutorial is to help out other Arduino users on their personal projects. No criticism will be taken personal nor because the construction and materials used for the
robotic arm. In other words use this tutorial to built you own and better robotic arm. Thank to all of you...BI()ME(H75
Enjoy;)
Parts:
1. Arduino UNO REV3
2. (2) Bread Boards
3. (2) Parallax servos
4. (2) Ebay micro servos
5. (2) Parllax analog joysticks
6. Breadboard jumper cables
7. Masking Tape
8. Foam board
9. Utility knife, scissors.
10. PATIENCE (a lot)
Software:
http://www.instructables.com/id/Arduino-Robotic-Arm/
Image Notes
1. (2) 9g micro servos
2. (2) parallax 2 axis joystics
http://www.radioshack.com/product/index.jsp?productId=12345958
3. Tape
4. Foam board
5. (2) parallax servos
http://www.radioshack.com/product/index.jsp?productId=22472146
6. Bread board jumper cables
7. Arduino UNO Rev3
http://www.radioshack.com/product/index.jsp?productId=12268262
8. (2) Breadboards
http://www.radioshack.com/product/index.jsp?productId=2734155
NOTE: Before cutting and putting everything together you need to test the movement of the servos and arrange them in the right place, for the robotic arm and its
movements. (after steps 5-8 are complete)
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 3: Cutting & Assembling Part 2
I have use school tape to hold everything in position. The base is made with recycle pieces of wood that I have found around the garage. Notice how the front servo for
the claw rotation it is placed.
Image Notes
1. This servo is for the rotation of the claw.
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 4: Cutting & Assembling Part 3
Not much to explain in here, just putting everything together. And I will refer to each connection and servos with a number for your understanding.
EX: Servo 1 base ( body rotation)
Servo 2 arm_1 ( up/down)
Servo 3 arm_2 ( up/down)
Servo 4 claw ( claw rotation)
NOTE: The connections are WAYYY confusing and NOT clear but I will explain them in the next steps.
Image Notes
1. Servo #1
BASE ROTATION
2. Servo # 2
ARM_1 UP/DOWN
3. Servo # 3
ARM_2 UP/DOWN
4. Servo # 4
CLAW ROTATION
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 5: Servos Connections 1 & 2
In here I will show how the connections for the servos 1 and 2.
SERVO 3 is a micro servo for the up and down movements of what I refer as ARM_2 .
SERVO 4 is a another micro servo for the rotation of the claw.
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 7: Joystick Connections (Joy_1) LEFT
Here is the connections for Joy_1 or the LEFT joystick. The Parallax joystick has 2 grounds and they need to be connected. For all this connections you need 2 bread
boards for each joystick. (or a big one) But I feel less confusing when I use for each joystick a small bread board. Pay attention to all the connections and double check
them.
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 9: Testing the servos
Time to test the servos and all the connections. DOUBLE CHECK all the connections.
It is a good practice to use 2 AA batteries pack as the power source, in at least in one of the bread boards.
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 11: The CODE
THE CODE: (ALWAYS TEST THE CODE BEFORE UPLOADING TO THE ARDUINO)
#include <Servo.h>
int servoVal; // variable to read the value from the analog pin
void setup() {
// Servo
myservo1.attach(servo1); // attaches the servo
myservo2.attach(servo2); // attaches the servo
myservo3.attach(servo3); // attaches the servo
myservo4.attach(servo4); // attaches the servo
// Inizialize Serial
Serial.begin(9600);
}
void loop(){
/**
* Display joystick values
*/
void outputJoystick(){
Serial.print(analogRead(joyH));
Serial.print ("---");
Serial.print(analogRead(joyV));
Serial.println ("----------------");
Serial.print(analogRead(joyP));
Serial.println ("----------------");
Serial.print(analogRead(joyX));
Serial.println ("----------------");
}
http://www.instructables.com/id/Arduino-Robotic-Arm/
Step 12: Troubleshooting
1. The servos won't move.
A. Check the connections, remember in this tutorial we use PWM pins for the servos and the Analog pins for the joysticks.
2. When I upload the code to the board the servos, they start vibrating.
A. It means that either U/D+ or L/R+ are not properly connected. Double check your connections. You have to disconnect the usb from the board to verify connections try
to review the connections on the steps 5 -8.
3. I double check the connections and the servos wont move.
A. Take out the joystick and reconnect it again in the bread board by pressing it down to make sure it is connected. Connections have to be tight from the joystick to the
bread board.
4. There is a vibration from one of the servos.
This happens because of the combination of micro servos and standard servos. (I did this project with 4 Parallax standard servos with no vibration issues at all). The
micro servos used in here are the cheap ones from Ebay. They are good for testing purposes though.
Any other help or issues you have feel free to let me know and I will be glad to help all of you. ;)
http://www.instructables.com/id/Arduino-Robotic-Arm/
Related Instructables
Advertisements
http://www.instructables.com/id/Arduino-Robotic-Arm/