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.

  • Q1: Do I have to make my beacon connectable, if so how should I do it

    A1: The original nrf5-ble-mpu-simple example is connectable. Are you able to use that?


    Q2: The above code works only if there is a MPU board connected to it. Works meaning I see it in the nRF connect app,still I do not see any accelerometer data in the advertisement.

    A2: You are probably runing into the error-handler when the MPU is not connected. Aslo in the nrf5-ble-mpu-simple example, the accelerometer data is not put into the advertising data. The central(e.g. a phone) need to connect to the beacon to get the data using the BLE Service.

Reply
  • Q1: Do I have to make my beacon connectable, if so how should I do it

    A1: The original nrf5-ble-mpu-simple example is connectable. Are you able to use that?


    Q2: The above code works only if there is a MPU board connected to it. Works meaning I see it in the nRF connect app,still I do not see any accelerometer data in the advertisement.

    A2: You are probably runing into the error-handler when the MPU is not connected. Aslo in the nrf5-ble-mpu-simple example, the accelerometer data is not put into the advertising data. The central(e.g. a phone) need to connect to the beacon to get the data using the BLE Service.

Children
No Data
Related