0% found this document useful (0 votes)
21 views22 pages

Digital Clock and Weather Station Presentaion

The document outlines a project for creating a digital clock and weather station using Raspberry Pi, which measures various weather parameters such as temperature and humidity. It discusses the components involved, including the DHT22 temperature sensor and OpenWeatherMap API for real-time data access. The project aims to provide accessible weather data for users in real-time, enhancing monitoring capabilities in various fields.

Uploaded by

tafazulijaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views22 pages

Digital Clock and Weather Station Presentaion

The document outlines a project for creating a digital clock and weather station using Raspberry Pi, which measures various weather parameters such as temperature and humidity. It discusses the components involved, including the DHT22 temperature sensor and OpenWeatherMap API for real-time data access. The project aims to provide accessible weather data for users in real-time, enhancing monitoring capabilities in various fields.

Uploaded by

tafazulijaz
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Digital Clock and Weather

station

College of Engineering
Electrical Engineering
Nasser Saeed Nasser 438802483
Khalid Mohammad Al- Aseeri 438802476

1 Dr. Thafasal Ijyas


•Introfuction
•Litrature review

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

•The Raspberry Pi is a low cost, credit-card


sized computer that plugs into a computer
monitor or TV and uses a standard keyboard
and mouse. It is a capable little device that
enables people of all ages to explore
computing, and to learn how to program in
languages like Scratch and Python. It’s
capable of doing everything you’d expect a
desktop computer to do, from browsing the
internet and playing high-definition video, to
making spreadsheets, and word-processing.

7
2.2 OpenWeatherMap

•This is an online service, owned by


OpenWeather Ltd, that provides global weather
data via API, including current weather data,
forecasts, nowcasts and historical weather data
for any geographical location. The company
provides a minute-by-minute hyperlocal
precipitation forecast for any location. The
convolutional machine learning model is used
to utilize meteorological broadcast services and
data from airport weather stations, on-ground
radar stations, weather satellites, remote
sensing satellites, METAR and automated
weather stations.

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:

•Raspberry Pi 3 – Model B Version 1.2

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

• Geany is a lightweight text editor that is pre-installed


on Raspberry Pi and can be used to code in Python
or any other language. There is a built-in terminal to
compile and run scripts directly in it, and many
other settings to save time while coding (like
shortcuts and productivity options).
• To use Geany, open the main menu (top left of your
screen), click on programming and then Geany
Programmer’s Editor.
• The program can be written in the editor shown in
figure.
• The program can be compiled using the Compile
command and can be run using the Execute
15
command.
3.4 OpenWeather Online
Platform for Weather
Information

•The api key that we used is


generated as shown in figure below:

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

• The red wire is the power pin (3.3 V), black


is ground, and grey is the output pin. The
power pin is connected to PIN 17, ground to
PIN 39 and the output to PIN 7 (GPIO 4) as
shown.

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

You might also like