Idea
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.
Parts list
- Development Boards
- Sensors
- Displays
- Prototyping
How to build it
- Find the chip variant and address
- Read the three axes
- Calibrate the offsets by turning in a circle
- Compute the heading
- 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.
