Most hall sensors only tell you a magnet is there. This one tells you how strong the field is and which pole it came from. With nothing near it the output sits at half your supply voltage, and from there it rises toward Vcc for a south pole or drops toward 0V for a north pole. Wire it to an analog pin, call analogRead, and you have a live field reading with no library and no extra parts. It runs on 3V to 6.5V, so it drops straight onto a 5V Arduino or a 3.3V ESP32.
- Analog output, not a simple on/off switch
- Reads field strength and polarity
- Idle output sits at half the supply
- Ratiometric, so it tracks your supply rail
- Sensitivity around 1.4mV per gauss at 5V
- Works on 3.3V or 5V logic as-is
- No library needed, one analogRead call
- Fast: 3us response, DC to 20kHz
How it works
Specifications
What's in the box
Sold in fives (minimum order 5), loose in an antistatic bag. Add more in any quantity you like.
Great for
Wiring and first reading
- Hold it printed face toward you, legs down
Pins run left to right: 1 is VCC, 2 is GND, 3 is OUT.
- Power it from the same rail your ADC uses
5V pin on an Arduino, 3.3V on an ESP32. The output is ratiometric, so matching rails keeps readings steady.
- Run OUT to an analog input
A0 on an Arduino, any ADC pin on an ESP32. A 0.1uF cap across VCC and GND at the sensor helps if the supply is noisy.
- Read it and note the idle value
analogRead(A0)with no magnet nearby gives you your zero, around 512 on a 5V Arduino. Above that is a south pole, below is a north pole. - Convert to gauss if you want real units
G = (counts - zero) * (5.0 / 1023) * 1000 / 1.4. The full worked sketch is in the datasheet PDF linked above.
Good to know: the sensing face is the flat printed side of the TO-92 body, so point that at your magnet. If the reading swings the opposite way to what you expected, turn the magnet around. Shipped from our Te Awamutu stock.
