Analog Hall Magnetic Sensor Module(KY-035)

아두위키 : Arduwiki

This module outputs the intensity of a magnetic field as an analog signal. Its small size is a notable feature.

Specifications

  • Operating Voltage: 3.3V ~ 5V
  • Output Type: Analog

Example Required Hardware

  • Arduino board
  • Jumper cables
  • Analog Hall magnetic sensor

Connection

Arduino Analog Hall Magnetic Sensor
5V +
GND -
A7 S

Example Code

The example demonstrates how to output the value from the Analog Hall Magnetic Sensor to the serial monitor.

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

void loop() {
  Serial.println(analogRead(A7));
  delay(100);
}

Execution Results

  • When no magnet is nearby
  • When a magnet is nearby