Skip to main content
Visitor II
May 29, 2017
Question

LIS2DH12 communication problem

  • May 29, 2017
  • 1 reply
  • 1153 views
Posted on May 29, 2017 at 11:13

Hello, I am using two LIS2DH12 sensors in my project. I am using I2C communication interface. The one with the address pin high (IC4, address 0b0011001x) is working OK, but the one with the address pin low (IC5, address 0b0011000x) is not communicating. It does not even ACK the address. I tried swapping the IC for a new one or even swapping the entire PCB but the problem persists. What could I be doing wrong?

0690X000006078QQAQ.png0690X000006078fQAA.png
    This topic has been closed for replies.

    1 reply

    ST Employee
    May 29, 2017
    Posted on May 29, 2017 at 14:08

    Do you have pull-up resistors on the I2C bus? What is the size?

    The rising edge is quite slow and voltage level on I2C seems to be only 2.2V but in your schematic the power supply is 3.3V.

    Otherwise the schematic seems to be OK, it should work.

    Visitor II
    May 30, 2017
    Posted on May 30, 2017 at 07:35

    There are 10k pull-up resistors on the I2C bus. The power supply is also 2,2V, just the marking in the schematic is different.

    ST Employee
    May 30, 2017
    Posted on May 30, 2017 at 09:10

    OK, If the distance between MCU and the sensors is long I would use smaller pull-up resistors (i.e. 3k3).

    Can you please check the voltages on CS and SA0 pins, if they are not properly connected it could create this issue.

    Do you use some ST boards or your own?