Introduction: Gesture Controlled Robot Using MATLAB

hello guys...

our new projects hand gesture control robot using matlab based on arduino........thats controlled by finger using matlab image processing.

what is matlab:-

MATLAB is a high-performance language for technical computing. It integrates computation, visualization, and programming in an easy-to-use environment where problems and solutions are expressed in familiar mathematical notation.

MATLAB support package for Arduino lets you write MATLAB programs that read and write data to your Arduino and connected devices such as Adafruit motor shield, I2C, and SPI devices. Because MATLAB is a high level interpreted language, programming with it is easier than with C/C++ and other compiled languages, and you can see results from I/O instructions immediately – no compiling. MATLAB includes thousands of built-in math, engineering, and plotting functions that you can use to quickly analyze and visualize data collected from your Arduino.

With MATLAB support package for Arduino, the Arduino is connected to a computer running MATLAB. Processing is done on the computer with MATLAB.

sooo..lets goo..how to make??..

Step 1: Components

Picture of Components

Step 2: Circuit Diagram

Picture of Circuit Diagram

here is the connection .......

motor driver connection:-

we have used as l293d ic chip as motor driver..

l293d have 16pin....

1,8,9 and 16 pin will be connect to +5v

4,5,12 and 13 pin will be connect to gnd

3 and 6 pin will be connect to left motor

11 and 14 pin will be connect to right motor

2,7,10 and 15 pin will be connect to arduino

arduino and motor driver connection:-

2pin of l293d is connect to 2pin of arduino

7pin of l293d is connect to 3pin of arduino

15pin of l293d is connect to 4pin of arduino

10pin of l293d is connect to 5pin of arduino

next.........connect usb cable to pc.....

Step 3: Uploading Code

Picture of Uploading Code

at 1st upload arduino code to arduino software......

plz copy the code and paste to arduino...compile the code then upload.

int motor1=2;
int motor11=3; int motor2=4; int motor22=5; int led =13; //int led2=10; char a;

void setup() { Serial.begin(9600); pinMode(motor1,OUTPUT); pinMode(motor11,OUTPUT); pinMode(motor2,OUTPUT); pinMode(motor22,OUTPUT); pinMode(led,OUTPUT); // pinMode(led2,OUTPUT); Serial.println("robo start"); delay(1000); } void loop() { if (Serial.available() > 0) {

} a=Serial.read(); if(a=='d') { Serial.println("Right"); digitalWrite(motor1,HIGH); digitalWrite(motor11,LOW); digitalWrite(motor2,HIGH); digitalWrite(motor22,LOW); delay(2000); } else if(a=='w') { Serial.println("forward"); digitalWrite(motor1,HIGH); digitalWrite(motor11,LOW); digitalWrite(motor2,LOW); digitalWrite(motor22,HIGH); delay(2000); } else if(a=='x') { Serial.println("stop"); digitalWrite(motor1,LOW); digitalWrite(motor11,LOW); digitalWrite(motor2,LOW); digitalWrite(motor22,LOW); delay(2000); } else if(a=='s') { Serial.println("backward"); digitalWrite(motor1,LOW); digitalWrite(motor11,HIGH); digitalWrite(motor2,HIGH); digitalWrite(motor22,LOW); delay(2000); }

else if(a=='a') { Serial.println("left"); digitalWrite(motor1,LOW); digitalWrite(motor11,HIGH); digitalWrite(motor2,LOW); digitalWrite(motor22,HIGH); delay(2000); }

else if(a=='h') { Serial.println("LED HIGH"); digitalWrite(led,HIGH); }

else if(a=='l') { Serial.println("LED LOW"); digitalWrite(led,LOW); } }

Step 4: Matlab Connection With Code

at 1st connect to arduino with uploading code....dont remove it..

then install matlab...we are using 2017b matlab..

after installation..

two matlab code upload one by one...then save it as names of file..

then running code one by one.....

while running attemtgesture code....after some time...opening figure 1 page...

this time is for detect finger from your hand........plzz keep on flashlight using your phone for detect your finger....

also keep your finger near camera into figure 1.......

there is actualy 1finger is detect to move your car forward

and there is 2finger is detect to move your car backward.....

watch full video for full description .....

Step 5: Result

hello guys.....watch this video of this nice project on you tube for full description...and keep supporting us...subscribe our channel s_r tronics..and do likes and comment also..

sooo.....connect with us..

next project coming soon.......

Comments

About This Instructable

564views

8favorites

License:

Bio: GUYS FOLLOW US AT OUR FB PAGE ..DO LIKE ND SHARE ..OUR YOUTUBE CHANNEL IS S_R TRONICS...WATCH..TRY..INNOVATE..TASTE THE SUCCESS..THANK U..
More by Sukanta bera:Phone Calling Arduino Robot Using Dtmf DecoderGesture Controlled Robot Using MATLABMultifunction Biped Arduino Robot
Add instructable to: