49E Linear Ananolg Hall-Effect Sensor

SKU: SP0404
49E linear Hall-effect sensor, black TO-92 package with three leads, marked 49E

49E Linear Ananolg Hall-Effect Sensor

SKU: SP0404
Default
Regular price $0.79
/
  • Free shipping on all orders over $100
  • Secure payments
  • In stock, ready to ship
  • Inventory on the way

Add $80.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

The 49E is a linear analogue Hall-effect sensor in a TO-92 package that turns a magnetic field into a voltage you can read on any 3.3 V or 5 V microcontroller.

Unlike a switch-type Hall sensor that only flips on or off, the 49E gives a smooth output that rises and falls with the strength and polarity of a nearby magnet. With no magnet present the output sits at roughly half the supply voltage, making it a simple choice for position sensing, current sensing and contact-less measurement projects.

Output
Analogue voltage
Supply
3.0–6.5 V DC
Sensitivity
≈1.4–1.6 mV/G
Package
TO-92 (3 leads)

Why choose it

  • Reads field strength, not just presence — the output is proportional to the magnetic field, so you can measure how strong or how close a magnet is, not only whether one is there.
  • Detects both poles — the output rises above the mid-point for one magnetic pole and falls below it for the other, from a quiescent level near VCC/2.
  • Works on 3.3 V and 5 V boards — a 3.0–6.5 V supply range covers Arduino (5 V), ESP32 and Raspberry Pi Pico (3.3 V) directly.

Specifications

Core
Sensor type Linear (ratiometric) Hall-effect sensor
Output Analogue voltage, proportional to field
Quiescent output ≈ VCC/2 at zero field
Magnetic
Sensitivity ≈ 1.4–1.6 mV/Gauss (typical, 49E family)
Linear range ≥ ±650 Gauss (≈ ±1000 Gauss typical)
Response Responds to both north and south poles
Power
Supply voltage 3.0–6.5 V DC
Supply current ≈ 3.5 mA typical
Output swing ≈ 0.8 V to (VCC − 0.8 V)
Physical
Package TO-92, 3 leads
Pinout 1 = VCC, 2 = GND, 3 = OUT
Operating temperature −40 °C to +85 °C

Figures are typical values for the common 49E / SS49E / AH49E linear Hall-sensor family. Exact sensitivity and polarity can vary slightly between manufacturers — confirm against your own reading if you need precise numbers.

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Power at 5 V, read OUT on any analogue pin (A0–A5)
ESP32 / ESP8266 (3.3 V) ✓ Yes Power at 3.3 V; use an ADC1 input-only pin such as GPIO34
Raspberry Pi Pico (3.3 V) ✓ Yes Power at 3.3 V; analogue input only on GP26–GP28
Software ✓ Yes No library needed — read the analogue pin directly

In the box

Included
  • 1 × 49E linear Hall-effect sensor (TO-92)

Applications

  • Contact-less position and proximity sensing with a magnet
  • Rotary or linear position measurement (throttle, dial, slider)
  • Measuring magnetic field strength and detecting pole direction
  • Speed / rotation sensing with a magnet on a wheel or shaft

Tutorial

What you’ll build: read the 49E’s output voltage on your computer every half-second and watch it change as you move a magnet near the sensor. About 15 minutes.

Choose your board

Board Logic voltage Pin used Language Best for
Arduino UNO 5 V A0 C++ (Arduino IDE) First-timers
ESP32 3.3 V GPIO34 C++ (Arduino IDE) Wi-Fi projects
Raspberry Pi Pico 3.3 V GP26 (ADC0) MicroPython (Thonny) Learning Python

New to this? Start with the Arduino UNO.

How it works

The sensor has three legs. You give it power and ground, and it gives back a voltage on its OUT leg. That voltage is the reading your board measures with its ADC (analogue-to-digital converter).

  • VCC — the power pin (3.3 V or 5 V).
  • GND — the return path; the sensor GND and the board GND must be joined.
  • OUT — the analogue signal. With no magnet it sits near half the supply; it rises for one pole and falls for the other.
  • ADC — the part of the board that turns that voltage into a number your code can read.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable, 3 male-to-female jumper wires

Arduino UNO5VGNDA03.3VVinA149E sensor49E1 VCC2 GND3 OUTPOWER headerANALOG IN header5 Vanalogue signal

■ Power ■ GND ■ Signal (analogue OUT) ⌒ = wires cross, not connected

49E pin order shown with the marked (printed) face towards you and the legs pointing down: pin 1 VCC, pin 2 GND, pin 3 OUT.

# Arduino UNO pin Module pin Wire Notes
1 5V VCC Red Sensor runs on 3.0–6.5 V, so 5 V is fine
2 GND GND Black Common ground
3 A0 OUT Yellow Analogue output, rests near VCC/2

Watch out: The UNO reads 0–5 V on A0, which matches the 49E powered at 5 V. No level shifting needed.

1
Install the Arduino IDE
Download and install the Arduino IDE. No extra library is needed — the 49E gives a plain analogue voltage.
2
Wire the sensor
With the USB unplugged, connect VCC → 5V, GND → GND and OUT → A0 using the table above.
3
Select board and port
Plug in the UNO. Tools → Board → Arduino Uno, then Tools → Port → the COM port that appears.
4
Upload and open Serial Monitor
Click Upload, then open Tools → Serial Monitor and set it to 115200 baud.
▸ Example — read the field on A0
// 49E linear Hall sensor - read the magnetic field as a voltage
// Wiring: VCC -> 5V, GND -> GND, OUT -> A0
const int HALL_PIN = A0;          // sensor OUT  (you can change this)
const float VREF   = 5.0;         // UNO analogue reference, in volts

void setup() {
  Serial.begin(115200);           // 115200 = speed it talks to your PC
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  int   raw    = analogRead(HALL_PIN);     // 0..1023
  float volts  = raw * VREF / 1023.0;      // convert to volts
  float middle = VREF / 2.0;               // output rests near VCC/2 with no magnet

  Serial.print("Output: ");
  Serial.print(volts, 2);
  Serial.print(" V  (");
  if      (volts > middle + 0.05) Serial.print("magnet pole A near");
  else if (volts < middle - 0.05) Serial.print("magnet pole B near");
  else                            Serial.print("no magnet");
  Serial.println(")");
  delay(500);
}

✓ Check: Serial Monitor (115200 baud) prints OK - epartners.co.nz test once, then a voltage near 2.5 V that rises or falls when you bring a magnet close.

ESP32 Tutorial

You need: ESP32 DevKitC (ESP32-WROOM-32), USB cable, 3 male-to-female jumper wires

ESP32 DevKitC3V3GPIO34GNDEN · VP · VNGPIO35 … GPIO1249E sensor49E1 VCC2 GND3 OUTleft header (J2)3.3 V (not 5 V)OUT → GPIO34 (input-only, ADC1)

■ Power ■ GND ■ Signal (analogue OUT) ⌒ = wires cross, not connected

49E pin order shown with the marked (printed) face towards you and the legs pointing down: pin 1 VCC, pin 2 GND, pin 3 OUT.

# ESP32 pin Module pin Wire Notes
1 3V3 VCC Red Power the sensor from 3.3 V, not 5 V
2 GND GND Black Common ground
3 GPIO34 OUT Yellow Input-only ADC1 pin; reads fine with Wi-Fi on

Watch out: GPIO34 is input-only and on ADC1, so it still works when Wi-Fi is active. Powered at 3.3 V the sensor output never exceeds the ADC range, so no divider is needed.

1
Install the ESP32 boards package
Install the Arduino IDE. In File → Preferences → Additional Boards Manager URLs add https://espressif.github.io/arduino-esp32/package_esp32_index.json, then Tools → Board → Boards Manager → install esp32 by Espressif Systems (guide).
2
Wire the sensor
USB unplugged, connect VCC → 3V3, GND → GND and OUT → GPIO34 as in the table. Power the sensor from 3V3 so its output stays within the 3.3 V ADC range.
3
Select board and port
Tools → Board → ESP32 Dev Module, then Tools → Port → the port that appears. If no port shows, fit a CP210x or CH340 USB driver and use a data USB cable.
4
Upload
Click Upload. If the upload fails or stops part-way, set Tools → Upload Speed → 115200 and upload again. Open Serial Monitor at 115200 baud.
▸ Example — read the field on GPIO34
// 49E linear Hall sensor on ESP32 - power the sensor from 3.3 V only
// Wiring: VCC -> 3V3, GND -> GND, OUT -> GPIO34 (input-only, ADC1)
const int HALL_PIN = 34;          // sensor OUT  (you can change this)

void setup() {
  Serial.begin(115200);
  analogReadResolution(12);       // 0..4095
  analogSetAttenuation(ADC_11db); // read up to ~3.1 V on the pin
  Serial.println("OK - epartners.co.nz test");
}

void loop() {
  int   mv     = analogReadMilliVolts(HALL_PIN);  // calibrated millivolts
  float volts  = mv / 1000.0;
  float middle = 3.3 / 2.0;                        // rests near VCC/2 with no magnet

  Serial.print("Output: ");
  Serial.print(volts, 2);
  Serial.print(" V  (");
  if      (volts > middle + 0.05) Serial.print("magnet pole A near");
  else if (volts < middle - 0.05) Serial.print("magnet pole B near");
  else                            Serial.print("no magnet");
  Serial.println(")");
  delay(500);
}

✓ Check: Serial Monitor (115200 baud) prints OK - epartners.co.nz test once, then a voltage near 1.65 V that changes as a magnet approaches.

Raspberry Pi Pico Tutorial

You need: Raspberry Pi Pico (RP2040), USB cable, 3 male-to-female jumper wires

Raspberry Pi Pico3V3(OUT) · 36AGND · 33GP26 · 31VBUS 40 ✕ (5 V)ADC_VREF 35 · GP28 34GP27 · 3249E sensor49E1 VCC2 GND3 OUT3.3 V (not VBUS)ADC0

■ Power ■ GND ■ Signal (analogue OUT) ⌒ = wires cross, not connected

49E pin order shown with the marked (printed) face towards you and the legs pointing down: pin 1 VCC, pin 2 GND, pin 3 OUT.

# Raspberry Pi Pico pin Module pin Wire Notes
1 3V3(OUT) · pin 36 VCC Red 3.3 V supply; VBUS (pin 40) is 5 V — do not use
2 AGND · pin 33 GND Black Analogue ground, next to the ADC pins
3 GP26 (ADC0) · pin 31 OUT Yellow Analogue input; GP26–GP28 are the only ADC pins

Watch out: The Pico ADC reads 0–3.3 V. Powering the sensor from 3V3(OUT) keeps the output in range. Analogue input is only on GP26, GP27 and GP28.

1
Install Thonny and MicroPython
Install Thonny. Hold the BOOTSEL button while plugging the Pico into USB, then in Thonny install MicroPython for the Pico (Tools → Options → Interpreter, or the install prompt).
2
Wire the sensor
USB unplugged, connect VCC → 3V3(OUT) pin 36, GND → AGND pin 33 and OUT → GP26 (ADC0) pin 31. Never use VBUS (pin 40, 5 V) for the sensor.
3
Select the interpreter
In Thonny choose MicroPython (Raspberry Pi Pico) as the interpreter and pick the Pico’s port.
4
Run
Press Run (▶). Readings print in the Shell; press Stop (■) to end. To run on power-up alone, save the file as main.py on the Pico.
▸ Example — read the field on GP26 (ADC0)
# 49E linear Hall sensor on Raspberry Pi Pico - 3.3 V only
# Wiring: VCC -> 3V3(OUT) pin 36, GND -> AGND pin 33, OUT -> GP26 (ADC0) pin 31
from machine import ADC, Pin
from time import sleep

hall = ADC(Pin(26))        # GP26 = ADC0  (you can change this)
VREF = 3.3                 # Pico ADC reference, in volts

print("OK - epartners.co.nz test")

while True:
    raw    = hall.read_u16()        # 0..65535
    volts  = raw * VREF / 65535     # convert to volts
    middle = VREF / 2               # rests near VCC/2 with no magnet
    if volts > middle + 0.05:
        state = "magnet pole A near"
    elif volts < middle - 0.05:
        state = "magnet pole B near"
    else:
        state = "no magnet"
    print("Output: {:.2f} V  ({})".format(volts, state))
    sleep(0.5)

✓ Check: The Thonny Shell prints OK - epartners.co.nz test once, then a voltage near 1.65 V that moves when a magnet is near.

Troubleshooting

Board Problem Likely cause Fix
All Reading never changes with a magnet OUT not connected, or wrong leg order Check OUT goes to the analogue pin and confirm the VCC/GND/OUT leg order on the part
All Reading stuck near 0 V or full scale VCC and GND swapped, or no common ground Re-check power polarity and join the sensor GND to the board GND
All Value jumps around Long or loose wires picking up noise Keep leads short (< 20 cm) and push connections home
ESP32 Stuck on “Connecting…” Board not in upload mode Hold the BOOT button until uploading starts
ESP32 Upload fails or stops part-way Upload speed too high for the cable or USB chip Tools → Upload Speed → 115200, then upload again
Pico Pico does not appear in Thonny Not in BOOTSEL mode Hold BOOTSEL while plugging in USB, then install MicroPython

Try next: average several readings to smooth the value, or light an LED when the output crosses a threshold to make a simple magnet-detector.

Spotted a problem in this tutorial? Email support@epartners.co.nz and we’ll check it and update the tutorial.

Good to know
  • This is a bare TO-92 sensor, not a module — there is no onboard regulator or pull-up, so wire VCC, GND and OUT directly.
  • Confirm the leg order on your own part before powering it; VCC and GND swapped can damage the sensor.
  • The output is analogue, so read it on an ADC/analogue pin, not a digital-only pin.

Datasheet

Key figures from the manufacturer's datasheet for the AH49E linear Hall-effect sensor, a pin-compatible member of the 49E family used as the reference for this product.

AH49E linear Hall-effect sensor
Type Linear Hall-effect IC, analogue voltage output
Supply voltage (recommended) 3.0–6.5 V
Supply current 3.5 mA typical, 4.5 mA max (VCC = 5 V)
Quiescent output (B = 0) 2.5 V typical (2.25–2.75 V) at VCC = 5 V
Sensitivity 1.6 mV/gauss typical (1.1–2.1), 0 to ±1000 gauss
Output span 0.8 V to (VCC − 0.8 V) typical
Magnetic field range ±650 gauss min, ±1000 gauss typical
Linearity of span 0.7 % typical
Output resistance 60 Ω typical, 120 Ω max
Output noise 90 µV typical (10 Hz–10 kHz)
Operating temperature −40 °C to +85 °C
Pinout (TO-92S, front view) 1 = VCC, 2 = GND, 3 = OUT

Download the AH49E datasheet (PDF, 414 KB)

▸ Preview the datasheet

If the preview does not load on your device, use the download link above.

Source: Diodes Incorporated, AH49E linear Hall-effect IC datasheet, document DS36517 Rev. 2-2 (April 2025). Generic 49E parts from other makers can differ slightly.

Resources

FAQ

▸ Is the output analogue or digital?

Analogue. The 49E outputs a continuously varying voltage, so connect OUT to an analogue (ADC) input and read it with analogRead or the Pico ADC.

▸ Does it work on a 3.3 V board like the ESP32 or Pico?

Yes. The supply range is 3.0–6.5 V. Powered at 3.3 V its output stays within the 3.3 V ADC range, so no level shifting or divider is needed.

▸ How do I tell which magnet pole is near?

With no magnet the output sits near VCC/2. One pole pushes it higher and the other pulls it lower, so compare the reading with the mid-point.

▸ What is the difference between this and a KY-003 or A3144?

The A3144 and KY-003 are switch-type Hall sensors that give a simple on/off output. The 49E is linear, giving a voltage proportional to field strength, so you can measure how strong the field is rather than just detect it.

▸ Do I need a library?

No. It is read like any analogue sensor — no library is required on Arduino, ESP32 or the Pico.

Technical question about this part? Email support@epartners.co.nz with your board and wiring, and we’ll help you get it working.

Shipping: $5.99 urban, $9.99 rural. Free shipping on orders of $100 or more.

Order by 10:30am (NZT), Monday to Friday, and we dispatch the same day. Orders placed after 10:30am, on weekends or on public holidays are dispatched the next business day.

Delivery usually takes 1–2 business days after dispatch (2–3 for rural addresses). See our Shipping Policy for full details.

This site is protected by hCaptcha and the hCaptcha Privacy Policy and Terms of Service apply.

More from Various Sensors
Load Cell - ePartners
1kg load cell, 75 mm aluminium-coloured bar with four threaded holes and red, black, green and white wires
Load Cell
$9.99
Recently viewed