List of tools
Software for magnetic field calculations:
- Overview
- FEMM (freeware, use of BH-curves, but only 2D)
- magpylib (freeware, but has to be programmed in Python)
- MagTetris (freeware, for MATLAB and Python)
Hall sensors for field measurements
all code is for Arduino or clones (kickstart with Arduinos)
I mainly work with TLV493D for mass application in medium fields and MV2 for field measurements.
type datasheet |
axis | range* [mT] | interface | Arduino code |
comments | ca. costs** [€] |
QMC5883L HMC5883L GY-271 HW-246 |
3 | ± 0.8 | I²C | QMC5883L.ino | needs: QMC5883LCompass.h, requires calibration |
C: 1 M: 2-4 |
HSCDTD008A CJMCU-008 |
3 | ± 7.2 | I²C | CJMCU_008.ino | needs: Wire.h | C: 5.4 M: 8.5 |
MLX90393 CJMCU-90393 |
3 | ± 50 | I²C/SPI | MLX90393.ino | needs Adafruit_MLX90393.h |
C: 2 M: 7-8 |
TLV493D | 3 | ± 200 | I²C | TLV493D.ino | needs TLV493D-A1B6 |
C: 1 M: 6-8 |
TMAG5273 | ± 133 ± 266 |
I²C | TMAG5273.ino | needs SparkFun_TMAG5273_ Arduino_Library |
C: 1 M: 7.5 |
|
MV2 | 3 | ± 100 ± 30000 |
SPI | MV2_digital.ino MV2_analog.ino |
dedicated chip from Metrolab |
C: 500 |
CYSJ902C CYSJ362A |
1 1 |
± 2000 ± 3000 |
-- | -- | see Hall-π project |
C: 1.25 C: 0.90 |
- several ranges (min/max)
**C: chip (bulk ware), M: breakout board, module (prices from Digikey, Adafruit, Amazon, Mouser 2025)