Ticker

6/recent/ticker-posts

Gesture Control Robot

 Gesture Control Robot using Arduino

         


How to make gesture control robot at home


Welcome to the Technical Praveen, In this article, we will figure out how to make a Gesture control robot at home. in the event that you wanna figure out how to make it painstakingly read the full article. this is the most intriguing and well known venture these days in hardware and designing, a large number of the understudies from school a lot making this magnificent undertaking. interestingly, this is the remote robot that you can control by your hand gesture(motion). we will learn in this undertaking numerous things, for example, Bluetooth communication, master-slave communication, serial communication, how to interface Bluetooth and the accelerometer sensor with the Arduino, how to make circuit chart and how to compose the code.

How does it work?

Gesture(Motion) control robot with Arduino completely constrained by the Arduino which gets the guidance by another Arduino with serial communication. there are two sections in this undertaking one is known as the transmitter and another is known as the receiver. here crafted by both is extraordinary. so we will begin with the transmitter first and afterward the receiver. I am utilizing master-slave correspondence in this undertaking. there are numerous other Bluetooth control Arduino project(venture) you should check Bluetooth RC car. this is a marvelous task.

Transmitter:-

The transmitter in this venture the master circuit which will move the information to another module. I make the framework master-slave communication. one Bluetooth will function as an expert and another will fill in as the slave. so the master will offer guidance to the slave one and the slave get the guidance from the dominate and send all guidance to the Arduino connected. the transmitter contains Arduino, Bluetooth HC-05, Accelerometer. universally useful PCB.

The accelerometer identifies the variety in the speeding up in all pivot. along these lines, we put the accelerometer on our hand and afterward relate it to the motions. there will many perusing alters in each course and we will utilize these readings to make the condition in the Arduino to take a choice. for instance, in the event that you tilt your hand the correct way the Arduino send left to the slave gadget and the slave will begin to move the correct way. all the headings in the robot will characterize the equivalent.

Receiver:- 

The receiver is the main piece of the Gesture control robot. it will get the data by the Bluetooth communication and send it to the Arduino then as per the information base in the Arduino it will take the choice. so there is a L298 motor driver associated with the Arduino which changes over the low yield signal into the high voltage signal so the driver can drive the motors. in this recipient, the Bluetooth fills in as a slave and adheres to the guidance of the expert. also, it can't interface with another Bluetooth.

Circuit Diagram




As should be obvious the two diagrams in the above picture. one is for the transmitter and another is for the receiver. make this both circuit independently.

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


}

}

Receiver code.


//Receiver code 

//all the best

#include

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


}


} }

NOTE :

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

Post a Comment

0 Comments