This software is used to stabilize and control a drone. The drone uses the MPU-6050 sensor as the primary source of information such as orientation, accelerations and angular velocities. To retrieve the sensor values a library by Electronic Cats is used. This library provides user access to the onboard DMP(Digital Motion Processor). The DMP produces a quaternion useful for calculating the respective motor values.
- Firstly, you need processing.
- Clone the repository
git clone https://github.com/quesswho/PID_Drone.git
- Get the Game Control Plus library installed through Processing by Sketch->Import Library->Add Library
- If using Arduino IDE go Tools->Library Manager, then search for mpu6050 and install the library by Electronic Cats (Should be option 3)
- Also get the library RF24 TMRh20
- Setup a circuit with an arduino and a mpu6050 imu. Example: