Gesture Control Car Using Mpu6050 and Arduino

4,868

8

28

An engineering student

Intro: Gesture Control Car Using Mpu6050 and Arduino

here is a hand controller gesture control car, made by using mpu6050 and arduino. I use rf module for wireless connection.

Step 1: THINGS REQUIRED :

•1.arduino uno

•2.micro Arduino

•3.rf module(transmitter and receiver)

•3.mpu6050(accelomitter)

•4.motor driver

•5.2 dc motor

•6.robotics chassis

•7. Arduino cable

•8.one hand glapse

•9. motor driver

•10. LiPo Battery

•11. 9V battery

12.USB cable

Step 2: Connection:-

•1.connection for rf transmitter:-

•GND = GND

•DATA = 12

•VCC = 5V

•2.connection for mpu6050:-

•VCC = 3.3/5v

•GND = GND

•SCL = A3

•SDA = A2

•INT = 7

•mpu6050 need 3.5V voltage.but we can give it 5V voltage.i give here 3.5V voltage to mpu6050 because in micro arduino there

•are two voltage pin first is 5V and another one is 3.3V.rf reciever have to need 5V.so i use 5V pin for rf transmitter.and

•mpu6050 can run 3.5V.

•3.connection for rf receiver:-

•GND = GND

•DATA = 12

•VCC = 5V

•4.connection for motor driver:-

•motor one:-

•int enA = 11

•int in1 = 7

•int in2 = 6

•motor two:-

•int enB = 3

•int in3 = 5

•int in4 = 4

Step 3: Working Principal:-

1.mpu6050:-

MPU-6050 Triple Axis Accelerometer and Gyro Breakout Board.it read three angles.we can give them name X, Y, and Z, here we

use here only two angles. here we use Y and Z.Y for forward and Z for left, right.

this part of code read the angle.

•mpu-6050
reads the angles in radian, this "* 180/M_PI" make it in degree.

Step 4: ​•Rf Transmitter:-

•Rf

transmitter:-

Mpu6050 read the angles. then I make one “if” loop and make a condition.in then make two buffer.one buffer sends condition for forward. and in the second one, I send the angle, for control the speed by the angle. this part of code sends the message. And I map the angle.

Step 5: RF RECEIVER:-

•Rf receiver:-

the receiver receives the message in the buffer. Again I make a condition on the first buffer for forward. And the second one I use for control the speed. And I again map it. This part of the code is doing this work. and for the speed control, I use the second buffer and, the angles mapped (0,9), I map speed in (50,255). you can see all things in code.

Step 6: Let's Run the Car:-

  • now the time has come to run the robot.make sure that all connection is correct. now connect your glapse's micro arduino to your computer. open the serial monitor, now you can see angles reading.now send any input from the transmitter to the receiver. now your robot is ready for a run.

Step 7:

if you fill difficulty in those codes. you can use these code. I make these because I fill you will difficulty fill in the transmitter code. so I make these easy code. and you won't need to follow 6th step. just connect the power the transmitter's Arduino and your robot is in your control.

Share

    Recommendations

    • Plastics Contest

      Plastics Contest
    • Electronics Tips & Tricks Challenge

      Electronics Tips & Tricks Challenge
    • Audio Contest 2018

      Audio Contest 2018

    28 Discussions

    0
    None
    JibanP1

    16 days ago

    hey can you provide me the circuit diagram of RF434 Mhz transmitter receiver with arduino

    mail id is jjp04012000@gmail.com

    0
    None
    A.k.strana21

    Answer 17 days ago

    If you can control led than you also control motor. What type of problem actually you are facing?

    0
    None
    trana21A.k.s

    Reply 17 days ago

    i fixed it. it must same ground ( l298 and Uno)

    0
    None
    A.k.sanht60

    Answer 18 days ago

    What type of you actually need?

    0
    None
    anht60A.k.s

    Reply 18 days ago

    transmiter and reciever. when i load code motion_transmitter.ino or MPU6050_DMP6_gesture_MAIN , MPU6050 always connect failse. I don't understand.

    0
    None
    A.k.sanht60

    Reply 17 days ago

    First of all Chack your connection. And then chack your jumpers wires. If they all are ok. Than chack your mpu6050.

    0
    None
    anht60A.k.s

    Reply 17 days ago

    everything is ok. Can you sent for me code with Uno, Mpu6050 and 433 transfer.

    0
    None
    A.k.sanht60

    Reply 17 days ago

    You may get some thing error when you go micro to uno. It's because of pins. If you are using uno than try to make INT pin 3 instead of 7. And if after that you are getting error send me a pic of error.

    0
    None
    vishals232

    Question 3 months ago

    Hey Buddy, I have my own design Block diagram of the Setup.. Help me in the Coding through it! Moreover msg. Me so I can give ya my Mail !
    Your program isn't running--> saying
    Error compiling for Arduino Board

    1 more answer
    0
    None
    vishals232

    Question 3 months ago

    What is enA and enB...??
    Any (trans or rec) code can be used to run the rf Car

    1 more answer
    0
    None
    A.k.svishals232

    Answer 3 months ago

    enA and enB for dc motor connection. and yes u can this code for rf car.

    0
    None
    Gaur007

    Question 3 months ago

    The 2nd code for the transmitter isn't compiling. its showing an error ' Vector ' was not declared in this scope.

    please guide me through this problem.

    ss.jpg
    1 more answer
    0
    None
    A.k.sGaur007

    Answer 3 months ago

    this is library problem... plz choose right library..