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

    I had to ask the R&D department regarding this matter. Hopefully, I'll have an answer for you tomorrow. I'll make sure to update you as soon as I know something!

    Best regards,

    Simon

  • Hi Simon,

    It looks like it might have been in inv_mpu.c all along under the Thingy Libraries:

    * @brief Initialize hardware.
    * Initial configuration:\n
    * Gyro FSR: +/- 2000DPS\n
    * Accel FSR +/- 2G\n
    * DLPF: 42Hz\n
    * FIFO rate: 50Hz\n
    * Clock source: Gyro PLL\n
    * FIFO: Disabled.\n
    * Data ready interrupt: Disabled, active low, unlatched.
    * @param[in] int_param Platform-specific parameters to interrupt API.
    * @return 0 if successful.
    */

    It would be good to confirm, to make sure I am not missing anything that happens after a connection. Thanks so much.

    *edit -- I would also still enjoy some feedback on the configuration string I mention above. How should that be deciphered?

    Dan

Reply
  • Hi Simon,

    It looks like it might have been in inv_mpu.c all along under the Thingy Libraries:

    * @brief Initialize hardware.
    * Initial configuration:\n
    * Gyro FSR: +/- 2000DPS\n
    * Accel FSR +/- 2G\n
    * DLPF: 42Hz\n
    * FIFO rate: 50Hz\n
    * Clock source: Gyro PLL\n
    * FIFO: Disabled.\n
    * Data ready interrupt: Disabled, active low, unlatched.
    * @param[in] int_param Platform-specific parameters to interrupt API.
    * @return 0 if successful.
    */

    It would be good to confirm, to make sure I am not missing anything that happens after a connection. Thanks so much.

    *edit -- I would also still enjoy some feedback on the configuration string I mention above. How should that be deciphered?

    Dan

Children
No Data
Related