I²C
Fixed 7-bit address 0x1E. Burst reads retrieve signed values in X, Z, Y order.
The HMC5883L measures three magnetic axes using an I²C interface. The bare sensor requires external capacitors for the internal set/reset strap.
Driver-side connection of the 0.22 µF set/reset capacitor.
| Pin | Signal | Direction | Function |
|---|---|---|---|
| 1 | SCL Input | Input | I²C clock. Connect to the host clock line with its bus pull-up. |
| 2 | VDD Supply input | Supply input | Device supply. Place the bypass capacitor close to this pin. |
| 3 | NC None | None | No internal connection. Leave electrically open unless the package notes specify otherwise. |
| 4 | S1 Tie high | Tie high | Tie to VDDIO in the recommended circuit. |
| 5 | NC None | None | No internal connection. Leave electrically open unless the package notes specify otherwise. |
| 6 | NC None | None | No internal connection. Leave electrically open unless the package notes specify otherwise. |
| 7 | NC None | None | No internal connection. Leave electrically open unless the package notes specify otherwise. |
| 8 | SETP Capacitor terminal | Capacitor terminal | Connect the positive side of the set/reset strap network through the recommended ceramic capacitor to SETC. |
| 9 | GND Supply return | Supply return | Connect to the common ground plane or bench return. |
| 10 | C1 Reservoir node | Reservoir node | Connect a 4.7 µF low-ESR reservoir capacitor from this pin to ground. |
| 11 | GND Supply return | Supply return | Connect to the common ground plane or bench return. |
| 12 | SETC Capacitor terminal | Capacitor terminal | Driver-side connection of the 0.22 µF set/reset capacitor. |
| 13 | VDDIO Supply input | Supply input | Digital interface supply. Match the host interface voltage. |
| 14 | NC None | None | No internal connection. Leave electrically open unless the package notes specify otherwise. |
| 15 | DRDY Output | Output | Optional data-ready output. It is internally pulled high and pulses low when measurement data is deposited. |
| 16 | SDA Bidirectional | Bidirectional | Open-drain I²C data. The bus needs a pull-up to its logic rail. |
| Parameter | Limit | Conditions and source |
|---|---|---|
| Core supply VDD2.16–3.6 V | 2.16–3.6 V | Place a local 100 nF bypass capacitor. Honeywell HMC5883L datasheet, Table 1, single-supply reference design, and register map. Manufacturer PDF hosted by SparkFun. |
| Interface supply VDDIO1.71 V to VDD | 1.71 V to VDD | Pull bus signals up to VDDIO. Honeywell HMC5883L datasheet, Table 1, single-supply reference design, and register map. Manufacturer PDF hosted by SparkFun. |
| I²C clock400 kHz maximum | 400 kHz maximum | Honeywell uses 2.2 kΩ pull-ups in its reference design. Honeywell HMC5883L datasheet, Table 1, single-supply reference design, and register map. Manufacturer PDF hosted by SparkFun. |
This map covers Honeywell’s bare HMC5883L in LPCC-16. Confirm the chip identity on boards sold with similar names.