Three-axis magnetometer
With this handy three-axis magnetometer, you can detect the magnetic fields around us. Magnetometers or compasses can detect where the strongest magnetic force is coming from; they are generally used to locate magnetic north, but can also be used to measure magnetic fields.
This sensor can be used in conjunction with a 6-DoF (degrees of freedom) accelerometer/gyroscope to create a 9-DoF inertial measurement unit capable of detecting its orientation in real space thanks to the Earth’s stable magnetic field.
This magnetometer, based on the MMC5603 chip, is supplied in a breakout board format and is ideal for general-purpose use, offering a very wide range and both I2C and SPI interfaces. You can connect it via either I2C or SPI. (Adafruit library for the MMC5603)
This sensor can detect ranges of ±30 Gauss (±3000 µT or ±3 mT) without any range setting required, and provides a full 20-bit output at a sampling rate of up to 1000 Hz. This range makes it suitable for measuring the Earth’s magnetic field (which reaches a maximum of approximately 0.6 Gauss) or certain weak magnets. It must not be used with very powerful rare-earth magnets (neodymium), as the magnet could damage the magnetometer. To use rare-earth magnets, check out the TLV293 sensor (manufactured by Adafruit).
You can use this magnetometer with 3.3 V logic levels (Feather/Raspberry Pi) or 5 V (Arduino/Metro328). Furthermore, as it communicates via I2C, you can easily connect it using two wires (plus power and ground) to other devices, or use the two STEMMA QT/qwiic I2C connectors.
The breakout board is fully assembled and tested, and comes with a 0.1″ header strip in case you wish to use it on a breadboard or perfboard. There are also four 2.5 mm (0.1″) mounting holes for easy attachment.
Note: the JST connector supplied on the breakout board may be off-white or black.
Technical details of the three-axis magnetometer
- I2C address: 0x30
- Integrated monolithic 3-axis AMR magnetic sensor
- Superior dynamic range and accuracy:
±30 G FSR
20-bit operating mode
0.0625 mG per LSB resolution
2 mG total RMS noise
Enables 1° heading accuracy - Real-time sensor frequency response up to 1 kHz
- I2C peripheral, fast mode (≤ 400 kHz)
- Ultra-small wafer-level package: 0.8×0.8×0.4 mm
- Automatic on-chip demagnetisation with built-in SET/RESET function
- Eliminates offset error caused by temperature variation (zero-field output)
- Erases residual magnetisation resulting from strong external fields
- On-chip sensitivity compensation
- Integrated temperature sensor
Adafruit name: Triple-axis Magnetometer – MMC5603 – STEMMA QT / Qwiic [ADA5579]

























Reviews
There are no reviews yet.