Sensor Analog

Linear Hall Sensor Module

A KY-024 linear Hall module senses magnetic field strength and can provide analog and threshold outputs.

Part images

KY-024 Module Photo. Module Photo for the KY-024 Linear Hall Sensor Module. Image source: Joy-IT SensorKit KY-024 module documentation
KY-024 Pinout / Module Diagram. Pinout / Module Diagram for the KY-024 Linear Hall Sensor Module. Image source: Joy-IT SensorKit KY-024 module documentation
KY-024 Arduino Wiring Diagram. Arduino Wiring Diagram for the KY-024 Linear Hall Sensor Module. Image source: Joy-IT SensorKit KY-024 module documentation
KY-024 Raspberry Pi Wiring Diagram. Raspberry Pi Wiring Diagram for the KY-024 Linear Hall Sensor Module. Image source: Joy-IT SensorKit KY-024 module documentation

What it is

A KY-024 linear Hall module senses magnetic field strength and can provide analog and threshold outputs.

How students use it

Students use it for magnet position, proximity, polarity experiments, and analog threshold practice.

Pins and power

AO analog output, DO digital output, VCC, and GND on common KY-024 boards.

Use module power that keeps AO/DO outputs Pico-safe.

AO changes with magnetic field; DO changes when the comparator threshold is crossed.

Voltage and safety

Keep analog and digital outputs at Pico-safe levels.

Keep strong magnets away from cards, drives, and medical devices.

Module internals

Main component: Linear Hall-effect sensor with comparator circuitry.

Hall sensor IC, comparator, trimmer, LEDs, resistors, PCB, and header.

Datasheet notes

Magnet orientation, distance, and nearby metal affect readings.

Common libraries

Use machine.ADC for AO and machine.Pin for DO.

Common mistakes

Using the wrong magnet pole/distance, skipping calibration, expecting identical values across modules, and feeding 5V output to Pico.