in ,

Pick and Place Robot Arduino Tutorial | DIY Robot

Hope you have gone through the introduction part of the Spinel Crux L2 – Arduino Pick and Place Robot with Robotic Arm. Looks cool with under glowing lights right? Why not build one for yourself? Here we will learn how to build a robot and connect a robotic arm on top of it and build our own DIY pick and place robot.pick and place robot arduino

We will provide you with the design, code, circuit diagrams and links to buy your own robotic arm, robot kit, chassis and the sensor modules used in this project.

Pick and Place Robot Tutorial

First take at the prototype video of the Pick and Place Robot we have made.

First let me tell you a little bit about the components I used to build this pick and place robot.


An accelerometer is a sensor which can be used to sense the acceleration due to gravity on various axis acting on an object. Using this we can easily calculate the tilt of an object with respect to the Ground. We will driving our Spinel Crux using the X and Y tilt analog values.MMA7361 Gesture Controlled Robot

Here I am using MMA7361  accelerometer to control the direction of our Gesture Controlled Robot; you can use any accelerometer which will give analog values in X and Y direction. The reason why I am using this accelerometer is,  we can provide 5 volts as well as 3.3 volts as Vcc to this accelerometer. since I am using Arduino MKR1000, I can connect 3.3 Volt directly from the Arduino. It is also small very lightweight and can easily be connected to Arduino and Raspberry Pi without much complication.  if you want you can buy this accelerometer for a cheap price from

Arduino Nano

In this project we will have to use two micorcontroller – one for the controller which will gather all the sensor data and transmit them to the wireless module and another one on the robot, which will gather data from the receiver module, process them and control robotic arm and the pick and place robot. The Arduino Nano is very small and can easily be fitted on top of the bread board. This can be easily programmed using a PC via USB using Arduino IDE

This board can be powered using the Mini USB port. Through pin 30, we can supply an unregulated voltage source of 6 to 20V or through pin 27, we can provide a regulated power source of 5V. The power selection will be automatically done by the Nano board.


HC 12 is a really cheap long range wireless module which can be used for wireless serial communication over a long distance of upto 1.7 KM. The module is really compact light weight and breadboard friendly which makes this the best wireless controller for our project.


Testing HC12 Connection

#include <SoftwareSerial.h>
SoftwareSerial HC12(10, 11); // HC-12 TX Pin, HC-12 RX Pin
void setup() {
Serial.begin(9600); // Serial port to computer
HC12.begin(9600); // Serial port to HC12
void loop() {
while (HC12.available()) { // If HC-12 has data
Serial.write(; // Send the data to Serial monitor
while (Serial.available()) { // If Serial monitor has data
HC12.write(; // Send that data to HC-12


This is the most widely used robotic controller which comes with various robot DIY robot kit/robot arm kit that is built to work with arduino. The design is quite simple and is very easy to use. It uses two potentiometers to calculate the motion in the x axis and y axis and a switch to sense the button press.

This can be easily connected to the arduino’s analog pins and read analog values directly.

Code for testing the joystick is available down below. Feel free to download/edit it as per your need.


Before uploading the main code, make sure your joystick works by using this code. Download the code from the above link. In this example, what we are doing is simply collecting the data analog outputs from the Joystick using the analog pins (A0, A1,A2) of arduino. These values are stored in the variables and are later printed on the serial monitor.

We will divide this post into two parts

1- The Remote Controller

The Transmitter consist of a breadboard in which we mount all the sensors and components to get the data which is used to drive the pick and place robot and the robotic arm. This includes an accelerometer, a joystick and an HC12 module.

remote control pick and place robot

We will use the accelerometer to control the robotic arm and joystick to control the robot. For now, we will use the joystick button to close the robotic hand. The data from this sensors are transmitted wirelessly to the DIY robot using a HC12 module.

2- The Robot

pick and place robot arduino kit

Here, i will tell you how to make a robotic arm, build a robot and mount the arm on top of the robot. You will also learn how to program arduino to read the data coming from the wireless communication module – HC12, process it and how to remote control robotic arm with arduino along with the robot.

Get Your Componentspick and place robot arduino kit

To build one yourself, you will have to get a robotic arm, robot chassis and some sensors. Click on this link and get everything you need for this project project.

Without wasting time, lets get started.

Part 1 – The Remote Controller

What it does?

As mentioned earlier, this DIY Robot is a remotely controlled robot. So in the controller section, we have a breadboard, a joystick – to control the movement of the robot and the closing and opening of the fist of the robot, an accelerometer – to move the robotic arm, and a wireless module to transmit this data to the robot.


remote control pick and place robot arduino

Simply connect all the components as shown below. We will be powering the Arduino with a 5V power bank and use the 5 V Vout of the arduino to power up all the other modules.

Arduino – Accelerometer

  • 5 Vout – VCC Arduino
  • Gnd – Gnd
  • X – A0
  • Y – A1

Arduino – Joystick

  • 5 Vout – VCC Arduino
  • Gnd – Gnd
  • X – A2
  • Y – A3
  • Switch – A4

Arduino – HC12

  • 5 Vout – VCC Arduino
  • Gnd – Gnd
  • 10 – TX
  • 11 – Rx

Before connecting the HC12 module, make sure all other components are working properly using the below code.

int x;
int y;
int lr;
int bf;
int sw;

void setup()
pinMode(A0, INPUT);
pinMode(A1, INPUT);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
pinMode(A4, INPUT);

pinMode(2, OUTPUT);

void loop()
digitalWrite(2, HIGH);
x = analogRead(A0);
y = analogRead(A1);

lr = analogRead(A2);
bf = analogRead(A3);
sw = analogRead(A4);


Serial.print("X = ");
Serial.print("Y = ");

Serial.print("Joy Stick");

Serial.print("Left/Right = ");
Serial.print("Back/Forward = ");
Serial.print("Switch = ");


Once this code is uploaded, start the serial monitor and check if all those values are shown properly.

Then you can upload the real code below.


Simply download the below code using the download link below and upload it to your controller.



Part 2 -The Robot

The main part of the robot is the chassis in which we mount all the components including the arm.

The Robotic ArmGesture Controlled Robot

I got the robotic arm kit from This robotic arm is made of good quality aluminum and is really light weight. This one have so many mounting points which will allow us to connect to any robot bodies/chassis without drilling mounting holes.

Robotic Arm Arduino

Click here to check it out

There are 4 servo motors which will give the robotic arm a total of 3 Degrees of Freedom. The servo motors are included and the working voltage is 4.8-6V.

You can either buy this along with the servo motor or you can buy them separately.

Robot Chassis – DIY Robot KitGesture Controlled Robot

The chassis I used for making this pick and place robot is something I would like to talk about. I got this kit Not only this one, they have so many types of robot frames, motors and almost all the sensors for doing Arduino, raspberry pi and other electronics and hobby projects. You will get all these things for a cheap price with really fast and quality shipping.

And the great thing about this kit is they provide all the tools you need to assemble the frame together.

Get your DIY Robot Kit From BangGood

Click Here to Check it Out!!

Servo Motor Control

Image result for PCA9685 servo motor

The PCA9685 is a 16 Channel 12 Bit PWM I2C-bus controlled Servo motor Driver. The Driver can very easily connected to your arduino, Raspberry Pie and easily programmed to control single or multiple servo motors and make your own RC plane, car, ship, quadrapod, hexapod or anything you want.

Follow this link to know more about the servo motor driver.


Here we will be using a 12 V power supply for powering up the entire robot. We feed the raw 12 Volt to the LED and the motor driver IC voltage in for motor.

Then we use a regulator to step down voltage to 5V and feed it to Arduino, HC12 and Servo motor driver.

You can drive the DC motors using using a good motor driver IC. In this project, I will be using Dual H Bridge Motor Driver IC – L293D which can control two servo motors at a time.

For more details on driving DC motors using L293D IC click here. If you are new to this, it is better to go through this before proceeding to the next step to get a better understanding of the project.

build pick and place robot arduino

Simply connect all the components as shown below.

We will be powering the Arduino with a 5V power bank and use the 5 V Vout of the arduino to power up all the other modules.

Arduino – Servo motor Driver

  • 5 Vout – VCC Arduino
  • Gnd – Gnd
  • SDA – SDA
  • SCL – SCL

Arduino – HC12

  • 5 Vout – VCC Arduino
  • Gnd – Gnd
  • 10 – TX
  • 11 – Rx

Servo motor Driver – Servo Motor

  • Servo 1 – Port 000
  • Servo 2 – Port 001
  • Servo 3 – Port 002
  • Servo 4 – Port 003

Arduino – L293D

  • Pin 2 – Motor 1 A
  • Pin 3 – Motor 1 B
  • Pin 4 – Motor 2 A
  • Pin 5 – Motor 2 B


The H bridge will work only if the Enable Pin is set to Logic 1

One thing to keep in mind while using this IC is, there are two pins where we have to supply the input power. Pin 8 and Pin 16; both are for entirely different purposes. Pin 9 is for driving the motor which can handle a voltage of 6 V to 30 Volt and Pin 16 which will power up the IC for the internal circuit. Under no circumstances, you should not interchange these two pins or it may burn off the chip.


Simply download the below code using the download link below and upload it to you DIY robot and you will be good to go.



Lets Ride!!!

Once the code is uploaded to your pick and place robot, you can connect your robot to a 12 V power source and your robot wireless controller to a 5V power source.

Now you should be able to control the robot remotely using the wireless controller.

Whats next?

This is just a beginning. We, the RootSaid group is working on a wireless control glove that can be used to control the whole robot, including the robotic arm. But there is something cool about this glove.

This glove can detect hand gestures WITHOUT Flex sensor. Yes, you heard that right. Want to find out more? Be a part of RootSaid.

Subscribe RootSaid Website by simply entering your Email ID below. You will receive notification whenever the tutorial is available for you to tinker with.


Don't worry, we don't spam

Rate the Project

Did you find this useful? Help us to improve by rating this page.

Pick and Place Robot Arduino Tutorial | DIY Robot
4.4 rating based on 12,345 ratings
Overall rating: 4.4 out of 5 based on 253 reviews.

Written by Jithin


Leave a Reply
  1. Awesome… Thanks mate..

    • have you done this project?

  2. Name of the library please

  3. how to control this robot wirelessly

Leave a Reply

Your email address will not be published. Required fields are marked *

time sensor arduino

Arduino Time Sensor DS3231 – Real Time Clock Tutorial

openbci myoware emg sensor arduino

Myoware EMG Sensor – Arduino Tutorial | Cost Effective EMG Sensor