Blog

How to use Linear Magnetic Hall sensor module (KY024)

KY-024 Linear Magnetic Hall Effect Sensor

Precision Magnetic Field Detection for Arduino and Embedded Systems

Introduction

The KY-024 Linear Hall Sensor is a magnetic field detection module based on the 49E analog Hall-effect sensor. It provides both analog and digital outputs proportional to magnetic field strength, making it ideal for position sensing, speed detection, and current measurement applications.

KY-024 Hall Sensor

Key Features

ðŸ§ē Linear Output

Analog voltage proportional to field strength

📊 Dual Output

Analog + Digital (threshold-triggered)

🎛ïļ Adjustable

Sensitivity potentiometer for digital output

🔌 Easy Interface

3.3V/5V compatible with standard pins

Technical Specifications

Operating Voltage 3.3V – 5V DC
Output Type Analog (0-VCC) + Digital (0/1)
Sensitivity 1.3mV/G (typical)
Measurement Range Âą1000 Gauss (analog)
Response Time 5Ξs (typical)
Current Consumption 4-8mA

Pin Configuration

KY-024 Pinout
Pin Label Description Arduino Connection
1 GND Ground GND
2 + Power (3.3V-5V) 5V
3 D0 Digital Output D2 (Digital Input)
4 A0 Analog Output A0 (Analog Input)
Note: Blue potentiometer adjusts digital output threshold

Wiring Diagram (Arduino)

Basic Magnetic Detection

Advanced Applications

Field Strength Calculation

Speed Measurement

Current Sensing

Position Detection

Troubleshooting

No Analog Response

  • Verify magnet polarity (try flipping)
  • Check analog pin connection
  • Test with stronger magnet (neodymium recommended)

Digital Output Always High/Low

  • Adjust sensitivity potentiometer
  • Check threshold voltage with multimeter
  • Ensure magnet is within 1-2cm range

Unstable Readings

  • Add 0.1ΞF capacitor between VCC and GND
  • Keep away from EMI sources
  • Implement software averaging