OC
OceanRemote
Low-code IoT platform
Home / Hardware Components / HMC5883L (3-Axis Compass)

HMC5883L (3-Axis Compass)

⚡ Protocol: I2C sensor_hmc5883l
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 Hardware Pin #1
NC Hardware Pin #2
S1 Hardware Pin #3
GND Hardware Pin #4
SCL Hardware Pin #5
SDA Hardware Pin #6
VDD Hardware Pin #7
DRDY Hardware Pin #8
NC_2 Hardware Pin #9
SETC Hardware Pin #10
SETP Hardware Pin #11
GND_2 Hardware Pin #12
VDDIO Hardware Pin #13