Skip to main content
Associate
March 21, 2024
Solved

LSM6DSL Custom PCB

  • March 21, 2024
  • 3 replies
  • 1550 views

I designed a card that uses Stm32f446 and many sensors, but although the other sensor on the I2C line works, I cannot even get an I2C OK response from the LSM6SDL. I don't think there is a mistake in the design, but I am sharing it with you anyway, thank you in advance for your help.

Resonance_0-1711045383774.png

 

This topic has been closed for replies.
Best answer by Resonance

There was no problem with the design. My function did not work because the I2C address was different from the read address. I found the correct address. I2C_OK now returns 1. If SDO/SA0 pin
Since it is connected to ground, its address value is 01101010.

You can use the design, don't forget the 4.7k pull up resistors not visible in the schematic.

3 replies

Andrew Neil
Super User
March 21, 2024

@Resonance wrote:

 I cannot even get an I2C OK response from the LSM6SDL.


Are you sure you have the correct address?

Have you probed the I2C lines at the chip to see what's happening?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Tesla DeLorean
Guru
March 21, 2024

Bus termination and topology? Mixed voltages or vendors?

Split into different groups of devices, bisect see if there's some conflict. Try accessing the device on it's own.

Direct connection to supplies of some pins, is that prescribed? Are any dual function, or have expectations at reset?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
ResonanceAuthorBest answer
Associate
April 1, 2024

There was no problem with the design. My function did not work because the I2C address was different from the read address. I found the correct address. I2C_OK now returns 1. If SDO/SA0 pin
Since it is connected to ground, its address value is 01101010.

You can use the design, don't forget the 4.7k pull up resistors not visible in the schematic.