Adafruit LSM303AGR Accelerometer Magnetometer Breakout

Adafruit LSM303AGR Accelerometer Magnetometer Breakout Board is a triple-axis accelerometer/magnetometer compass module. Inside the breakout board are two sensors. One sensor is a 3-axis accelerometer, which can tell the user which direction is down towards the Earth (by measuring gravity). The other sensor is a magnetometer that can sense where the strongest magnetic force is coming from, generally used to detect magnetic north. This board is based on the LSM303AGR. This compact sensor uses I2C to communicate and is very easy to use. The user simply downloads the Adafruit library and connects the SCL pin to the I2C clock pin and SDA pin to the I2C data pin. Then the user uploads the Adafruit test program to read out the accelerometer and magnetic field data.

The LSM303AGR is mounted in the breakout board PCB. It includes the support circuitry to let the user use this with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Since it uses I2C, the user can also easily connect it up with two wires (plus power and ground). The SparkFun qwiic compatible STEMMA QT connectors for the I2C bus are included, so there is no need to solder. The user can just connect their favorite microcontroller and can use the CircuitPython/Python or Arduino drivers to easily interface with the LSM303AGR and get compass measurements. The breakout board is fully assembled and tested. It comes with 0.1" standard header in case the user wants to use it with a breadboard or perfboard. Four 2.5mm (0.1") mounting holes make for an easy attachment.

Features

  • Uses I2C 7-bit addresses 0x19 & 0x1E
  • ±50 gauss magnetic dynamic range
  • 1.5mGauss magnetic sensitivity
  • Accelerometer ranges: ±2/±4/±8/±16g
  • As little as 1mg accelerometer sensitivity
  • 25.4mmx17.7mmx4.6mm (1.0"x0.7"x0.2") product dimensions
  • 1.7g (0.1oz) product weight

Videos

Published: 2020-01-28 | Updated: 2022-03-11