LSM303AGR Ultra-compact high-performance eCompass module: ultra-low-power 3D accelerometer and 3D magnetometer Datasheet - production data Click/double-click recognition Pedometers Intelligent power saving for handheld devices Display orientation Gaming and virtual reality input devices Impact recognition and logging /* PP Vibration monitoring and compensation Description Features The LSM303AGR is an ultra-low-power high- 3 magnetic field channels and 3 acceleration performance system-in-package featuring a 3D channels digital linear acceleration sensor and a 3D digital 50 gauss magnetic dynamic range magnetic sensor. 2/4/8/ 16 g selectable acceleration full The LSM303AGR has linear acceleration full scales scales of 2g/4g/8g/16g and a magnetic field 16-bit data output dynamic range of 50 gauss. 2 SPI / I C serial interfaces 2 The LSM303AGR includes an I C serial bus Analog supply voltage 1.71 V to 3.6 V interface that supports standard, fast mode, fast mode plus, and high-speed (100 kHz, 400 kHz, Selectable power mode/resolution for 1 MHz, and 3.4 MHz) and an SPI serial standard accelerometer and magnetometer interface. Single measurement mode for magnetometer The system can be configured to generate an Programmable interrupt generators for free- interrupt signal for free-fall, motion detection and fall, motion detection and magnetic field magnetic field detection. detection The magnetic and accelerometer blocks can be Embedded self-test enabled or put into power-down mode separately. Embedded temperature sensor The LSM303AGR is available in a plastic land Embedded FIFO grid array package (LGA) and is guaranteed to ECOPACK , RoHS and Green compliant operate over an extended temperature range from -40 C to +85 C. Applications Table 1. Device summary Tilt-compensated compasses Temp. Part number Package Packaging Map rotation range C Position detection LSM303AGR -40 to +85 LGA-12 Tray Motion-activated functions Tape and LSM303AGRTR -40 to +85 LGA-12 Free-fall detection reel November 2018 DocID027765 Rev 10 1/72 This is information on a product in full production. www.st.comContents LSM303AGR Contents 1 Block diagram and pin description 10 1.1 Block diagram 10 1.2 Pin description . 11 2 Module specifications . 13 2.1 Sensor characteristics . 13 2.2 Temperature sensor characteristics . 15 2.3 Electrical characteristics 15 2.4 Communication interface characteristics . 16 2.4.1 SPI - serial peripheral interface . 16 2 2.4.2 I C - inter-IC control interface 17 2.5 Absolute maximum ratings 19 3 Terminology . 20 3.1 Sensitivity . 20 3.1.1 Linear acceleration sensor sensitivity 20 3.1.2 Magnetic sensor sensitivity 20 3.2 Zero-g level . 20 3.3 Zero-gauss level 20 3.4 Magnetic dynamic range . 20 4 Functionality 21 4.1 Magnetometer . 21 4.1.1 Magnetometer power modes . 21 4.1.2 Magnetometer offset cancellation . 23 4.1.3 Magnetometer interrupt . 23 4.1.4 Magnetometer hard-iron compensation . 25 4.1.5 Magnetometer self-test . 25 4.2 Accelerometer . 27 4.2.1 Accelerometer power modes . 27 4.2.2 Accelerometer 6D / 4D orientation detection . 28 4.2.3 Accelerometer activity/inactivity function 28 4.2.4 Accelerometer self-test . 29 2/72 DocID027765 Rev 10