Computer-Controlled Robotic Arm

by theSTEMpedia in Circuits > Robots

3408 Views, 10 Favorites, 0 Comments

Computer-Controlled Robotic Arm

Complete Assembly.JPG
Robotic Arm 1.JPG

Need an extra hand with moving stuff (from one part of the table to another or from the popcorn bowl to your mouth)? Presenting you with the DIY computer-controlled robotic arm - a 5 DoF easy-to-build robotic arm that can easily be controlled with your computer’s keyboard and programmed in PictoBlox - our Scratch blocks-based graphical programming software. You can download it from HERE.

All the components you need to make the pick and place robotic arm are available in the 5 DoF robotic arm kit. Also, to control the Robotic Arm, you can find evive here.

Ready to build one for yourself? Let’s go!

Making the Inner Bearing Assembly

Making the Base of the Robot Arm (3).jpg
Making the Base of the Robot Arm (4).jpg
Making the Base of the Robot Arm (6).jpg
Making the Base of the Robot Arm (8).jpg
Connect sERvo.png

Let’s start with the assembly.

Mount the servo horn on the Inner Bearing Disc using self-threading M2 screws found in metal servo accessories. Use the four holes which are closer to the center. (Fig 1)

ake an 80mm custom standoff using two 30mm male to female standoffs and one 20mm female to the female standoff. Similarly, make 3 more. (Fig 2)

Fasten these standoffs to the Inner Bearing Disc using M3 bolts of 8mm length. Make sure that you attach the standoffs on the side opposite to that of the servo horn. (Fig 3)

Attach the Metal Servo to the Base Servo Motor Plate using M4 bolts of 16mm length and M4 nuts. Make sure that the servo shaft is at the center of the plate. (Fig 4)

Now, we need to set the servo angle to 90 degrees. For that, first, connect the Metal Servo to evive’s servo channel S1. (Fig 5)

Then, connect the Adapter and switch ON evive. Set VVR to 6V by rotating the VVR knob.

To set the angle, open evive’s menu and select Controls, then Servos, then Servo 1. Rotate the potentiometer1 of evive and set the servo angle to 90°.

Making the Base Assembly

Making the Base of the Robot Arm (9).jpg
Making the Base of the Robot Arm (11).jpg
Making the Base of the Robot Arm (13).jpg
Making the Base of the Robot Arm (14).jpg
Making the Base of the Robot Arm (15).jpg

Next, sandwich the Bottom Outer Bearing Disc, Bearing, two Middle Outer Bearing Disc, Top Outer Bearing Disc. and the Base Servo Motor Plate together. (Fig 1)

Align the holes of the outer rings and hold them in place using four M4 bolts of 25mm length and M4 nut. (Fig 2)

Finally, lock the servo horn to the servo shaft using the servo screw. Make sure that the standoffs are aligned to outer bearing bolts. (Fig 3)

Now, mount the other end of the standoffs to the Robotic Arm Base using M3 bolts of 8mm length. Make sure that the Base is mounted in such a way that the servo is closer to the rear end of the base. (Fig 4)

With this the base of the Robotic Arm is ready, our entire robotic arm assembly will be made on it.

Making the Left Side of the Arm

Making the Left Side of the Robot Arm (20).jpg
Making the Left Side of the Robot Arm (22).jpg
Making the Left Side of the Robot Arm (24).jpg
Making the Left Side of the Robot Arm (26).jpg
Making the Left Side of the Robot Arm (29).jpg
Making the Left Side of the Robot Arm (31).jpg
Making the Left Side of the Robot Arm (33).jpg
Making the Left Side of the Robot Arm (18).jpg

Now, that the base is ready, let’s make the left side of our Smartphone-Controlled Robot

Mount another metal servo to the Side Servo Mounting Plate using M4 bolts of 16mm length and M4 nuts. Make sure that the servo shaft is nearer to the end. (Fig 1)

Set the servo angle to 45° as done before using the evive’s firmware.

Next, attach the servo horn to the Left Lower Arm using self-threading screws. (Fig 2)

Align and place the servo horn on the metal servo shaft and fix it using the servo screw. (Fig 3)

Make two custom standoffs of 60mm length by attaching male-to-female standoffs and female-to-female standoffs of 30mm length each and mount them on the left side Servo Mounting Plate using M3 Bolts of 8mm. The standoffs will be on the same side as the Left Lower Arm. (Fig 4)

Now, mount the left Side Servo Mounting Plate to the left side of the Base Servo Motor Plate using M3 bolts of length 12mm and M3 Nut. (Fig 5)

Next, take the Left Middle Arm and attach it to the left Side Servo Mounting Plate using M4 bolt of 16mm length and M4 nut. (Fig 6)

Next, take the Triangular Junction Plate and mount the other end of the Left Middle Arm to it using M4 bolt of 16mm length and M4 Nut. Keep it loose enough for the arm to rotate freely. (Fig 7)

Now, take another Left Lower Arm and mount it to the first Left Lower Arm using M4 bolts of 25mm length and M4 nuts. Add two Spacers in-between the arms to maintain a 10mm distance. Next, insert the 3D Printed Spacer in-between the Left Lower Arms. (Fig 8)

With this, the left side of the robot arm is completed.

Making the Right Side of the Robotic Arm

Making the Upper Arm Assembly (1).jpg
Making the Right Side of the Robot Arm (3).jpg
Making the Right Side of the Robot Arm (5).jpg
Making the Right Side of the Robot Arm (6).jpg
Making the Right Side of the Robot Arm (11).jpg
Making the Right Side of the Robot Arm (1).jpg
Making the Right Side of the Robot Arm (10).jpg

Take the two Right Upper Arms and bring Right Upper Armstogether the Triangular Junction Plate’s center hole, Left Lower Arm’s top hole, Spacer, first Right Upper Arm’s second hole, Left Lower Arm’s top hole, second Right Upper Arm’s second hole and fasten them together using M4 bolt of 40mm length and M4 nut. Keep it loose enough for the arms to rotate freely. (Fig 1)

Now, let’s complete the other half of the Robotic Arm i.e. the Right Side. Now, take the right side Servo Mounting Plate and attach another Metal Servo on it using M4 bolts of 16mm length and M4 nuts. (Fig 2)

Set the servo angle to 90° using evive’s firmware. Make sure that the servo shaft is closer to the rear end.

Next, take the Right Lower Arm and attach the metal servo horn to it using servo screws. (Fig 3)

Then, attach the servo horn to the servo shaft using the servo screw. (Fig 4)

Next, fasten the right side Servo Mounting Plate to the Base Servo Motor Plate using M3 bolts of 12mm length and M3 nuts. Then, attach the Side Servo Mounting Plate to the 60mm length Standoff using M3 bolts of 8mm length. Next, fix the two Right Upper Arms together with the Spacers sandwiched in between using M4 bolts of 25mm length and M4 nut. (Fig 6)

Now, take the Right Middle Arm and fasten it to the Right Lower Arm using M4 bolt of 16mm length and M4 nut on one side. (Fig 7)

Then, attach the other end of the Right Middle Arm to the Right Upper Arm using M4 bolt of 40mm length and M4 nut. Add three spacers in-between to maintain a proper distance. Keep it loose enough for the arms to rotate freely. (Fig 8)

Attach the Left Upper Arm to the third hole to the Triangular Junction Plate using M4 bolt of 16mm length and M4 nut. Keep it loose enough for the arms to rotate freely. (Fig 9)

Yay! With this, the assembly of the robotic arm is almost ready. All we need to add is the pick and place mechanism. So that the robot arm can pick any object and place it where we guide it to.

Making the Rotational Gripper Assembly

Making Gripper Assembly (3).jpg
Making Gripper Assembly (5).jpg
Making Gripper Assembly (7).jpg
Making Gripper Assembly (9).jpg

Take the End-Effector Rotational Micro Servo Plate and attach a micro servo to it using M2 bolts of 12mm length and M2 nuts. Set the servo angle to 90° using evive’s firmware as done before. (Fig 1)

Mount a Rotational Servo Plate to the Left Upper Arm using an M4 bolt of 16mm length and M4 nut. Keep it loose enough for the arms to rotate freely. (Fig 2)

Fix the End-Effector Rotational Micro Servo Plate inside the rectangular slot of the Rotational Servo Plate. Make sure that the servo head faces downward. (Fig 3)

Take another Rotational Servo Plate and attach it to the other side of the End-Effector Rotational Micro Servo Plate using M4 bolts of 30mm length and M4 nuts. insert a spacer between the two Right Upper Arms. Keep it loose enough for the arm to rotate freely. (Fig 4)

Next, insert the micro servo in the slot on the Gripper Part 1 and fasten it using M2 bolts of 12mm length and M2 nuts.(Fig 5)

Making the Gripper Claw Assembly

Making Gripper Assembly (11).jpg
Making Gripper Assembly (1).jpg
Making the Gripper Claw assembly (3).jpg
Making the Gripper Claw assembly (5).jpg
Making the Gripper Claw assembly (8).jpg
Making the Gripper Claw assembly (7).jpg

Next, insert the micro servo in the slot on the Gripper Part 1 and fasten it using M2 bolts of 12mm length and M2 nuts. Set the servo angle to 30° using evive’s firmware.

Attach two M3 Standoff of 15mm length to the Gripper Part 1 using M3 bolts of 8mm length.

Take Gripper Claw 1 and Gripper Claw 2 and attach them to the Gripper Plate 1 using M4 bolts of 16mm length and M4 nuts. Make sure that the Gripper Claw 1 is near the servo shaft and the gears of the claw perfectly fit together and are symmetric. Keep the bolts loose.

Now, take the Gripper Link and attach a micro servo single-sided horn to it using self-threading screws. Keep it loose enough so that they can rotate freely.

Take the Gripper Claw 1 and attach the other end of the Gripper Link to it using an M3 bolt of 12mm length and M3 nut. Keep it loose enough for the claw to rotate freely.

Open the gripper claw by moving the Gripper Claw 1 and Gripper Claw 2 apart and then fix the micro servo horn to the micro servo’s shaft.

Finally, mount the servo screw on the micro servo horn to secure it.

Completing the Gripper Assembly

Making the Gripper Claw assembly (10).jpg
Making the Gripper Claw assembly (12).jpg
Making the Gripper Claw assembly (14).jpg
Making the Gripper Claw assembly (1).jpg
Complete Assembly.JPG

Now, take a Gripper Plate and attach a dual-sided micro servo horn to it using self-threading screws. (Fig 1)

Fix the servo horn to the rotational servo’s shaft using a servo screw. Make sure the Gripper Plate is perpendicular to the micro servo. (Fig 2)

Finally, take the gripper assembly and fix it on the Gripper Plate. On the other side of the Gripper Plate attach the Gripper Part 2 such that the standoffs align to the holes and fix it using M3 nuts. (Fig 3, 4)

Note: In case any of the M4 nuts come out or become loose during the assembly, use M4 Lock Nuts in their place at the joints.

With this the assembly of the Robotic Arm is complete. (Fig 5)

Making the Connections

Image00001.jpg

Now let’s move on to the circuitry. We are going to use evive as the brain to control our robotic arm.

Before connecting the servos to the evive, extend the wires of all the servos.

  1. Next, make the connection of metal servo as below:
  2. Connect the VCC and GND of the Base, Link 1, and Link 2 servo to the breadboard as we are going to make the VCC and GND of them common.
  3. Connect Signal Pin as:
    1. Base Servo – Digital Pin 2 of evive.
    2. Link 1 – Digital Pin 3 of evive.
    3. Link 2 – Digital Pin 4 of evive.
  4. Now, let’s connect the remaining two micro servos.
  5. Connect VCC and GND of both the micro servo to the +5V pin and GND pin of evive.
  6. Connect Signal Pin as:
    1. Rotational Servo – Digital Pin 5 of evive.
    2. Gripper Servo – Digital Pin 6 of evive.
  7. Now, connect the positive terminal of the VVR pin to the VCC column and the negative terminal to the GND column.
  8. Connect the 12V adapter to evive and switch it ON by sliding the power switch to EXT. Set the VVR to 6V by rotating the VVR knob. As higher voltage may damage your servo. With this, the connections are complete.

Writing the Code

Before writing the code, we need to calibrate the Robotic Arm. Find the entire process of calibration over here.

Open PictoBlox and create the following script:

Create the script to initialize the robotic arm when the flag is clicked.

Following are the controls for the robotic arm.

Conclusion

With this, your DIY computer-controlled robotic arm is all set to help you out!