This driver provides functions to
- Configure the MPU6050 into one of 4 operation modes
FULL, FULL WITH ITERRUPTS, ACCELEROMETER ONLY, ACCELEROMETER ONLY WITH INTERRUPTS
- Retreive data from the MPU6050 module
- Put the MPU6050 into sleep
- And since all registers are defined, and a
write
and awrite and read
functions are provided to interact with the module, any additional functionality is easy to implement.
Once the MPU6050 object has been instanciated, it should be setup in one of 4 modes, and two scenarios arise from here:
-
Non interruption operation, where you have 3 reading functions to request data immediately from the MPU6050 module.
-
Interruption operation, where you'll have to use the
i2c_read_with_interrupt
function to access the latest available data from the MPU6050 module.
-
Every sensor needs calibration since no two modules are exactly the same, and they all come with inperfections, a calibration routine must be implemented.
-
DONE
The read upon interrupt routine hasen't been implemented yet, although the "put into mode" functionality is ready.