0% found this document useful (0 votes)
19 views

Arduino IoT Robotic Arm

This instructable describes how to build an Arduino IoT robotic arm with 5 degrees of freedom. It includes steps to assemble the arm out of wood and servo motors, write code to control the arm with a Blynk app, and optionally implement forward kinematics in Matlab. Code files and guides are provided to control the arm and simulate its motion. The overall goal is to create a customizable robotic arm that can be programmed to perform tasks like gripping and trajectory following.

Uploaded by

Xusen Karimo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views

Arduino IoT Robotic Arm

This instructable describes how to build an Arduino IoT robotic arm with 5 degrees of freedom. It includes steps to assemble the arm out of wood and servo motors, write code to control the arm with a Blynk app, and optionally implement forward kinematics in Matlab. Code files and guides are provided to control the arm and simulate its motion. The overall goal is to create a customizable robotic arm that can be programmed to perform tasks like gripping and trajectory following.

Uploaded by

Xusen Karimo
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

technology workshop craft home food play outside costumes

Arduino IoT Robotic Arm


by aerdronix on December 26, 2016

Table of Contents

Arduino IoT Robotic Arm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Intro: Arduino IoT Robotic Arm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 1: Components & Materials . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

Step 2: Building the Robot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

Step 3: Writing the Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4

Step 4: Testing and Having Fun . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

http://www.instructables.com/id/Arduino-IoT-Robotic-Arm/
Intro: Arduino IoT Robotic Arm
Hello there! This is my first robotic arm with the following features (until now):

5DOF robot, actually 4 if we exclude the gripper


the brain is an Arduino Yun with IoT capabilities
the control interface is built in Blynk app
forward kinematic are implemented in Matlab using the Robotics Toolbox
a new library that I wrote which realizes a smooth motion

I am very happy with the result. Therefore, I would like to share with you my experience and how to build it. So, let's start...

Step 1: Components & Materials


To build the robot you need:

1 x Arduino Yun (or any Arduino board)


5 x servo motors
1 x 5V charger, min 2.5 A
2 x Led's
2 x resistors, 100 ohm (for red led) and 150 ohm (for blue led), respectively
2 x wood mixing sticks
1 x metallic wire (or similar)
1 x plastic sheet (I took it from a shower gel bottle)
1 x rubber band
2 x small sponges (see left-upper corner)
9 x plastic M3 screws
6 x plastic M2.5 screws
1 x wood plate 3mm (30cm x 50cm should be more than sufficient)
1 x wood glue
time for coding

http://www.instructables.com/id/Arduino-IoT-Robotic-Arm/
Step 2: Building the Robot
For building the robot, start by measuring the servos size and checking the servos torque. This will give you an indication about the size of the arms and eventually the
size of the robot. In my case, I ordered 2 different micro high-torque servos: first pair and second pair. These can travel up to 140 deg even though they are specified to
travel 120 deg. However, I advise to buy 180 deg servos in order to have more travel angle.

For the gripper, there is no need for a high-torque servo. The cheapest micro-servo on ebay can do the job.

Start by cutting the arms as you see in Photo 1. Here, you can be creative, there is no fixed design, you can come up with your own design. Then, build the gripper using
one mixing stick cut in half and the plastic sheet as spring return. With wires connected to inner side you can close and open the gripper. For my robot, I used one M3
screw to make the gripper pivot. The gripper pivoting is done by a servo located to the other side of the arm in order to obtain weight balance. The power is transmitted
via another mixing stick (see Photo 2, top of the robot).

Next, build the base and the plate that holds the base servo and the Arduino Yun board (or another board). Put everything together and you should have something like
in Photo 2.

If you want a better looking design, sand the wood components and paint them (as in Photo 3) with your preferred color. For my robot, I went for a silver color (to mimic
metal) with red stripes.

And yes.. we have a robot :) see Photo 4.

http://www.instructables.com/id/Arduino-IoT-Robotic-Arm/
Step 3: Writing the Code
Ok, so we finished making the hardware! However, the robot has no life without software.

For the software, I started by making first an interface in Blynk. If you haven't used Blynk before, please check their website on how to do it. Should be very easy and
straight-forward.

Note: If you don't have a board that can connect to the internet, don't worry you can still use Blynk with a normal board e.g., Arduino Uno, via the USB port. To do this
read here.

Next, let's go to Arduino IDE and write some code. For your convenience, I attached the code, so you can just use it :) To run it you need to do the following:

1. Configure the Arduino Yun board.


2. Install Blynk library in your Arduino IDE by going to Sketch>Include Library>Manage Libraries , search for Blynk and install it.
3. Add the SimpleTimer library in a folder with the name SimpleTimer to your Arduino library folder, usually Arduino\libraries\
4. Add the MotionGenerator library that I wrote, in a folder with the name MotionGenerator to Arduino library folder
5. Compile and upload RobotArm_instructables.ino (Note: don't forget to update your Blynk token)

Note: The MotionGenerator library is an analytical-based solution that will give you smooth nice transitions from one point to another. It allows limitations on the
maximum speed and acceleration.

_____________________________________________

Optional steps (forward kinematics, see Photo 2): For this you need Matlab and Robotics Toolbox. If you have all these set, make sure your robot is connected to Blynk
and connected to your computer's USB port. Matlab will collect information from the Arduino via the serial communication. So, make sure to fill in the right COM port in
the MainScrip.m. Finally, just run the MainScrip.m.

Note: The robot kinematics are for my own robot. For your robot the dimensions might be different (feel free to adjust in robotKinematicsFcn.m).

File Downloads

roboticArm_instructables.ino (5 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'roboticArm_instructables.ino']

SimpleTimer.cpp (5 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'SimpleTimer.cpp']

SimpleTimer.h (3 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'SimpleTimer.h']

MainScript.m (1 KB)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'MainScript.m']

robotKinematicsFcn.m (538 bytes)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'robotKinematicsFcn.m']

setupSerial.m (697 bytes)


[NOTE: When saving, if you see .tmp as the file ext, rename it to 'setupSerial.m']

http://www.instructables.com/id/Arduino-IoT-Robotic-Arm/
readValue.m (210 bytes)
[NOTE: When saving, if you see .tmp as the file ext, rename it to 'readValue.m']
Step 4: Testing and Having Fun
Great! You completed the Robot Arm. Now is time to play and enjoy!

In the future, I will implement inverse kinematics and perform tasks like drawing, precise gripper positioning, trajectory following and many more. So, stay tuned!

Related Instructables

Pointillist HackerBoxes Homemade Gesture Drawing Robot DIY delta 3D


Painting Robot Robotics Robotic Arm Controlled by lakshay garg printer using
Arm by Workshop by Using Standard Robotic Arm low cost
Aleator777 HackerBoxes Parts Using Using Kinect & recycled parts
Arduino and a Arduino by by hesamh
Processing GUI avinash15101994
by CyberMerln.

Advertisements

Comments
2 comments Add Comment

Swansong says: Dec 27, 2016. 7:27 AM REPLY


This looks really neat :)

aerdronix says: Dec 27, 2016. 11:22 AM REPLY


Thank you!

http://www.instructables.com/id/Arduino-IoT-Robotic-Arm/

You might also like