Analog Hall Magnetic Sensor Module(KY-035)

아두위키 : Arduwiki
ArduWiki (토론 | 기여)님의 2024년 3월 24일 (일) 16:02 판 (Created page with "{{#seo:|title=아두위키 : 아두이노 아날로그 홀 자기 센서 모듈(KY-035) 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, 아날로그 홀 자기 센서 모듈(KY-035), 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 아날로그 홀 자기 센서 모듈(KY-035)을 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커...")
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

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