Spark Logic

HMC5883L three-axis magnetometer connection guide

HMC5883L three-axis magnetometer LPCC-16 · 3 × 3 mm wiring guide with power, signal assignments, and bench checks.

LPCC-16 · 3 × 3 mm

16 contacts Current package

Honeywell ·

Read a magnetic vector over I²C

Required

Use the single-supply reference design. Tie VDD, VDDIO and S1 to 3.3 V. Use low-ESR ceramic capacitors for the reservoir and set/reset nodes.

C1 4.7 µF ceramic between Reservoir node and GroundReservoir nodeC1 4.7 µF ceramicGround
C2 0.22 µF ceramic between Strap positive and Strap driverStrap positiveC2 0.22 µF ceramicStrap driver
C3 100 nF (VDDIO) between +3.3 V and Ground+3.3 VC3 100 nF (VDDIO)Ground
C4 100 nF (VDD) between +3.3 V and Ground+3.3 VC4 100 nF (VDD)Ground
R1 2.2 kΩ between +3.3 V and I²C data+3.3 VR1 2.2 kΩI²C data
R2 2.2 kΩ between +3.3 V and I²C clock+3.3 VR2 2.2 kΩI²C clock

Bench checks

  • Confirm address 0x1E and read ASCII H43 from registers 0x0A–0x0C.
  • Select continuous measurement by writing 0x00 to the mode register at 0x02. Read all six result bytes starting at 0x03 when data is ready.
  • Decode the signed X, Z and Y values in that order. Move the board away from ferromagnetic fixtures and confirm that the readings change as it rotates.

Honeywell HMC5883L datasheet, Table 1, single-supply reference design, and register map. Manufacturer PDF hosted by SparkFun.

LPCC-16 · 3 × 3 mm wiring map

Highlighted contacts are used in the required step or selected circuit. Select a contact to inspect it.

LPCC-16 · 3 × 3 mm
Transparent top view with pin 1 at the upper left, as shown in the pin configuration. Scroll the map to reach all contacts.
Selected pin details

8 · SETP

Capacitor terminal · Control

Connect the positive side of the set/reset strap network through the recommended ceramic capacitor to SETC.

Honeywell HMC5883L datasheet, Table 1, single-supply reference design, and register map. Manufacturer PDF hosted by SparkFun.

Electrical limits · Pin in the reference

Models and documents

This map covers Honeywell’s bare HMC5883L in LPCC-16. Confirm the chip identity on boards sold with similar names.

HMC5883L
Honeywell 16-pin leadless chip carrier.