9522 – Hall Sensor/en
Erscheinungsbild
Documentation notice: This technical documentation was independently rewritten from an archived supplier source. Check technical details and commands against the product version and manufacturer documentation before use.
Summary
The Hall sensor uses a 49E Hall element with an on-board LM393 comparator. It provides both analog and digital outputs, operates from 2.3–5.3 V, and can be wired to Pico, STM32, and Arduino boards.
Related products at JW Tech
Technical overview
- Sensor element: 49E Hall sensor; wide-range voltage comparator type LM393.
- Power supply: 2.3 V to 5.3 V.
- Dimensions: 27.0 mm × 15.5 mm; mounting holes 2.0 mm diameter.
- Pinout: VCC (power), GND (ground), AOUT (analog data output), DOUT (digital data output).
- Sensitivity is adjustable via a potentiometer; an onboard indicator LED reflects the output state.
- Wiring for Raspberry Pi Pico: VCC→3.3 V, GND→GND, AOUT→GP26, DOUT→GP22.
- Wiring for STM32F103RBT6: VCC→3.3 V, GND→GND, AOUT→PA6, DOUT→PA4.
- Wiring for Arduino UNO: VCC→5 V, GND→GND, AOUT→A0, DOUT→D2.
Commands and examples – verify before use:
sudo apt-get install p7zip-full
cd ~
sudo wget https://files.waveshare.com/upload/7/75/Hall-Sensor-code.7z
7z x Hall-Sensor-code.7z -o./Hall-Sensor-code
cd ~/Hall-Sensor-code
cd ~/Hall-Sensor-code/Pico/c/
cd build
export PICO_SDK_PATH=../../pico-sdk
cmake ..
make -j9
cp main.uf2 /media/pi/RPI-RP2/
Notes and version constraints
- The provided examples are version-specific (e.g., rp2-pico-20210418-v1.15.uf2 for MicroPython); compatibility must be verified when using other firmware versions.
- STM32 examples target STM32F103RBT6 or STM32H743; other STM32 boards require porting the code yourself.
- Flashing Pico firmware requires holding the BOOTSET button while connecting via USB – the step order must be followed exactly.
- When using a Raspberry Pi Zero, run only “make” instead of “make -j9”.
- The digital output is not monotonic with magnetic field strength: it may decrease once the field exceeds a certain level; behavior near the threshold should be verified practically.
- The source gives no information on certifications, warranty, or safety compliance – these must be confirmed separately.
Source and revision record
- Hall Sensor - Waveshare Wiki
- Source revision: 68900
- Captured: 2026-08-29T09:32:53+00:00
- SHA-256:
f080ec349d3aeabf75e5f4ebc10b4b3f44ad67225ef25319a7268e493d2d7542