Projects / Ideas / Pico digital compass

Pico digital compass

IntermediateMotionIdeaReviewed
In short

How do you build a pico digital compass?

A Pico reads an HMC5883L or QMC5883L compass module over I2C, turns the field into a heading and shows north and the degrees on an OLED. Keep it away from magnets and motors, and calibrate by turning it slowly in a circle. You need Raspberry Pi Pico H, HMC5883L / QMC5883L compass module, SSD1306 OLED Display and Breadboard 830 Tie Points.

Level
Intermediate
Time
About 150 min
Parts
4
An idea, not a guided build yet. Goal, parts and steps; no wiring, code or tests. Copy it to My Garage to plan it.
Goal

Show a compass heading from a magnetometer.

How to build it

  1. Find the chip variant and address
  2. Read the three axes
  3. Calibrate the offsets by turning in a circle
  4. Compute the heading
  5. Show degrees and a pointer

Related projects

Common questions

What parts do I need for the pico digital compass?

Raspberry Pi Pico H, HMC5883L / QMC5883L compass module, SSD1306 OLED Display and Breadboard 830 Tie Points.

How long does the pico digital compass take to build?

About 150 minutes for a intermediate maker.