User Tools

Site Tools


en:aws

Differences

This shows you the differences between two versions of the page.


Previous revision
Last revision
en:aws [2015/03/05 22:49] – [Automatic weather station AWS01B] kaklik
Line 1: Line 1:
 +====== Automatic weather station AWS02A ======
 +
 +An autonomous weather station with its own auto-diagnostics. The station is designed to work in remote areas together with other scientific instruments like robotic telescopes or[[cs:programming_tasks| other measurement stations]].
 +   
 +Very common problems of such applications are scarce energy resources and a need for short-term data transmission occurring after long time intervals. As a result, a possibility of immediate failure report via short-band data channel is essential in order to minimize dropouts in data acquisition.   
 +
 +Apart from these technically still unsolved problems, there are other reasons to design such station - most notably an absence of serious OpenSource-hardware solution for meteorological data collection providing data for [[http://openweathermap.org/|OpenWeatherMap]] network. (([[http://www.slideshare.net/Dennsy/gisconf-2012|OpenWeatherMap on the Open GIS Conference 2012]]))
 +
 +
 +===== Sensor construction =====
 +
 +V této verzi stanice bylo ustoupeno od pokusů používat standardní komerční snímače vesměs uzpůsobené k vestavění do konkrétní proprietární meteostanice daného výrobce. Místo toho jsou navrhovány vlastní konstrukce snímačů a jejich zakrytování.
 +
 +==== Stevenson Screen ====
 +
 +Prvním navrženým snímačem je radiační štít tisknutelný na 3D tiskárně.  Štít je navržen v programu [[cs:tools|OpenSCAD]] a jeho zdrojové soubory jsou v SVN repozitáři MLABu. Výtisk na následujících snímcích je z biodegradabilního [[http://en.wikipedia.org/wiki/Polylactic_acid|materiálu PLA]].
 +
 +{{ :cs:designs:meteo:weather_screen_top.jpg?direct&300 |}}
 +{{ :cs:designs:meteo:weather_screen_bottom.jpg?direct&300 |}}
 +
 +
 +=== Ultrasound anemometer ===
 +
 +  * http://hackaday.com/2013/08/21/ultrasonic-anemometer-for-an-absurdly-accurate-weather-station/
 +  * http://www.technik.dhbw-ravensburg.de/~lau/ultrasonic-anemometer.html
 +
 +====== Automatická meteostanice AWS01B ======
 +
 +Tato konstrukce využívá meteorologická čidla ze stanice wh1080.  Jejich vyčítání je řešeno Microchip [[cs:pic16f87xtq44|PIC]] MCU. Od této konstrukce je postupně upouštěno z důvodu špatné dostupnosti náhradních mechanických dílů, jejich kvalitě a omezeným možnostem MCU. Ostatní kvalitní v této konstrukci ověřené snímače jsou však přeneseny do následující verze.
 +
 +===== Sensors =====
 +
 +{{ :cs:designs:meteo:snimace_wh1080_wh1090.jpg?200 |Outer wether-sensors}}
 +
 +
 +==== Anemometer ====
 +
 +A classic anemometer design with cup-shaped rotor.
 +
 +{{:cs:designs:meteo:wh_anemometr.jpg?200 |}} 
 +
 +The anemometer generates impulses with period inversely proportional to the wind speed. Easy reading via pulse counter and timer.
 +
 +Wind speed measuring requirements are met with 1Hz sampling or upon the impulse arrival  (in the case of very low wind speed or failure).
 +
 +=== Common difficulties ===
 +
 +  * Mechanical degradation
 +  * Freezing 
 +  * Limit to the mximum measured wind speed
 +  * Seizing up (([[http://www.digitalham.co.uk/weather/equipment/watson-w8681/wind-speed/|W8681 wind speed indicator disassembly and repair]]))
 +
 +Solvable by using other anemometer designs - e.g. sonic or ionization anemometer.
 +
 +==== Wind direction ====
 +
 +{{:cs:designs:meteo:wind_vector.jpg?200 |}} 
 +
 +Weather vane with wind rose serves as the most basic wind detector. The position of the vane is read by a reed switch and it is recorded when it changes.
 +
 +=== Common difficulties ===
 +
 +Similar to anemometer.
 +
 +  * Mechanical degradation
 +  * Freezing
 +
 +
 +Can be solved by using more sophisticated anemometer designs that measure vectors (for example ionization or sonic).
 +
 +==== Precipitation ====
 +
 +{{:cs:designs:meteo:rain_gauge.jpg?200 |}} A traditional tipping bucket rain gauge generates impulse upon tipping of the lever. As it does not occur very often, it is recommended to record the precise moment of tipping in order to assign the precipitation a more accurate position in time.
 +
 +The rain gauge should be equipped with heating and temperature sensor for ice melting regulation.
 +
 +=== Common difficulties ===
 +
 +  * Clogging, freezing
 +
 +==== Snow precipitation ====
 +
 +According to requirements of a weather station operator, a wide variety of snow parameters can be measured.  
 +
 +=== Height ===
 +
 +{{:cs:sous-snih.jpg?200 |}} Snow cover can be measured by a rangefinder (ultrasonic mostly), which measures the distance from a defined height perpendicular to the ground. Another option is to use an optical triangulation sensor.
 +
 +In the case of acustic measurement, [[cs:echo|ECHO01A]] construction design can be used.
 +
 +=== Mechanical properties ===
 +
 +Some of the snow's mechanical properties, like hardness and stiffness, can be estimated using the reflected signal of the ultrasonic rangefinder. Using the optical rangefinder, on the other hand, can reveal other properties like reflexivity of snow cover or its spectral dependence.
 +
 +=== Weight ===
 +
 +A total weight of snow cover constitutes an important information in terms of security risks. It can be measured using a reflective plate placed under the snow cover height sensor. At the same time, the plate can act as a weight.
 +
 +==== Humidity ====
 +
 +Humidity sensors are located in radiation shield. 
 +
 +[[cs:sht25v|SHT25V01A]] - sensor with I²C output and optional self-testing by heating of the measuring element.  
 +
 +Sensor time constant is approximately 3s, a satisfactory recorded data sampling is therefore less than 10s.
 +
 +=== Common difficulties ===
 +
 +  * Gradual degradation of the measuring element
 +  * Damage to sensor 
 +  * Measuring element saturation and time-lagging during vater evaporation.
 + 
 +Self-test in pseudorandom time serves as a diagnostic tool.
 +
 +
 +==== Temperature ====
 +
 +Measuring the temperature of the air, although being one of the most important function of the station, is in some cases performed incorrectly - e.g. by letting the Sun influence the value. A solution to this problem is so-called radiation shield, which prevents the effect of radiation on the sensor.
 +
 +Apart from commonly used [[cs:wire_sensors#mereni_teploty|DS18B20]] sensor, a more modern option exists as well - [[cs:lts|LTS01A]]
 +
 +==== Pressure ====
 +
 +[[cs:altimet|ALTIMET01A]]
 +
 +
 +==== Magnetometer ====
 +
 +[[cs:mag|MAG01A]]
 +
 +
 +==== Cloud cover ====
 +
 +=== Coverage ===
 +
 +[[cs:mrakomer4|MRAKOMĚR 4]] - “cloud meter”
 +
 +=== Height (ceilometer) ===
 +
 +
 +A laser ceilometer can be built from already existing modules.
 +
 +
 +==== Radiometer (sunshine measurement) ====
 +
 +
 +=== Luminous flux ===
 +
 +Use of a photovoltaic cell, measuring output in W/m². 
 +
 +=== UV index ===
 +
 +Measuring the UV index to determine safe exposure (similar to [[cs:uvepd|UV dozimeter]]). [[cs:isl|ISL02A]]  module can also be used.
 +
 +=== Light intensity ===
 +
 +Possible to measure with [[cs:isl29020|ISL2902001A]] sensor.
 +
 +
 +==== Ionization detector ====
 +
 +Measuring the intensity of ionizing radiation with [[cs:gmcount|GM]] or semiconductor detector.
 +
 +==== Infrasound detector ====
 +
 +==== Sound level meter ====
 +
 +==== Limnimeter ====
 +
 +Measurement of water level and flow.
 +
 +==== Chemical sensors ====
 +
 +  * Gas detection CO, CO2, N2... H2S, CH4.. [[http://www.ti.com/lsds/ti/data-converters/sensor-afe-products.page?paramCriteria=no#p158=Serial%20I2C|AFE Sensor]]
 +  * PH-meter
 +
 +===== Communication interface =====
 +
 +The weather station has several possibilities for interfaces to connect and communicate with other devices.
 +==== RS232/RS485 ====
 +
 +Modules  [[cs:rs232single|RS232SINGLE01A]] or [[cs:ttlrs485|TTLRS48501A]] with microcontroller are suitable to establish a connection depending on the application complexity.
 +
 +==== Ethernet ====
 +
 +=== Wifi router ===
 +
 +One of the most universal methods of connecting the station is to use a router with [[https://openwrt.org/|OpenWrt]]  OS. It enables the use of both, ethernet and Wifi and even other interfaces in the form of modems, which can also connect to router via USB.
 +
 +The weather station communicates with router via I2C bus. The bus can either lead directly form the router or through  [[cs:i2c-pic-usb|I²C to USB]] connector.
 +
 +=== ARM modul ===
 +
 +With an advantage of lower power consumption and simpler design a module fitted with ARM [[cs:stm32f10xrxt|STM32F10xRxT01A]] and ethernet module [[cs:eth|ETH01A]] can also serve as a communication interface.
 +
 +==== USB ====
 +
 +=== I²C master ===
 +
 +In this case, the entire device acts as [[cs:usbi2c| I²C to USB converter]], with reading from individual sensors implemented by program running at USB HOST device. The advantage of this design lies in possibility of obtaining relatively precise information about an absolute time in which the values were measured. Furthermore, changes in software and configuration can be done simply by updating the control program without a risky firmware replacement.
 +
 +=== Emulated COM port ===
 +
 +The weather station is connected via [[cs:usb232r|USBRS23201B]], which creates a virtual RS232 interface.
 +
 +==== Wireless ====
 +
 +=== Wifi ===
 +
 +See the use of wifi router with OpenWRT.
 +
 +=== GSM ===
 +
 +[[cs:gsm|GSM01A]] module is suitable to transfer data via GSM or 3G/4G.
 +
 +=== ISM band ===
 +
 +ISM represents an [[http://cs.wikipedia.org/wiki/P%C3%A1smo_ISM|industrial, scientific and medical]] band where license for data transfer is not required. MLAB already contains several modules enabling the use of this band.
 +
 +  * RFM01SMD01A
 +  * RFM02SMD01A
 +  * RX433MHz01A
 +  * TXsaw433MHz01A
 +  * ZIGBEE01A
 +
 +
 +===== Reading of the measured values =====
 +
 +This design offers a possibility of connecting variety of sensors, which are initialised at every station startup. It uses [[cs:i2c|I²C bus]]  with [[cs:i2chub|I2CHUB02A]] module and predefined set of sensors.
 +
 +==== Software instalation ====
 +
 +Probably currently the best method is a direct reading of sensors from a master system via [[cs:i2c|I²C]] as there exist quite a lot of old unused wifi routers able to [[http://wiki.openwrt.org/oldwiki/port.i2c.rtc?s[]=i2c|connect I²C directly]].
 +
 +Lukáš Mičan from [[http://www.robozor.cz/|Robozor]] club has programmed [[https://github.com/MLAB-project/meteostationSW|handler program]], which periodically reads the weather station sensors and sends the data to [[http://openweathermap.org/station/104333|OpenWeathermap.org]].
 +
 +The program is written in Python and uses [[cs:pymlab|pymlab]] library to read I²C sensors.
 +
 +===== Power supply =====
 +
 +  * autonomous power source, e.g. photovoltaic panel 
 +  * local power grid
 +
 +===== Auto diagnostics =====
 +
 +Still necessary to implement algorithms controlling mutual correlations of measured values and to detect anomalies.
 +
 +  * Wind direction can not change without speed indication from anemometer.
 +
 +
 +==== Considered failures ====
 +
 +
 +=== Random mechanical destruction ===
 +
 +Involves failures that may arise from defect material or its fatigue due to environmental effects (involving UV radiation, temperature cycles,…)
 +
 +== Anemometer ==
 +
 +Damage to anemometer can involve breaking off one or more blades or rotor. These events should be detected by measuring an uneven speed during one revolution
 +
 +=== Fake outupt ===
 +
 +Relates to following sensors:
 +
 +  * Anemometer - seizing up
 +  * Wind direction - breaking off the vane
 +  * Precipitation - clogging
 +
 +=== Degradation ===
 +
 +Relates to the sensors measuring:
 +
 +  * temperature 
 +  * relative humidity
 +
 +
 +=== Power failure ===
 +
 +Causes:
 +
 +  * Data loss during failure
 +
 +
 +
 +===== Output data format =====
 +
 +Ideal output data should be compatible with one of the already used meteorological data protocols:
 +
 +  * NMEA
 +  * [[https://en.wikipedia.org/wiki/SDI-12|SDI-12]]
 +  * RMYT?
 +  * Direct reading I²C 
 +
 +Data output should also include accurate time record of measurement - time information can be obtained via [[cs:gps|GPS01A]]. In order to integrate the station into more complex project its output should support more bus systems (USB, CAN, RS232, RS485, Ethernet).
 +
 +==== Data recording ====
 +
 +Data measured by weather station should be recorded and displayed locally. That is why a program serving the weather station should run either on local computer or directly on weather station processor. In the latter case, the weather station would probably run a web server as well, which could provide local data previews and send them to collecting network.
 +
 +The following list contains some of the most widespread Open-Source programs for local data recording and processing.
 +
 +  * [[http://misterhouse.sourceforge.net/|MisterHouse]]
 +  * [[http://www.wviewweather.com/|wview]]
 +  * [[http://jim-easterbrook.github.io/pywws/doc/en/html/index.html|pywws]]
 +  * [[http://www.weewx.com/index.htm|Weewx]]
 +  * [[http://code.google.com/p/fowsr/|Fine Offset Weather Station Reader]]
 +
 +[[http://www.wunderground.com/weatherstation/setup.asp?MR=1#software|zdroj]]
 +
 +Our ideal program should be multi-platform with minimal operating requirements and with possibility of sending data to one of the global network of weather stations. The data should be, at the same time, locally backed up and they should be able to combine with data from other stations. Examples of such database include: [[http://www.arpa.emr.it/dettaglio_documento.asp?id=514&idlivello=64| DB-All.e]]  or [[http://www.unidata.ucar.edu/software/netcdf/docs/|NetCDF]].
 +
 +===== Examples of use =====
 +
 +  * [[en:abl|Station for automatic weather balloon launcher]]
 +  * [[cs:dum|Intelligent building management system]]
 +  * Weather station of [[cs:uav|unmanned aircraft]] ground control station
 +
 +====== Automatic weather station AWS01A ======
 +
 +===== Sensors =====
 +
 +==== Temperature ====
 +
 +Measured by [[cs:wire_sensors#mereni_teploty|DS18B20]] sensor.
 +
 +==== Pressure ====
 +
 +Measured by  [[cs:altimet|ALTIMET01A]] module with MPL115A1 sensor.
 +
 +==== Humidity ====
 +
 +To measure a relative humidity and air temperature we use a  [[http://www.sensirion.com/en/products/humidity-temperature/humidity-sensor-sht11/|SHT11]] sensor soldered into universal PCB and SHT25 sensor in [[cs:sht25v|SHT25v01A]] module. 
 +
 +==== Anemometer ====
 +
 +[[http://www.meteo-sykora.cz/produkty/anemometr-top.php|Anemo-T]]
 +
 +Reading is carried out by two timers - one (timer1) is clocked by a crystal and second (timer0) counts the impulses.
 +
 +
 +===== Data output =====
 +
 +  # AWS01A 0.1 (C) 2013 www.mlab.cz 
 +  # ver seq  temp[K] hum_temp[K] hum[%] bar_temp[K] pressure[hPa] anemo[m/s] check
 +  
 +  $AWS0.1 0 29271 29390 64.3 29416 959.4 6.0 *5C
 +  $AWS0.1 1 29271 29390 64.3 29416 961.1 6.3 *53
 +  $AWS0.1 2 29277 29389 64.3 29416 960.7 7.0 *59
 +
 +Meaning of the variables is as follows:
 +
 +  * **ver** denotes the device and firmware version 
 +  * **seq** is the serial number of a measurement 
 +  * **temp[K]** denotes the temperature measured thermometer (in hundredths of Kelvin) 
 +  * **hum_temp[K]** - temperature from 1st humidity sensor 
 +  * **hum[%]** - relative humidity measured by 1st humidity sensor 
 +  * **bar_temp[K]** - a very inaccurate barometer temperature (interesting rather in the case of eventual relative temperature compensation)
 +  * **pressure[hPa]** - pressure measured by barometer 
 +  * **anemo[m/s]** - wind speed measured by anemometer 
 +  * **check** - a checksum (same as NMEA format)  
 +
 +===== Firmware update =====
 +
 +The firmware can be updated without any special utility only by sending HEX file with firmware to serial link of processor when it expects the firmware and writes:
 +
 +  uf?uf?
 +  
 +This condition occurs after resetting the device.
 +
 +Following that, a new firmware can be send using a command listed below (either under root account or under account with access to the serial line)
 +
 +  $ echo uf > /dev/ttyUSB0  
 +  ascii-xfr -s -v -l 110 ./firmware.hex > /dev/ttyUSB0
 +  
 +Ascii-xfr program is a part of minicom package in Ubuntu. In order to monitor the data recording, it is possible to listen at the same port:
 +
 +  picocom /dev/ttyUSB0
 +  
 + 
 +===== Weather Station Application =====
 +
 +  * BART Ondřejov
 +  * D50 telescope (Ondřejov)
 +
 +=== Referencies ===
 +
 +  * [[http://en.wikipedia.org/wiki/Automatic_weather_station|Automatic weather station]]
 +  * [[http://iepas.net/update-on-the-mma-weather-station/|MMA Weather Station]] - Related project with almost the same ideas. 
 +  * [[http://en.wikipedia.org/wiki/Automated_airport_weather_station|Automated airport weather station]]
 +  * [[http://en.wikipedia.org/wiki/Climate_and_Forecast_Metadata_Conventions|Climate and Forecast Metadata Conventions]]
 +  * [[http://mcs.uwsuper.edu/sb/Electronics/CP2112/|Weather Station without Microcontroller]]
 +  * [[http://openmeteostation.org/|Open Meteo Station]]
  
en/aws.txt · Last modified: 2015/03/05 22:49 (external edit)