LSM303 (Accel + Compass)
Overview & Specifications
[LSM303 (Accel + Compass)]
6-DOF triple-axis accelerometer and magnetometer compass module.
Features:
- I2C (Two-Wire Serial Interface) communication interface
- Operating supply compatibility: 3.3V, 5.0V
- Native firmware support (#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_LSM303_U.h>)
- 19-pin mapped footprint for visual wiring & automated pin assignment
Wiring Instructions:
- GND: Connect to common Ground (GND)
- VDD: Connect to regulated 3.3V / 5.0V power supply
- GND_2: Connect to common Ground (GND)
- SCL_A: Connect to microcontroller I2C SCL pin (e.g., ESP32 GPIO 22)
- SCL_M: Connect to microcontroller I2C SCL pin (e.g., ESP32 GPIO 22)
- SDA_A: Connect to microcontroller I2C SDA pin (e.g., ESP32 GPIO 21)
- SDA_M: Connect to microcontroller I2C SDA pin (e.g., ESP32 GPIO 21)
- VDD_2: Connect to regulated 3.3V / 5.0V power supply
- VDD_M: Connect to regulated 3.3V / 5.0V power supply
- VDD_IO: Connect to regulated 3.3V / 5.0V power supply
- VDD_I2C: Connect to regulated 3.3V / 5.0V power supply
- VDD_IO_2: Connect to regulated 3.3V / 5.0V power supply
Protocol:
- I2C
Project Ideas:
1. Industrial Machine Vibration & Predictive Maintenance
2. Robotics Orientation & Motion Tracking
3. Structural Tilt & Seismic Activity Monitor
Reference Link:
https://oceanremote.net/sensors/sensor_lsm303/
Pin Connections
C1
GND
VDD
INT1
INT2
SET1
SET2
GND_2
SA0_A
SCL_A
SCL_M
SDA_A
SDA_M
VDD_2
VDD_M
DRDY_M
VDD_IO
VDD_I2C
VDD_IO_2