2025-03-18 1:42 AM - last edited on 2025-03-18 2:07 AM by Andrew Neil
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:
2025-03-18 1:50 AM - edited 2025-03-18 2:13 AM
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