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

Thingy:52 - MPU9250 Default Register Configuration

Hello,

I have been looking through the SDK for the Thingy:52, and I have been unable to find the configuration file used for the MPU-9250. I am able to see the default pedometer read interval, the magnetometer period, and the MPU period, but it appears as if all of the register configurations for the actual MPU come from the Bluetooth app. I have tried looking in both iOS and on Windows, and I haven't been able to see where any of these individual registers are set.

On nRF Connect, I was able to see that motion configuration has - E8 03 F4 01 F4 01 0A 00 01 written to it, but I am not sure what is specifically being written here or where it goes inside of the code. 

My goal is to be able to log motion data from the Thingy:52 (raw data, ideally), and accurately translate said data from the logging function of nRF connect.

Can you kindly point me to where I can find these configuration settings?

Best Regards,

Parents
  • Hi Daniel

    Sorry, but it took a few days before the R&D department got around to this. But here goes:

    The MPU-9250 is a multi-chip module with the MPU-6500 (accelerometer and gyrometer) and the AKM-8963 (magnetometer) combined. If you take a look at the inv_mpu.c file (note that this file is made by Invensense and not Nordic Semiconductor), you can see the following:

    #elif defined MPU9250           /* #if defined MPU9150 */
    #ifndef MPU6500
    #define MPU6500  

    This points to that when the MPU9250 is used, it uses the same configs as the MPU6500, which are located in that same file. If you need more information on how to decipher the inv_mpu files, you'll have to contact Invensense, as I can't confirm anything. The motion sensor is set up in the drv_motion.c file by us, using the inv_mpu.c files as reference.

    Best regards,

    Simon

Reply
  • Hi Daniel

    Sorry, but it took a few days before the R&D department got around to this. But here goes:

    The MPU-9250 is a multi-chip module with the MPU-6500 (accelerometer and gyrometer) and the AKM-8963 (magnetometer) combined. If you take a look at the inv_mpu.c file (note that this file is made by Invensense and not Nordic Semiconductor), you can see the following:

    #elif defined MPU9250           /* #if defined MPU9150 */
    #ifndef MPU6500
    #define MPU6500  

    This points to that when the MPU9250 is used, it uses the same configs as the MPU6500, which are located in that same file. If you need more information on how to decipher the inv_mpu files, you'll have to contact Invensense, as I can't confirm anything. The motion sensor is set up in the drv_motion.c file by us, using the inv_mpu.c files as reference.

    Best regards,

    Simon

Children
No Data
Related