How to make Gesture Control Robot using Arduino

how to make a gesture control robot at home

Welcome to the Techatronic Guys, In this article, we will learn how to make a Gesture control robot at home. if you wanna learn how to make it carefully read the full article. this is the most interesting and popular project nowadays in electronics and engineering, many of the students from college and school making this awesome project. the interesting thing is that this is a wireless robot that you can control by just your hand gesture. we will learn in this project many things such as Bluetooth communication, master-slave communication, serial communication, how to interface Bluetooth and the accelerometer sensor with the Arduino, how to make circuit diagrams and how to write the code.

How does gesture control car work?

Gesture control robot with Arduino totally controlled by the Arduino which gets the instruction by another Arduino with serial communication. there are two parts in this project one is known as the transmitter and another is known as the receiver. here the work of both is different. so we will start with the transmitter first and then the receiver. we are using master-slave communication in Arduino gesture control robot. there are many other Bluetooth control Arduino projects you should check Bluetooth Rc car. this is an awesome project.

HTML Image as link
Qries

Learn 10+ basic activity & sensor interfacing with our Arduino ebook. Well explained program. And brief circuit diagram WhatsApp and email support. which will help you to learn basic electronics, Arduino Coding, Sensor interfacing with Arduino, Arduino, and much more. buy Arduino Ebook to learn https://techatronic.com/arduino-ebook/

Transmitter:-

The transmitter in this project the master circuit which will transfer the data to another module. we make the system master-slave communication. one Bluetooth will work as a master and another will work as a slave. so the master will give instruction to the slave one and the slave receive the instruction from the master and send all instruction to the Arduino attached. the transmitter contains Arduino, Bluetooth HC-05, Accelerometer. general-purpose PCB.

HTML Image as link
Qries

The accelerometer detects the variation in the acceleration on all axis. so, we put the accelerometer on our hands and then relate it to the gestures to make the gesture control robot. there will many reading changes in each direction and we will use these readings to make the condition in the Arduino to take a decision. gesture control robot using Arduino is very simple. for example, if you tilt your hand in the right direction the Arduino sends left to the slave device and the slave will start to move in the right direction. all the directions in the robot will define the same

Receiver:- 

The receiver is the most important part of the Gesture control robot using Arduino. it will receive the information by Bluetooth communication and send it to the Arduino then according to the database in the Arduino it will take the decision. so there is an L298 motor driver connected to the Arduino which converts the low output signal into the high voltage signal so that the driver can drive the motors. in this receiver, the Bluetooth works as a slave and follows the instruction of the master. and it can’t connect to another Bluetooth.

Components Required

  • Arduino UNO
  • Arduino cable
  • Bluetooth Module HC-05
  • Jumper Wires
  • Breadboard
  • BO Motor
  • Wheel
  • Chassis
  • L298N Motor Driver
  • 12V Battery
S.NoComponent RequiredQuantityBuy Link
1.Arduino UNO2https://amzn.to/3ue2vmh
2.Arduino UNO Cable2https://amzn.to/3obXjht
3.Bluetooth HC-052https://amzn.to/2YvHaZx
4.L298N Motor Module1https://amzn.to/3CSzX4L
5.Accelerometer1https://amzn.to/3uWsYEW
6.BO motor & Wheel2https://amzn.to/3AssCaA
7.BO motor2https://amzn.to/2YDsGXQ
8.Wheel2https://amzn.to/3mx1Zw6
9.Chassis1https://amzn.to/3oI9jYk
10.On-Off Switch1https://amzn.to/3Fg3bN0
11.9 Volt Battery1https://amzn.to/3zUDj5l
12.12 Volt Battery1https://amzn.to/3F3DizQ
13.Jumper Wire40https://amzn.to/39q43jr
14.Breadboard1https://amzn.to/39vsRX2

Gesture Control Robot Circuit Diagram:-

Gesture control robot circuit

As you can see the two diagrams in the above picture. one is for the transmitter and another is for the receiver. make this both circuit separately.

Gesture Control Robot
Arduino UNOHC-05 Bluetooth
( +5V ) VCC
GND GND 
D3 PinRX Pin
D2 PinTX Pin
Arduino UNO9 & 12 V BatteryMotor Driver
 Positive+12 Volt
( +5V )  +5 Volt
GNDNegativeGND
D 10 Pin IN 1
D 11 Pin IN 2
D 12 Pin IN 3
D 13 Pin IN 4
Motor 1, 2Motor 3, 4L298N Motor Driver
Terminal 1 Terminal 1 Output
Terminal 2 Terminal 2 Output
 Terminal 1Terminal 3 Output
 Terminal 2Terminal 4 Output
Arduino UNOHC-05 Bluetooth
( +5V ) VCC
GND GND 
D3 PinRX Pin
D2 PinTX Pin
Arduino UNO3 Axis Accelerometer
( +5V ) VCC
GND GND
A0 PinX
A1 PinY

Now we are also giving the code for both.

Gesture control robot Arduino Code.

Receiver code.

//Receiver code 
//all the best
#include<SoftwareSerial.h>
SoftwareSerial mybt(2,3);
char m=0,n=0;

void setup() {
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);
Serial.begin(9600);
mybt.begin(9600);
}

void loop() {
if(mybt.available()>0)
{
m= mybt.read();
Serial.println(m);
if(m=='F')

{
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
digitalWrite(12, HIGH);
digitalWrite(13, LOW);

}

else if(m=='B')

{
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
digitalWrite(12, LOW);
digitalWrite(13, HIGH);

}

else if(m=='R')

{
digitalWrite(10, LOW);
digitalWrite(11, HIGH);
digitalWrite(12, HIGH);
digitalWrite(13, LOW);

}
else if(m=='L')

{
digitalWrite(10, HIGH);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, HIGH);

}

else if(m=='N')

{
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, LOW);

}
else

{
digitalWrite(10, LOW);
digitalWrite(11, LOW);
digitalWrite(12, LOW);
digitalWrite(13, LOW);

}

} }

Transmitter Code.

//transmitter code 
//all the best
#include
SoftwareSerial mybt(2,3);
int m=0, n=0;

void setup() {

pinMode(A0, INPUT);
pinMode(A1, INPUT);
mybt.begin(9600);
Serial.begin(9600);
}

void loop() {
m = analogRead(A0);
n = analogRead(A1);

//Serial.println(m);
//delay(500);
//Serial.println(n);
//delay(500);

if(n>=375)

{
mybt.write("F");
Serial.println("F");

}

else if(n<=320) { mybt.write("B"); Serial.println("B"); } else if(m>=375)
{
mybt.write("R");
Serial.println("R");

}

else if(m<=315)
{
mybt.write("L");
Serial.println("L");

}

else
{
mybt.write("N");
Serial.println("N");

}
}

Upload the code into the transmitter and receiver by the Arduino IDE.

and subscribe us on youtube 

Watch this full video on youtube

6 thoughts on “How to make Gesture Control Robot using Arduino”

  1. can you please provide the above libraries those are half left……
    I am pleading you iam at the final week of submission……

    Reply

Leave a Comment