A joystick-controlled robotic arm that picks objects up and puts them down.
Built and tested by Anju.A · Industrial Robotics Institute

A robotic arm you control by hand to pick objects from one place and put them in another, like the arms used on factory assembly lines. A joystick moves the base and shoulder servos, and the gripper opens and closes with commands from the Serial Monitor.
| Component | Qty |
|---|---|
| Arduino Uno | 1 |
| Servo Motors (SG90/MG90S) | 4 |
| Joystick Module (2-axis) | 1 |
| Robotic Arm Structure (acrylic, 3D-printed or metal) | 1 |
| Breadboard | 1 |
| Jumper Wires | As needed |
| External 5V Power Supply | 1 |
| From | Connect to |
|---|---|
| Joystick VCC | 5V |
| Joystick GND | GND |
| Joystick VRx | A0 |
| Joystick VRy | A1 |
| Servo 1 (base) | Pin 3 |
| Servo 2 (shoulder) | Pin 5 |
| Servo 3 (elbow) | Pin 6 |
| Servo 4 (gripper) | Pin 9 |
| All servo red | External 5V |
| All servo brown | GND (common with Arduino) |
Complete, tested Arduino C++ code for this project. Copy it into Arduino IDE and upload it to the Arduino Uno.
#include <Servo.h>
Servo baseServo;
Servo shoulderServo;
Servo elbowServo;
Servo gripperServo;
int joyX = A0;
int joyY = A1;
int baseAngle = 90;
int shoulderAngle = 90;
int elbowAngle = 90;
int gripAngle = 90;
void setup()
{
baseServo.attach(3);
shoulderServo.attach(5);
elbowServo.attach(6);
gripperServo.attach(9);
elbowServo.write(elbowAngle);
Serial.begin(9600);
}
void loop()
{
int xVal = analogRead(joyX);
int yVal = analogRead(joyY);
// Base rotation
if (xVal < 400) baseAngle--;
if (xVal > 600) baseAngle++;
// Shoulder movement
if (yVal < 400) shoulderAngle--;
if (yVal > 600) shoulderAngle++;
baseAngle = constrain(baseAngle, 0, 180);
shoulderAngle = constrain(shoulderAngle, 0, 180);
baseServo.write(baseAngle);
shoulderServo.write(shoulderAngle);
// Gripper control from Serial Monitor
if (Serial.available())
{
char cmd = Serial.read();
if (cmd == 'o') gripAngle = 30; // Open
if (cmd == 'c') gripAngle = 90; // Close
}
gripperServo.write(gripAngle);
delay(50);
}A robotic arm you control by hand to pick objects from one place and put them in another, like the arms used on factory assembly lines. A joystick moves the base and shoulder servos, and the gripper opens and closes with commands from the Serial Monitor.
You need: Arduino Uno (1), Servo Motors (SG90/MG90S) (4), Joystick Module (2-axis) (1), Robotic Arm Structure (acrylic, 3D-printed or metal) (1), Breadboard (1), Jumper Wires, External 5V Power Supply (1). Software: Arduino IDE, Servo library.
It is rated intermediate and takes about 4–5 hours to build, using the Arduino Uno. The guide on this page explains every connection and step.
The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.
Yes. IRI sells a kit with the parts for this project (PRJ-058). Message IRI on WhatsApp at +91 86060 82634 for the kit price and delivery details.