Skip to main content
Visitor II
July 7, 2023
Question

X-NUCLEO-GNSS2A1 IMU (gyro and accelerometer )data

  • July 7, 2023
  • 1 reply
  • 1430 views

Hi, 

I'm using the X-NUCLEO-GNSS2A1 with STM32-476RG and I would like to get the gyroscope and the accelerometer data (IMU data) while using the CUBE IDE. Is there any documentation on the IMU that being used and how to get the data ? 

Sincerely,

Aviad

 

    This topic has been closed for replies.

    1 reply

    Saurabh.Rawat
    ST Employee
    July 10, 2023

    Hello @azamir ,

    Thanks for trying this Nucleo board.

    For IMU Data the commands are not implemented but you can use the below messages to read the data from the GNSS Module : 

    $PSTMDRSENMSG,30
    Accelerations from 3 digital axes accelerometer.
    Synopsis:
    $PSTMDRSENMSG,30,<cpu timestamp>,<raw_x>,<raw_y>,<raw_z>
    *<checksum><cr><lf

    $PSTMDRSENMSG,31
    Angular rates from 3 digital axes gyroscopes.
    Synopsis:
    $PSTMDRSENMSG,31,<cpu timestamp>,<raw_x>,<raw_y>,<raw_z>
    *<checksum><cr><lf>

    You can find the detailed information in this document : https://www.st.com/resource/en/user_manual/um2791-teseovic3-software-instructions-stmicroelectronics.pdf 

    Let me know !

    Regards,

    Saurabh