SlideShare ist ein Scribd-Unternehmen logo
1 von 6
Downloaden Sie, um offline zu lesen
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 380
USING RASPBERRY PI TO SENSE TEMPRATURE AND RELATIVE
HUMIDITY
Shah Vatsal1, Mehta Bhavin2
1Student,Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA
2Assistant Professor, Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA
---------------------------------------------------------------------***---------------------------------------------------------------------
Abstract -This paper presents the detection of real time
temperature and relative humidity employing raspberry pi.
This is a raspberry pi based temperature and humidity
logger that uses DHT22 sensor for measurement and it is
unique as it not only reads temperature from sensor but also
stores data to mysql database and provide means to read
that temperature data with any web enabled device
(computer,phone)web browser. Python language is used.
Key Words: Python, Raspberry pi, DHT22 temperature
sensor, mysql database
1.INTRODUCTION
Temperature has an impact on almost all the activities
surrounding us[2]. A precise determination of
temperature and more importantly relative humidity is a
vital factor in countless industries and different fields of
science. The temperature monitoring is crucial in lot of
industries, like food industry, the workshop and
pharmaceutical industry. Analog and digital Temperature
sensors are available for sensing temperature for
commercial purpose. Temperature sensors possessing
temperature-dependent properties that can be measured
electrically contain resistors, semiconductor mechanisms
such as diodes, thermocouples, thermistors. This project
aims at monitoring the real time temperature and relative
humidity in a cost effective way. Here the monitoring node
is raspberry pi. Programming language used for raspberry
pi is Python. The Sensor utilized here is DHT22
temperature sensor. This sensor consists of thermistor
and basic advantage of using DHT22 sensor is that it is
economical and light in weight. The sensor is interfaced
with the raspberry pi using jumper wires. The
temperature is sensed using the sensor DHT22 and is
read, stored and displayed by the raspberry pi kit.
2. Raspberry pi
The Raspberry Pi is a low cost, credit-card sized computer
which plugs into a computer monitor or TV, and requires a
standard keyboard and mouse. Raspberry Pi is a dynamic
microcontroller and runs with the Python programming
language.Raspberry Pi 2 includes a quad-core Cortex A7
processor CPU running at 900 MHz and 1 GB RAM,
Integrated Video core 4 Graphics Processing
Constituent (GPU) capable of frolicking Maximum
1080p Elevated Meaning Blu-Ray Quality Video,512Mb
SDRAM, The free, flexible and exceedingly builder
approachable Debian GNU/Linux(RASPBIAN)Operating
System, 2 x USB Ports, HDMI Video Output, RCA Video
Output,3.5mm Audio Output Jack,10/100Mb Ethernet Port
for Internet Access, 5V Micro USB Domination Input Jack,
Micro SDHC card, MMC,40 gpio pins[2]. It has capability of
a little device that allows people of all ages to explore
computing. It’s capable of doing everything you would
expect a desktop/computer to do, from browsing the
internet and playing high-definition video to making
spreadsheets, word processing, and playing games . The
Raspberry Pi has the ability to interact with the outside
world, and has been used in a wide array projects like
smart home monitoring system, wireless motion sensor
activated light and many more.
Fig-1: Raspberry pi 2 model b
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 381
3. Flow chart of Circuit system
Raspberry
Pi
LCD
Display
RELAY
Drivers
DHT22
(Temperature
& Humidity
Sensor)
Power
Supply
4. Proposed system
The proposed method aims at continuously monitoring
the real time temperature and relative humidity in a cost
effective way by polling sensor at fixed interval of time.
Here the monitoring node is raspberry pi[1].The Sensor
utilized here is DHT22 Temperature/Humidity Sensor.The
sensor is connected to the raspberry pi kit using jumper
wire.The raspberry pi kit can be used to store and display
the real time temperature and relative humidity.The
raspberry kit is programmed using python language. The
block diagram of the proposed method is shown in figure
below.The temperature is displayed in degree celsius or
Fahrenheit as required.To know the current temperature
and relative humidity at remote location, the user can log
in on web browser by entering username and password by
the user.Web application opens after entering password
and with the output graphical representation can also
be obtained. Raspberry pi processed data will be
updated continuously on cloud server & user will get to
know the stored data on hourly and daily basis.Wireless
wifi (mini USB adapter)is attached so that it fetches data
with the help of internet and user can access or control
temperature and humidity from any part of the world.
Fig-2:block diagram of proposed system
5. Working methodology
5.1 Requirements of the project
This project is built on a breadboard, so no need to worry
about soldering, or a designing PCB.
Hardware:
 Raspberry PI 2
 16 GB micro SDHC(CLASS10) CARD
 USB Power Supply
 USB Cable
 Breadboard & Jumper Wires
 DHT22 sensor
 10k resistor (one per sensor)
First of all Raspberry pi has to be prepared and for that we
require NOOBS. NOOBS, short for New Out of the Box
Software. It’s an operating system manager that makes it
easy to download, install, and set up your Raspberry Pi.
When you first boot up NOOBS, you’ll get a selection of
OSes to choose from.NOOBS makes getting started with Pi
easy, and includes a bunch of different operating systems
to choose from.The Raspberry Pi itself doesn’t come with
an operating system,we need to select it while booting of
NOOBS.Raspbian is the “official” operating system of the
Raspberry Pi. Raspbian has been the standard Raspberry
Pi operating system.Raspbian is a version of Linux built
specifically for the Raspberry Pi.
Here raspberrypi 2 model b has been used.
Temperature Sensor
Interface
Temperature Sensed Data
Stored in RASPBERRY PI
Display of temperature
Sensed Data
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 382
5.2 NOOBS installation
1. Insert an SD card that is 4GB or greater in size into your
computer.
2. Format the SD card using the platform-specific
instructions below:
a. Windows
i. Download the SD Association's Formatting Tool from
https://www.sdcard.org/downloads/formatter_4/eula_wi
ndows/
ii. Install and run the Formatting Tool on your machine
iii. Set "FORMAT SIZE ADJUSTMENT" option to "ON" in
the "Options" menu
iv. Check that the SD card you inserted matches the one
selected by the Tool
v. Click the "Format" button
3. Extract the files contained in this NOOBS zip file.
4. Copy the extracted files onto the SD card that you just
formatted so that this file is at the root directory of the SD
card. Please note that in some cases it may extract the files
into a folder, if this is the case then please copy across the
files from inside the folder rather than the folder itself.
5. Insert the SD card into raspberry Pi and connect the
power supply.
Raspberry Pi will now boot into NOOBS and should display
a list of operating systems that you can choose to install.
If your display remains blank, you should select the
correct output mode for your display by pressing one of
the following number keys on your keyboard:
1. HDMI mode - this is the default display mode.
2. HDMI safe mode - select this mode if you are using the
HDMI connector and cannot see anything on screen when
the Pi has booted.
5.3 Download the Python program that will poll the
sensor(s) dht22.py
dht22.py is used for monitoring temperature and
humidity using the DHT22 sensor. Once your Raspberry Pi
is up and running we setup Python to talk to the GPIO pins.
The GPIO pins are our interface to the DHT22
Temperature/Humidity sensor. Not all the libraries we
need to make this project are pre-loaded on the Raspberry
Pi. We require the Adafruit GPIO Python library and the
Adafruit DHT22 library. For more details visit following
link.
http://projects.privateeyepi.com/home/home-alarm-
system-project/temperature-and-humidity
5.4 Building the circuit
 Connect Pin 1 of the sensor to 5V GPIO (Pin 2).
 Connect Pin 2 of the sensor to and free GPIO pin
e.g. GPIO4 (Pin 7).
 Ignore pin 3.
 Connect Pin 4 of the temperature gauge to ground
(Pin 6).
 put the resistor between pins 1 and 2 [3].
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 383
Fig-3:connection of sensor with raspberry pi
6. About GPIO Pins
We are keeping the circuit simple and building it on a
breadboard using our components and jumper wires.
Before connecting anything to your Raspberry PI,
disconnect the power.
Warning - you can destroy your Raspberry Pi with a short
circuit from a wrong connection. Just be careful and
double check everything before powering back on.
All the connections were carefully checked and connected.
Since, a little careless mistake may short-circuit the
RaspberryPi circuit.
The DHT 22 has 4 Pins. Pin 1 is VCC, Pins 2 is Data, Pin 3 is
NOT USED, Pin 4 is Ground.
Fig-4:General Purpose Input Output(GPIO)pin schematic
diagram
7. Why python
Also other languages like C language,C++,JAVA can be used
but python is used for current application as it has
following advantages:
Python programs are typically 3-5 times shorter than
equivalent Java programs. This difference can be
attributed to Python's built-in high-level data types and its
dynamic typing.Python is designed to be highly
readable . Python is a simplest, dynamic, interpreted,
object oriented language[4]. Python interpreters
allowing Python code to run on a wide variety of
systems.
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 384
8. RESULTS and CONCLUSIONS
With the proposed methodology, we were able to interface
and synchronize the Raspberry Pi. Consequently, we with
help of privateeyepi software, we were able to observe the
requisite graphs and results. Therefore, a novel method of
Sensing Temperature and humidity was reviewed.
Fig-5: results and graphs
International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056
Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072
© 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 385
REFERENCES
[1] International Journal of Advanced Research(IJAR) in
Computer and Communication Engineering-Vol. 5-October
2016` Raspberry Pi Based Weather Monitoring System
Meetali V. Rasal, Prof. Jaideep G. Rana.
[2] International Journal for Innovative Research in
Science & Technology (IJIRST)-Volume 1-May 2015’ The
Real Time Temperature Sensing using Raspberry Pi.
[3]
http://www.projects.privateeyepi.com/home/home-
alarm-system-project/temperature-and-humidity.
[4] https://www.python.org
[5] Official site of raspberry pi
https://www.raspberrypi.org
[6] http://lifehacker.com/the-best-operating-systems-
for-your-raspberry-pi-project-1774669829
[7] http://www.instructables.com/id/Raspberry-PI-and-
DHT22-temperature-and-humidity-lo/
[8] Raspberry Pi Projects Book by Mike Cook and W.
Andrew Robinson
[9] Learning Python with Raspberry Pi Book by Alex
Bradbury and Ben Everard
[10] Lee, CY; Lee, GB. Humidity Sensors: A
Review. Sens. Lett 2005, 3, 1–14.
[11] BeagleBone and Raspberry Pi accessories:
Adafruit Industries. http://www.adafruit.com
BIOGRAPHIES
Vatsal D. Shah is pursuing
Btech. In the stream of
mechanical engineering from
Charotar university of science
and technology(CHARUSAT).

Weitere ähnliche Inhalte

Was ist angesagt?

Portal Plus Access Control
Portal Plus Access ControlPortal Plus Access Control
Portal Plus Access Control
nimthomas
 

Was ist angesagt? (9)

Smart safety jacket
Smart safety jacketSmart safety jacket
Smart safety jacket
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266
 
IRJET- Android based Home Automation System with Power Optimization Modes
IRJET-  	  Android based Home Automation System with Power Optimization ModesIRJET-  	  Android based Home Automation System with Power Optimization Modes
IRJET- Android based Home Automation System with Power Optimization Modes
 
IRJET- Home Automation System for Specially Challenged and Senior Citizens
IRJET- Home Automation System for Specially Challenged and Senior CitizensIRJET- Home Automation System for Specially Challenged and Senior Citizens
IRJET- Home Automation System for Specially Challenged and Senior Citizens
 
Rotronic Data Sheet HygroGen2-S-XL
Rotronic Data Sheet HygroGen2-S-XLRotronic Data Sheet HygroGen2-S-XL
Rotronic Data Sheet HygroGen2-S-XL
 
Arduino Based Smart Parking System
Arduino Based Smart Parking SystemArduino Based Smart Parking System
Arduino Based Smart Parking System
 
IRJET- Low Powered Radio Frequency and PIR Sensor based Security Device
IRJET- Low Powered Radio Frequency and PIR Sensor based Security DeviceIRJET- Low Powered Radio Frequency and PIR Sensor based Security Device
IRJET- Low Powered Radio Frequency and PIR Sensor based Security Device
 
Portal Plus Access Control
Portal Plus Access ControlPortal Plus Access Control
Portal Plus Access Control
 
Manufacturers of Fire Detection Equipment
Manufacturers of Fire Detection EquipmentManufacturers of Fire Detection Equipment
Manufacturers of Fire Detection Equipment
 

Ähnlich wie Using raspberry pi to sense temperature and relative humidity

Indoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithmIndoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithm
Faisal Mehmood
 
PPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptxPPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptx
abhisheksinghcompute
 

Ähnlich wie Using raspberry pi to sense temperature and relative humidity (20)

IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry PiIRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
IRJET - IoT based Anti Theft Detection and Alerting System using Raspberry Pi
 
Indoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithmIndoor Comfort Index Monitoring System using KNN algorithm
Indoor Comfort Index Monitoring System using KNN algorithm
 
IRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
IRJET - IoT based Facial Recognition Quadcopter using Machine Learning AlgorithmIRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
IRJET - IoT based Facial Recognition Quadcopter using Machine Learning Algorithm
 
IRJET - Digital Notice Board using Raspberry Pi
IRJET - Digital Notice Board using Raspberry PiIRJET - Digital Notice Board using Raspberry Pi
IRJET - Digital Notice Board using Raspberry Pi
 
IRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoTIRJET- Survey on Nodemcu and Raspberry Pi: IoT
IRJET- Survey on Nodemcu and Raspberry Pi: IoT
 
IRJET - AI based Smart Mirror
IRJET -  	  AI based Smart MirrorIRJET -  	  AI based Smart Mirror
IRJET - AI based Smart Mirror
 
IoT Based Advertising System
IoT Based Advertising SystemIoT Based Advertising System
IoT Based Advertising System
 
PPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptxPPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptx
 
Embedded Web server using TCP/IP protocol
Embedded Web server using TCP/IP protocolEmbedded Web server using TCP/IP protocol
Embedded Web server using TCP/IP protocol
 
Development of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry PiDevelopment of Smart Home security system using Raspberry Pi
Development of Smart Home security system using Raspberry Pi
 
IRJET- Industry Production Manager using Raspberry Pi
IRJET-  	  Industry Production Manager using Raspberry PiIRJET-  	  Industry Production Manager using Raspberry Pi
IRJET- Industry Production Manager using Raspberry Pi
 
IRJET- Polyhouse Technique using Raspberry PI Implemented in IOT
IRJET-  	  Polyhouse Technique using Raspberry PI Implemented in IOTIRJET-  	  Polyhouse Technique using Raspberry PI Implemented in IOT
IRJET- Polyhouse Technique using Raspberry PI Implemented in IOT
 
Raspberry pi technical documentation
Raspberry pi technical documentationRaspberry pi technical documentation
Raspberry pi technical documentation
 
Raspberry pi ppt
Raspberry pi pptRaspberry pi ppt
Raspberry pi ppt
 
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTIONAN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
AN AUTONOMOUS ENTRY SYSTEM WITH MASK AND TEMPERATURE DETECTION
 
IRJET- RFID based Shop Billing Machine using Raspberry Pi
IRJET- RFID based Shop Billing Machine using Raspberry PiIRJET- RFID based Shop Billing Machine using Raspberry Pi
IRJET- RFID based Shop Billing Machine using Raspberry Pi
 
IRJET - IoT based Surveillance Robot
IRJET -  	  IoT based Surveillance RobotIRJET -  	  IoT based Surveillance Robot
IRJET - IoT based Surveillance Robot
 
Iot lab manual new
Iot lab manual newIot lab manual new
Iot lab manual new
 
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
 
Larson and toubro
Larson and toubroLarson and toubro
Larson and toubro
 

Mehr von IRJET Journal

Mehr von IRJET Journal (20)

TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
TUNNELING IN HIMALAYAS WITH NATM METHOD: A SPECIAL REFERENCES TO SUNGAL TUNNE...
 
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURESTUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
STUDY THE EFFECT OF RESPONSE REDUCTION FACTOR ON RC FRAMED STRUCTURE
 
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
A COMPARATIVE ANALYSIS OF RCC ELEMENT OF SLAB WITH STARK STEEL (HYSD STEEL) A...
 
Effect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil CharacteristicsEffect of Camber and Angles of Attack on Airfoil Characteristics
Effect of Camber and Angles of Attack on Airfoil Characteristics
 
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
A Review on the Progress and Challenges of Aluminum-Based Metal Matrix Compos...
 
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
Dynamic Urban Transit Optimization: A Graph Neural Network Approach for Real-...
 
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
Structural Analysis and Design of Multi-Storey Symmetric and Asymmetric Shape...
 
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
A Review of “Seismic Response of RC Structures Having Plan and Vertical Irreg...
 
A REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADASA REVIEW ON MACHINE LEARNING IN ADAS
A REVIEW ON MACHINE LEARNING IN ADAS
 
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
Long Term Trend Analysis of Precipitation and Temperature for Asosa district,...
 
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD ProP.E.B. Framed Structure Design and Analysis Using STAAD Pro
P.E.B. Framed Structure Design and Analysis Using STAAD Pro
 
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
A Review on Innovative Fiber Integration for Enhanced Reinforcement of Concre...
 
Survey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare SystemSurvey Paper on Cloud-Based Secured Healthcare System
Survey Paper on Cloud-Based Secured Healthcare System
 
Review on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridgesReview on studies and research on widening of existing concrete bridges
Review on studies and research on widening of existing concrete bridges
 
React based fullstack edtech web application
React based fullstack edtech web applicationReact based fullstack edtech web application
React based fullstack edtech web application
 
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
A Comprehensive Review of Integrating IoT and Blockchain Technologies in the ...
 
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
A REVIEW ON THE PERFORMANCE OF COCONUT FIBRE REINFORCED CONCRETE.
 
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
Optimizing Business Management Process Workflows: The Dynamic Influence of Mi...
 
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic DesignMultistoried and Multi Bay Steel Building Frame by using Seismic Design
Multistoried and Multi Bay Steel Building Frame by using Seismic Design
 
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
Cost Optimization of Construction Using Plastic Waste as a Sustainable Constr...
 

Kürzlich hochgeladen

Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
amitlee9823
 

Kürzlich hochgeladen (20)

Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 

Using raspberry pi to sense temperature and relative humidity

  • 1. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 380 USING RASPBERRY PI TO SENSE TEMPRATURE AND RELATIVE HUMIDITY Shah Vatsal1, Mehta Bhavin2 1Student,Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA 2Assistant Professor, Dept. Of Mechanical Engineering, CHARUSAT, Changa, INDIA ---------------------------------------------------------------------***--------------------------------------------------------------------- Abstract -This paper presents the detection of real time temperature and relative humidity employing raspberry pi. This is a raspberry pi based temperature and humidity logger that uses DHT22 sensor for measurement and it is unique as it not only reads temperature from sensor but also stores data to mysql database and provide means to read that temperature data with any web enabled device (computer,phone)web browser. Python language is used. Key Words: Python, Raspberry pi, DHT22 temperature sensor, mysql database 1.INTRODUCTION Temperature has an impact on almost all the activities surrounding us[2]. A precise determination of temperature and more importantly relative humidity is a vital factor in countless industries and different fields of science. The temperature monitoring is crucial in lot of industries, like food industry, the workshop and pharmaceutical industry. Analog and digital Temperature sensors are available for sensing temperature for commercial purpose. Temperature sensors possessing temperature-dependent properties that can be measured electrically contain resistors, semiconductor mechanisms such as diodes, thermocouples, thermistors. This project aims at monitoring the real time temperature and relative humidity in a cost effective way. Here the monitoring node is raspberry pi. Programming language used for raspberry pi is Python. The Sensor utilized here is DHT22 temperature sensor. This sensor consists of thermistor and basic advantage of using DHT22 sensor is that it is economical and light in weight. The sensor is interfaced with the raspberry pi using jumper wires. The temperature is sensed using the sensor DHT22 and is read, stored and displayed by the raspberry pi kit. 2. Raspberry pi The Raspberry Pi is a low cost, credit-card sized computer which plugs into a computer monitor or TV, and requires a standard keyboard and mouse. Raspberry Pi is a dynamic microcontroller and runs with the Python programming language.Raspberry Pi 2 includes a quad-core Cortex A7 processor CPU running at 900 MHz and 1 GB RAM, Integrated Video core 4 Graphics Processing Constituent (GPU) capable of frolicking Maximum 1080p Elevated Meaning Blu-Ray Quality Video,512Mb SDRAM, The free, flexible and exceedingly builder approachable Debian GNU/Linux(RASPBIAN)Operating System, 2 x USB Ports, HDMI Video Output, RCA Video Output,3.5mm Audio Output Jack,10/100Mb Ethernet Port for Internet Access, 5V Micro USB Domination Input Jack, Micro SDHC card, MMC,40 gpio pins[2]. It has capability of a little device that allows people of all ages to explore computing. It’s capable of doing everything you would expect a desktop/computer to do, from browsing the internet and playing high-definition video to making spreadsheets, word processing, and playing games . The Raspberry Pi has the ability to interact with the outside world, and has been used in a wide array projects like smart home monitoring system, wireless motion sensor activated light and many more. Fig-1: Raspberry pi 2 model b
  • 2. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 381 3. Flow chart of Circuit system Raspberry Pi LCD Display RELAY Drivers DHT22 (Temperature & Humidity Sensor) Power Supply 4. Proposed system The proposed method aims at continuously monitoring the real time temperature and relative humidity in a cost effective way by polling sensor at fixed interval of time. Here the monitoring node is raspberry pi[1].The Sensor utilized here is DHT22 Temperature/Humidity Sensor.The sensor is connected to the raspberry pi kit using jumper wire.The raspberry pi kit can be used to store and display the real time temperature and relative humidity.The raspberry kit is programmed using python language. The block diagram of the proposed method is shown in figure below.The temperature is displayed in degree celsius or Fahrenheit as required.To know the current temperature and relative humidity at remote location, the user can log in on web browser by entering username and password by the user.Web application opens after entering password and with the output graphical representation can also be obtained. Raspberry pi processed data will be updated continuously on cloud server & user will get to know the stored data on hourly and daily basis.Wireless wifi (mini USB adapter)is attached so that it fetches data with the help of internet and user can access or control temperature and humidity from any part of the world. Fig-2:block diagram of proposed system 5. Working methodology 5.1 Requirements of the project This project is built on a breadboard, so no need to worry about soldering, or a designing PCB. Hardware:  Raspberry PI 2  16 GB micro SDHC(CLASS10) CARD  USB Power Supply  USB Cable  Breadboard & Jumper Wires  DHT22 sensor  10k resistor (one per sensor) First of all Raspberry pi has to be prepared and for that we require NOOBS. NOOBS, short for New Out of the Box Software. It’s an operating system manager that makes it easy to download, install, and set up your Raspberry Pi. When you first boot up NOOBS, you’ll get a selection of OSes to choose from.NOOBS makes getting started with Pi easy, and includes a bunch of different operating systems to choose from.The Raspberry Pi itself doesn’t come with an operating system,we need to select it while booting of NOOBS.Raspbian is the “official” operating system of the Raspberry Pi. Raspbian has been the standard Raspberry Pi operating system.Raspbian is a version of Linux built specifically for the Raspberry Pi. Here raspberrypi 2 model b has been used. Temperature Sensor Interface Temperature Sensed Data Stored in RASPBERRY PI Display of temperature Sensed Data
  • 3. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 382 5.2 NOOBS installation 1. Insert an SD card that is 4GB or greater in size into your computer. 2. Format the SD card using the platform-specific instructions below: a. Windows i. Download the SD Association's Formatting Tool from https://www.sdcard.org/downloads/formatter_4/eula_wi ndows/ ii. Install and run the Formatting Tool on your machine iii. Set "FORMAT SIZE ADJUSTMENT" option to "ON" in the "Options" menu iv. Check that the SD card you inserted matches the one selected by the Tool v. Click the "Format" button 3. Extract the files contained in this NOOBS zip file. 4. Copy the extracted files onto the SD card that you just formatted so that this file is at the root directory of the SD card. Please note that in some cases it may extract the files into a folder, if this is the case then please copy across the files from inside the folder rather than the folder itself. 5. Insert the SD card into raspberry Pi and connect the power supply. Raspberry Pi will now boot into NOOBS and should display a list of operating systems that you can choose to install. If your display remains blank, you should select the correct output mode for your display by pressing one of the following number keys on your keyboard: 1. HDMI mode - this is the default display mode. 2. HDMI safe mode - select this mode if you are using the HDMI connector and cannot see anything on screen when the Pi has booted. 5.3 Download the Python program that will poll the sensor(s) dht22.py dht22.py is used for monitoring temperature and humidity using the DHT22 sensor. Once your Raspberry Pi is up and running we setup Python to talk to the GPIO pins. The GPIO pins are our interface to the DHT22 Temperature/Humidity sensor. Not all the libraries we need to make this project are pre-loaded on the Raspberry Pi. We require the Adafruit GPIO Python library and the Adafruit DHT22 library. For more details visit following link. http://projects.privateeyepi.com/home/home-alarm- system-project/temperature-and-humidity 5.4 Building the circuit  Connect Pin 1 of the sensor to 5V GPIO (Pin 2).  Connect Pin 2 of the sensor to and free GPIO pin e.g. GPIO4 (Pin 7).  Ignore pin 3.  Connect Pin 4 of the temperature gauge to ground (Pin 6).  put the resistor between pins 1 and 2 [3].
  • 4. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 383 Fig-3:connection of sensor with raspberry pi 6. About GPIO Pins We are keeping the circuit simple and building it on a breadboard using our components and jumper wires. Before connecting anything to your Raspberry PI, disconnect the power. Warning - you can destroy your Raspberry Pi with a short circuit from a wrong connection. Just be careful and double check everything before powering back on. All the connections were carefully checked and connected. Since, a little careless mistake may short-circuit the RaspberryPi circuit. The DHT 22 has 4 Pins. Pin 1 is VCC, Pins 2 is Data, Pin 3 is NOT USED, Pin 4 is Ground. Fig-4:General Purpose Input Output(GPIO)pin schematic diagram 7. Why python Also other languages like C language,C++,JAVA can be used but python is used for current application as it has following advantages: Python programs are typically 3-5 times shorter than equivalent Java programs. This difference can be attributed to Python's built-in high-level data types and its dynamic typing.Python is designed to be highly readable . Python is a simplest, dynamic, interpreted, object oriented language[4]. Python interpreters allowing Python code to run on a wide variety of systems.
  • 5. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 384 8. RESULTS and CONCLUSIONS With the proposed methodology, we were able to interface and synchronize the Raspberry Pi. Consequently, we with help of privateeyepi software, we were able to observe the requisite graphs and results. Therefore, a novel method of Sensing Temperature and humidity was reviewed. Fig-5: results and graphs
  • 6. International Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395 -0056 Volume: 04 Issue: 02 | Feb -2017 www.irjet.net p-ISSN: 2395-0072 © 2017, IRJET | Impact Factor value: 5.181 | ISO 9001:2008 Certified Journal | Page 385 REFERENCES [1] International Journal of Advanced Research(IJAR) in Computer and Communication Engineering-Vol. 5-October 2016` Raspberry Pi Based Weather Monitoring System Meetali V. Rasal, Prof. Jaideep G. Rana. [2] International Journal for Innovative Research in Science & Technology (IJIRST)-Volume 1-May 2015’ The Real Time Temperature Sensing using Raspberry Pi. [3] http://www.projects.privateeyepi.com/home/home- alarm-system-project/temperature-and-humidity. [4] https://www.python.org [5] Official site of raspberry pi https://www.raspberrypi.org [6] http://lifehacker.com/the-best-operating-systems- for-your-raspberry-pi-project-1774669829 [7] http://www.instructables.com/id/Raspberry-PI-and- DHT22-temperature-and-humidity-lo/ [8] Raspberry Pi Projects Book by Mike Cook and W. Andrew Robinson [9] Learning Python with Raspberry Pi Book by Alex Bradbury and Ben Everard [10] Lee, CY; Lee, GB. Humidity Sensors: A Review. Sens. Lett 2005, 3, 1–14. [11] BeagleBone and Raspberry Pi accessories: Adafruit Industries. http://www.adafruit.com BIOGRAPHIES Vatsal D. Shah is pursuing Btech. In the stream of mechanical engineering from Charotar university of science and technology(CHARUSAT).