commands:reference:ntcreadf
문서의 이전 판입니다!
목차
ntcReadf()
명령어
| 명령어 | 인수 | 반환값 | 동작 |
|---|---|---|---|
ntcReadf(ch) | uint8_t ch — MPINO는 아날로그 핀 번호, MPAINO는 전체 아날로그 입력 채널 번호 | float | NTC 3950 10kΩ 센서의 온도를 ℃ 단위 실수로 반환합니다. |
예제
void setup() { Serial.begin(115200); } void loop() { int temp10 = ntcRead(0); float tempC = ntcReadf(0); Serial.print("NTC = "); Serial.print(tempC, 1); Serial.println(" C"); delay(500); }
주의사항
PID 계산은 안전장치가 아닙니다. 센서 단선, 과온, 출력 고착과 비상정지는 별도 회로와 로직으로 처리하십시오.
commands/reference/ntcreadf.1788260661.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1
