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.
I²C clock. Connect to the host clock line with its bus pull-up.
Single supply. Tie VDD, VDDIO and S1 together at 2.16–3.6 V. Fit one 100 nF bypass on the shared rail.
Dual supply. Use 2.16–3.6 V for VDD and 1.71 V to VDD for VDDIO. Tie S1 to VDDIO and bypass each supply with 100 nF.
With either supply arrangement. Join both GND pins to host ground. Use host-compatible I²C levels and pull SDA and SCL up to VDDIO (2.2 kΩ each in the reference design).
| 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 active-low data-ready output with an internal pull-up. See the pin requirements for using DRDY. |
| 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 | Bypass the shared rail or each separate supply as shown on page 7. Honeywell HMC5883L datasheet, pp. 2–3, 6–7 and 16–17. Manufacturer PDF archived from SparkFun. |
| Ambient operating temperature−30 to +85 °C | −30 to +85 °C | Unbiased storage range is −40 to +125 °C. Honeywell HMC5883L datasheet, pp. 2–3, 6–7 and 16–17. Manufacturer PDF archived from SparkFun. |
| Interface supply VDDIO1.71 V to VDD | 1.71 V to VDD | Pull bus signals up to VDDIO. Honeywell HMC5883L datasheet, pp. 2–3, 6–7 and 16–17. Manufacturer PDF archived from SparkFun. |
| I²C clock400 kHz maximum | 400 kHz maximum | Honeywell uses 2.2 kΩ pull-ups in its reference design. Honeywell HMC5883L datasheet, pp. 2–3, 6–7 and 16–17. Manufacturer PDF archived from SparkFun. |
This map covers Honeywell’s bare HMC5883L in LPCC-16. Confirm the chip identity on boards sold with similar names.