Hall Effect Sensors: How They Work, Switch vs Latch vs Linear, and Hall vs Reed Switch
Hall effect sensors detect magnetic fields without contact, and they are everywhere: in brushless motors, car pedals, wheel speed sensors, phone covers, keyboards and current sensors. This guide explains the Hall effect, the main sensor types, how to wire them and how they compare with reed switches and magnetoresistive sensors.
The Hall effect sensor is one of the most useful magnetic sensors ever made. It detects a magnet, or the field from an electric current, without touching anything, without wear and without moving parts. That is why it shows up in brushless motors, car pedals and gear selectors, wheel speed sensors, laptop lids, phone covers, gaming keyboards and isolated current sensors.

The Hall effect
Discovered by Edwin Hall in 1879, the effect is simple: when a current flows through a thin conducting plate and a magnetic field passes through the plate at right angles, the moving charges are pushed sideways. They build up on one edge, creating a small voltage across the plate, the Hall voltage. It is proportional to both the current and the magnetic field strength. Keep the current constant, and the Hall voltage tells you the field.
The Hall voltage is tiny, so practical sensors integrate the Hall element with an amplifier, offset cancellation, temperature compensation and output circuitry on a single silicon chip.
Types of Hall effect sensors
| Type | Output | Behaviour | Typical use |
|---|---|---|---|
| Unipolar switch | Digital | Turns on when one magnetic pole gets close enough, off when it moves away | Door, lid and position detection |
| Omnipolar switch | Digital | Responds to either pole | Phones, laptops, consumer products |
| Latch | Digital | Turns on with a south pole, stays on until a north pole turns it off | Brushless DC motor commutation, ring magnets |
| Linear (analogue) | Voltage proportional to field | Output often centred at half the supply with no field | Position, displacement, current sensing |
| 2D and 3D sensors | Digital (I²C, SPI, SENT) or analogue | Measure field components on two or three axes | Angle sensing, joysticks, gear selectors |
| Speed sensors | Digital pulses | Detect passing teeth or magnetic poles | Wheel speed, crankshaft and camshaft speed |
Digital Hall switches have an operate point (the field at which they turn on) and a release point (the field at which they turn off). The difference, called hysteresis, prevents chattering when the magnet sits near the threshold. Fields are given in millitesla (mT) or gauss (G), where 1 mT = 10 G.
Common applications
- Brushless DC motors: three Hall latches tell the motor controller the rotor position so it can switch the coils at the right time.
- Automotive: pedal and throttle position, steering angle, gear selectors, seat belt buckles and wheel speed sensors.
- Current sensing: measuring the field around a conductor for isolated current measurement.
- Consumer devices: detecting a closed laptop lid or phone cover, and analogue keyboard switches.
- Industry: cylinder position on pneumatic actuators, flow meter pulse pickups, and magnetic rotary encoders.
How to wire a Hall effect switch
Many digital Hall switches have an open-drain or open-collector output. The output can pull the line low but cannot drive it high, so it needs a pull-up resistor (often a few kΩ to 10 kΩ) to the logic supply. Without it, the output floats and readings are random. Add a small decoupling capacitor close to the supply pin, especially with long wires.
Also check magnet orientation: many switches respond only to one pole and only to a field perpendicular to the marked face of the package.
Hall effect vs reed switch vs TMR
| Hall effect | Reed switch | TMR / magnetoresistive | |
|---|---|---|---|
| Principle | Semiconductor, Hall voltage | Two metal contacts in a glass tube pulled together by a magnet | Resistance changes with field direction or strength |
| Moving parts | None | Yes (contacts wear) | None |
| Power needed | Yes | No | Yes, often very little |
| Contact bounce | None | Yes | None |
| Sensitivity | Good | Good | Very high |
| Can measure field strength | Yes (linear types) | No, on/off only | Yes |
| Robustness to shock | Excellent | Glass can break | Excellent |
Reed switches remain popular where zero standby power matters. Magnetoresistive sensors such as TMR are taking over battery-powered designs that need very low power: Infineon's TLV55624 TMR switch draws only about 7 nA. Where stray magnetic fields are a problem, inductive position sensors that need no magnet, such as Allegro's A17810 torque sensor, are an alternative.
Frequently asked questions
Does a Hall effect sensor need a magnet?
It needs a magnetic field. That usually comes from a permanent magnet, but it can also be the field around a current-carrying wire, or a magnet built into the sensor (back-biased) to detect passing steel gear teeth.
Can a Hall sensor detect non-magnetic metals?
Not directly. For aluminium, brass or copper targets, use an inductive proximity sensor instead.
How far away can a Hall sensor detect a magnet?
It depends on the magnet's strength and size and the sensor's switching threshold, typically from a few millimetres to a few centimetres. Stronger magnets such as neodymium increase the distance.
Related guides: current sensor types, rotary encoders, proximity sensors, and TDK's plan to double TMR sensor output.
Find magnetic sensor suppliers in the Sensor Times directory.