7 Best Magnetic and Compass Sensor Modules
Compare seven magnetic and compass sensor module sources, from Bosch Sensortec and Vishay to Murata and Adafruit.
On this page
Key takeaways
- Magnetometer modules measure the Earth's magnetic field and let microcontrollers sense heading and direction.
- Chip vendors like Bosch Sensortec, Vishay, and Murata supply the sensor silicon behind most breakout boards.
- Maker suppliers like Adafruit, SparkFun, DFRobot, and Pololu package those chips into easy breakout boards.
- A compass module usually pairs a magnetometer with a tilt correction step for an accurate heading reading.
What a magnetic sensor module does
A magnetic or compass sensor module measures the magnetic field around it. The most common type is a magnetometer, which senses the Earth's field and lets a microcontroller figure out which way it is pointing. These modules show up in drones, robots, phones, and navigation projects where direction matters.
Not all magnetic sensors are the same. Some are Hall effect sensors that detect the presence of a nearby magnet, while others are true three axis magnetometers that read field strength in three directions at once. The list below mixes chip makers and hobbyist board suppliers so you can find the right part at the right level.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| Bosch Sensortec | MEMS magnetometer chips | Not included | Not included |
| Vishay | Hall effect sensors | Not included | Not included |
| Murata | Miniature magnetic sensors | Not included | Not included |
| Adafruit | Compass breakout boards | Not included | Not included |
| SparkFun | Magnetometer boards | Not included | Not included |
| DFRobot | Arduino compass modules | Not included | Not included |
| Pololu | Compact compass modules | Not included | Not included |
The best magnetic and compass sensor modules
1. Bosch Sensortec
- Official site: https://www.bosch-sensortec.com
- Best for: MEMS magnetometer chips
- Starting price: Not included
- Free plan: Not included
- Pros: Wide MEMS sensor range; Strong documentation
- Cons: Chip level focus; Designed for volume buyers
Bosch Sensortec is the sensor arm of Bosch, and it makes a large family of MEMS sensors used inside phones, wearables, and drones. Its magnetometer chips, like the BMM series, are built to be small and low power, which matters when a device runs on a battery.
Because Bosch Sensortec sells components rather than finished breakout boards, its parts usually arrive through distributors or on third party modules. For that reason, it is a natural choice for designers and manufacturers who plan to put a compass on their own circuit board.
The value here is in dependable silicon and detailed datasheets. If your project will move toward a custom board, starting with a Bosch magnetometer gives you a part that is easy to source and well documented.
2. Vishay
- Official site: https://www.vishay.com
- Best for: Hall effect sensors
- Starting price: Not included
- Free plan: Not included
- Pros: Huge component catalog; Hall effect expertise
- Cons: Component level parts; Not hobby focused
Vishay is one of the largest makers of discrete electronic components, and its catalog includes a wide range of Hall effect sensors and magnetic position sensors. These parts detect magnetic fields and are often used to sense position, speed, or the presence of a magnet in industrial and automotive equipment.
Hall effect sensors from Vishay come in many package types and sensitivities, so they suit designs that need a simple magnetic switch or a linear field measurement. The company's parts are well documented and widely available through distributors.
For a maker, Vishay is less about plug and play breakout boards and more about raw components. It is a solid source when you need a specific Hall sensor for a custom circuit rather than a finished compass module.
3. Murata
- Official site: https://www.murata.com
- Best for: Miniature magnetic sensors
- Starting price: Not included
- Free plan: Not included
- Pros: Tiny package sizes; Reliable passive and sensor lines
- Cons: Datasheet heavy; Few direct maker boards
Murata is a major Japanese component maker known for tiny passive parts, and it also produces magnetic sensors and MEMS devices. Its sensors are designed for compact electronics where board space is tight, such as wearables and small IoT devices.
The company's magnetic sensor lineup tends to focus on small size and low power, which makes the parts attractive for portable compass and heading applications. Engineers can get detailed datasheets and application notes to support a design.
Murata serves component buyers more than hobbyists, so you will not find many Murata branded breakout boards aimed at beginners. Still, its silicon powers plenty of modules sold by other suppliers, and it is a strong pick for a space constrained custom board.
4. Adafruit
- Official site: https://www.adafruit.com
- Best for: Compass breakout boards
- Starting price: Not included
- Free plan: Not included
- Pros: Beginner friendly guides; Ready to use boards
- Cons: Extra board overhead; Stock can vary
Adafruit is one of the best known hobby electronics shops, and it sells a range of magnetometer and compass breakout boards. Its products typically pair a popular sensor chip with a level shifter and a small pin header, so they work right away with common microcontrollers.
What sets Adafruit apart is the learning material. Each board ships with wiring diagrams, Arduino and CircuitPython examples, and clear explanations of how to read heading and field data. That support lowers the entry cost for people who are new to magnetic sensing.
Adafruit's breakout boards are a practical middle ground between raw chips and fully packaged compass products. If you want to add a compass to a prototype quickly, its modules are a dependable place to start.
5. SparkFun
- Official site: https://www.sparkfun.com
- Best for: Magnetometer boards
- Starting price: Not included
- Free plan: Not included
- Pros: Clear tutorials; Broad breakout selection
- Cons: Smaller sensor depth; U.S. centric shipping
SparkFun is another long running maker electronics retailer with a solid lineup of magnetometer boards and tutorials. Its compass modules cover several popular chips, and the documentation explains hookup, code, and calibration in plain terms.
The company has built a strong library of learning content over the years, so most of its sensors have example code you can copy into an Arduino sketch. That makes SparkFun a good option when you want a board that is easy to get working on a weekend.
SparkFun also carries a wider parts ecosystem, including microcontrollers and wires, which is handy when you are building a whole project around one sensor. Its compass boards fit naturally into that ecosystem.
6. DFRobot
- Official site: https://www.dfrobot.com
- Best for: Arduino compass modules
- Starting price: Not included
- Free plan: Not included
- Pros: Arduino ready modules; Plug and play connectors
- Cons: Varying documentation depth; Some boards are basic
DFRobot makes a large range of Arduino compatible sensor modules, including magnetic and compass sensors. Many of its modules use standardized connectors and come with sample code, which keeps the wiring simple for educational and prototyping work.
The company's strength is the sheer variety of its catalog. Alongside compass modules you will find the boards, shields, and accessories needed to build a complete Arduino project from one supplier.
DFRobot's modules tend to favor ease of use over raw performance. For classroom projects and quick prototypes where a reliable heading reading is enough, its compass modules are a sensible choice.
7. Pololu
- Official site: https://www.pololu.com
- Best for: Compact compass modules
- Starting price: Not included
- Free plan: Not included
- Pros: Small well made boards; Good technical support
- Cons: Narrower sensor range; More robotics focused
Pololu is a robotics focused electronics shop known for carefully made small boards. Its magnetometer and compass modules are compact and well documented, which suits robots where space and weight matter.
Pololu provides clear product pages with connection diagrams and example code, and its forum and support staff are known for being helpful. That attention to detail makes its boards easy to integrate into a moving robot or a custom navigation rig.
Because Pololu's catalog leans toward robotics, its sensor selection is more curated than huge. If you want a tidy, well supported compass module without digging through hundreds of options, Pololu is a dependable pick.
How we chose
We looked for two kinds of suppliers: the chip makers behind the sensor silicon and the board shops that turn those chips into easy modules. Bosch Sensortec, Vishay, and Murata represent the component side, where you get datasheets and raw parts for a custom design.
Adafruit, SparkFun, DFRobot, and Pololu represent the maker side, where you get breakout boards, wiring guides, and example code. Together the two groups cover the whole path from a first prototype to a production ready board, which is what a compass project actually needs.
FAQ
What is a magnetometer?
A magnetometer is a sensor that measures magnetic field strength, often in three axes, so a device can work out its orientation relative to the Earth's magnetic field.
Do compass modules need calibration?
Yes. Most magnetometer modules need a calibration step to correct for nearby magnets, metal, and hard iron interference before the heading is accurate.
Can I use a Hall effect sensor as a compass?
Not really. A Hall effect sensor detects the presence and strength of a nearby magnet, while a three axis magnetometer reads the Earth's field for heading.
Do I need a compass module for a drone?
Many drone flight controllers use a magnetometer to keep heading stable, so a compass module is common on drones that need reliable yaw.
Which board is easiest for a beginner?
Adafruit and SparkFun boards are often the easiest for beginners because they ship with wiring guides and ready to use example code.
What is hard iron interference?
Hard iron interference is a fixed magnetic offset caused by nearby metal or magnets, and it is usually corrected during calibration.