Skip to main content
Visitor II
March 18, 2025
Question

LSM6DSLTR and ESP32 - one axis of gyro is not detecting

  • March 18, 2025
  • 1 reply
  • 506 views

 

I am currently working with the LSM6DSLTR IMU sensor, interfacing it with an ESP32-S3-WROOM-1-N8R2 using the I2C protocol. However, I have encountered an issue where one of the accelerometer axes is not providing any data.

Issue Observed:

  • The sensor initializes correctly, and two axes provide valid acceleration values.
  • However, one axis does not provide any readings or returns a constant value.
  • The gyroscope readings appear normal.
  • I have verified the I2C connections, sensor power supply, and tested multiple units, but the issue persists.
    This topic has been closed for replies.

    1 reply

    Super User
    March 18, 2025

    Welcome to the forum.

    Please see: How to write your question to maximize your chances to find a solution - in particular, How to insert source code.

    Please show schematics.

    Some good, clear photos of the setup may also help.

     


    @SatyajitS wrote:

    I have verified the I2C connections, sensor power supply, and tested multiple units, but the issue persists.


    Have you used an oscilloscope to very the signals on the I2C lines in the analogue domain?

    In particular, are your pullups sensible?

    Have you used a logic analyser (or similar) to very the comms between your ESP32 and the LSM6DSLTR ?

     

    PS:

    It appears you're using Arduino, so have you tried this:

    https://github.com/dycodex/LSM6DSL-Arduino

     

    PPS:


    @SatyajitS wrote:
    • one axis does not provide any readings or returns a constant value.

    What is the "constant value"?

    https://forum.arduino.cc/t/arduino-uno-i2c-data-reading-problem/1175549