Professional Documents
Culture Documents
PROTOTYPE OF FLOOD DETECTION EQUIPMENT DESIGN (Chapter 2)
PROTOTYPE OF FLOOD DETECTION EQUIPMENT DESIGN (Chapter 2)
ENGLISH TASK
NIM : 2011011003
Supervisor 1 Supervisor 2
By saying thank God for the presence of Allah SWT, who has bestowed
His grace and guidance so that the writer can complete the final project with the
USING THE HC-SR04 BASED SENSORS ARDUINO NANO " With all
humility, the author realizes that writing assignments this thesis will not be
finished without the help, advice, guidance and direction from various parties.
1. Allah SWT, who has given His mercy and the way of ease so that
people in this day and age often throw garbage carelessly and do not care about
the surrounding environment. The number of large buildings can also cause
flooding due to reduced land that cannot absorb water. The influence of weather
can also cause flooding. And for that I have a solution to give a warning if there
will be a flood with the help of the HC-SR04 sensor as a detector to detect
distance. The purpose of making this final project is to help monitor the water
level to be careful in the danger of flooding. To find out if there is a flood, this
tool is able to detect if the water level exceeds the limit. The HC-SR04 sensor
works based on the principle of sound wave reflection, where the sensor emits
sound waves which then captures it with a time difference. This sensor is used
in the control process run by the Arduino nano microcontroller so that the results
of the data that have been detected by the HC-SR04 sensor are displayed to the
LCD and Buzzer will sound if it exceeds the water level that has been set.
Therefore, the loss caused is large, both in terms of material and loss of life,
it is proper that the flood problem needs serious attention and is a problem
for all of us. With the assumption that the problem of flooding is a general
problem, various parties should pay attention to things that can cause
control programs that require large funds needed to finance related works
security from the effects of floods at any time. With limited funds, flood
control must be carried out as optimally as possible and carried out according
required land will be even greater so that it also increases the economic value
land use.
Therefore, in densely populated areas, flood control needs to be
improved. With other controls, it aims to minimize the risk of harm/loss that
3. River drainage area: is a unitary area of the water system that is formed
naturally, where water will flow through the river and its tributaries. There
are people who call it the watershed (DAS), the catchment area (DTA).
5. Riverbank: an area located on both sides and along the river channel,
which is located between the edge of the river channel trough to the foot of
6. Retention area: a low area that is used to temporarily hold flood water and
that usually do not flood and secondly flood events occur due to runoff of
flood water from rivers because the flood discharge cannot be drained by
the river channel or the flood discharge is greater than the capacity of the
existing river flow. . Flood events themselves are not a problem, if they
do not interfere with human activities or interests and this problem arises
after humans carry out activities in floodplain areas, to reduce losses due
interested in designing and making a flood detector. As the title of this final
project
1. How to design and make a flood detection device using the HC-SR04
1. Create a program to read the water level with the HCSR04 sensor and
everyday life.
CHAPTER II
BODY
multimeter, this ic7805 circuit will issue a voltage of 5 volts with input above 6
volts to 35 volts. The result of measuring the voltage regulator 7805 is 5.12
volts.
been recognized properly and in a short time, it can be said that the
D0 5,11
D1 5,12
D2 0,00
D3 0,00
D4 0,06
D5 5,12
D6 5,12
D7 0,00
D8 5,11
D9 0,00
D10 5,10
D11 0,00
D12 0,00
This section only consists of a 2 x 16 character dot matrix LCD that functions
the LCD. The character display on the LCD is regulated by the EN pin,
RS and RW: The EN line is called Enable. This line is used to tell
LCD that you are sending data. To send data to the LCD, through the EN
program, a logic low “0” and set (high) must be made on the other two control
lines, RS and RW. The RW line is the Read/Write control line. When RW is
logic low (0), then the information on the data bus will be written on the LCD
screen. When RW has a high logic "1", then the program will read the memory
from the LCD. Whereas in general applications the RW pin is always given a
logic low ( 0 ).
on the LCD display. The program that is loaded into the Arduino
#include <LiquidCrystal.h>
Void loop() {
The above program will display the word “lcd test” in the first line of the 2x16 LCD display. In the
tool in this study, when the whole circuit is activated.
application of the hcsr-04 sensor as a water level detector so that it can be aware
of flooding.
#include <LiquidCrystal.h>
#define trigPin 12
#define echoPin 11
#define led 2
#define buzzer 4
} void loop() {
// Give a short LOW pulse first to make sure the pulse is HIGH
clean:
// duration is the time (in microseconds) from sender // From ping to receiving Echo off of an
object.
cm = (duration/2) / 29.1;
water=14.30-cm;
if(water<=0.9)
{ water=0; }
Serial.print(cm);
Serial.print(" || ");
Serial.println(water);
lcd.clear(); delay(1);
The above program is a program to find out whether the sensor is running
properly. The state of the sensor can be seen from the data sent from the
microcontroller to the computer via the USB port.
2.5 Results
measurement results were read in the form of the length of the digital signal
reflection. The read value will be converted to logic 0/1 and this logic will be
calculated using the counter contained in the Arduino, then the value will be
point to the end point by comparing the value on the standard with the
Below is a table of data from the experimental results at intervals of 2.0, 4.0,
6.0,8.0 and 11.0 centimeters and the measurement results are calculated to find
the average value to get the accuracy value of the measurement results.