ESP32 KY-035 Analog Hall Magnetic Sensor Module

KY-035 Analog Hall Magnetic Sensor Module image

KY-035

Protocol: Analog

Overview

The KY-035 is an analog Hall magnetic sensor module based on the AH49E linear Hall-effect sensor. It provides an analog output voltage proportional to the detected magnetic field strength and polarity, making it ideal for applications in motor control, position sensing, and magnetic field detection.

About KY-035 Analog Hall Magnetic Sensor Module

The KY-035 Analog Hall Magnetic Sensor Module utilizes the AH49E linear Hall-effect sensor to detect magnetic fields. It outputs an analog voltage proportional to the magnetic field strength, allowing for the detection of both the presence and polarity of a magnetic field. This module is suitable for applications such as motor control, position sensing, and magnetic field detection.

Where to Buy

KY-035 Analog 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
Current Consumption 3.5 mA at 5V
Output Type Analog voltage
Operating Temperature Range -40°C to 85°C
Dimensions 19 x 15 x 3 mm

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.

  • S (Signal): Outputs an analog voltage corresponding to the magnetic field strength.
  • Middle Pin (VCC): Supplies power to the module, typically 3.3V to 5V.
  • G (Ground): Connects to the ground of the circuit.

Wiring with ESP32

  • S (Signal): Connect to an analog input pin on the ESP32 (e.g., GPIO34).
  • Middle Pin (VCC): Connect to ESP32 3.3V.
  • G (Ground): Connect to ESP32 GND.

Troubleshooting Guide

Common Issues

❌ No Output Signal

⚠️ Incorrect or Fluctuating Readings

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-035 Analog 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.