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

mpu6050 on Nrf51822

Hello

Is there any example or tutorial on how to use the mpu6050 library? I just started to program the nrf51822 and hope to find some helpful clues to get me going.

Any suggestion would be appreciated.

Nick

Update: I got the mpu-6050 working on keil, but without the mentioned examples. I did found some example on a chinese website. With some help of google translate i got to tweak it a little. For someone who is just a beginner most examples look difficult so i am already happy i got it working. And i can work forward from that base. For everyone who likes to use this very simple example. Here is my project; NRF51-MPU6050.rar

Parents
  • Hi,

    UPDATE 2016.03.30:

    I have uploaded some examples showing how you can use the MPU9150 and MPU9255 with the nRF51 here. The examples shows various features of the MPUs like free fall interrupts, data ready interrupts, and how to transmit MPU data over BLE.

    Further on, the MPU9150 and the MPU6050 are very similar and I'm quite sure that the example should work equally well, un-altered, on both sensors. However I have not tested it with the MPU6050. Feel free to try it out and give me some feedback if something is not working correctly.

    Note: The example is made for nRF51 3rd revision ICs and SDK 11.0.0 (Refer to the Compatibility Matrix. If you use older ICs it will not work. If you use a different SDK it might work, but I haven't tested it. If you use a different SDK and run into troubles please do your best to fix it yourself before you post any questions here.

    Finally, there are no good tutorials from Nordic for the MPUxxxx I'm afraid, but there are a bunch of more or less useful posts here on devzone.

  • Hi, thank you for the great examples. I am using the nRF51 DK with MPU6050 and I tried nrf5-mpu-simple and nrf5-mpu-data-ready-interrupts and it works great. But I want to transmit the collected data over the BLE and I am trying to use your example (nrf-mpu-ble-simple) but somehow it doesn't work as excepted (I think). I tried running the nrf-mpu-ble-simple as is and the program starts and the following is printed on the termite: [1B]El@8 after that it stops. After this I tried connecting from Master Control Panel with nrf51 dongle. As soon as it connects, in the termite A00000 is printed repeatedly. I checked the bound rate but no luck. Am I missing something?

    Looking forward hearing from you.

    Thank you in advance.

Reply
  • Hi, thank you for the great examples. I am using the nRF51 DK with MPU6050 and I tried nrf5-mpu-simple and nrf5-mpu-data-ready-interrupts and it works great. But I want to transmit the collected data over the BLE and I am trying to use your example (nrf-mpu-ble-simple) but somehow it doesn't work as excepted (I think). I tried running the nrf-mpu-ble-simple as is and the program starts and the following is printed on the termite: [1B]El@8 after that it stops. After this I tried connecting from Master Control Panel with nrf51 dongle. As soon as it connects, in the termite A00000 is printed repeatedly. I checked the bound rate but no luck. Am I missing something?

    Looking forward hearing from you.

    Thank you in advance.

Children
No Data
Related