Hall Magnetic Sensor Module KY-003

SKU: HA3001-1
KY-003 Hall magnetic sensor module with A3144 sensor, 680 ohm resistor, LED and 3-pin header on a black board

Hall Magnetic Sensor Module KY-003

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

Add $97.01 more for free shipping

Tax included. Shipping calculated at checkout.

You'll also need

Choose a quantity and add it to your cart.

Arduino UNO Compatible
$10.9910+ in stock
Breadboard 400 holes
$4.4910+ in stock
Breadboard Jumper Wire - 140pcs
$11.9910+ in stock

A KY-003 Hall magnetic sensor module built around the A3144 Hall-effect switch: it gives a digital LOW signal when a magnet comes near.

The KY-003 is a non-contact magnetic switch for Arduino and other microcontrollers. Use it to detect a magnet for door and lid sensing, position marks or counting rotations, with no moving parts to wear out.

Sensor
A3144 Hall switch
Supply
4.5–24 V
Output
Digital, active LOW
Header
3-pin, 2.54 mm

Why choose it

  • No contact needed — the A3144 senses a magnetic field, so nothing wears out from switching.
  • Easy to read — one digital pin, no library needed; the signal is LOW when a magnet is detected.
  • Ready to wire — the A3144, a 680 Ω resistor and an LED are already on the board, with a 3-pin header.

Specifications

Sensor
Sensor IC A3144 (marked 3144EUA-S) unipolar Hall-effect switch
Switching type Non-latching: output returns HIGH when the field drops below the release point
Output Open-collector NPN, active LOW, sinks up to 25 mA
Electrical
Supply voltage 4.5–24 V (5 V typical)
Operate point (BOP) 35–450 G over temperature
Release point (BRP) 25–430 G over temperature
Operating temperature −40 °C to +85 °C
Board
On-board parts 680 Ω resistor and LED
Connector 3-pin male header, 2.54 mm pitch
Pins − (GND), middle (VCC), S (signal)

Compatibility

Platform Works Notes
Arduino UNO / Nano (5 V) ✓ Yes Wire S straight to a digital pin
ESP32 / ESP8266 (3.3 V) ◐ With adapter Power the module from 5 V and use a logic level shifter on S
Raspberry Pi / Pico (3.3 V) ◐ With adapter Pins are not 5 V tolerant; use a logic level shifter on S
Software ✓ Yes Arduino IDE (no library needed) or MicroPython

In the box

Included
  • 1 × KY-003 Hall magnetic sensor module

Applications

  • Door, window or lid open/closed detection with a magnet
  • Counting wheel or motor rotations with a magnet on the rotating part
  • Position and end-stop marking in small robots and DIY machines

Tutorial

What you'll build: a magnet detector that prints "Magnet detected" on your computer when a magnet comes close · About 15 minutes.

How it works

The A3144 chip senses a magnetic field. Near a magnet its signal pin is pulled to ground (LOW); away from the magnet it lets go (HIGH).

  • GND — the return path for current; every GND must be joined.
  • Open-collector output — the chip only pulls the signal down. A pull-up (built into the board pin) brings it back up when the magnet is gone.
  • Logic voltage — the voltage your board counts as "on": 5 V for the UNO.
Arduino UNO Tutorial

You need: Arduino UNO R3, USB cable (data), 3 jumper wires, a small magnet.

Arduino UNO5VD2GNDKY-003VCC (middle)S (signal)− (GND)5 VsignalGND

■ Power ■ GND ■ Signal ⌒ = wires cross, not connected

# Arduino UNO pin → Module pin Wire colour Notes
1 5V → VCC (middle pin) Red Module is rated 4.5–24 V, so 5 V is right
2 D2 → S (signal) Yellow Reads LOW when the magnet is detected
3 GND → − (GND) Black Joins the grounds

Watch out: Check the pin labels printed on your board. The module marks "−" and "S"; the middle pin is VCC.

1
Install the Arduino IDE
Download and install the Arduino IDE. Plug the board into your computer with a data USB cable.
2
Choose board and port
Tools → Board → Arduino AVR Boards → Arduino Uno. Then Tools → Port and pick the port that appeared when you plugged the board in. If no port appears, try another data cable and install the USB driver for your board.
3
Upload the example
Open a new sketch, paste the example above, then click Upload (the right arrow).
4
Open the Serial Monitor
Tools → Serial Monitor, set the speed to 115200 baud.
▸ Example 1 — Detect a magnet
// Wiring: S->D2, VCC->5V, GND->GND (KY-003 Hall magnetic sensor)
const int SENSOR_PIN = 2;   // S pin of the module (matches the pin table)

bool lastState = HIGH;      // HIGH = no magnet, LOW = magnet detected

void setup() {
  Serial.begin(115200);                 // speed used to talk to the computer
  pinMode(SENSOR_PIN, INPUT_PULLUP);    // keeps the pin steady when the sensor is idle
  Serial.println("OK - epartners.co.nz test");
  lastState = digitalRead(SENSOR_PIN);
}

void loop() {
  bool state = digitalRead(SENSOR_PIN);
  if (state != lastState) {             // only print when something changes
    lastState = state;
    if (state == LOW) {
      Serial.println("Magnet detected");
    } else {
      Serial.println("No magnet");
    }
  }
  delay(10);                            // you can change this
}

✓ Check: Serial Monitor (115200 baud) shows OK - epartners.co.nz test once. Hold a magnet near the marked face of the sensor chip: it prints Magnet detected; move it away and it prints No magnet. If nothing happens, flip the magnet over.

Troubleshooting

Problem Likely cause Fix
Never shows "Magnet detected" Wrong magnet pole facing the chip, or magnet too far away Flip the magnet and bring it within a few millimetres of the marked face of the chip
Reading never changes Signal wire on the wrong pin, or VCC and GND swapped Compare the wiring with the pin table; unplug USB before changing wires
Reads "Magnet detected" all the time S pin not connected, or sketch pin does not match Check the S wire and the pin number in the code

Try next: count pulses from a magnet on a spinning wheel to measure rotation speed, or light an LED while the magnet is present.

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

Good to know
  • You need a magnet; the module does not include one. A neodymium magnet works well.
  • Only one magnetic pole triggers the sensor at the marked face of the chip. If nothing happens, flip the magnet.
  • The module is rated 4.5–24 V. Power it from 5 V; 3.3 V is below the rated minimum.

Datasheet

Key figures from the manufacturer's datasheet for the A3144 Hall-effect switch, the sensing chip on this module.

A3144 Hall-effect switch
Device A3144 unipolar Hall-effect switch
Supply voltage 4.5–24 V
Output Open-collector, sinks up to 25 mA
Output saturation voltage 175 mV typical, 400 mV maximum at 20 mA
Supply current (output off) 4.4 mA typical, 9.0 mA maximum
Operate point (BOP) at 25 °C 70–350 G
Operate point (BOP) over temperature 35–450 G
Release point (BRP) at 25 °C 50–330 G
Release point (BRP) over temperature 25–430 G
Operating temperature (E suffix) −40 °C to +85 °C
Absolute maximum supply voltage 28 V

Download the A3144 datasheet (PDF)

▸ Preview the datasheet

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

Source: Allegro MicroSystems, 3141 thru 3144 Sensitive Hall-Effect Switches for High-Temp. Operation, document 27621.6B.

Resources

FAQ

▸ Does the KY-003 work with a 3.3 V board such as an ESP32 or Raspberry Pi Pico?

Yes, with a level shifter. The module is rated 4.5–24 V, so power it from 5 V and shift the S signal down to 3.3 V before it reaches the GPIO pin.

▸ What does the sensor output when a magnet is near?

It outputs LOW (pulled to ground) when the field exceeds the operate point, and HIGH when the field falls below the release point.

▸ Do I need a library?

No. A single digital read is enough: use digitalRead() in the Arduino IDE or Pin.value() in MicroPython.

▸ Which end of the magnet triggers it?

Only one pole, facing the marked face of the chip, triggers it. If nothing happens, flip the magnet over.

▸ Can it sense a magnet through a plastic or wooden surface?

Yes, magnetic fields pass through non-magnetic materials, but the magnet must still be strong enough and close enough to exceed the operate point.

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.

Recently viewed