hi, I should how to transplant the official DMP mpu6050 library to nrf51822 above?I don't know how to transplant it and could you tell me how to transplant it?
hi, I should how to transplant the official DMP mpu6050 library to nrf51822 above?I don't know how to transplant it and could you tell me how to transplant it?
Hi,
Have you tried using the drivers supplied with the SDK? There is a driver for mpu6050 located in SDK9\components\drivers_ext\mpu6050
which probably helps you achieve what you want.
Best regards,
Øyvind
So the driver will let you read and write to mpu6050s registers from the nRF51/52. Then you can consult the mpu6050 datasheet to figure out which values it will take over TWI, then you get the return on a different set of cables in I2C format. Unfortunately I have not used the mpu6050 so I don't have any code readily available, however I am sure that it is possible to find this online.
So the driver will let you read and write to mpu6050s registers from the nRF51/52. Then you can consult the mpu6050 datasheet to figure out which values it will take over TWI, then you get the return on a different set of cables in I2C format. Unfortunately I have not used the mpu6050 so I don't have any code readily available, however I am sure that it is possible to find this online.