STMicroelectronics Community
FAQsSign In
  • Product forums
    • STM32 MCUs
      • STM32 MCUs Products
      • STM32 MCUs Boards and hardware tools
      • STM32 MCUs Software development tools
      • STM32 MCUs Embedded software
      • STM32 MCUs TouchGFX and GUI
      • STM32 MCUs Motor control
      • STM32 MCUs Security
      • STM32 MCUs Wireless
      • Others: STM32 MCUs related
    • STM32 MPUs
      • STM32 MPUs Products and hardware related
      • STM32 MPUs Embedded software and solutions
      • STM32 MPUs Software development tools
    • MEMS and sensors
      • MEMS (sensors)
      • Imaging (sensors)
    • Automotive and Transportation
      • Automotive MCUs
      • AutoDevKit Ecosystem
      • GNSS positioning
    • Edge AI
    • Interface and connectivity ICs
    • Power management
    • ST25 NFC/RFID tags and readers
    • STM8 MCUs
    • Others: hardware and software
    • Analog and audio
  • Knowledge base
    • STM32 MCUs
    • STM32 MPUs
    • MEMS and sensors
    • Analog and audio
    • EMI filtering and signal conditioning
    • Interface and connectivity ICs
    • Power management
    • Quality & reliability
  • Learning
    • STM32 online courses
    • MEMS online courses
  • About
    • Community guidelines
    • Feedback forum
    • Community blog
    • Super User Program
      • About the program
  • Developer news
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
  • STMicroelectronics Community
  • Albums for Community
  • Images in Public (marti3110)

Images in Public (marti3110)

  • Albums
  • All Images
Album Privacy: Public

Public (marti3110)

  • WhatsApp Image 2024-09-11 at 12.18.21 PM.jpeg
  • Immagine 2024-09-11 122817.png
  • marti3110_0-1726054927231.png
  • roll_pitch_yaw_-90.jpeg
  • roll_pitch_yaw_90.jpeg
  • roll_pitch_yaw_-90.jpeg
  • roll_pitch_yaw_90.jpeg
  • HAODR
  • ODR: 120 Hz
  • HAODR
  • ODR: 120 Hz
  • Although the sensor movements occur simultaneously, there is a delay.
  • Although the sensor movements occur simultaneously, there is a delay.
  • Calculate angles from accelerometer and gyroscope data
  • marti3110_1-1733846896381.png
  • image.png
  • The figure shows the accelerometer data. Curve 1 indicates the data from sensor 1 and curve 2 indicates the data from sensor 2. Having performed the same movement at the same time, it is clear that there is a problem when the data is printed on the terminal.
  • image.png
  • Watermark=200
  • In the image on the left the angles are obtained by integrating the gyroscope data "gyro_angle_x = zeros(length(gyr_x),1); gyro_angle_y = zeros(length(gyr_y),1); gyro_angle_z = zeros(length(gyr_z),1);  for i = 2:length(gyr_x) dt = time_s(i) - time_s(i-1); % Time interval gyro_angle_x(i) = gyro_angle_x(i-1) + gyr_x(i) * dt; % X-axis angle gyro_angle_y(i) = gyro_angle_y(i-1) + gyr_y(i) * dt; % Y-axis angle gyro_angle_z(i) = gyro_angle_z(i-1) + gyr_z(i) * dt; % Z-axis angle end " , for the accelerometer instead "acc_roll = zeros(length(acc_x),1); acc_pitch = zeros(length(acc_y),1);  for i = 2:length(gyr_x) acc_roll(i) = atan2(acc_y(i), sqrt(acc_x(i)^2 + acc_z(i)^2)); acc_pitch(i)= atan2(-acc_x(i), sqrt(acc_y(i)^2 + acc_z(i)^2)); end " but the measurements differ too much (while if I acquire the data from a single sensor the results almost match). In the image on the right the angles obtained starting from the quaternions are represented and here too the trend does not appear continuous bu
  • Watermark=64
  • Watermark=64
Top
STMicro-logo

About STMicroelectronics

  • Who we are
  • Investor relations
  • Sustainability
  • Innovation & technology
  • Careers
  • Blog
  • General terms and conditions

Connect with us

  • Contact ST offices
  • Find sales offices & distributors
  • Community
  • Newsroom
  • Events & trainings
  • AI transparency

Browse

  • Shortcuts
  • Sitemap

Compliance, ethics & privacy

  • Ethics and compliance
  • ST ethics hotline
  • Privacy portal

Follow us

  • Twitter
  • Linkedin
  • Instagram
  • Facebook
  • Youtube

Legal

  • All rights reserved © 2026 STMicroelectronics
  • Terms of use
  • Sales terms & conditions
  • Trademarks
  • Privacy portal
  • Manage cookies