Skip to Content
ProceedingsProceedings
  • Proceeding Paper
  • Open Access

24 October 2018

Flood Early Warning System by Twitter Using LoRa †

,
,
and
Juarez Autonomous University of Tabasco, Carr. Cunduacan-Jalpa Km. 0.5, C.P. 86690 Cunduacan, Tabasco, Mexico
*
Authors to whom correspondence should be addressed.
Presented at the 12th International Conference on Ubiquitous Computing and Ambient Intelligence (UCAmI 2018), Punta Cana, Dominican Republic, 4–7 December 2018.
These authors contributed equally to this work.
This article belongs to the Proceedings UCAmI 2018

Abstract

In this paper, a sensor network architecture is presented. This work proposes an early warning system for river overflows. The sensor network consists of a river level sensor node that measures the distance between the sensor and the mass of water using a precision ultrasonic sensor. The recorded information is transmitted to a receiving node by radio frequency (915 MHz) using LoRa modulation. The receiving node is implemented in a Raspberry Pi, it processes the information in real time and publishes the alert using a social network (Twitter). Finally, a prototype of the river level node was tested, obtaining a measurement range from 20 cm to 2 m. The receiving node was located 500 m away from the sensor node, that received the data packets sent without loss of data.

1. Introduction

Natural disasters are catastrophic events that can occur anywhere in the world, which are presented in different ways such as floods, earthquakes, storms, etc. These events derive from variations of natural phenomena such as rain, wind, temperature, among others.
Tabasco is a southern province in Mexico, it is a plain located near to Yucatan’s Peninsula. The topological and hydrological conditions make the State of Tabasco an area with a high risk of flooding with antecedents such as occurred in 2007 that affected more than a one million people (http://www.unicef.org/infobycountry/mexico_41652.html). It is important to have an early flood warning system for the region that allows the inhabitants to be informed quickly and efficiently.
An Early Warning System (EWS) of river overflow is composed of sensor nodes distributed along rivers, which measure the water level constantly and are able to communicate this information for analysis, decision making and alerts.
Lora communication: it is a technology that works in the Industrial, Scientific and Medical (ISM) band. Frequency assignment and regulatory requirements for ISM vary by region. In the region of Mexico, 915 MHz is used, since it is the one assigned to the American continent, this technology is functional for projects that require the transmission of data over distances that are somewhat distant since they have a transmission range of 15 km between the node [1].

3. Design

3.1. Materials and Equipments

The tools used for the development of this project are the following.
  • Ultrasonic sensor jsn-sn04t-2.0.: this sensor works by emitting a sound pulse (TRIG), then the width of the return pulse (ECHO) is measured and the distance is calculated from the time differences between the Trig and Echo.
    Technical data of the sensor:
    • Operating voltage: 5V DC
    • Work current: 30 mA
    • Detection range: 25 cm–450 cm
    • Precision: It can vary between 3 mm to 0.3 cm
    • Acoustic emission frequency: 40 KHz
    • Minimum duration of the trigger pulse (TTL level): 10 μ S.
    • Minimum waiting time between one measurement and the start of another: 20 ms.
    • Detection angle: less than 50 °
    • Waterproof (front)
    • Diameter: 22 mm
    • Length: 17 mm
    • Work temperature: −10 ° C to 70 ° C
  • The TTGO is a programmable card which integrates an OLED screen and a radio module SX1276 LoRa. They also include a LiPo battery charger. It can be configured as a transmitter or receiver, this configuration can be carried out through the Arduino IDE using the ESP32 Dev Module card type.
  • The Wemos d1 card incorporates the esp8866 chip, which performs the processing tasks.
    Technical specifications:
    • 11 digital I/O
    • 1 Analog input
    • Micro USB connector
    • Wifi connection
  • Raspberry Pi 3 Model B + is the latest single-board computer to date that has launched the Raspberry Pi foundation which has the following specifications:
    • Broadcom BCM2837B0, Cortex-A53 (ARMv8) SoC de 64 bits a 1,4 GHz
    • 1 GB LPDDR2 SDRAM
    • 2,4 GHz and 5 GHz Wireless LAN - IEEE 802.11.b/g/n/ac
    • 40 headers GPIO
    • 4 USB 2.0 ports
    • Micro SD port to load your operating system and store data
    • 5 V/2.5 A DC power input

3.2. Architecture

In this section we describe the general approach to system architecture as shows in Figure 1.
Figure 1. System architecture raised.
  • Jsn-sr04-2.0: is the sensor that will be used in the project which is a waterproof ultrasonic sensor.
  • The microcontroller that works as an emitter is a TTGO in which the sensor will be connected, this card incorporates LoRa communication.
  • The microcontroller that works as a receiver is a TTGO, since it has the same characteristics as the transmitter.
  • The wemos mini: is configured as an access point to share the data with a computer.
  • The Raspberry pi 3 b +: is a single-board computer in which the programming is developed to save the data on a database and in the same way the data will be published in a Twitter account.

4. Testing and Implementations

In this phase of the study, the system is partially implemented in order to verify the operation of the ultrasound sensor and the cards that implement LoRa communication.
Current architecture
Figure 2 shows the current system implemented, the interaction between all components and the communication protocols used.
Figure 2. Current architecture implemented.
In order to obtain the river level, it is necessary to know the distance to the bottom of the river (D1) previously. Also, the distance between the sensor and the river level (D2) is acquired by an ultrasonic sensor. Figure 2 shows where the distances D1 and D2 are located in the diagram. Equation (1) shows the calculation applied to obtain the river level (L) using the distances D1 and D2. This operation is performed in the sensor node.
L = D 1 D 2
Firmware
Figure 3 shows the flowchart that describes the simplified operation of the programs that run on node and receiver.
Figure 3. First prototype flux diagram.
In Figure 3a the operation of the firmware running the receiver is observed schematically. On the other hand, in Figure 3b the sensor node operation is shown.
Sensor node
  • The sensor reads the input variable, that in this case is the distance (in cms) of the water from the edge of the river.
  • A mathematical operation is performed: The depth of the river (which is declared as constant in the program) minus the distance obtained.
  • The result of this operation is sent into a data package of type string to the receiver node. This string is composed of the word depth, a blank space and the result of the operation converted into ASCII code.
Receiving node
  • Receive the data package from the sensor node.
  • Print the received data on the LCD screen.

5. Results

5.1. Prototype

Figure 4 shows how the initial prototype of this stage of the project was assembled.
Figure 4. First prototype implemented.
As shown in Figure 4a the receiver has its antenna and its power supply and it uses a USB port.
The sensor node (Figure 4b) is made up of the ultrasonic sensor, and the cards that perform the conversion and transmission of the information. These cards use the same USB connection as the power source.

5.2. Assessment

To evaluate the prototype, measurements were made over the entire measurement range, i.e., from 20 cm to 3 m in order to visualize the behavior.
Table 1 shows that the sensor node captures very accurate measurements on the ground, although in some cases the tests showed incorrect measurements, which had a margin of error of one centimeter more than the correct measurement and was presented on one occasion an incorrect measurement of one centimeter less than the correct measurement.
Table 1. Measurements taken on land
Table 2 shows how the sensor node collects the measurements precisely, but also it has a margin of error of one centimeter over the correct measurement and three times showed a reading of one centimeter less than the correct one.
Table 2. Measurements taken on water

6. Conclusions and Future Works

So far, the ultrasonic sensor and the communication between the cards were tested. Since the sensor node took the reading of the distance of the sensor with respect to a water body, the tests were performed on land and in water, these measurements received by the receiver node were made by LoRa modulation, the tests performed showed that the sensor measures with acceptable accuracy, 1 cm of margin of error.
The work will continue with the development of a system with a database and an interface, that has an alert published in Twitter.
This first stage of the project, together with the previously mentioned system, will produce an EWS prototype for river overflows.
It is recommended to add additional protocols to the EWS prototype, i.e., a communication system that allows for a level of security of the transmitted information and mesh network functionalities between the nodes. In addition, it is recommended to integrate the EWS with other systems such as water precipitation (rainfall) system and integrate this information with algorithms that allow estimating the growth that the river will have.

Acknowledgments

This paper was supported by Programa de Fortalecimiento de la Calidad Educativa (PFCE) 2018 number: P/PFCE-2018-27MSU0018V-11. We would also like to express our gratitude to the Juarez Autonomous University of Tabasco for supporting the academic resources needed for this research.

Conflicts of Interest

The authors declare no conflict of interest. The founding sponsors had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, and in the decision to publish the results.

References

  1. Pickering, P. Develop with LoRa for Low-Rate, Long-Range IoT Applications. Available online: https://www.digikey.com/en/articles/techzone/2017/jun/develop-lora-for-low-rate-long-range-iot-applications (accessed on 26 June 2017).
  2. Hernández-Nolasco, J.A.; Ovando, M.A.; Acosta, F.D.; Pancardo, P. Water level meter for alerting population about floods. In Proceedings of the International Conference on Advanced Information Networking and Applications, AINA, Crans-Montana, Switzerland, 23–25 March 2016. [Google Scholar]
  3. Wister, M.A.; Hernandez-Nolasco, J.A.; Pancardo, P.; Acosta, F.D.; Jara, A. Emergency population warning about floods by social media. In Proceedings of the 2016 10th International Conference on Innovative Mobile and Internet Services in Ubiquitous Computing, IMIS 2016, Fukuoka, Japan, 6–8 July 2016. [Google Scholar]
  4. Nasimuzzaman Chowdhury, M.; Shiblee Nooman, M.; Sarker, S. Access Control of Door and Home Security by Raspberry Pi Through Internet. Int. J. Sci. Eng. Res. 2013, 4, 550–558. [Google Scholar]
  5. Campos Avila, P.E. Evaluación del Rango de Transmisión de LoRa Para Redes de Sensores Inalámbricas con LoRaWAN en Ambientes Forestales. Ph.D. Thesis, Universidad de Cuenca, Cuenca, Ecuador, 2017. [Google Scholar]
  6. Sakib, S.N.; Ane, T.; Matin, N.; Kaiser, M.S. An intelligent flood monitoring system for Bangladesh using wireless sensor network. In Proceedings of the 2016 5th International Conference on Informatics, Electronics and Vision (ICIEV) 2016, Dhaka, Bangladesh, 13–14 May 2016; pp. 979–984. [Google Scholar]
  7. Rodríguez Moreno, E.S.; López Ordoñez, V.F. Diseño e Implementación de un Sistema Inteligente para un Edificio Mediante IOT Utilizando el Protocolo de Comunicación LORAWAN. 2018. Available online: http://hdl.handle.net/11349/7394 (accessed on 15 April 2018).
  8. Monagas, M.G. Sistema automatizado de alerta temprana ante el peligro de inundaciones Automated system for early warning of potential flooding. Ingenieria Hidraulica y Ambiental 2013, XXXIV, 30–43. [Google Scholar]
  9. Neumann, P.; Montavont, J.; Noel, T. Indoor deployment of low-power wide area networks (LPWAN): A LoRaWAN case study. In Proceedings of the International Conference on Wireless and Mobile Computing, Networking and Communications, New York, NY, USA, October 17–19 2016. [Google Scholar]
  10. Coll, M.A.A. Sistemas de Alerta Temprana (S.A.T) para la Reduccion del Riesgo de Inundaciones Subitas y Fenomenos Atmosfericos en el Area Metropolitana de Barranquilla. Scientia et Technica 2013, 18, 303–308. [Google Scholar]
  11. Gutierrez, J. Medidor ultrasónico de nivel de agua para estanques. IngenierIa, Investigación y Tecnología 2006, VII, 234–244. [Google Scholar] [CrossRef]
  12. Ibrahim, M.; Elgamri, A.; Babiker, S.; Mohamed, A. Internet of things based smart environmental monitoring using the Raspberry-Pi computer. In Proceedings of the 2015 Fifth International Conference on Digital Information Processing and Communications (ICDIPC), Sierre, Switzerland, 7–9 October 2015; pp. 159–164. [Google Scholar]
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.