Component guide · Beginner · 3 min read
Hall Effect Sensors and Reed Switches
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A Hall effect sensor detects a magnetic field with no contact. Switch types such as the A3144 turn their output on when a magnet's pole comes close, latching types flip on one pole and off on the other, and linear types such as the SS49E give an analog voltage proportional to field strength. A reed switch does a similar job mechanically. They measure speed, position and open or closed doors.
Key specs at a glance
- Switch (unipolar)
- A3144-type: open-collector output pulls LOW near a south pole; needs a pull-up
- Latching
- US1881-type: on with one pole, off with the other; used in BLDC motors
- Linear
- SS49E: output at about VCC/2 with no field, about 1.4 mV per gauss
- Supply
- A3144 4.5 to 24 V; SS49E 2.7 to 6.5 V; 3.3 V parts exist
- Reed switch
- Glass-sealed contacts, no power needed, slower and fragile
- Typical magnets
- Small neodymium discs a few mm from the sensor
Which type do you need?
| Type | Output | Good for |
|---|---|---|
| Unipolar switch (A3144) | Digital, open collector | Counting wheel turns, end stops, door open/closed |
| Latching (US1881) | Digital, holds state | Rotating magnets with alternating poles, BLDC commutation |
| Linear (SS49E) | Analog voltage | Measuring distance to a magnet, joysticks, current sensing |
| Reed switch | Mechanical contact | Battery-free door and window sensors, float switches |
- Unipolar switch (A3144)
- Output:
- Digital, open collector
- Good for:
- Counting wheel turns, end stops, door open/closed
- Latching (US1881)
- Output:
- Digital, holds state
- Good for:
- Rotating magnets with alternating poles, BLDC commutation
- Linear (SS49E)
- Output:
- Analog voltage
- Good for:
- Measuring distance to a magnet, joysticks, current sensing
- Reed switch
- Output:
- Mechanical contact
- Good for:
- Battery-free door and window sensors, float switches
Wiring
A3144 (flat face towards you): pin 1 VCC, pin 2 GND, pin 3 output. The output is open-collector, so add a 10 kΩ pull-up to the microcontroller's logic voltage, or use INPUT_PULLUP. It reads LOW when a magnet's south pole faces the branded side. Module versions (KY-003) include the pull-up and an LED. Note that the original Allegro A3144 is discontinued; most are compatible clones, so test the operating voltage.
SS49E: pin 1 VCC, pin 2 GND, pin 3 output to an analog pin. At 5 V it reads about 2.5 V with no magnet, rising for one pole and falling for the other.
Reed switch: wire it like a push button with a pull-up.
Measuring speed (RPM)
Glue a small magnet to a wheel or shaft and mount the sensor a few mm away. Attach the output to an interrupt pin and count falling edges. RPM = pulses per second × 60 ÷ magnets per turn. For a bicycle speedometer, multiply wheel revolutions by the tyre circumference. A Hall sensor is better than a reed switch here because it has no bounce and no wear.
Try it: Wheel speed calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Forgetting the pull-up on an open-collector output.
- Testing with the wrong magnet pole on a unipolar sensor.
- Running a 4.5 V-minimum clone from 3.3 V.
- Mounting the magnet too far away; strength falls off fast with distance.
- Using a reed switch for fast RPM counting.
Frequently asked questions
What is the difference between a Hall sensor and a reed switch?
A Hall sensor is solid-state, needs power, and switches fast without wear. A reed switch is a mechanical contact in glass that needs no power but bounces and can break.
Why does my A3144 not respond?
Check the pull-up resistor, flip the magnet to the other pole, and make sure the supply meets the minimum voltage.
Can a Hall sensor measure current?
Yes. Linear Hall sensors placed around a conductor's field measure current; the ACS712 does exactly this internally.
What is a latching Hall sensor?
One whose output stays on after a south pole passes and turns off only when a north pole passes.
Does a Hall sensor work at 3.3 V?
Many do, but classic A3144 clones need 4.5 V or more. Choose a 3.3 V-rated part or a module with a regulator.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 45 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- Allegro MicroSystems A3144 datasheet (discontinued part)
- Honeywell SS49E datasheet
- Melexis US1881 datasheet
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.


