Smart Robotic Arm Using: Page 1 of 9
Smart Robotic Arm Using: Page 1 of 9
USING
INTRODUCTION
I will share with you how to make a smart robotic arm. You
can control this arm using a “Master” arm using
potentiometers. The “Slave” arm is comprised of servos and
will run off of the potentiometer readings. This will mimic
manual movements. Along with this feature, the prototype
also smart because it can record positions and repeat them
continuously.
Page 1 of 9
Page 2 of 9
Major Components
1. Servo motors x 5
2. Potentiometers x 5
3. Arduino UNO.
4. Breadboard.
5. 5V 2A Adaptor.
6. Cardboard/Wood/Sun-board/acrylic whatever is available
or easy to find.
7. And also need Arduino IDE installed.
8. Connecting
Page 3 of 9
wires, etc.
MAKING THE ARMS
Page 6 of 9
The Logic of this code is fairly simple the values of
potentiometers are stored in an array the records are
CODING
then traversed using a for loop and the servos do the
Steps as per the values. You can check out this tutorial I
used for reference “Arduino Potentiometer Servo
Control & Memory”
First, we will declare all the necessary
variables globally so we can use them
throughout the program. No special
explanation is needed for this.
Link- CODE -01
Now we will write a setup function, where we
set pins and their functions. This is the main
function that executes first.
Link-CODE -02
Now we have to read the values of
potentiometers using Analog Input pins and
map them to control servos. For this we will
define a function and name it Map_Pot();,
you can name it anything you want it is a
Page 7 of 9
user-de fined function.
LINK - CODE 03
Now we will write the loop function.
LINK - CODE 04
Once the code is ready, Now upload it to the Arduino board.
The Smart arm is ready to work. The function is not
yet as smooth as the one made by Stoerpeak.