Temperature Sensor Module(KY-013): 두 판 사이의 차이
(Created page with "{{#seo:|title=아두위키 : 아두이노 아날로그 온도 감지 모듈 가이드|title_mode=append|keywords=아두이노, 정보과학, 메이커학습, 수행평가, 아날로그 온도 감지 모듈, 아두이노 작품, 캡스톤작품, 아두이노 예제코드|description=아두이노로 아날로그 온도 감지 모듈을 제어하는 방법(기본정보, 회로, 예제 코드)을 소개합니다. 정보과학과 메이커수업에 활용가능합니다.}} ...") |
잔글편집 요약 없음 |
||
| 1번째 줄: | 1번째 줄: | ||
{{#seo:|title= | {{#seo:|title=ArduWiki: Arduino Analog Temperature Detection Module Guide|title_mode=append|keywords=Arduino, Computer Science, Maker Education, Performance Assessment, Analog Temperature Detection Module, Arduino Project, Capstone Project, Arduino Example Code|description=How to control the analog temperature detection module with Arduino (basic info, wiring, sample code). Suitable for CS and maker classes.}}[[파일:아날로그출력온도대표이미지.jpg|center|class=coders100]] | ||
[[ | |||
This module detects temperature and outputs it in analog form. | This module detects temperature and outputs it in analog form. | ||
2025년 3월 27일 (목) 18:43 기준 최신판

This module detects temperature and outputs it in analog form.
Specifications
- Operating Voltage [V]: 5
- Error Range [°C]: -5 ~ +5
Example Usage Hardware
- Arduino board
- Jumper cables
- Analog Temperature Sensing Module
Connection
| Arduino Uno | KY-013 |
| 5V | + |
| GND | - |
| A0 | S |

Example Code
This example outputs the temperature.
const int ThermistorPin = A0;
const float R1 = 10000;
const float c1 = 0.001129148, c2 = 0.000234125, c3 = 0.0000000876741;
int Vo;
float logR2, R2, T;
void setup() {
Serial.begin(9600);
}
void loop() {
Vo = analogRead(ThermistorPin);
R2 = R1 * (1023.0 / (float)Vo - 1.0);
logR2 = log(R2);
T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2));
T = T - 273.15;
Serial.print("Temperature: ");
Serial.print(T);
Serial.println(" C");
delay(500);
}
Execution Result
When the temperature sensing part is covered with a hand, the change in temperature is displayed on the serial monitor.
