Robot Pi Shop

KY-035 Analog Hall Magnetic Sensor Module

$1.25

Shipping calculated at checkout.

Quantity

KY-035 Analog Hall Magnetic Sensor Module – Linear Magnetic Field Sensor for Arduino & ESP32

The KY-035 Analog Hall Magnetic Sensor Module is a compact magnetic sensing module designed to detect changes in magnetic field strength and polarity using Hall effect technology.

Featuring a linear Hall effect sensor, commonly the 49E or an equivalent component, the module produces an analog voltage that varies according to the magnetic field applied to the sensor.

Unlike digital Hall effect modules that only indicate the presence or absence of a magnetic field, the KY-035 provides a continuous analog signal, making it suitable for magnetic field monitoring, contactless position sensing, and educational experiments.

The KY-035 is ideal for Arduino, ESP32, Raspberry Pi projects with an external ADC, robotics, magnetic position detection, and DIY electronics applications.

Key Features

  • Model: KY-035
  • Sensor Type: Linear Hall Effect Magnetic Sensor
  • Typical Sensor IC: 49E / SS49E or Compatible
  • Detection Method: Hall Effect
  • Output Type: Analog Voltage
  • Magnetic Field Detection: Relative Strength and Polarity
  • Operating Voltage: Sensor Dependent, Commonly Around 3.3V–5V
  • Typical Zero-Field Output: Approximately Half the Supply Voltage
  • 3-Pin Interface: Signal (S), VCC (+), GND (-)
  • Non-Contact Magnetic Detection
  • Compact and Lightweight PCB Design
  • Suitable for Arduino and Microcontroller Projects

Technical Specifications

Parameter Specification
Model KY-035
Product Type Analog Hall Magnetic Sensor Module
Sensor Technology Linear Hall Effect
Typical Sensor IC 49E / SS49E or Equivalent
Detection Type Magnetic Field Strength and Polarity
Operating Voltage Depends on Installed Hall Sensor
Typical Supply Voltage 3.3V–5V, Subject to Sensor Specifications
Output Type Analog Voltage
Zero-Field Output Typically Near VCC/2
Output Response Varies with Magnetic Flux Density
Magnetic Polarity Response Bipolar
Number of Pins 3
Pin Configuration S / + / -
Onboard Comparator No
Adjustable Threshold No
Board Dimensions Approximately 18.5 × 15mm
Interface Analog ADC
Measurement Unit Relative Magnetic Field; Calibration Required for Gauss or mT

Pin Configuration

Pin Function
S Analog Magnetic Field Output
+ Positive Power Supply
- Ground

How It Works

The KY-035 uses the Hall effect to convert magnetic field changes into an electrical voltage.

When no significant magnetic field is present, the sensor output is typically close to half its supply voltage.

When a magnet approaches the sensor:

  • One magnetic polarity causes the output voltage to increase.
  • The opposite polarity causes the output voltage to decrease.
  • The magnitude of the voltage change depends on the magnetic field strength and sensor characteristics.

For example, with a compatible sensor operating at 5V, the zero-field output is typically around 2.5V.

The actual response depends on the installed Hall effect sensor and its sensitivity.

Arduino Connection Example

KY-035 Arduino Uno
S A0
+ 5V, if supported by the sensor
- GND

The Arduino reads the analog output voltage and monitors changes as a magnet approaches or moves away from the sensor.

Arduino Example Code

const int hallPin = A0;
const float referenceVoltage = 5.0;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(hallPin);

  float voltage = sensorValue *
                  (referenceVoltage / 1023.0);

  Serial.print("ADC Value: ");
  Serial.print(sensorValue);

  Serial.print(" | Output Voltage: ");
  Serial.print(voltage, 3);
  Serial.println(" V");

  delay(200);
}

This example reads the KY-035 analog output and displays the corresponding voltage in the Arduino Serial Monitor.

For an Arduino Uno using its default 10-bit ADC, the reading ranges from 0 to 1023.

To calculate magnetic flux density in gauss or millitesla, the actual sensor sensitivity and zero-field offset must be known.

Applications

  • Magnetic Field Detection
  • Magnetic Polarity Detection
  • Arduino and ESP32 Projects
  • Raspberry Pi Projects with an External ADC
  • Contactless Position Sensing
  • Robotics and Automation
  • Magnet Position Monitoring
  • Magnetic Field Experiments
  • Motor and Mechanism Position Monitoring
  • Educational STEM Projects
  • Electronic Prototyping
  • DIY Sensor Systems

Important Notes

  • The KY-035 is an analog linear Hall effect sensor, not a digital magnetic switch.
  • It produces a voltage that varies with magnetic field strength and polarity.
  • The sensor does not provide a direct calibrated measurement in gauss or millitesla.
  • Accurate magnetic field measurements require calibration and the correct sensitivity specification for the installed sensor.
  • The output voltage is typically near half the supply voltage when no magnetic field is detected.
  • The module does not normally include an adjustable potentiometer or digital comparator.
  • Raspberry Pi boards require an external ADC, such as the MCP3008 or ADS1115, to read the analog output.
  • For ESP32 and Raspberry Pi, ensure the sensor output remains within the 3.3V ADC input limit.
  • Some Hall sensor variants require a higher minimum supply voltage than 3.3V. Verify the installed sensor before selecting the power supply.
  • Magnetic field detection depends on magnet strength, polarity, distance, and sensor orientation.
  • The module is intended for low-voltage sensing and educational applications.

Package Includes

1 × KY-035 Analog Hall Magnetic Sensor Module