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

How to wire I2C for NRF 51822 with MPU 9250.What SDK should I use?

nRF5_SDK_11.0.0_89a8197 - with MPU.7zthis is how my nRF go studio looks with example blinky and works well. nRF5_SDK_11.0.0_89a8197 - Copy.7zI am trying to wire NRF 51822 over I2C with MPU 9250. If I should use the GPIO's where should I initialize the Pins . What SDK should I use?

Parents
  • Hi,

    You can use any free/available GPIO pin you have on your board. All GPIO pins can be individually mapped to interface blocks for layout flexibility.


    I would recommend using the newest SDK version that supports the nRF51 series, which is SDK 12.3

    I would also recommend taking a look at the MPU examples found here.

  • I understood the Hexadecimal value. Now my code has 0x 0000 for x and 0000 for y and 0000 for z . The zeros have some hexadecimal value. Where should I modify to give X,Y Z values seperately on different lines in the app. Is that even possible. I mean I don't want all the three x,y,z values to be one huge value hexadecimal value. There are many functions like void ble_mpu_update, ble_char_accel_add. What should I modify?

Reply
  • I understood the Hexadecimal value. Now my code has 0x 0000 for x and 0000 for y and 0000 for z . The zeros have some hexadecimal value. Where should I modify to give X,Y Z values seperately on different lines in the app. Is that even possible. I mean I don't want all the three x,y,z values to be one huge value hexadecimal value. There are many functions like void ble_mpu_update, ble_char_accel_add. What should I modify?

Children
No Data
Related