ESP32 KY-003 Hall Magnetic Sensor Module

KY-003 Hall Magnetic Sensor Module image

KY-003

Protocol: Digital

Overview

The KY-003 is a Hall Magnetic Sensor Module that detects magnetic fields using the A3144 Hall-effect sensor. It provides a digital output signal when a magnetic field is present, making it suitable for various applications such as proximity sensing and speed detection.

About KY-003 Hall Magnetic Sensor Module

The KY-003 is a Hall-effect sensor module designed to detect magnetic fields using the A3144 Hall-effect sensor. It outputs a digital signal when exposed to a magnetic field, making it ideal for proximity sensing, speed detection, and position tracking in electronic projects.

Key Features

  • Magnetic Field Detection – Activates when a magnet is near the sensor.
  • A3144 Hall-Effect Sensor – Provides reliable digital output.
  • Simple Interface – Easily integrates with ESP32, Arduino, and other microcontrollers.
  • Low Power & Compact Design – Ideal for embedded and battery-powered applications.
  • Versatile Applications – Used in speed sensing, position tracking, and magnetic switches.

With its compact design and reliable detection capabilities, the KY-003 is perfect for automation, robotics, and security systems. 🚀

Where to Buy

KY-003 Hall Magnetic Sensor Module

Starting from

$2 per unit

Amazon com
Amazon.com Ships worldwide
View Price
Amazon de
Amazon.de Ships to EU
View Price
Aliexpress
AliExpress Best value
View Price

Prices are subject to change. We earn from qualifying purchases as an Amazon Associate.

Technical Specifications

Operating Voltage 3.3V to 5V
Dimensions 18.5mm x 15mm
Detection Mechanism A3144 Hall-effect sensor
Output Type Digital signal

Pinout Configuration

The VCC pin is used to supply power to the sensor, and it typically requires 3.3V or 5V (refer to the datasheet for specific voltage requirements). The GND pin is the ground connection and must be connected to the ground of your ESP32.

  • Pin (-): Connects to Ground (GND).
  • Pin (+): Connects to VCC (3.3V or 5V).
  • Pin (S): Outputs a digital signal when a magnetic field is detected.

Wiring with ESP32

  • KY-003 Pin (-): Connect to ESP32 GND.
  • KY-003 Pin (+): Connect to ESP32 3.3V or 5V.
  • KY-003 Pin (S): Connect to a GPIO pin on ESP32 (e.g., GPIO4).

Troubleshooting Guide

Common Issues

❌ No Response from KY-003 Module

⚠️ False Triggering of Magnetic Detection

Debugging Tips

🔍 Serial Monitor

⚡ Voltage Checks

Code Examples

Arduino Example

C++
🔧

ESP-IDF Example

C++
🏠

ESPHome Example

YAML
🛠️

PlatformIO Example

C++
🐍

MicroPython Example

Python

Conclusion

The ESP32 KY-003 Hall Magnetic Sensor Module is a powerful KY-0xx module sensor that offers excellent performance and reliability. With support for multiple development platforms including Arduino, ESP-IDF, ESPHome, PlatformIO, and MicroPython, it's a versatile choice for your IoT projects.

For optimal performance, ensure proper wiring and follow the recommended configuration for your chosen development platform.

Always verify power supply requirements and pin connections before powering up your project to avoid potential damage.