Linear Magnetic Hall module
KY-024 Linear Magnetic Hall module
December 15, 2021 by ArduinoModules
CategoriesMagnetic
The KY-024 Linear magnetic Hall sensor reacts in the presence of a magnetic field. It has a potentiometer to adjust the sensitivity of the sensor and it provides both analog and digital outputs.
The digital output acts as a switch that will turn on/off when a magnet is near, similar to the KY-003. On the other hand, the analog output can measure the polarity and relative strength of the magnetic field.
Compatible with popular electronics platforms like Arduino, Raspberry Pi, Esp32, Teensy and others.
KY-024 linear hall magnetic fritzing custom part
Arduino KY-024 Linear Magnetic Hall sensor module
KY-024 Specifications
This module consists of a 49E Linear Hall-Effect Sensor, an LM393 Dual Differential Comparator, a potentiomenter, 2 LEDs, 6 resistors and 4 male header pins.
Operating Voltage 2.7V to 6.5V
Sensitivity 1.0 mV/G min., 1.4 mV/G typ., 1.75 mV/G max.
Board Dimensions 1.5cm x 3.6cm [0.6in x 1.4in]
Connection Diagram
Connect board power line (+) and ground (G) to 5V and GND on the Arduino respectively.
Connect the digital signal pin (D0) to pin 3 and the analog signal pin (A0) to pin A0 on the Arduino.
A0 Pin A0
G GND
+ 5V
D0 Pin 3
KY-024 Arduino Code
The following Arduino sketch will read values from both digital and analog interfaces on the module.
The digital interface will turn on the Arduino’s LED when a magnetic field is detected.
The analog interface starts at an initial value determined by the input voltage and the potentiometer, this value will increase or decrease depending on the intensity and polarity of the magnetic field.
int led = 13 ; // LED on arduino
There are no reviews yet.