Robot Pi Shop

KY-024 Linear Magnetic Hall Module Sensor

$1.25

Shipping calculated at checkout.

Quantity

KY-024 Linear Magnetic Hall Effect Sensor Module – Analog & Digital Magnetic Field Detection

The KY-024 Linear Magnetic Hall Effect Sensor Module is a versatile magnetic sensing module designed to detect the presence and relative strength of magnetic fields.

Featuring a linear Hall effect sensor, commonly the SS49E or a compatible component, the module provides both analog and digital outputs. The analog output changes according to the magnetic field applied to the sensor, while the digital output provides an adjustable switching threshold using an onboard potentiometer.

The KY-024 is ideal for Arduino, ESP32, Raspberry Pi projects with an external ADC, robotics, magnetic position sensing, motor monitoring, and DIY electronics applications.

Key Features

  • Model: KY-024
  • Sensor Type: Linear Hall Effect Magnetic Sensor
  • Typical Sensor IC: SS49E or Equivalent
  • Magnetic Detection: Magnetic Field Presence and Relative Strength
  • Dual Outputs: Analog (AO) and Digital (DO)
  • Operating Voltage: Typically 3.3V–5V DC (Module Dependent)
  • Comparator IC: Commonly LM393
  • Adjustable Digital Detection Threshold
  • Onboard Sensitivity Adjustment Potentiometer
  • Digital Output Status LED (Typical)
  • 4-Pin Interface: AO, DO, VCC, GND
  • Compact PCB Design
  • Suitable for Arduino and Microcontroller Projects

Technical Specifications

Parameter Specification
Model KY-024
Product Type Linear Magnetic Hall Effect Sensor Module
Sensor Technology Linear Hall Effect
Typical Sensor IC SS49E or Compatible
Comparator LM393 or Equivalent
Operating Voltage Typically 3.3V–5V DC
Analog Output Voltage Proportional to Magnetic Field
Digital Output HIGH / LOW
Digital Threshold Adjustable via Potentiometer
Magnetic Polarity Detection Bipolar Response Through Analog Output
Analog Output at Zero Field Typically Near VCC/2
Number of Pins 4
Pin Configuration AO / DO / + / -
Board Dimensions Approximately 35 × 15mm (Variant Dependent)
Interface Analog ADC and Digital GPIO

Pin Configuration

Pin Function
AO Analog Magnetic Field Signal
DO Digital Threshold Output
+ Power Supply (VCC)
- Ground (GND)

How It Works

The KY-024 uses a Hall effect sensor to detect changes in magnetic flux density.

Analog Output (AO)

The analog output changes continuously according to the magnetic field acting on the sensor.

  • With no significant magnetic field, the output is typically near half the supply voltage.
  • One magnetic polarity causes the output voltage to increase.
  • The opposite polarity causes the output voltage to decrease.

Digital Output (DO)

The onboard comparator monitors the sensor signal against an adjustable reference voltage.

  • The potentiometer adjusts the switching threshold.
  • The digital output changes between HIGH and LOW when the comparator threshold is crossed.
  • The output polarity depends on the comparator circuit.

Arduino Connection Example

KY-024 Arduino Uno
AO A0
DO D2
+ 5V
- GND

The Arduino can read the analog magnetic field signal and monitor the digital threshold output simultaneously.

Arduino Example Code

const int analogPin = A0;
const int digitalPin = 2;

void setup() {
  pinMode(digitalPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  int analogValue = analogRead(analogPin);
  int digitalValue = digitalRead(digitalPin);

  Serial.print("Analog Value: ");
  Serial.print(analogValue);

  Serial.print(" | Digital Value: ");
  Serial.println(digitalValue);

  delay(200);
}

This example displays the analog sensor reading and digital comparator state in the Arduino Serial Monitor.

For an Arduino Uno using its default 10-bit ADC, the analog reading typically ranges from 0 to 1023.

Applications

  • Magnetic Field Detection
  • Magnetic Position Sensing
  • Arduino and ESP32 Projects
  • Raspberry Pi Projects with an External ADC
  • Robotics and Automation
  • Magnetic Proximity Detection
  • Motor Rotation Monitoring
  • Magnetic Polarity Experiments
  • Contactless Position Detection
  • Educational STEM Projects
  • DIY Electronics and Prototyping

Important Notes

  • The KY-024 is a linear Hall effect sensor module, not a simple magnetic reed switch.
  • The analog output can respond to both magnetic polarities.
  • The module provides relative magnetic field measurements; accurate magnetic flux density measurements require calibration and the correct sensor specifications.
  • The onboard potentiometer adjusts the digital switching threshold, not the analog sensor's inherent sensitivity.
  • The analog output is not a calibrated measurement in gauss or millitesla.
  • Raspberry Pi boards require an external ADC, such as the MCP3008 or ADS1115, to read the analog output.
  • For ESP32 and Raspberry Pi, use a 3.3V-compatible supply and output interface. Verify that the installed sensor and comparator operate correctly at 3.3V.
  • When powered at 5V, the module's outputs may exceed the safe input voltage of 3.3V microcontrollers.
  • The exact sensor IC, operating voltage, output behavior, and PCB dimensions may vary between manufacturers.
  • Verify the pin labels on the supplied module before wiring.

Package Includes

1 × KY-024 Linear Magnetic Hall Effect Sensor Module

A0 Pin A0
G GND
+ 5V
D0 Pin 3