Spark Logic

HMC5883L three-axis magnetometer pinout

The HMC5883L measures three magnetic axes using an I²C interface. The bare sensor requires external capacitors for the internal set/reset strap.

LPCC-16 · 3 × 3 mm

16 contacts Current package

Honeywell·

LPCC-16 · 3 × 3 mm pinout

LPCC-16 · 3 × 3 mm

1 · SCL · Left side, contact 1 from the top

Viewed through the package from the marking side, with pin 1 at the upper left, as shown in the pin configuration.
Selected pin details

1 · SCL

Input · Clock inputs / oscillator

I²C clock. Connect to the host clock line with its bus pull-up.

Wiring requirements

Honeywell HMC5883L datasheet, pp. 2–3, 6–7 and 16–17. Manufacturer PDF archived from SparkFun.

Electrical limits · Link to this pin

Read a magnetic vector over I²C

  • +3.3 V
    • R1.1
    • R2.1
    • C3.1
  • Ground
    • Host ground
    • C1.2
    • C3.2
  • Reservoir node
    • C1.1
  • Strap positive
    • C2.1
  • Strap driver
    • C2.2
  • I²C data
    • ↔
    • Host SDA
    • R1.2
  • I²C clock
    • →
    • Host SCL
    • R2.2
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 between +3.3 V and Ground+3.3 VC3 100 nFGround
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

Connection guide

All 16 pins

PinSignalDirectionFunction
1SCL InputInput I²C clock. Connect to the host clock line with its bus pull-up.
2VDD Supply inputSupply input Device supply. Place the bypass capacitor close to this pin.
3NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
4S1 Tie highTie high Tie to VDDIO in the recommended circuit.
5NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
6NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
7NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
8SETP Capacitor terminalCapacitor terminal Connect the positive side of the set/reset strap network through the recommended ceramic capacitor to SETC.
9GND Supply returnSupply return Connect to the common ground plane or bench return.
10C1 Reservoir nodeReservoir node Connect a 4.7 µF low-ESR reservoir capacitor from this pin to ground.
11GND Supply returnSupply return Connect to the common ground plane or bench return.
12SETC Capacitor terminalCapacitor terminal Driver-side connection of the 0.22 µF set/reset capacitor.
13VDDIO Supply inputSupply input Digital interface supply. Match the host interface voltage.
14NC NoneNone No internal connection. Leave electrically open unless the package notes specify otherwise.
15DRDY OutputOutput Optional active-low data-ready output with an internal pull-up. See the pin requirements for using DRDY.
16SDA BidirectionalBidirectional Open-drain I²C data. The bus needs a pull-up to its logic rail.

Signal assignments

I²C

Fixed 7-bit address 0x1E. Burst reads retrieve signed values in X, Z, Y order.

Electrical limits

ParameterLimitConditions and source
Core supply VDD2.16–3.6 V2.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 VDD1.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 maximum400 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.

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.