Skip to main content
Visitor II
March 3, 2020
Question

Hi, I am using LSM303AGR for both Compass and Accelerometer with the I2C interface. I read the datasheet but I want to double-check about connection.

  • March 3, 2020
  • 1 reply
  • 850 views

As I read from data-sheet, for I2C interface, I need to connect CS_XL & CS_MAG to VDD. Do I need to connect them to Digital Pins to able to switch between Accelerometer and Compass.

Could you please check my schematic and confirm is it correct to use both accelerometer and compass in terms of the connection.

Looking forward to hearing from you.

Best,

Serdar

    This topic has been closed for replies.

    1 reply

    ST Employee
    March 4, 2020

    Hi @SSert.1​ , seems OK, with the CS fixed high you'll be able to read data only via I2C, but I guess this is your target. Regards