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 have zipped and uploaded the whole project file. I don't have much experience with coding and I am trying to just tweak files to get the demo working. Please open \nRF5_SDK_11.0.0_89a8197 - Copy\examples\nrf5-mpu-examples-master\nrf5-ble-mpu-simpleexamples> My SCL and SDA are 1 and 0 repectively on the beacon module and are connected to MPU9250. I have modified the code for PCA 10028 by changing the target to PCA 20006 to work for the beacon board . I used the main.c from the ble_beacon peripheral example just to see if it works. Please take a look and let me know why is the code not even loading on to the beacon board through DK. I know it is meant to be for PCA10028 but I thought changing the target in Keil would change the board setting. Which part am I missing? I would really appreciate ur help.

Reply
  • I have zipped and uploaded the whole project file. I don't have much experience with coding and I am trying to just tweak files to get the demo working. Please open \nRF5_SDK_11.0.0_89a8197 - Copy\examples\nrf5-mpu-examples-master\nrf5-ble-mpu-simpleexamples> My SCL and SDA are 1 and 0 repectively on the beacon module and are connected to MPU9250. I have modified the code for PCA 10028 by changing the target to PCA 20006 to work for the beacon board . I used the main.c from the ble_beacon peripheral example just to see if it works. Please take a look and let me know why is the code not even loading on to the beacon board through DK. I know it is meant to be for PCA10028 but I thought changing the target in Keil would change the board setting. Which part am I missing? I would really appreciate ur help.

Children
No Data
Related