Adafruit LSM303AGR Accelerometer Magnetometer Breakout

Adafruit LSM303AGR Accelerometer Magnetometer Breakout Board is a triple-axis accelerometer/magnetometer compass module. Inside the Adafruit 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 downloads the Adafruit library and connects the SCL pin to the I2C clock pin and the 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 users use this with 3.3V (Feather/Raspberry Pi) or 5V (Arduino/ Metro328) logic levels. Since it uses I2C, the user can easily connect it with two wires (plus power and ground). The SparkFun qwiic compatible STEMMA QT connectors for the I2C bus are included, so solder is unnecessary. The user can connect a microcontroller and use the CircuitPython/Python or Arduino drivers to interface with the LSM303AGR and easily get compass measurements. The breakout board is fully assembled and tested. It comes with a 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 and 0x1E
  • ±50 Gauss magnetic dynamic range
  • 1.5m Gauss magnetic sensitivity
  • ±2/±4/±8/±16g accelerometer ranges
  • As little as 1mg accelerometer sensitivity
  • 25.4mm x 17.7mm x 4.6mm (1.0" x 0.7" x 0.2") product dimensions
  • 1.7g (0.1oz) product weight

Videos

Publicado: 2020-01-28 | Actualizado: 2024-03-26