Professional Documents
Culture Documents
Abstract—Weather stations are a valuable tool to many allow the further insertion or removal of any sensors, being
different areas, like agriculture, aviation, construction, sports and sold as a closed product, and the data generated is usually
recreation, specially because they collect weather data, which can stored locally in the station. The computer interface for data
be stored and processed to gather specific information to correlate visualization or manipulation of this data is usually static, also
events to the weather action. This work shows a development not allowing the customization.
model of a low cost weather station, using only free hardware
and software, connected to the internet, giving real time data Low cost weather stations would allow its popularization in
taken from the station, as well as history of the stored data. institutions, companies and homes, generating data that could
This station, even though using low cost or handcrafted sensors,
be used based on specific needs. This data could be stored in a
like those that measure wind speed, wind direction and rainfall
index, showed consistent results costing only 10% of the price, database or shared online in web pages. The history of this data
in comparison with some professional weather stations, allowing stored throughout the years would allow the study of climate
its popularization in agriculture, homes and institutions. standards of a specific region, associating it to specific events
and supporting areas like agriculture, even allowing prediction
Keywords—IoT, Open Hardware, Open Software, Arduino, of future climate manifestations.
Raspberry, Weather Station
As it is now, weather stations are usually found in large
I. I NTRODUCTION urban centers, in climate research institutions or in airports.
The disadvantage is that in many cases, these stations are many
A weather instrument is an equipment used to acquire miles away from the place they are monitoring, and depending
weather information. Some examples of weather instruments on the distance, the data collected might be inconsistent with
are thermometer, to measure temperature, barometer, to mea- what is truly happening there. Information like rainfall index,
sure atmospheric pressure, and anemometer, to measure wind temperature and wind speed are highly unstable, and distance
speed. The gathering of those instruments in a same equipment variation will make the data differ from the real conditions of
constitutes a weather station [1]. The data collected by weather the place one wishes to monitor.
stations are used in many different areas, like agriculture,
aviation, navigation, construction, sports and recreation. Besides, the popularization of weather stations allow the
centering of data gathered in a single database, like the APRS
Nowadays, some institutions and companies have their
service (https://aprs.fi), developed by an amateur american
own weather stations to collect weather data, like airports,
radio that allows the plotting of data from the weather stations,
environmental and agriculture agencies. This data is used to
as well as where they are. This is a big contribution for
their own ends, and in some cases, shared between third
climate monitoring, even allowing predictions, that could be
parties.
more precise with a bigger amount of data generated by these
Many companies, like the Brazilians NMET - Instituto weather stations.
Nacional de Metereologia, Somar Metereologia, and Simepar,
have weather stations to process the collected data and predict Concepts like free software, and more recently, free hard-
climate changes. ware, could contribute to the popularization of weather sta-
tions, because these concepts can significantly reduce the cost
In these cases, the weather stations used are professional, of a station.
and their cost is proportional to their complexity and precision
of the sensors used. For example, the WMR200, is made by the It’s given the name Free Software to every software that
company Oregon Scientific, and its cost is over 1000 Dollars, ensures that the end users have freedom in using, studying,
not counting the import taxes to bring it to Brazil, making sharing and modifying that software [2].
the purchase impracticable to small companies. Many times,
Free hardware or open-source hardware is a term for
the high cost is due to the use of proprietary hardware and
tangible artifacts — machines, devices, or other physical things
software components.
— whose design has been released to the public in such a way
Another limitation of professional weather stations is that that anyone can make, modify, distribute, and use those things
most of them are not customizable, meaning that they don’t [3].
978-1-5386-0956-9/17/$31.00 2017
c IEEE
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.
Facing such difficulty of acquiring a professional weather
stations, the authors of this work were motivated to the
project and development of a low cost weather station, based
on free hardware and software, with similar capacities of a
professional station, but with a reduced cost and with the
possibility of modifications and enhancements, in a way that
the monitoring sensors can be freely chosen by the one
assembling the station, further reducing or increasing the cost
based on one’s needs. Another possibility is the storage and
sharing of the acquired data in a cloud structure.
To measure the climate data, a specific gathering of sensors
are needed. Sensors are devices that, given a physical quantity,
provide a signal in its output that indicates this quantity (BAS-
TOS, 2002). In short, a sensor is an element that translates an
usually non-electrical value to an electrical value, that can be
measured, amplified or even modified. Fig. 1. Proposed Weather Station Use Case Diagram.
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.
most common of them. It is a free operating system based were mounted at equal angles to each other on a vertical
on Debian, optimized for Raspberry PI hardware. Between shaft. We have used a version with three hemispherical cups.
the supported programming languages are Python, Java (the The wind cups have a reed switch (magnetic sensor) mounted
language of choice in this work), C, among others [4]. For inside near the shaft. This reed switch is activated once per
hardware component integration, I2C communication interface revolution of the cups. The Figure 3 shows the reed switch
is commonly used. Raspberry PI has only free software, and used in our anemometer. We have utilized a water proof reed
the version used in this project costs about 25 dollars FOB. switch and it costs about 2.50 dollars FOB.
B. Arduino
Arduino [5] is one the most popular open electronics
prototyping platform, based on the work of Hernando Barragán
[6]. Arduino allows its programming through C language,
and has equivalent features of most microcontrollers. Its main
advantages are the easiness of programming and new resources
integration, through the use of shield modules. It has many
analog and digital inputs and outputs, becoming a good choice
for motor drive, or, in this project, for the reading of sensor
data. Due to its limitation of Internet access, it’s more com-
monly used for actuation and reading of data, which can be
transmitted to a computer (Raspberry in this case) for further
processing and sharing of data with the Internet. The Arduino
version used in this project costs about 15 dollars FOB. Fig. 3. Anemometer reed switch
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.
are going to stay in outdoor environment. Caution was taken
to protect and seal the electronic components, since they are
going to be in contact with rain. The objective was to find low
cost components to fulfill the goal of the project. Factors like
accuracy were also taken into consideration when choosing the
components.
To connect the anemometer, wind direction sensor and
pluviometer to the Arduino, an auxiliary circuit was needed,
as shown in the Figure 6. This circuit has all the necessary
components for sensor instrumentation, and also provides the
communication interface to the Arduino.
G. Pluviometer
Pluviometer is a weather device used to measure, in mil-
limeters, the amount of liquids or solids (rain, snow, hail) that
fell during a determined interval of time and at some area.
The pluviometer used in this work uses a scale system, that Fig. 6. Circuit schematic for sensor instrumentation.
when filled with rain water, tips the scale to remove the water
and computes 0.25 mm of total rainfall index. To identify the The final project of the working weather station is shown
movement of the scale, a Reed Switch magnetic switch sensor in the Figure 7. Armored cables were used for the connection
was also used. of the external sensors, exposed to the weather, to the circuit
The Figure 5 shows the internal structure of the pluviome- board containing the instrumentation circuit, Raspberry PI and
ter. Arduino, as well as the BMP180 sensor that stays within
internal environment.
When the Raspberry PI, Arduino and instrumentation cir-
cuity are installed in an outdoor environment, an armored box
to seal the components must be used to protect them from the
weather and rain.
Apart from the sensors mounted and configured to work in
the weather station, an Arduino software was also necessary
to perform the reading of the station’s data. The software was
made based on the type of reading of each sensor, being either
analog or digital, as well as the I2C communication.
It was also developed a Java application for the Raspberry
PI, that communicates with the Arduino through I2C commu-
Fig. 5. Detail of pluviometer. nication, taking the data read from the sensors and storing this
data in a MySQL database located in the network, in a remote
server. This reading is done from time to time, and this interval
The mechanical structure of this sensor was also made of
parameter between readings is read by the Raspberry from the
aluminum. The cost of this handcrafted assembling is about
database.
15 dollars. Commercially, similar options are found for about
42 dollars FOB. At last, a simple web application was made, using Java
Server Faces language, as well as a web service to share
III. R ESULTS the data stored in the databse for any device (computer,
smartphone, digital TV, among others).
The anemometer, wind direction sensor and pluviometer
were calibrated, and their cost were compared to commercial This application has features like showing a report of all
sensors. The physical and mechanical structure of these sensors data read and written by the weather station, showing filter
were developed in aluminum, to avoid oxidation, since they functionality, as well as showing present climate information.
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.
165 dollars, as WMR200 costs 1035 dollars, Kastrel 4500 costs
840 dollars and WS-2010 costs 500 dollars, FOB. Meaning
that, for 15% of the price of WMR200, the proposed weather
station has almost the same features, with the possibility of
enhancing and modifying it with new sensors.
IV. C ONCLUSION
This work has accomplished its proposed goal, that was the
development of a low cost weather station that stores climate
data remotely in a database server allowing its access from
anywhere through any device.
For the development, low cost free hardware and software
were used, to reduce the prototype cost. The data generated
by the station was compared with commercial sensors, not
showing significant divergences.
The usage of Raspberry PI as a central element has sur-
passed expectations, showing low energy cost, reduced phys-
ical size and high processing power, allowing the execution
of the developed applications through commercial languages,
like Java language.
Its connectivity with automation elements also deserves
Fig. 7. Fully working weather station. attention, allowing I2C communication with Arduino or other
microcontrollers, and if necessary, there is an automation
shield called PIFACE [11].
The Figure 8 shows the graphical interface of the web In the control aspect, Arduino has also surpassed expec-
application, in which the user might consult the data generated tations, in special by the easiness of use, allowing users with
by the weather station. reduced experience to develop applications for this platform.
However, some difficulties arose in using two sensors
with time dependant readings, like the anemometer and the
pluviometer, due to not being able to efficiently use two
threads at the same time. To initially solve this limitation, two
Arduinos were used, one for each of these sensors.
One possible solution for this limitation would be the usage
of a microcontroller with preemptive RTOS. A preemptive real
time operating system deals with many tasks, aside from inter-
rupt service routines. These tasks may or not be independent
from each other, and the system preempts them according to
set rules (like time limit) to achieve concurrency. In this way,
we could create a task for each sensor. Any microcontroller
that has a ARM Cortex M3 or above processor on it can be
Fig. 8. Data taken from the database held by the Weather Station.
used for this goal, like the STM32F429 that costs about 8
Comparison between the Proposed Weather Station and dollars.
other Comercial Weather Stations As a future work, is intended to use the proposed architec-
The proposed weather station was compared with two other ture to develop a portable weather station, without internet
professional weather stations, to identify the main differences access (to allow usage in rural area) that stores the data
of features and cost. collected in a SD card, for further data transfer to a collector
device, like tablets or smart phones. It’s also possible to
The compared weather stations are: (1) Proposed weather measure the energy cost of the station to create a solar panel
station in this work, (2) WMR200, (3) Kestrel 4300, (4) WS- for it, allowing its placement anywhere.
2010 commercial stations. As observed, the proposed weather
station has 10 out of 14 implemented features. The WMR200 R EFERENCES
has 11 features, the Kestrel 4500 has 9 features and the WS-
2010 has 10. [1] B. C. Mikiten and S. Mikiten. Development of a forth based remote
weather station. In Proceedings of the first annual workshop on Forth
The stations were analysed based upon 14 features, as - FORTH 89. ACM Press, 1989.
shown in the Table I. [2] Richard M. Stallman and Joshua Gay. Free Software, Free Society:
Selected Essays of Richard M. Stallman. Free Software Fundation,
Analysing cost, the proposed weather station costs about Boston, MA USA, 2002.
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.
TABLE I. C OMPARISON BETWEEN FEATURES OF THE WEATHER STATIONS .
Web
Rain Int. Ext. Air Wind Wind Thermal Dew Atm. Wheather Data Digital
Station Hight data
index temp. temp. hum. speed direction perception point press. forecast process. compass
access
1 X X X X X X X X X X
2 X X X X X X X X X X X
3 X X X X X X X X X
4 X X X X X X X X X X
Authorized licensed use limited to: ESCUELA POLITECNICA DEL LITORAL (ESPOL). Downloaded on August 04,2023 at 21:21:51 UTC from IEEE Xplore. Restrictions apply.