Skip to content
The sensor industry magazine
Since 2008
Subscribe free

Home › Technical articles

Article

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.

Hall effect principle with current flowing through a thin semiconductor plate, a magnetic field deflecting charge carriers, and the resulting Hall voltage across the plate
A magnetic field pushes moving charge carriers to one side of the plate, creating the Hall voltage.

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

TypeOutputBehaviourTypical use
Unipolar switchDigitalTurns on when one magnetic pole gets close enough, off when it moves awayDoor, lid and position detection
Omnipolar switchDigitalResponds to either polePhones, laptops, consumer products
LatchDigitalTurns on with a south pole, stays on until a north pole turns it offBrushless DC motor commutation, ring magnets
Linear (analogue)Voltage proportional to fieldOutput often centred at half the supply with no fieldPosition, displacement, current sensing
2D and 3D sensorsDigital (I²C, SPI, SENT) or analogueMeasure field components on two or three axesAngle sensing, joysticks, gear selectors
Speed sensorsDigital pulsesDetect passing teeth or magnetic polesWheel 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 effectReed switchTMR / magnetoresistive
PrincipleSemiconductor, Hall voltageTwo metal contacts in a glass tube pulled together by a magnetResistance changes with field direction or strength
Moving partsNoneYes (contacts wear)None
Power neededYesNoYes, often very little
Contact bounceNoneYesNone
SensitivityGoodGoodVery high
Can measure field strengthYes (linear types)No, on/off onlyYes
Robustness to shockExcellentGlass can breakExcellent

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.