Skip to main content
Visitor II
March 21, 2024
Solved

LSM6DSL Custom PCB

  • March 21, 2024
  • 3 replies
  • 1549 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

    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?

    Graduate II
    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?

    ResonanceAuthorAnswer
    Visitor II
    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.