KY-024 Linear Hall Effect Magnetic Sensor Module – Analog & Digital for Arduino
KY-024 Linear Hall Effect Magnetic Sensor Module – Analog & Digital for Arduino
Buy the KY-024 Linear Hall Effect Magnetic Sensor Module online in Pakistan from Robostan.pk. This compact magnetic field sensing module is designed for Arduino, ESP32, robotics, automation, magnetic proximity detection, and DIY electronics projects.
The KY-024 Magnetic Sensor combines a linear Hall Effect sensor, commonly the 49E or AH49E, with an LM393 comparator to provide both analog and digital magnetic sensing outputs.
Its analog output changes in response to magnetic field strength and polarity, while the digital output changes state when the measured signal crosses a threshold set by the onboard potentiometer.
Featuring a 3V to 5V operating voltage, four-pin interface, adjustable digital detection threshold, and onboard LED indicators, the KY-024 is a versatile solution for magnetic sensing and microcontroller projects.
Key Features
- KY-024 linear Hall Effect magnetic sensor module
- Based on a 49E / AH49E linear Hall sensor on common versions
- Integrated LM393 voltage comparator
- Analog magnetic field sensing output (AO)
- Digital magnetic detection output (DO)
- Adjustable digital switching threshold
- Onboard potentiometer for threshold adjustment
- Typical operating voltage from 3V to 5V DC
- Four-pin interface: AO, GND, VCC and DO
- Detects magnetic fields without physical contact
- Responds to suitable north and south magnetic poles
- Power and detection indicator LEDs on common boards
- Compatible with Arduino analog and digital inputs
- Suitable for ESP32 and STM32 projects
- Usable with Raspberry Pi through digital GPIO or an external ADC
- Compact design for robotics and automation
Technical Specifications
- Product Name: KY-024 Linear Hall Effect Magnetic Sensor
- Model Number: KY-024
- Sensor Type: Linear Magnetic Hall Effect Sensor
- Common Hall Sensor IC: 49E / AH49E
- Comparator IC: LM393
- Module Operating Voltage: 3V to 5V DC
- Analog Output: Magnetic Field-Dependent Voltage
- Digital Output: Threshold-Based HIGH/LOW Signal
- Threshold Adjustment: Onboard Potentiometer
- Interface: Four-Pin Header
- Pin Labels: AO, GND, VCC and DO
- LED Indicators: Power and Digital Detection Status
- Magnetic Response: Sensitive to Magnetic Field Strength and Polarity
- Detection Method: Non-Contact Magnetic Sensing
- Compatible Platforms: Arduino, ESP32, STM32 and Raspberry Pi with Suitable Interfacing
- Mounting: PCB Sensor Module
Applications
- Arduino magnetic field measurement projects
- Magnetic proximity detection
- Motor rotation and speed sensing
- Magnetic position monitoring
- Robotics and automation systems
- Contactless magnetic switching
- Electronic security and alarm prototypes
- Magnet detection experiments
- DIY RPM counter projects
- Embedded electronics development
- ESP32 magnetic sensing projects
- Educational Hall Effect demonstrations
- Smart home sensing and monitoring projects
How Does the KY-024 Hall Effect Sensor Work?
The KY-024 Hall Effect Sensor Module detects magnetic fields using the Hall Effect principle.
A linear Hall Effect sensor produces an analog voltage that changes in response to the magnetic field around the sensing element.
When no significant magnetic field is present, the output of a typical linear Hall sensor is close to half of its supply voltage.
Moving a suitable magnet toward the sensor changes its output voltage. Depending on the magnetic pole facing the sensor, the measured voltage may increase or decrease.
The module also includes an LM393 comparator that evaluates the sensor signal against an adjustable reference voltage.
When the comparator's switching threshold is crossed, the digital output changes state and the onboard detection indicator may activate.
Dual Analog and Digital Outputs
The KY-024 provides two useful output types:
- Analog Output (AO): Produces a voltage related to magnetic field strength and polarity. Useful for observing magnetic field changes.
- Digital Output (DO): Changes between HIGH and LOW according to the adjustable comparator threshold.
The analog output is suitable for projects requiring relative magnetic field measurements, while the digital output can be used for magnet detection and threshold-triggered switching.
Important: The onboard potentiometer primarily adjusts the digital comparator threshold. It does not directly increase the sensitivity of the Hall sensor's analog output.
KY-024 Pinout
- AO: Analog magnetic field sensing output
- GND: Ground connection
- VCC: Positive supply voltage
- DO: Digital threshold detection output
Always follow the pin markings on the actual PCB because pin order can vary between manufacturers.
Arduino Compatibility
The KY-024 Magnetic Sensor can be used with Arduino UNO, Nano, Mega and compatible microcontrollers.
A typical Arduino UNO connection is:
- KY-024 AO: Arduino A0
- KY-024 DO: Arduino D2
- KY-024 VCC: Arduino 5V
- KY-024 GND: Arduino GND
The analog output can be measured using Arduino's analogRead() function, while the digital output can be checked using digitalRead().
By adjusting the onboard potentiometer, developers can set an appropriate digital switching point for their application.
ESP32 and Raspberry Pi Compatibility
The KY-024 can be connected to compatible ESP32 boards when the analog and digital output voltages are within the controller's supported input range.
For 3.3V controllers, use a suitable supply and verify electrical compatibility before connecting the outputs.
Raspberry Pi boards can read the digital output through a suitable GPIO connection. Reading the analog output requires an external analog-to-digital converter such as an MCP3008 or ADS1115.
KY-024 vs KY-003 Hall Effect Sensor
The KY-024 and KY-003 both detect magnetic fields, but they have different sensing capabilities.
- KY-024: Linear Hall Effect module with both analog and adjustable digital outputs.
- KY-003: Digital Hall Effect switch module that responds when a suitable magnetic field crosses its switching threshold.
Choose the KY-024 when analog magnetic field information or an adjustable switching threshold is required.
KY-024 vs KY-021 Reed Switch
- KY-024: Uses solid-state magnetic field sensing electronics.
- KY-021: Uses mechanical reed contacts that open or close in the presence of a suitable magnetic field.
The KY-024 is useful for observing relative magnetic field changes, while the KY-021 is suitable for simple magnet-activated switching.
Why Choose the KY-024?
Dual Outputs: Provides both analog measurement and digital switching capability.
Adjustable Threshold: Onboard potentiometer lets developers set a digital switching reference.
Non-Contact Detection: Detects magnetic fields without mechanical contact.
Microcontroller Compatibility: Integrates with Arduino and other controllers using simple analog and digital connections.
Educational Value: Ideal for learning about Hall Effect sensing, analog voltage measurement, comparators and magnetic field detection.
Important Usage Notes
- The KY-024 detects magnetic fields, not ordinary non-magnetic objects.
- It does not provide calibrated magnetic flux density readings without suitable calibration.
- Analog output changes depend on field strength and magnetic polarity.
- Digital switching behavior depends on the potentiometer adjustment.
- Actual sensor sensitivity varies between Hall sensor IC versions.
- Confirm the pin arrangement before applying power.
- Use a regulated low-voltage DC supply.
- Do not expose 3.3V-only controller inputs to 5V signals.
- Raspberry Pi analog measurement requires an external ADC.
- Keep high-current loads away from the module signal outputs.
- Do not connect the sensor directly to AC mains or high-voltage circuits.
Package Contents
- 1 x KY-024 Linear Hall Effect Magnetic Sensor Module
Buy KY-024 Linear Hall Effect Sensor in Pakistan
Looking for a KY-024 Linear Hall Effect Magnetic Sensor Module in Pakistan? Shop online at Robostan.pk for magnetic sensors, Arduino modules, ESP32 development boards, robotics components, electronic switches and DIY electronics accessories.
The KY-024 is suitable for students, engineers, robotics enthusiasts and electronics developers working on magnetic field sensing and automation projects.
Order your KY-024 Magnetic Sensor Module from Robostan.pk with nationwide delivery across Pakistan, including Lahore, Karachi, Islamabad, Rawalpindi, Faisalabad, Multan, Peshawar and other cities.
Robostan.pk – Build. Innovate. Create.
Pickup available at Robostan
Usually ready in 24 hours
KY-024 Linear Hall Effect Magnetic Sensor Module – Analog & Digital for Arduino
Buy the KY-024 Linear Hall Effect Magnetic Sensor Module online in Pakistan from Robostan.pk. This compact magnetic field sensing module is designed for Arduino, ESP32, robotics, automation, magnetic proximity detection, and DIY electronics projects.
The KY-024 Magnetic Sensor combines a linear Hall Effect sensor, commonly the 49E or AH49E, with an LM393 comparator to provide both analog and digital magnetic sensing outputs.
Its analog output changes in response to magnetic field strength and polarity, while the digital output changes state when the measured signal crosses a threshold set by the onboard potentiometer.
Featuring a 3V to 5V operating voltage, four-pin interface, adjustable digital detection threshold, and onboard LED indicators, the KY-024 is a versatile solution for magnetic sensing and microcontroller projects.
Key Features
- KY-024 linear Hall Effect magnetic sensor module
- Based on a 49E / AH49E linear Hall sensor on common versions
- Integrated LM393 voltage comparator
- Analog magnetic field sensing output (AO)
- Digital magnetic detection output (DO)
- Adjustable digital switching threshold
- Onboard potentiometer for threshold adjustment
- Typical operating voltage from 3V to 5V DC
- Four-pin interface: AO, GND, VCC and DO
- Detects magnetic fields without physical contact
- Responds to suitable north and south magnetic poles
- Power and detection indicator LEDs on common boards
- Compatible with Arduino analog and digital inputs
- Suitable for ESP32 and STM32 projects
- Usable with Raspberry Pi through digital GPIO or an external ADC
- Compact design for robotics and automation
Technical Specifications
- Product Name: KY-024 Linear Hall Effect Magnetic Sensor
- Model Number: KY-024
- Sensor Type: Linear Magnetic Hall Effect Sensor
- Common Hall Sensor IC: 49E / AH49E
- Comparator IC: LM393
- Module Operating Voltage: 3V to 5V DC
- Analog Output: Magnetic Field-Dependent Voltage
- Digital Output: Threshold-Based HIGH/LOW Signal
- Threshold Adjustment: Onboard Potentiometer
- Interface: Four-Pin Header
- Pin Labels: AO, GND, VCC and DO
- LED Indicators: Power and Digital Detection Status
- Magnetic Response: Sensitive to Magnetic Field Strength and Polarity
- Detection Method: Non-Contact Magnetic Sensing
- Compatible Platforms: Arduino, ESP32, STM32 and Raspberry Pi with Suitable Interfacing
- Mounting: PCB Sensor Module
Applications
- Arduino magnetic field measurement projects
- Magnetic proximity detection
- Motor rotation and speed sensing
- Magnetic position monitoring
- Robotics and automation systems
- Contactless magnetic switching
- Electronic security and alarm prototypes
- Magnet detection experiments
- DIY RPM counter projects
- Embedded electronics development
- ESP32 magnetic sensing projects
- Educational Hall Effect demonstrations
- Smart home sensing and monitoring projects
How Does the KY-024 Hall Effect Sensor Work?
The KY-024 Hall Effect Sensor Module detects magnetic fields using the Hall Effect principle.
A linear Hall Effect sensor produces an analog voltage that changes in response to the magnetic field around the sensing element.
When no significant magnetic field is present, the output of a typical linear Hall sensor is close to half of its supply voltage.
Moving a suitable magnet toward the sensor changes its output voltage. Depending on the magnetic pole facing the sensor, the measured voltage may increase or decrease.
The module also includes an LM393 comparator that evaluates the sensor signal against an adjustable reference voltage.
When the comparator's switching threshold is crossed, the digital output changes state and the onboard detection indicator may activate.
Dual Analog and Digital Outputs
The KY-024 provides two useful output types:
- Analog Output (AO): Produces a voltage related to magnetic field strength and polarity. Useful for observing magnetic field changes.
- Digital Output (DO): Changes between HIGH and LOW according to the adjustable comparator threshold.
The analog output is suitable for projects requiring relative magnetic field measurements, while the digital output can be used for magnet detection and threshold-triggered switching.
Important: The onboard potentiometer primarily adjusts the digital comparator threshold. It does not directly increase the sensitivity of the Hall sensor's analog output.
KY-024 Pinout
- AO: Analog magnetic field sensing output
- GND: Ground connection
- VCC: Positive supply voltage
- DO: Digital threshold detection output
Always follow the pin markings on the actual PCB because pin order can vary between manufacturers.
Arduino Compatibility
The KY-024 Magnetic Sensor can be used with Arduino UNO, Nano, Mega and compatible microcontrollers.
A typical Arduino UNO connection is:
- KY-024 AO: Arduino A0
- KY-024 DO: Arduino D2
- KY-024 VCC: Arduino 5V
- KY-024 GND: Arduino GND
The analog output can be measured using Arduino's analogRead() function, while the digital output can be checked using digitalRead().
By adjusting the onboard potentiometer, developers can set an appropriate digital switching point for their application.
ESP32 and Raspberry Pi Compatibility
The KY-024 can be connected to compatible ESP32 boards when the analog and digital output voltages are within the controller's supported input range.
For 3.3V controllers, use a suitable supply and verify electrical compatibility before connecting the outputs.
Raspberry Pi boards can read the digital output through a suitable GPIO connection. Reading the analog output requires an external analog-to-digital converter such as an MCP3008 or ADS1115.
KY-024 vs KY-003 Hall Effect Sensor
The KY-024 and KY-003 both detect magnetic fields, but they have different sensing capabilities.
- KY-024: Linear Hall Effect module with both analog and adjustable digital outputs.
- KY-003: Digital Hall Effect switch module that responds when a suitable magnetic field crosses its switching threshold.
Choose the KY-024 when analog magnetic field information or an adjustable switching threshold is required.
KY-024 vs KY-021 Reed Switch
- KY-024: Uses solid-state magnetic field sensing electronics.
- KY-021: Uses mechanical reed contacts that open or close in the presence of a suitable magnetic field.
The KY-024 is useful for observing relative magnetic field changes, while the KY-021 is suitable for simple magnet-activated switching.
Why Choose the KY-024?
Dual Outputs: Provides both analog measurement and digital switching capability.
Adjustable Threshold: Onboard potentiometer lets developers set a digital switching reference.
Non-Contact Detection: Detects magnetic fields without mechanical contact.
Microcontroller Compatibility: Integrates with Arduino and other controllers using simple analog and digital connections.
Educational Value: Ideal for learning about Hall Effect sensing, analog voltage measurement, comparators and magnetic field detection.
Important Usage Notes
- The KY-024 detects magnetic fields, not ordinary non-magnetic objects.
- It does not provide calibrated magnetic flux density readings without suitable calibration.
- Analog output changes depend on field strength and magnetic polarity.
- Digital switching behavior depends on the potentiometer adjustment.
- Actual sensor sensitivity varies between Hall sensor IC versions.
- Confirm the pin arrangement before applying power.
- Use a regulated low-voltage DC supply.
- Do not expose 3.3V-only controller inputs to 5V signals.
- Raspberry Pi analog measurement requires an external ADC.
- Keep high-current loads away from the module signal outputs.
- Do not connect the sensor directly to AC mains or high-voltage circuits.
Package Contents
- 1 x KY-024 Linear Hall Effect Magnetic Sensor Module
Buy KY-024 Linear Hall Effect Sensor in Pakistan
Looking for a KY-024 Linear Hall Effect Magnetic Sensor Module in Pakistan? Shop online at Robostan.pk for magnetic sensors, Arduino modules, ESP32 development boards, robotics components, electronic switches and DIY electronics accessories.
The KY-024 is suitable for students, engineers, robotics enthusiasts and electronics developers working on magnetic field sensing and automation projects.
Order your KY-024 Magnetic Sensor Module from Robostan.pk with nationwide delivery across Pakistan, including Lahore, Karachi, Islamabad, Rawalpindi, Faisalabad, Multan, Peshawar and other cities.
Robostan.pk – Build. Innovate. Create.