Digital Clock and Weather Station Presentaion
Digital Clock and Weather Station Presentaion
station
College of Engineering
Electrical Engineering
Nasser Saeed Nasser 438802483
Khalid Mohammad Al- Aseeri 438802476
outline •Methodology
•Conclosion
•Reference Materials
2
1.Introduction
3
•Weather station is an Electronic system used to measure weather
parameters like wind speed, wind direction, air temperature, humidity
etc.
•Weather condition important in energy sector, agriculture, space science
etc.
•Initially simple and less accurate devices used for weather observation.
Now, advanced weather stations used to monitor weather parameters
continuously.
1.Introduction •These measured parameters useful only when it is send in a fast and
accurate manner. Therefore, data transfer and processing are very
important parameter in weather monitoring stations.
•Now dedicated instruments used for sensing, processing & data transfer
combination of all known as a weather station. Measured data can be
transferred through such medium as a direct wired link, Wi-Fi, GSM,
4 satellite link and so on.
•To measure the weather
Primary
parameters accurately in
small and closed areas
Objective
using raspberry pi and open
weather map and display it
on a dedicated LCD display
screen.
5
• A weather station using Raspberry Pi is an excellent way to
monitor the local weather conditions.
• It can be used to track temperature, humidity, wind speed and
2. Literature
direction, pressure, rainfall, and other meteorological data. With
the help of open weather map APIs, you can easily access real-
time data from your own backyard. This project is a great way to
Review
get familiar with Raspberry Pi and learn more about the
environment around us.
• Also, it is inexpensive and easy-to-build system that can measure
temperature, humidity, pressure, wind speed and direction.
• This project will provide an insight into how to build a weather
station using raspberry pi, what components are needed and how
to connect them together.
6
2.1 Raspberry Pi
7
2.2 OpenWeatherMap
8
2.3 DHT22
Temperature Sensor
•DHT22 is a digital temperature and
humidity sensor. It uses a capacitive
humidity sensor and a thermistor to
measure the surrounding air and spits
out a digital signal on the data pin.
9
2.4 HDMI screen 3.5
Inch by Uctronics
•The screen required is a 3.5” HDMI or a 5". The touch
feature of the screen is not required but is helpful to
shutdown the App,The resolution required by the script is
640x430pixel.
10
• The Raspberry PI is connected to the
LCD screen.
• A Python program for implementing
the weather station is run using the
Geany editor on Raspberry Pi.
• The program takes weather data for
3.Methodology the given longitude and latitude of the
location using the API connection
and displays it on the LCD screen.
• Local temperature and humidity
measurement is done using the DHT
sensor.
• A Pygame Python library is used to
create the user interface for the
weather station for displaying the
data.
11
3.1 Raspberry Pi module
used in the project:
12
• Pin Diagram of Raspberry Pi 3 – Model
B Version 1.2
13
• Raspberry Pi Imager program from
Raspberry Pi website used to install the
Raspbian OS.
• Raspberry Pi Imager is a utility that
writes an operating system to your Pi's
SD card.
• The Pi that we used is Raspberry Pi 3B.
Raspberry Pi Imager is available for
Windows, macOS, and Ubuntu. Once
installed on your computer, the process
is simple:
3.2 • a) Under Operating System click Choose
OS
Raspberry • b) Browse the list for your preferred
OSs and select the one you want
Pi Set Up • c) Click Ctrl+Shift+X to preconfigure
advanced options (as in the figures)
• d)Next, click Choose Storage to select
the SD card
• e)Click Write
• Wait while the data is written and
verified. When done, click Continue,
14 then close the imager tool.
3.3 Python Programming Using
Geany on Raspberry Pi
16
•The DHT sensors are made of two parts, a capacitive humidity
sensor and a thermistor. There is also a very basic chip inside
that does some analog to digital conversion gives out a digital
signal with the temperature and humidity. The digital signal is
fairly easy to read using any microcontroller. We used the DHT-
22 sensor for finding out the local indoor temperature and
humidity. The specifications of the DHT-22 sensor are given
below:
• Low cost
3.5 Using • 3 to 5V power and I/O
• 2.5mA max current use during conversion (while requesting
data)
the DHT-22 • Good for 0-100% humidity readings with 2-5% accuracy
• Good for -40 to 80°C temperature readings ±0.5°C accuracy
Sensor • No more than 0.5 Hz sampling rate (once every 2 seconds)
• Body size 15.1mm x 25mm x 7.7mm
• 4 pins with 0.1" spacing
For using DHT-22, its driver should be installed on raspberry Pi
using the following commands at the command terminal:
cd
sudo pip install Adafruit_DHT
17
Connecting the DHT22
Sensor
18
4. Results
• After completing the connections of the
DHT22 sensor and the UCTRONICS LCD
Display and finish setting up the operating
system on Raspberry Pi and the program the
screen will display the data like it shown in
the figure.
• At the top left the outdoor humidity and
temperature along with the day and date.
• For the top right it shows indoor humidity
and temperature.
• At the bottom it shows the weather
conditions for today and upcoming days, the
far-left side shows the present-day data and
the middle shows information about the day
after, for the right side it shows the second
day after present day.
19
5. Conclusion
•Weather Station Using Raspberry Pi is a project which focus on
user can access data anywhere in real-time. Based on the previous
studies and discussion, the suitable approach is implemented in this
system which is Raspberry Pi. This project provide data for
forecasts.
•Hopefully this project can help to overcome the problem in order
to make a weather station more accessible for individuals.
20
• International Research Journal of Engineering and
Technology (IRJET) Report Low-Cost Weather
Monitoring Station Using Raspberry Pi, 2017.
• https://en.wikipedia.org/wiki/Raspberry_Pi.
5. Reference • Master’s degree research of ENG. Allison P.
Smyth at Cornell University USA in 2010.
Materials • https://en.wikipedia.org/wiki/Weather_station
• https://en.wikipedia.org/wiki/OpenWeatherMap
• https://www.sparkfun.com/datasheets/Sensors/Te
mperature/DHT22.pdf
.
21
22