Instructables member “rgco” has published a great tutorial to the project site providing details on how you can create your very own DIY magnetometer or Gaussmeter to measure the strength of magnetic fields. A magnetometer is an essential tool to test the strength of permanent magnets and electromagnets and to understand the field shape of nontrivial magnet configurations. “If it is sensitive enough it can also detect if iron objects got magnetized. Time-varying fields from motors and transformers can be detected if the probe is fast enough” explains “rgco” who used a SS49E linear Hall sensor combined with an Arduino Nano.
Mobile phones usually contain a 3-axis magnetometer but they have been optimized for the weak earth magnetic field of ~1 Gauss = 0.1 mT and saturate at fields of a few mT. The location of the sensor on the phone is not obvious, and it is not possible to place the sensor inside narrow apertures such as the bore of an electromagnet. Moreover, you might not want to bring your smartphone close to strong magnets.”
For more information and instructions on how to build your very own DIY magnetometer jump over to the Instructables project page by following the link below.
Specifications of the SS49E linear Hall sensor :
– Supply voltage: 2.7-6.5 V, so perfectly compatible with the 5V from the Arduino.
– Null-output: 2.25-2.75V, so approximately halfway between 0 and 5V.
– Sensitivity: 1.0-1.75mV/Gauss, so it will require calibration to get precise results.
– Output voltage 1.0V-4.0V (if operated at 5V): well covered by the Arduino ADC.
– Range: +-650G minimum, +-1000G typical.
– Response time 3mus, so it can sample at a few tens of kHz.
– Supply current: 6-10mA, low enough to be battery-operated.
– Temperature error: ~0.1% per degree C. Seems little but a 0.1% offset drift gives a 3mT error.
Source: DIY magnetometer inside a Tic Tac box