This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF51 MPU9255 TWI/I2C READ Failed

Hi all:

I used code from Github to read 9 axis data with TWI. But the example in TWI floder doesn't work.

Does somebody have the same issue?

Chip: nRF51422

Board: PCA10028

Firmware: S130_nRF51_2.0.1

I have checked the TWI pin define, SDA SCL voltage, and the code in mpu_init(). I found a lot of problems in that code. Does somebody have the same issue? Please make a response or even share the ideas with me.

update: I've checked that my module already has 10K pull-up for SDL and SDA. I have found the root cause, I should make SDO (ADO) to low for address 0x68 and SDO (ADO) to high for address 0x69. I still don't know what's the purpose of this design?

Parents
  • Hi MakerTim,

    I haven't used that code but I have implemented a library for communicating with MPU9250. If you provide more information someone might be able to help. How it doesn't work exactly? First try to read the WHO AM I register to see if the communication works OK. The value for MPU9250 should be 0x71. Then you can start initializing the sensor.

Reply
  • Hi MakerTim,

    I haven't used that code but I have implemented a library for communicating with MPU9250. If you provide more information someone might be able to help. How it doesn't work exactly? First try to read the WHO AM I register to see if the communication works OK. The value for MPU9250 should be 0x71. Then you can start initializing the sensor.

Children
No Data
Related