hii,
i am trying to interface mpu6050 with arduino board and by using auxilary i2c poart on mpu6050 i want to connect magnetometer or pressure sensor.
I want help to access data from auxilary i2c port and in driver development.
hii,
i am trying to interface mpu6050 with arduino board and by using auxilary i2c poart on mpu6050 i want to connect magnetometer or pressure sensor.
I want help to access data from auxilary i2c port and in driver development.
Welcome to the forum.
The MPU-6050 is no longer manufactured, it is outdated and noise and does not have a magnetometer. If you bought a MPU-6050 module from Ebay/AliExpress/Amazon, then it is probably a counterfeit.
A cheap module might have the wrong components, because the manufacturer might just put anything on it.
The MPU-6050 has its own auxiliary I2C bus to make it possible that its 'dmp' controller can access a magnetometer and use that for the calculations and then put the result into the FIFO which is read by the Arduino board.
If you don't have specific 'dmp' code for a specific magnetometer, then just add the magnetometer to the normal I2C bus and combine the sensors in the sketch on the Arduino board.
However, you should not do that.
Can you buy a more recent and better 9-DOF or 10-DOF sensor ? Preferably a module that has one sensor that has it all.
Why would you want to make a driver ? There are many libraries for it.
This is the shortest sketch for the MPU-6050: MPU-6050-Example/RawData at master · JeremySCook/MPU-6050-Example · GitHub
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.