LSM303AH Ultra-compact high-performance eCompass module: ultra-low-power 3D accelerometer and 3D magnetometer Datasheet - production data Description /* PP The LSM303AH is an ultra-low-power high- performance system-in-package featuring a 3D digital linear acceleration sensor and a 3D digital Features magnetic sensor. 3 magnetic field channels and 3 acceleration The LSM303AH has user-selectable linear channels acceleration full scales of 2g/4g/8g/16 g and 50 gauss magnetic dynamic range is capable of measuring accelerations with output data rates from 1 Hz to 6400 Hz. The device has 2/4/8/ 16 g selectable acceleration full a magnetic field dynamic range of 50 gauss with scales output data rates from10 Hz to 100 Hz. The Anti-aliasing filter 2 LSM303AH includes an I C serial bus interface 16-bit data output that supports standard, fast mode, fast mode 2 plus, and high-speed (100 kHz, 400 kHz, 1 MHz, SPI / I C serial interfaces and 3.4 MHz) and an SPI serial standard Analog supply voltage 1.71 V to 1.98 V interface. Programmable interrupt generators for free- The LSM303AH has an integrated 256-level first- fall, motion and magnetic field detection in, first-out (FIFO) buffer allowing the user to store Embedded self-test data in order to limit intervention by the host Embedded 256-level FIFO processor. The FIFO buffer applies only to the accelerometer. Embedded temperature sensor The embedded self-test capability allows the user Embedded digital functions: step detector, step to check the functioning of the sensor in the final counter, significant motion and tilt application. ECOPACK , RoHS and Green compliant The system can be configured to generate an interrupt signal for free-fall, motion detection and Applications magnetic field detection. The magnetic and Tilt-compensated compasses accelerometer blocks can be enabled or put into power-down mode separately. Map rotation The LSM303AH is available in a plastic land grid Position and free-fall detection array package (LGA) and is guaranteed to Motion-activated functions operate over an extended temperature range Click/double-click recognition from -40 C to +85 C. Pedometers Table 1. Device summary Intelligent power saving for handheld devices Temp. range Part number Package Packaging Display orientation C Gaming and virtual reality input devices LSM303AH -40 to +85 LGA-12 Tray LSM303AHTR -40 to +85 LGA-12 Tape and reel Impact recognition and logging Vibration monitoring and compensation November 2018 DocID027766 Rev 7 1/82 This is information on a product in full production. www.st.comContents LSM303AH 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           . 29 4.2.3 Accelerometer activity/inactivity function             29 4.2.4 Accelerometer self-test                   . 29 2/82 DocID027766 Rev 7