Circuit 3D

Hall effect sensor

A Hall effect sensor detects a magnetic field: current flowing through a thin plate is pushed to one side by the field, making a small voltage across the plate, the Hall voltage. A linear sensor’s output moves in proportion to the field, while a Hall switch turns on when a magnet comes near.

VH = I × B ÷ (n × q × t)

where I is the current, B the field, n the plate’s charge carriers per cubic meter, q each carrier’s charge and t the plate’s thickness.

Sensors amplify it into either a voltage that follows the field or a switch that turns on near a magnet.

What is a Hall effect sensor?

A Hall effect sensor, or Hall sensor, is a small chip that detects a magnetic field, giving either a voltage in proportion to the field or an on or off signal when a magnet comes near.

It senses through plastic, never touches what it measures, and has nothing to wear out. In Figure 1, a linear sensor’s output rises for a south pole and falls for a north pole.

3.2 V north −120 mT south +120 mT 2.5 V

50 mT: the field pushes the moving charges to one side of the chip, and its amplifier turns that into 2.5 V + 700 mV = 3.2 V; a south pole raises it.

Figure 1. A typical linear Hall sensor on 5 V: centered at 2.5 V and changing 14 mV per millitesla, positive for a south pole facing its marked side.

What is the Hall effect?

The Hall effect is the small voltage that builds up across a conductor carrying current in a magnetic field, because the field pushes the moving charges toward one side: the Hall voltage.

Edwin Hall discovered it in 1879. The voltage is largest in thin plates with few charge carriers, which is why sensors use semiconductors: in copper it would be only nanovolts. The push itself is the same force that turns an electric motor.

What is the difference between a Hall switch and a latch?

A Hall switch turns on when one pole comes near and off when it moves away; a latch turns on for one pole and stays on until the opposite pole turns it off.

Both have hysteresis, switching on at a stronger field than they switch off at, so they don’t flicker at the edge. Figure 2 follows a magnet in and out.

ON OFF 10 mT 15 mT field from the magnet

12.5 mT, magnet moving nearer: the switch is off: between 10 and 15 mT it stays as it was, off, so a jittery magnet can’t make it chatter.

Figure 2. A typical unipolar Hall switch: on above 15 mT from a south pole, off again below 10 mT. The gap between is hysteresis.

How do you wire a Hall effect sensor?

To wire a Hall effect sensor, connect its three pins to supply, ground and an input: a linear sensor’s output to an analog pin, and a switch’s through a pull-up resistor, since it only pulls low.

Check the supply range, often 3 to 24 V for switches and 5 V for linear sensors, and which face is marked: the field must pass through that face to count.

What are Hall effect sensors used for?

Hall effect sensors are used to sense position, speed and current without contact: in brushless motors, wheel speed and crank sensors, laptop lids, joysticks and current meters.

A wheel with one magnet gives one pulse a turn, so counting pulses gives its speed, as Figure 3 shows. Clamp meters read the field around a wire to measure its current without breaking the circuit.

200 ms of the sensor’s output

600 rpm: one magnet passes once a turn, so 600 ÷ 60 = 10 pulses a second, one every 100 ms; counting them gives the speed.

Figure 3. A Hall switch beside a wheel carrying one small magnet, pulsing once each time the magnet passes.

Hall effect sensor or reed switch?

A reed switch is two magnetic contacts sealed in glass that close near a magnet; a Hall sensor does the job electronically.

Reed switches need no power and pass current directly, but are fragile and wear; Hall sensors need a supply but switch millions of times faster and for far longer, and linear ones also measure how strong the field is.

How do you work out a Hall sensor’s readings?

To work out a Hall sensor’s field, subtract its no-field output and divide by its sensitivity; for the raw Hall voltage, use I × B ÷ (n × q × t).

Example 1: field from the output

A linear Hall sensor reads 3.2 V. How strong is the field, and which pole faces it?

Given
a linear Hall sensor on 5 V, 2.5 V at no field and 14 mV per mT, reading 3.2 V
Find
the field
Solution
B = (3.2 V − 2.5 V) ÷ 14 mV per mT = 50 mT
Answer
50 mT, a south pole

Example 2: why sensors use semiconductors

How big is the Hall voltage across a 0.1 mm plate of doped silicon, carrying 100 mA in a 0.1 T field?

Given
a doped semiconductor plate 0.1 mm thick, with about 10²² carriers per m³, carrying 100 mA in 0.1 T
Find
its Hall voltage
Solution
VH = IB ÷ (nqt) = 0.1 × 0.1 ÷ (n × 1.6 × 10⁻¹⁹ × 0.0001) = 62.4 mV
Answer
62.4 mV: easy to amplify

Summary

Key equations

  • VH = IB ÷ (nqt) the Hall voltage
  • Vout = 2.5 V + k × B a linear sensor
  • pulses a second = rpm ÷ 60 one magnet a turn

Key terms

Hall voltage
Across the plate, from the field.
Unipolar
Switches for one pole.
Latch
Holds until the other pole.
Hysteresis
Different on and off points.

Practice problems

  1. What does a Hall effect sensor detect?

  2. A linear sensor reads 3.2 V; it gives 2.5 V at no field and 14 mV per mT. What is the field?

  3. Why do Hall sensors use semiconductors rather than copper?

  4. What stops a Hall switch chattering near its switching point?

  5. One magnet passes a Hall switch per turn. At 1,200 rpm, how many pulses a second?

FAQ

What is a Hall effect sensor used for?

Detecting magnets and measuring fields: position and speed sensing in motors, cars and phones, and measuring current without contact.

Does a Hall sensor need a magnet?

It needs a magnetic field: from a magnet, or from a current, since every current makes a field around it.

What is the difference between unipolar and bipolar Hall sensors?

A unipolar switch responds to one pole only; a bipolar latch turns on for one pole and off for the other.

Can a Hall sensor detect metal?

Only magnetic fields. Some sensors pair a Hall chip with a magnet behind it, so passing iron teeth change the field it sees.

How far away can a Hall sensor detect a magnet?

Usually a few millimeters to a few centimeters, depending on the magnet’s strength and the sensor’s switching field.

Who discovered the Hall effect?

Edwin Hall, an American physicist, in 1879.

Why does my Hall switch need a pull-up resistor?

Many have an open-drain output that can only pull the line low; the resistor pulls it high when the switch is off.