HMC5883L (3-Axis Compass)
Overview & Specifications
[HMC5883L (3-Axis Compass)]
3-axis digital magnetometer / compass sensor over I2C.
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_HMC5883_U.h>)
- 13-pin mapped footprint for visual wiring & automated pin assignment
Wiring Instructions:
- GND: Connect to common Ground (GND)
- SCL: Connect to microcontroller I2C SCL pin (e.g., ESP32 GPIO 22)
- SDA: Connect to microcontroller I2C SDA pin (e.g., ESP32 GPIO 21)
- VDD: Connect to regulated 3.3V / 5.0V power supply
- GND_2: Connect to common Ground (GND)
- VDDIO: 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_hmc5883l/
Pin Connections
C1
NC
S1
GND
SCL
SDA
VDD
DRDY
NC_2
SETC
SETP
GND_2
VDDIO