

The JOY-IT KY-024 Hall Effect Sensor is a versatile electronic component designed to detect the presence and strength of a magnetic field. It operates based on the Hall effect principle, which generates a voltage proportional to the magnetic field when current flows through a conductor. This sensor is widely used in applications requiring magnetic field detection, such as proximity sensing, speed measurement, and current sensing.








The following table outlines the key technical details of the JOY-IT KY-024 Hall Effect Sensor:
| Parameter | Value |
|---|---|
| Operating Voltage | 3.3V to 5V |
| Output Type | Analog and Digital |
| Sensitivity Adjustment | Potentiometer (onboard) |
| Dimensions | 32mm x 14mm x 7mm |
| Operating Temperature | -40°C to +85°C |
| Magnetic Field Detection | Bipolar (North and South poles) |
The KY-024 module has three pins for interfacing:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply pin (3.3V to 5V). Connect to the positive terminal of the power source. |
| 2 | GND | Ground pin. Connect to the negative terminal of the power source. |
| 3 | OUT | Output pin. Provides both analog and digital signals based on the magnetic field. |
Below is an example of how to use the KY-024 Hall Effect Sensor with an Arduino UNO to read both digital and analog outputs.
// KY-024 Hall Effect Sensor Example with Arduino UNO
// Reads both digital and analog outputs from the sensor
// Define pin connections
const int digitalPin = 2; // Digital output pin from KY-024
const int analogPin = A0; // Analog output pin from KY-024
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read digital output
int digitalValue = digitalRead(digitalPin);
// Read analog output
int analogValue = analogRead(analogPin);
// Print values to the Serial Monitor
Serial.print("Digital Output: ");
Serial.print(digitalValue);
Serial.print(" | Analog Output: ");
Serial.println(analogValue);
delay(500); // Wait for 500ms before the next reading
}
No Output from the Sensor:
Inconsistent Readings:
Sensor Not Detecting Magnetic Fields:
Overheating of the Sensor:
Q1: Can the KY-024 detect both North and South poles of a magnet?
A1: Yes, the KY-024 is a bipolar sensor and can detect both North and South poles of a magnetic field.
Q2: What is the difference between the analog and digital outputs?
A2: The analog output provides a continuous voltage proportional to the magnetic field strength, while the digital output is a binary signal (HIGH or LOW) that indicates whether the magnetic field exceeds a certain threshold.
Q3: Can I use the KY-024 with a 3.3V microcontroller?
A3: Yes, the KY-024 operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V microcontrollers.
Q4: How do I adjust the sensitivity of the sensor?
A4: Use the onboard potentiometer to increase or decrease the sensitivity to the magnetic field.
Q5: Is the KY-024 suitable for outdoor use?
A5: The KY-024 is not weatherproof. If used outdoors, ensure it is enclosed in a protective casing to prevent damage from moisture or dust.