MEMS (sensors)

Ask questions and find answers on ST MEMS sensors, such as the LSM6DSV and the LSM6DSL. Learn how to use the SensorTile.Box, and STEVAL kits.

cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

LSM303AGR Magnetometer Self-Test Fails on Z-Axis

I'm using the LSM303AGR magnetometer with an STM32L4 via I2C + HAL. The built-in self-test works fine for X and Y, but Z-axis always fails — the delta (self-test vs. normal) is out of range.   Set UpSTM32L4, I2C, HAL driversMagnetometer config: 50 Hz...

Gohil by Associate II
  • 80 Views
  • 2 replies
  • 0 kudos

ISM330 SPI not working

Hi,I'm trying to get the SPI interface with the ISM330DHCX to work but it seems that the SDO pin can't reach logic high levels.The above has SCL in blue and SDO in red.CS in blue and SDO in red.SCL in blue and SDI in red.Above is my hardware setup, v...

Screenshot 2025-05-12 at 5.48.25 PM.png Screenshot 2025-05-12 at 5.46.19 PM.png Screenshot 2025-05-12 at 6.19.20 PM.png IMG_3231.jpg
L-li by Associate
  • 111 Views
  • 1 replies
  • 0 kudos

LSM303AGR Tilt-Compensated Compass

 Hello STM32 Community,I'm working with the LSM303AGR magnetometer/accelerometer sensor on an STM32L4 microcontroller. I'm trying to compute a tilt-compensated heading, based on the method described in ST's application note DT0058.However, I'm runnin...

Gohil by Associate II
  • 102 Views
  • 0 replies
  • 0 kudos

Resolved! How to integrate driver for iis2mdc magnetometer

Hi all,I need to integrate the driver for the iis2mdc magnetometer (Github: https://github.com/STMicroelectronics/stm32-iis2mdc/tree/main) into my own project for a custom board (with STM32H7A3 and i2c3).  The code from the driver requires an additio...

GS1 by Senior III
  • 96 Views
  • 1 replies
  • 0 kudos

Integrating MotionFX: Gives random data

We've implemented an example program based on UM2220 using an lsm6dsox IMU sensor on an STM32U575 microcontroller. We're trying to use MotionFX for orientation calculation from 6 axis measurement, configured with accelerometer and gyro. The IMU senso...

Convert I3G4250D gyro raw output to understandable values

Hello STM32 community,I'm relatively new to STM32 development and I'm currently working with the I3G4250D Gyro Sensor on the STM32F411e-Discovery board. I've been using the stm32f411e_discovery_gyroscope.c file (BSP Drivers) provided by STM32Cube to ...

i3g4250d - Getting same XYZAngRate value on every read

Hi,I have a i3g4250d sensor chip on our custom board with STM32G474 MCU.I have used the below driver github.com STMicroelectronics stm32-i3g4250dfor reading the sensor chip registers through SPI interfaceI am able to read "WHO_AM_I_ADDR" register wi...

PKupp.1 by Associate
  • 1234 Views
  • 4 replies
  • 0 kudos

Resolved! LIS2DW12 INT1 Pin Goes High After Reinitialization

Hi,I'm working with the LIS2DW12 accelerometer in a low-power IoT application. The sensor is configured to wake the MCU via an interrupt on INT1, connected through a monostable multivibrator (Schmit trigger IC). The setup is designed so that a rising...