RoboticsIntermediatePRJ-058

Manual Pick-and-Place Robot Arm Using Arduino

A joystick-controlled robotic arm that picks objects up and puts them down.

Built and tested by Anju.A · Industrial Robotics Institute

Circuit diagram of the Manual Pick-and-Place Robot Arm using Arduino Uno
Circuit diagram · Arduino Uno
LevelIntermediate
Build time4–5 hours
BoardArduino Uno
Parts7 components

What is the Manual Pick-and-Place Robot Arm?

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.

How it works

  1. The joystick gives X and Y readings between 0 and 1023.
  2. Pushing it left or right turns the base servo a degree at a time.
  3. Pushing it up or down moves the shoulder servo.
  4. Angles are kept between 0° and 180° to protect the servos.
  5. Typing o or c in the Serial Monitor opens or closes the gripper.

Parts list

ComponentQty
Arduino Uno1
Servo Motors (SG90/MG90S)4
Joystick Module (2-axis)1
Robotic Arm Structure (acrylic, 3D-printed or metal)1
Breadboard1
Jumper WiresAs needed
External 5V Power Supply1

Software

  • Arduino IDE
  • Servo library

Wiring and connections

FromConnect to
Joystick VCC5V
Joystick GNDGND
Joystick VRxA0
Joystick VRyA1
Servo 1 (base)Pin 3
Servo 2 (shoulder)Pin 5
Servo 3 (elbow)Pin 6
Servo 4 (gripper)Pin 9
All servo redExternal 5V
All servo brownGND (common with Arduino)

How to build the Manual Pick-and-Place Robot Arm

  1. Assemble the arm with servos at the base, shoulder, elbow and gripper.
  2. Connect the servo signal wires to pins 3, 5, 6 and 9.
  3. Power the servos from an external 5V supply and join its GND to the Arduino GND.
  4. Connect the joystick to 5V, GND, A0 and A1.
  5. Upload the code and open the Serial Monitor at 9600 baud.
  6. Use the joystick to position the arm and type o / c to open and close the gripper.

Manual Pick-and-Place Robot Arm code

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);
}

Real-world uses

  • Industrial pick-and-place training
  • Sorting and assembly demos
  • Robotics labs
  • Learning servo kinematics

Frequently asked questions

What is a Manual Pick-and-Place Robot Arm?

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.

What components are needed for the Manual Pick-and-Place Robot Arm?

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.

Is the Manual Pick-and-Place Robot Arm project good for beginners?

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.

Where can I get the code for the Manual Pick-and-Place Robot Arm?

The complete, tested Arduino C++ code is free on this page. Copy it into Arduino IDE and upload it to the board.

Can I buy a kit for the Manual Pick-and-Place Robot Arm?

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.

Industrial Robotics Institute
Logo