Gesture Control Car MPU6050 and NRF24L01

Introduction: Gesture Control Car MPU6050 and NRF24L01

The gesture control robot is popular common type of projects made by hobbyists. The concept behind it is simple: the orientation of the palm controls the motion of the robot car.MPU6050 to sense the orientation of the wrist and transmits it to the arduino in digital value. The value range is from -32768 to +32767 for each axis.Module based on the NRF24L01 chip having two-way communication on the 2.4GHz band. The circuit board has a built-in antenna. The module communicates with microcontrollers via SPI reference. The range of such a module in the theory is up to 100 meters. In addition, you can control the power of the transmitter to reduce power consumption. The motors are controlled by the L298N module powered by six AA / R6 batteries.

Step 1: List Elements

Step 2: Schema Transmitter and Code

Sketch DOWNLOAD

Step 3: Schema Receiver and Code

Sketch DOWNLOAD

Step 4: Configure

After uploading sketches to arduinos, connect the receiver to the computer and open the SERIAL MONITOR. Turn on the transmitter and see you see the values of the X axis and Y axis. Now set the values for each direction of travel. STOP value: if the FORWARD value is AcX <-6000 and the BACK value is AcX> 6000. The STOP value will be the range between these values AcX <6000 && AcX> -6000.

Do the same for the Y axis. If your receiver is now well configured, remove this piece of code and upload the program.

// DELETE // -----------------------------

Serial.print ("AcX:");

Serial.print (ACX);

Serial.print ("");

Serial.print ("AcY:");

Serial.print (ACY);

delay (300);

// -----------------------------

Be the First to Share

    Recommendations

    • Backyard Contest

      Backyard Contest
    • Metal Contest

      Metal Contest
    • Maps Challenge

      Maps Challenge

    Comments