cancel
Showing results for 
Search instead for 
Did you mean: 

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.

SSert.1
Associate

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

1 REPLY 1
Eleon BORLINI
ST Employee

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