Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52 with MPU9255

Hi ,I am using nrf52 DK with mpu9255.I am using source code given here here.of this link,I have taken  'nrf5-ble-data-ready-interrupts' example .code  builts fine in keil v5 though.I am not getting accel values.

help will be appreciated.

Parents Reply Children
  • Hi,

    Can you try download a fresh copy of the examples from github and try again: Please use the pin described in the example:

    In nrf_drv_mpu_spi.c:

    #define MPU_SPI_MISO_PIN    28 // MPU SDO. 'AD0' on MPU breakout board silk screen
    #define MPU_SPI_MOSI_PIN    4  // MPU SDI. 'SDA' on MPU breakout board silk screen
    #define MPU_SPI_SCL_PIN     3  // MPU SCLK. 'SCL' on MPU breakout board silk screen
    #define MPU_SPI_CS_PIN      29 // MPU nCS. 'NCS' on MPU breakout board silk screen

    In main.c

    #define MPU_MPU_INT_PIN     30

    And remember to program the Softdevice in addition to the application. 

    It should work straight out of the box. If it doesn't there must be something wrong with your kit, sensor, or wiring. 

  • hi,

    I tried with fresh code form github.i am not able to see accel values .but before getting values i should get MPU BLE device in nrf connect Application.But i dont see such device under 'SCANNER' option in nrf connect (downloaded from nordic website).

    i am using default pins as given in example.I am connecting pins as shown in image.Please have a look and correct me if wrong .

    I have programmed nrf52 with softdevice s132.I have checked supply for MPU9255 (5v w.r.t GND) as shown in image and its 5 V dc 

  • Hi,

    Have you remembered to program the Softdevice?

    Can you program the attached test.hex file. That contains the softdevice and the application and should work. If not there is something wrong with your HW or wiring. 

    test.hex

  • Hi

    Yes,as mentioned earlier ,I have programmEd nrf52 dk with soft device s132 then loaded dk with example code.

    Can you share your 52dk interfacing with mpu9255 diagram/image ?

  • Here you go:

    Did you try my test hex file?

    Note that I have bypassed the voltage regulator on my MPU9255 breakout board with a solder bridge. Hence I can feed it with VDD from my nRF52DK, and not 5V as it seems like you do.

Related