youn-hee han, in-seok kang {yhhan, laboratory of intelligent networks advanced technology research...
DESCRIPTION
/ 173 IntroductionTRANSCRIPT
![Page 1: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/1.jpg)
Youn-Hee Han, In-Seok Kang{yhhan, Iseka}@kut.ac.kr
Laboratory of Intelligent NetworksAdvanced Technology Research Center
Korea University of Technologyhttp://link.kut.ac.kr
Ubiquitous Computing Practice(Temperature)
![Page 2: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/2.jpg)
/ 172
Introduction
TMP36
Temperature print out the temperature(centigrade) 섭씨 온도 출력
Convert to Fahrenheight’s temperature 화씨 온도 출력
도전과제
Contents
![Page 3: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/3.jpg)
/ 173
Introduction
![Page 4: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/4.jpg)
/ 174
TMP36
Feature :- Voltage Input: 2.7 V to 5.5 VDC - 10 mV/°C scale factor - ±2°C accuracy over tempera-ture - ±0.5°C linearity - Operating Range: −40°C to +125°C
![Page 5: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/5.jpg)
/ 175
![Page 6: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/6.jpg)
/ 176
TEMPERATUREprint out the temperature(centigrade)
![Page 7: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/7.jpg)
/ 177
Temperature
![Page 8: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/8.jpg)
/ 178
schematic
![Page 9: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/9.jpg)
/ 179
If you're using a 5V ArduinoVoltage at pin in milliVolts
= (reading from ADC) * (5000/1024) This formula converts the number 0-1023 from the ADC into 0-5000mV (= 5V)
If you're using a 3.3V ArduinoVoltage at pin in milliVolts
= (reading from ADC) * (3300/1024) This formula converts the number 0-1023 from the ADC into 0-3300mV (= 3.3V)
Centigrade temperature = [(analog voltage in mV) - 500] / 10
![Page 10: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/10.jpg)
/ 1710
Sketchint temperaturePin = 0; void setup() {
Serial.begin(9600);}
void loop() {float temperature = getVoltage(temperaturePin); temperature = (temperature - 0.5) * 100; // Serial.println(temperature); delay(1000);
}float getVoltage(int pin) {
return (analogRead(pin) * .004882814); // 5 / 1024//converting from a 0 to 1023 digital range// to 0 to 5 volts (each 1 reading equals ~ 5 milli-
volts)}
![Page 11: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/11.jpg)
/ 1711
Result
![Page 12: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/12.jpg)
/ 1712
CONVERT TO FAHREN-HEIGHT’S
![Page 13: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/13.jpg)
/ 1713
convert to Fahrenheight’s
![Page 14: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/14.jpg)
/ 1714
Sketchint sensorPin = 0; void setup() { Serial.begin(9600);} void loop() {
int reading = analogRead(sensorPin); float voltage = reading * 5.0;voltage /= 1024.0; Serial.print(voltage); Serial.println(" volts"); float temperatureC = (voltage - 0.5) * 100 ; Serial.print(temperatureC); Serial.println(" degrees C");
// now convert to Fahrenheight float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0; Serial.print(temperatureF); Serial.println(" degrees F"); delay(1000);
}
![Page 15: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/15.jpg)
/ 1715
도전과제조도와 온도의 변화에 따라 LED 작동
![Page 16: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/16.jpg)
/ 1716
도전과제 내용조도의 변화에 따라 LED 가 점차 점등온도의 변화에 따라 LED 가 점차 점등
![Page 17: Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology](https://reader034.vdocument.in/reader034/viewer/2022052608/5a4d1b897f8b9ab0599bdd25/html5/thumbnails/17.jpg)
/ 1717
Thank You