This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use MPU 6050 Driver?

Hello,

I am trying to interface an MPU 6050 with an NRF52 with sdk vs 12.0. I noticed in the mpu6050.c file that it uses a twi_master.h file in the sdk in folder labeled as "deprecated". Should I change the mpu6050.c file to read to the nrf_drv_twi.h file.

Thanks

Parents
  • I suggest that you use the driver in this GitHub repo instead of the one in the SDK. The drivers were made by a colleauge, Martin Børs-Lind(@martinbl) and have a lot of features that the SDK driver does not have.

    -Bjørn

  • Hi @Martin Børs-Lind , the updated code now displays the data on the pc terminal. Thank you for fixing that. However, when I try connecting it to my phone, there is no UART detected. The phone is able to detect the service, but no data is being displayed now. Any ideas?

    Thanks

Reply
  • Hi @Martin Børs-Lind , the updated code now displays the data on the pc terminal. Thank you for fixing that. However, when I try connecting it to my phone, there is no UART detected. The phone is able to detect the service, but no data is being displayed now. Any ideas?

    Thanks

Children
No Data