Adafruit
Adafruit LSM303AGR Accelerometer Magnetometer - STEMMA QT Qwiic
The Adafruit LSM303AGR combines a triple-axis accelerometer and triple-axis magnetometer in a single breakout board. The accelerometer measures gravity to de...
The Adafruit LSM303AGR combines a triple-axis accelerometer and triple-axis magnetometer in a single breakout board. The accelerometer measures gravity to determine which way is down, while the magnetometer senses magnetic north — combine the two for a complete compass and orientation solution.
Built on the latest LSM303AGR sensor from ST, this STEMMA QT breakout includes level shifting and voltage regulation for compatibility with both 3.3 V and 5 V systems. Connect via solderless STEMMA QT/Qwiic cables or solder the included header pins for breadboard use.
Key Features
- Triple-Axis Accelerometer – Measures gravity and acceleration for tilt and orientation sensing
- Triple-Axis Magnetometer – Detects magnetic north for digital compass applications
- I2C Interface – Simple two-wire communication with STEMMA QT/Qwiic connectors
- STEMMA QT / Qwiic – Solderless I2C connectors on both sides for easy daisy-chaining
- 3.3 V and 5 V Compatible – Onboard voltage regulator and level shifting
- Arduino & CircuitPython Libraries – Ready-to-use drivers with example code
- Four Mounting Holes – 2.5 mm (0.1") for secure attachment
Ideal For
- Digital compass and heading projects
- Orientation and tilt sensing
- Robotics navigation and waypoint tracking
- Motion-aware wearable electronics
Package Contents
- 1× Adafruit LSM303AGR Accelerometer/Magnetometer Breakout (STEMMA QT, assembled and tested)
- 1× Strip of 0.1" header pins
Resources
Jargon buster
Plain-language definitions for the technical terms used above.
- breakout
- A breakout is a small circuit board that makes a tiny or hard-to-solder component easier to connect to with standard pins. It matters because this OLED module can be wired into a microcontroller project without needing to solder directly to the display’s fine contacts.
- CircuitPython
- A beginner-friendly version of Python designed to run directly on microcontroller boards. If a product supports CircuitPython, you can often program it by copying code files onto the board rather than setting up a more complex toolchain.
- Gravity
- Gravity is DFRobot’s plug-in connector system for sensors, motors and modules, using standard cables to reduce loose jumper wiring. It matters because Gravity-compatible parts can connect directly to these ports, while non-Gravity parts may need adapters or manual wiring.
- I2C
- I2C is a two-wire communication bus used by many sensors and small modules. It matters because several I2C devices can share the same two wires, but each device needs a compatible address and your controller must support I2C.
- magnetometer
- A sensor that measures magnetic fields, often used to work out compass direction. It matters because nearby magnets, motors, or metal objects can affect readings and may require calibration.
- Qwiic
- Qwiic is a plug-in connector system for I2C devices that uses small 4-pin cables, so you can connect compatible sensors without soldering. It matters because your controller or adapter also needs Qwiic, or you will need a cable or breakout to wire it up.
- STEMMA
- A plug-and-cable connection system used on some maker electronics boards to make wiring simpler. If a product uses STEMMA, you need the matching cable or connector type to plug it in without soldering.
- STEMMA QT
- A small plug-in connector system for I2C boards that lets you connect compatible sensors and controllers without soldering. It matters because it can make wiring faster and less error-prone, especially when adding several small modules to a project.
Find this product in
Brands
Sensors & Input
Related Tutorials
Free guides on learn.littlebird.com.au