Professional Documents
Culture Documents
Submitted by
RAJARAJESWARI. S (810719106008)
GUNASEKARAN. S (810719106005)
ADITHYA. P (810719106001)
of
BACHELOR OF ENGINEERING
in
APRIL 2023
i
ANNA UNIVERSITY: CHENNAI 600 025
BONAFIDE CERTIFICATE
Certified that this project report “REAL TIME LANDSLIDE AND FLOOD
(810719106005), ADITHYA. P (810719106001), who carried out the project work under
my supervision.
SIGNATURE SIGNATURE
ii
ACKNOWLEDGEMENT
iii
ABSTRACT
iv
TABLE OF CONTENT
1.1. OVERVIEW 1
2. LITERATURE SURVEY 6
3.2. DISADVANTAGES 13
4. SYSTEM DESIGN 14
1.1.9. BUZZER 22
4.4. ADVANTAGES 22
4.5. APPLICATIONS 23
5. SYSTEM REQUIREMENTS 25
6. SOFTWARE DESCRIPTION 26
6.1.2. LIBRARIES 28
6.1.5. PREFERENCES 29
6.1.6. BOARDS 29
AND PORT 31
FIRST SKETCH 32
1.1.2. TRANSFORMER 33
1.1.3. RECTIFIER 36
REGULATORS
IN 7800 SERIES
vii
1.1.3. FEATURES OF LCD 43
2.1. CONCLUSION 48
APPENDIX 49
REFERENCES 57
viii
LIST OF ABBREVIATIONS
PC Personal computer
AC Alternate current
DC Direct current
ix
x
LIST OF FIGURES
System
4.3.9 Buzzer 22
xi
6.3.1.1 5v Power Supply 33
xii
LIST OF TABLES
7800 series
xiii
CHAPTER 1
INTRODUCTION
1.1 OVERVIEW
1
of sensors performed for the measurement of continued ground
movement.
2
and allow the flood recovery plans to reduce the expense for the
affected sites and survivors as well.
4
IoT application. We will also look at the IoT devices which we are using in
our day to day life.
This project presents an LPWAN sensor node that collects data from
the environment and can transmit the latter to the cloud every minute under
overcast lighting conditions. The measured transmission rate is higher
compared with publications. The presented sensor node supports a large
variety of low-power sensors such as moisture sensor, MEMS sensor and
rain sensor; the range of applications is thus considerable. As an example,
when equipped with a temperature and humidity sensor, agricultural
monitoring, habitat monitoring, or even climate monitoring can be
achieved; another application is the measurement of the vibrations of a
bridge in the field of structural health monitoring, using accelerometers.
5
CHAPTER 2
LITERATURE REVIEW
6
2.2 Chunjie Zhou; Bowen Hu, “A Unified Architectural Approach for
Cyberattack-Resilient Industrial Control Systems”, 2021.
7
2.3 Chaoxu Mu; Ke Wang, “Learning Control Supported by Dynamic
Event Communication Applying to Industrial Systems”, 2020.
8
2.4 Derui Ding; Qing-Long Han, “A Survey on Model-Based
Distributed Control and Filtering for Industrial Cyber-Physical
Systems”, 2019.
9
2.5 Mingyuan Gao; Ping Wang, “Self-Powered ZigBee Wireless Sensor
Nodes for Railway Condition Monitoring”, 2018.
10
and low frequency vibrations, operations which are not always feasible
with the conventional low-cost sensor boards. Since the late 1990s, several
accelerometer board prototypes have been proposed for achieving accurate
vibration monitoring. This paper presents a summary review of the systems
developed in the ten years following 2006 with particular emphasis on the
sensing characteristics, performances, and applications of the designed
sensor boards for micro vibration detection and analysis.
Increasing attention has been paid to air quality monitoring with a rapid
development in industry and transportation applications in the modern
society. However, the existing air quality monitoring systems cannot
provide satisfactory spatial and temporal resolutions of the air quality
information with low costs in real time. In this paper, we propose a new
method to implement the air quality monitoring system based on state-of-
the-art Internet-of-Things (IoT) techniques. In this system, portable sensors
collect the air quality information timely, which is transmitted through a
low power wide area network. All air quality data are processed and
analyzed in the IoT cloud. The completed air quality monitoring system,
including both hardware and software, is developed and deployed
successfully in urban environments. Experimental results show that the
proposed system is reliable in sensing the air quality, which helps reveal
the change patterns of air quality to some extent.
11
CHAPTER 3
This system designed and developed a Zigbee based smart sensing platform
for monitoring environmental parameters such as relative humidity,
pressure, temperature and sunlight. These units collectively send the sensor
data wirelessly to a central station, which collects the data, stores and
displays them into a database. Also the facility of adding few more sensors
and a few more stations has been provided in the proposed system. Ahonen
et al. monitored the environment of a greenhouse using a wireless sensor
network and evaluated the network using collected data. Li et al. designed a
remote monitoring system for the greenhouse environment. In this system
the gathered real time data is transmitted to the remote server by using
wireless module GPRS and CDMA IX. Sun et al. designed an embedded
database system for temperature and humidity control in the greenhouse
environment. Kang et al. designed and developed an automatic greenhouse
environment monitoring and control system and studied the development of
environmental monitoring sensor nodes and a monitoring system in
greenhouse environment.
12
Compared to the existing related research works, in this project, we
propose an energy efficient solar based environmental monitoring, alerting
and controlling system using ZigBee based IoT communication.
3.1 DISADVANTAGES
Users to identify the levels for safety alarming, and possibly to adjust
monitoring and control rules to ensure the coal mine safety
A few large back-end systems, and more and more underground
physical devices
13
CHAPTER 4
SYSTEM DESIGN
The sensor is the soil moisture sensor used to detect the percentage
of water content in the soil. Simulation testing system monitoring is done in
the lab scale for continuous movement slowly and continuously
spontaneously.
14
Warning levels are given using different colour LED indications to
provide alert levels, careful levels and hazard levels. Hazard level will be
added alarm as a sign of potential landslide occurs. Spontaneous movement
for ground shifts will be directly indicated as the highest level of danger so
that the alarm will immediately sound. System Monitoring of this landslide
can be monitored using a computer and can be directly viewed through a
web page on a computer connected via a USB port.
15
LoRa Module
Landslide Monitoring
Power Supply
Moisture Sensor
Rain Sensor
Buzzer
MEMS Sensor
ESP32
LP
Notification
WAN
Flood Monitoring
Float Switch
LCD Display To PC
Level Switch
IoT Thingspeak
GUI Visualization GUI Analysis
Website
16
4.3.1 LoRa module
Moisture sensors measure the volumetric water content in soil. Since the
direct gravimetric measurement of free soil moisture requires removing,
drying, and weighing of a sample, soil moisture sensors measure the
volumetric water content indirectly by using some other property of the soil,
such as electrical resistance, dielectric constant, or interaction with neutrons,
as a proxy for the moisture content. The relation between the measured
property and soil moisture must be calibrated and may vary depending on
environmental factors such as soil type, temperature, or electric conductivity.
Reflected microwave radiation is affected by the soil moisture and is used for
17
remote sensing in hydrology and agriculture. Portable probe instruments can
be used by farmers or gardeners.
A rain sensor is one kind of switching device which is used to detect the
rainfall. It works like a switch and the working principle of this sensor is,
whenever there is rain, the switch will be normally closed. The rain sensor
module/board is shown below. Basically, this board includes nickel coated
lines and it works on the resistance principle. This sensor module permits to
gauge moisture through analog output pins & it gives a digital output while
moisture threshold surpasses.
18
4.3.4 MEMS sensor
19
FIGURE 4.3.5.1 NODE MCU ESP-32
The Anti-Corrosion Water Level Sensor with Ball Float Switch is a device
used to sense the level of liquid within a tank, it may actuate a pump, an
indicator, an alarm, or another device. Use them in hydroponics, saltwater
tank, water tank, aquariums for power head control, filtration, heating or
whatever your project may be.
20
FIGURE 4.3.7.1 VIBRATION
SENSOR
This is a white on green display having 16 characters and 2 rows with high
brightness backlight. 16 x 2 LCD is ready to use with micro-controllers as a
digital input. LCD used to display the prototype sensors data display, and any
data that requires a simple display.
21
FIGURE 4.3.8.1 LCD DISPLAY
4.3.9 Buzzer
The buzzer in this circuit is used when microcontroller provides high signal,
i.e. when a fall is greater, the circuit will be completed and the buzzer will
start alarming.
4.4 ADVANTAGES
22
Coherence: Coherent information uses standard methods, classifications,
and concepts, and can be combined within a shared analytical framework
with other related information collected at other times.
Ease of interpretation: Ease of interpretation is typically achieved by
making supplementary information available that helps explain the
accuracy of the statistical information; the methods of data collection and
processing; and the underlying classifications, variables, and concepts.
Relevance: Relevant information elucidates issues that are important to
users.
Timeliness: Timely information is available as soon and as close in time
to measurement as possible.
The main objective is to reduce the power consumption as much as
possible so as to extend the lifetime of the monitor while keeping all
relevant data. Our lightweight mashup middleware can reduce the costs
efficiently to create safety monitoring and control automation applications
4.5 APPLICATIONS
23
course this affects policymakers, but this also affects many organizations
and individuals outside the government:
24
CHAPTER 5
SYSTEM REQUIREMENTS
ESP32
Lora
Vibration sensor
Float Sensor
MEMS Sensor
Rain Sensor
LCD display
GSM
Power Supply
Buzzer
ARDUINO IDE
MATLAB
25
CHAPTER 6
SOFTWARE DESCRIPTION
26
6.1.1 ARDUINO IDE
27
and upload programs, create, open, and save sketches, and open the serial
monitor.
Additional commands are found within the five menus: File, Edit,
Sketch, Tools, Help. The menus are context sensitive, which means only
those items relevant to the work currently being carried out are available.
6.1.2 Libraries
28
Libraries provide extra functionality for use in sketches, e.g. working
with hardware or manipulating data. To use a library in a sketch, select it
from the Sketch > Import Library menu. This will insert one or more
#include statements at the top of the sketch and compile the library with
your sketch. Because libraries are uploaded to the board with your sketch,
they increase the amount of space it takes up. If a sketch no longer needs a
library, simply delete its #include statements from the top of your code.
This displays serial sent from the Arduino board over USB or serial
connector. To send data to the board, enter text and click on the "send"
button or press enter. Choose the baud rate from the drop-down menu that
matches the rate passed to Serial.begin in your sketch. Note that on
29
Windows, Mac or Linux the board will reset (it will rerun your sketch)
when you connect with the serial monitor. Please note that the Serial
Monitor does not process control characters; if your sketch needs a
complete management of the serial communication with control characters,
you can use an external terminal program and connect it to the COM port
assigned to your Arduino board
6.1.5 Preferences
6.1.6 Boards
The board selection has two effects: it sets the parameters (e.g. CPU
speed and baud rate) used when compiling and uploading sketches; and sets
and the file and fuse settings used by the burn bootloader command. Some
of the board definitions differ only in the latter, so even if you've been
uploading successfully with a particular selection you'll want to check it
before burning the bootloader.
Arduino Software (IDE) includes the built in support for the boards
in the following list, all based on the AVR Core. The Boards Manager
included in the standard installation allows to add support for the growing
number of new boards based on different cores like Arduino Due, Arduino
Zero, Edison, Galileo and so on
30
6.2.1 ARDUINO NANO INTERFACE
Open the LED blink example sketch: File > Examples > 01.Basics > Blink.
31
6.2.1.1 SELECT THE NANO PROCESSOR TYPE
Select Tools > Board > Arduino AVR Boards > Arduino Nano.
Select the serial device of the board from the Tools | Serial Port
menu. This is likely to be COM3 or higher (COM1 and COM2 are usually
reserved for hardware serial ports). To find out, you can disconnect your
board and re-open the menu; the entry that disappears should be the
Arduino board. Reconnect the board and select that serial port.
32
6.2.3 Upload and Run your first Sketch
To upload the sketch to the Arduino Nano, click the Upload button in
the upper left to load and run the sketch on your board:
Wait a few seconds - you should see the RX and TX LEDs on the
board flashing. If the upload is successful, the message "Done uploading."
will appear in the status bar.
33
digital circuit experimenter unless a better regulation can be achieved in
some way. The following circuit is the answer to the problem.
6.3.2 Transformer
35
6.3.2.1 AN IDEAL STEP-DOWN TRANSFORMER
6.3.3 Rectifier
36
A diode bridge is an arrangement of four (or more) diodes in a bridge
circuit configuration that provides the same polarity of output for either
polarity of input. When used in its most common application, for
conversion of an alternating current (AC) input into a direct current (DC)
output, it is known as a bridge rectifier. A bridge rectifier provides full-
wave rectification from a two-wire AC input, resulting in lower cost and
weight as compared to a rectifier with a 3-wire input from a transformer
with a center-tapped secondary winding. The essential feature of a diode
bridge is that the polarity of the output is the same regardless of the polarity
at the input.
37
6.3.4.1 BRIDGE RECTIFIER
In each case, the upper right output remains positive and lower right
output negative. Since this is true whether the input is AC or DC, this
circuit not only produces a DC output from an AC input, it can also provide
what is sometimes called "reverse polarity protection". That is, it permits
38
normal functioning of DC-powered equipment when batteries have been
installed backwards, or when the leads (wires) from a DC power source
have been reversed, and protects the equipment from potential damage
caused by reverse polarity.
39
voltage, Vo, from a second terminal, with the third terminal connected to
ground. For a selected regulator, IC device specifications list a voltage
range over which the input voltage can vary to maintain a regulated output
voltage over a range of load current. The specifications also list the amount
of output voltage change resulting from a change in load current (load
regulation) or in input voltage (line regulation). The series 78 regulators
provide fixed regulated voltages from 5 to 24 V. Figure shows how one
such IC, a 7805, is connected to provide voltage regulation with output
from this unit of +5V dc. An unregulated input voltage V is filtered by
capacitor C1 and connected to the IC’s IN terminal. The IC’s OUT terminal
provides a regulated + 12V which is filtered by capacitor C2 (mostly for
any high-frequency noise). The third IC terminal is connected to ground
(GND). While the input voltage may vary over some permissible voltage
range, and the output load may vary over some acceptable range, the output
voltage remains constant within specified voltage variation limits. These
limitations are spelled out in the manufacturer’s specification sheets. There
are two types of voltage regulator they are 78xx series and 79xx series.
7805 +5 7.3
7806 +6 8.3
7808 +8 10.5
7810 +10 12.5
7812 +12 13.6
7815 +15 17.7
7818 +18 21.0
7824 +24 27.1
41
6.5.1 LCD DISPLAY
A 16x2 LCD means it can display 16 characters per line and there
are 2 such lines. In this LCD each character is displayed in 5x7 pixel
matrix. This LCD has two registers, namely, Command and Data. The
command register stores the command instructions given to the LCD, The
data register stores the data to be displayed on the LCD
42
Based on the construction, LCD’s are classified into two types. They
are,
further, the flow becomes turbulent and the substance turns optically
homogenous. In this disordered state, the liquid crystal scatters light.
43
The LCD material is of twisted nematic type which twists the light (change
in direction of polarization) passing through the cell when the latter is not
energized. This allows light to pass through the optical filters and the cell
appears bright. When the cell is energized, no twisting of light takes place
and the cell appears dull.
Liquid crystal cells are of two types (i) transitive type (ii) reflective type.
In the transitive type cell both glass sheets are transparent so that the light
from the rear source is scattered in the forward direction when the cell is
activated. The reflecting type cell has a reflecting surface on one side of the
glass sheet. The incident light on the front surface of the cell is dynamically
scattered by an activated cell. Both types of cells appear quite bright when
activated even under ambient light conditions.
for field effect cells LCD’s require ac voltage supply. A typical voltage
supply to dynamic scattering LCD’s are normally used for seven-segmental
displays.
44
Operating voltage range is 3-20V ac.
Pin
Function Name
No
8 DB1
9 DB2
10 DB3
8-bit data pins
11 DB4
12 DB5
13 DB6
14 DB7
CHAPTER 7
46
FIGURE 7.1.1 LORA AND ESP-32 MODULE
47
FIGURE 7.1.4 ALERT MESSAGE IN MAIL
48
FIGURE 7.1.6 MAP VIEW
CHAPTER 8
8.1 Conclusion
49
limitation. Also this proposed system of farming is user-friendly and highly
robust.
APPENDIX
CODE
#include <Wire.h>
#include <Adafruit_MPU6050.h>
#include <Adafruit_Sensor.h>
#include <LiquidCrystal.h>
Adafruit_MPU6050 mpu;
//Moisture Level
int soil_moi,sensor_analog1;
//Water Level
50
int water_level,sensor_analog2;
//Rain
int rain_level,sensor_analog3;
int lmt = 0;
float xx = 0;
float yy = 0;
void setup() {
pinMode(sensor_pin1, INPUT);
pinMode(sensor_pin2, INPUT);
pinMode(sensor_pin3, INPUT);
pinMode(lmtv, INPUT);
51
pinMode(buzzer, OUTPUT);
Serial.begin(9600);
lcd.clear();
lcd.setCursor(0,0);
lcd.setCursor(0,1);
delay(1000);
if (!mpu.begin()) {
lcd.setCursor(0,1);
while (1) {
delay(10);
delay(1000);
digitalWrite(buzzer, HIGH);
mpu.setHighPassFilter(MPU6050_HIGHPASS_0_63_HZ);
52
mpu.setMotionDetectionThreshold(1);
mpu.setMotionDetectionDuration(20);
reinitialized.
mpu.setInterruptPinPolarity(true);
mpu.setMotionInterrupt(true);
delay(250);
digitalWrite(buzzer, LOW);
lcd.clear();
void loop() {
sensor_analog1 = analogRead(sensor_pin1);
sensor_analog2 = analogRead(sensor_pin2);
sensor_analog3 = analogRead(sensor_pin3);
53
lmt = digitalRead(lmtv);
lcd.setCursor(0,0);
lcd.print("S:");
lcd.print(soil_moi);
lcd.print(" ");
lcd.setCursor(6,0);
lcd.print("R:");
lcd.print(rain_level);
lcd.print(" ");
lcd.setCursor(12,0);
lcd.print("W:");
lcd.print(water_level);
lcd.print(" ");
lcd.setCursor(0,1);
lcd.print("F:");
lcd.print(lmt);
lcd.print(" ");
54
Serial.print("123");
Serial.print(" ");
sensors_event_t a, g, temp;
xx = a.acceleration.x;
yy = a.acceleration.y;
lcd.setCursor(6,1);
lcd.print("X:");
lcd.print(xx);
lcd.print(" ");
lcd.setCursor(12,1);
lcd.print("Y:");
lcd.print(yy);
lcd.print(" ");
if(mpu.getMotionInterruptStatus()) {
sensors_event_t a, g, temp;
55
mpu.getEvent(&a, &g, &temp);
digitalWrite(buzzer, HIGH);
// Serial.print(xx);
// Serial.print(" ");
// Serial.print(a.acceleration.y);
// Serial.print(" ");
// Serial.print(a.acceleration.z);
// Serial.print(" ");
else{
digitalWrite(buzzer, LOW);
Serial.print(soil_moi);
Serial.print(" ");
Serial.print(water_level);
Serial.print(" ");
Serial.print(rain_level);
Serial.print(" ");
Serial.print(lmt);
56
Serial.print(" ");
Serial.print(xx);
Serial.print(" ");
Serial.print(yy);
Serial.println();
delay(750);
57
REFERENCES
58
8. Shen Jin, Song Jingling, Han Qiuyan, Wang Shengde, and YangYan,“A
Remote Measurement and Control System for Greenhouse Based on GSM-
SMS”, IEEE 8th International Conference on Electronic Measurement and
Instrument,pp. (45-82), 2007.
59
14. Sun, R.-G.; Wan, Z.; Sun, D.-C. “Greenhouse Temperature and Humidity
Intelligent Control System”, in Circuits, Systems, Signal and
Telecommunications,Proceedings of the 3rd WSEAS International
Conference on, Ningbo, China, pp. (120-125), (10–12) January 2009.
15. BeomJin Kang; DaeHeon Park; KyungRyung Cho; Changsun Shin;
SungEon Cho; JangWoo Park, "A Study on the Greenhouse Auto Control
System Based on Wireless Sensor Network," in Security Technology,
2008. SECTECH '08. International Conference on, pp.(41-44), (13-15)
December 2008.
60
23. C. F. Chiasserini and R. R. Rao, "A model for battery pulsed discharge with
recovery effect", Proc. IEEE Wireless Commun. Netw. Conf. (WCNC), vol. 2,
pp. 636-639, 1999.
24. N. Patwari and A. O. Hero, "Using proximity and quantized RSS for sensor
localization in wireless networks", Proc. 2nd ACM Int. Conf. Wireless Sensor
Netw. Appl., pp. 20-29, 2003.
25. I. Howitt, "Mutual interference between independent Bluetooth piconets",
IEEE Trans. Veh. Technol., vol. 52, no. 3, pp. 708-718, May 2003.
26. L. Feng et al., "Super-hydrophobic surface of aligned polyacrylonitrile
nanofibers", Angewandte Chemie, vol. 41, no. 7, pp. 1221-1223, 2002.
62