Skip to main content
Graduate
May 3, 2022
Solved

problem with motion_GC library

  • May 3, 2022
  • 4 replies
  • 2855 views

Hi..

My name is Anil and i am facing an issue with mems motion_GC library ie.,regarding MotionGC_Update function (&data_in, &data_out, &bias_update); for this function i am providing data.in and trying to get the calibrated data.out but not getting and the bias update is always showing 0 even for steady state and data.out values are also 0. everytime what might be the reason for this?? thanks in advance.

with regards,

ANIL.

    This topic has been closed for replies.
    Best answer by Petr S

    Without knowledge of the schematics and your environment I can only say that it's not normal this high temperature. Values are definitely influenced by the temperature, for example offsets are changing with temperature, check the datasheet.

    4 replies

    ST Employee
    May 3, 2022

    Hi Anil,

    Could you please record and send me your complete datalog including input (timestamp, sensor data) and output (returned by library)?

    Thanks,

    Petr

    Anil3Author
    Graduate
    May 5, 2022

    Sir here is the datalog..i am using duty cycle of 20ms

    ST Employee
    May 5, 2022

    Your input data look suspicious. Attached is the example of the datalog that work well for me. In the first part of my datalog you can see the board is unstable (in movement) so the calibration is stopped and output calibrated data are the same as input ones. In the middle part the board lies on the table, calibration runs and slowly adjusts the calibration values and the output calibrated gyroscope data are different than input ones (more precise). In the last part of my datalog the board is again in movement and calibration is stopped while the output data are calibrated by the values obtained during the period when the board was stable. Please make sure you convert the input data from mg to g resp. from mdps to dps before you pass them to the library. You can use the GC_Data_Handler function in GyroscopeCalibration application which is part of the X-CUBE-MEMS1 package as a reference code and example of correct data feeding to the library.

    Anil3Author
    Graduate
    May 6, 2022

    Please have a look at the attached input data,

    Anil3Author
    Graduate
    May 6, 2022

    I am connecting STEVAL-MKI182V2 sensor board to STM32Nucleo-F446ZE Evaluation board and operating the sensor at 3v3 and communicating through SPI. The operating temperature of sensor is around 75 Celsius, will it cause any problem for gyroscope values & calibration and what might the reason for this high temperature...?

    with regards,

    ANIL.

    Petr SAnswer
    ST Employee
    June 1, 2022

    Without knowledge of the schematics and your environment I can only say that it's not normal this high temperature. Values are definitely influenced by the temperature, for example offsets are changing with temperature, check the datasheet.