help Help
book LEARNING
emoji_events COMPETITIONS
people_alt Projects
shopping_basket MARKETPLACE
English
arrow_drop_down
English
中文
arrow_drop_down
Chinese Yuan (¥)
US Dollar ($)
Indian Rupee (₹)
Nigerian Naira(₦)
Euro (€)
Hong Kong Dollars(HK$)

Need to access a workshop / class ?

Enter your classcode

fingerprint


My Account

My Billing

SETTINGS

Invite A Friend


04/19/2021 11:52 AM
SIGN IN
REGISTER
SIGN IN
REGISTER

English
arrow_drop_down
English
中文
arrow_drop_down
Chinese Yuan (¥)
US Dollar ($)
Indian Rupee (₹)
Nigerian Naira(₦)
Euro (€)
Hong Kong Dollars(HK$)

book LEARNING

emoji_events COMPETITIONS

people_alt Projects

shopping_basket MARKETPLACE

help Help

04/19/2021 11:52 AM
Back to Posts

Gesture Control Robot

VEDANTHVEDIKKA
query_builder May 15 2020
favorite_border 8 likes Log in to like this post

Gesture control Robot works based on hand gesture. When we move our hand front the accelerometer senses the altitude change and moves to the respective side.It is connected by receiver and transmitter

Gesture control robot is programmed such that it moves according to the change in our hand gestures.The Arduino board is fixed with transmitter and Accelerometer. When the Gloves in our hand is moved in front direction the Accelerometer send message to the Arduino and transmitter. The receiver board in the robotic car receives the message and moves accordingly.The Arduino board is programmed in the Arduino IDE.

This is circuit diagrams.

Code for programming:


#include <MPU6050_tockn.h>

#include <Wire.h>


MPU6050 mpu6050(Wire);


long timer = 0;


void setup() {


 pinMode(4, OUTPUT);

 pinMode(5, OUTPUT);

 pinMode(6, OUTPUT);

 pinMode(7, OUTPUT);

 

 

 Serial.begin(9600);

 Wire.begin();

 mpu6050.begin();


}


void loop() {

 mpu6050.update();

   

   Serial.print("accX : ");Serial.print(mpu6050.getAccX());

   Serial.print("\taccY : ");Serial.print(mpu6050.getAccY());

   Serial.print("\taccZ : ");Serial.println(mpu6050.getAccZ());


  if (mpu6050.getAccX() >= 0.70)

  {                                         //FORWARD

   digitalWrite(4, HIGH);

   digitalWrite(5, LOW);

   digitalWrite(6, LOW);

   digitalWrite(7, HIGH);

 }

 else if(mpu6050.getAccX() <= -0.60)

 {                                                  //BACKWARD

   digitalWrite(4, LOW);

   digitalWrite(5, HIGH);

   digitalWrite(6, HIGH);

   digitalWrite(7, LOW);

 }

 else if(mpu6050.getAccY() >= 0.60)

 {                                                     //LEFT

   digitalWrite(4, LOW); 

   digitalWrite(5, HIGH);

   digitalWrite(6, LOW);

   digitalWrite(7, HIGH);


 }

 else if(mpu6050.getAccY() <= -0.60)

 {                                         //RIGHT

  

    digitalWrite(4, HIGH);

   digitalWrite(5, LOW);

   digitalWrite(6, HIGH);

   digitalWrite(7, LOW);

   

 }


 else{

   digitalWrite(4, LOW);

   digitalWrite(5, LOW);

   digitalWrite(6, LOW);

   digitalWrite(7, LOW);

 }

}


 

Post Credits

VEDANTHVEDIKKA

51robocoins 51 Robocoins
View Profile

Write a Comment

G

Guest


Supercharge your Career - drone image

Supercharge your Robotics & AI Career by joining Robociti today

Join Robociti

Suggested Course

access_time label

star_borderstar_borderstar_borderstar_borderstar_border

Subscribe to the Robociti newsletter

Get exclusive discounts, offers and robotics news by subscribing to our newsletter.

check_box_outline_blank

No. 1 AI & Robotics learning community

English
arrow_drop_down
English
中文

About Us

Our Company

Legal

Privacy Policy

Refund Policy

Careers

Products and Services

Courses

Competitions

Marketplace

Projects

Blog

Free Resources


Support

Help

FAQs

Contact Us


Go Social


@ 2021 Popular Robotics Inc. 博普乐科技(北京)有限公司

business 北京市海淀区上地信息路26号1层0106-201室

京ICP备19029546号-1