Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.

Slides:



Advertisements
Similar presentations
ARDUINO FRAMEWORK.
Advertisements

Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
temperature system wiring
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Khaled A. Al-Utaibi  Digital Vs Analog Signals  Converting an Analog Signal to a Digital One  Reading Analog Sensors with the.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Basic Circuits – Lab 2 Arduino and Sensors
ProtoSnap Introduction to Arduino Casey Haskell, Pete Lewis, David Stillman, Jim Lindblom, Pete Dokter, Lindsay Levkoff, Trevor Zylstra.
Youn-Hee Han, Chan-Myung Kim {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
Cascade switching of an LED EAS 199B Winter 2013.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
Microprocessors Tutorial 1: Arduino Basics
Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
Programming, Serial and Virtual Prototyping. Code if ( You like semicolons ) { Stay here for intro to Arduino code } else { Join the MODKit group for.
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
Arduino Circuits and Code. int ledPin = 9; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin,
Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
Servo Demonstration In MPIDE, select File > Examples > Servo > Sweep.
Analog on the Arduino int k; // integer = 16 bits k = analogRead(1); Analog volts value (0V → 5V) returns from 0 to 1023 into “k” (10 “bits” = 1024 values)
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
BMP085 Barometric Digital Pressure Sensor Module TYWu.
Arduino libraries Datatekniker Udvidet hardware/software.
Ubiquitous Computing Practice ( Humidity Sensor ) Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced.
Photoresistor resistance changes dramatically with light level living with the lab Using Photoresistors with an Arduino © 2011 LWTL faculty team.
Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology.
LM35 TEMPERATURE SENSOR  The LM35 is an integrated circuit sensor that can be used to measure temperature with an electrical output proportional to the.
Temperature Sensor TYWu. Seeed’s Temperature Sensor Picture.
Microcontroller basics Embedded systems for mortals.
Microcontroller basics Embedded systems for mortals.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
LAB1 TYWU. Devices Dip Switch (4 Switches) Triple Output LED (RGB) –Common Cathode.
김희승 임승한 IT 인재 양성 Arduino Programming OneScoreSung Han Lim.
Pulse-Width Modulation: Simulating variable DC output
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
Ultrasonic Sensor TYWu.
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
Pulse Width Modulation Instructor Dr Matthew Khi Yi Kyaw.
Arduino Programming. THE ARDUINO IS A MICROCONTROLLER – A LOW COST, LOW PERFORMANCE COMPUTER.
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
Outline Introduction to digital-to-analog converter (DAC)
Val Manes Department of Math & Computer Science
BMP085 Barometric Digital Pressure Sensor Module
Microcontroller basics
European Robotic LABoratory
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Въведение в Arduino.
Analog Input through POT
Introduction to Arduinos
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
What is an Arduino ? Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Programming, Serial and Virtual Prototyping
Using Photoresistors with an Arduino
analog and digital measurements
Arduino : Introduction & Programming
Programming 2: The Arduino IDE & First Sketches
Arduino Practice: Photoresistors, PWM, Potentiometers, Motors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Introduction to Arduinos
Arduino程式範例.
Presented By,  Mamata Yadav (BE Elex & Comm.) Vice R&D Coordinator(HW), PCRT  Payal Shah (BE Elex & Comm.)  Ananta Das (BE Elex & Comm.) R&D Team,PCRT.
Presentation transcript:

Youn-Hee Han, In-Seok Kang {yhhan, Laboratory of Intelligent Networks Advanced Technology Research Center Korea University of Technology Ubiquitous Computing Practice ( Humidity Sensor )

/ 28 Introduntion Humidity Sensor Print Humidity TMP36 + Humidity Sensor Fritzing 2 Contents.

/ 28 Digital Pin 14 개의 Digital Input / Output Pin 6 개의 PWM Pin 사용가능  (3, 5, 6, 9, 10, 11 pin) digitalWrite() - LED digitalRead() - pushbutton 3 Arduino Pin

/ 28 analogWrite() ex) analogWrite(PinNumber, value); 4

/ 28 Analog Pin 6 개의 Analog Input Pin analogRead()  ex) analogRead(PinNumber) 센서의 값을 읽기 위해 사용 5

/ 286 Introduction

/ 287 Humidity Sensor Humidity Sensor - HIH-4030 Breakout Features : - Near linear, analog output VDC voltage supply - All pins broken out to a 0.1" pitch header - Laser trimmed interchangeability - Low power design, typical current draw of only 200μA - Enhanced accuracy - Fast response time - Stable, low drift performance

/ 28 상대습도 상대습도는, 특정한 온도의 대기 중에 포함되어 있는 수증기의 압력을 그 온도의 포화 수증기 압력으로 나눈 것을 말한다. 다시 말해, 특정한 온도의 대기 중에 포함되어 있는 수증기의 양 ( 중량 절대습도 ) 을 그 온도의 포화 수증기량 ( 중량 절대습도 ) 으로 나눈 것이다. 온도 대기 압력 포화 수증기량 절대습도 중량 절대습도 용적 절대습도 8 습도

/ 289 schematic

/ 2810 Data sheet

/ 28 PRINT HUMIDITY 11

/ 28 Voltage output Vout =( Vsupply ) (sensorRH) ) sensorRH =( Vout/Vsupply ) × ( 1/ )- 0.16 × ( 1/ ) 센서의 출력 전압 Vout = Vsupply × ( 아날로그 입력 값 /1024 ) Vout / Vsupply = ( 아날로그 입력 값 / 1024) SensorRH = ( 아날로그 입력 값 /1024) X (1/0.0062) – 0.16 X (1/0.0062) 12 Humidity

/ 2813 Humidity

/ 2814 schematic

/ 2815 Sketch float vdd = 5.0; int indata; float sRH; void setup() { Serial.begin(9600); } void loop() { indata = analogRead(0); // pin number 0 sRH = (indata/1024.0)/ /0.0062; Serial.println(sRH); delay(1000); }

/ 2816 Result

/ 28 TEMPERATURE + HUMIDITY 17

/ 28 Temperature compensation RH = sensorRH / ( - × T ) T = Temperature 18 Temperature + humidity

/ 2819 Temperature + humidity

/ 2820 schematic

/ 2821 float vdd = 5.0; int indata0, indata1; float sRH; float RH; float voltage; float temperatureC; void setup() { Serial.begin(9600); } Sketch

/ 2822 Sketch void loop() { indata0 = analogRead(0); // pin number 0 (analog) sRH = (indata0/1024.0)/ /0.0062; indata1 = analogRead(1); // pin number 1 (analog) voltage = indata1*5.0/1024.0; temperatureC = (voltage - 0.5) * 100; Serial.print(temperatureC); Serial.println(" 'C"); RH=sRH/( *temperatureC); Serial.print(RH); Serial.println(" RH"); Serial.println("----"); delay(1000); }

/ 2823 Result

/ 28 도전과제 24

/ 28 온도, 조도, 습도 센서의 값을 출력해보자. 25 도전과제

/ 28 FRITZING 26

/ 28 Fritzing 27

/ 2828 Thank You