ArticlePDF Available

Arduino Uno, Ultrasonic Sensor HC-SR04 Motion Detector with Display of Distance in the LCD

Authors:

Abstract and Figures

Motion detection has become one of the great areas of research in the world. Many activities are carried out in the presence of motion. One of the research focus has been the use of Arduino Uno microcontroller, Ultrasonic sensor, passive infrared sensor and many others to sense and measure distances. The goal is to measure and monitor human activity remotely, and using less manpower as much as possible. This study aimed at designing a sensor that can easily measure how far the object is, monitor change of distances as the object approach and display the results in the Liquid Crystal Display (LCD), give a light coded signal and a sound alarm. The hardware utilized included the Arduino Uno on a bread board interfaced with LCD, LEDs, Buzzer and Ultrasonic sensor. The program to run the circuit was developed using Arduino IDE and stored at the memory of the Arduino microcontroller. The study demonstrated that the designed sensor could be used to accurately determine the position of an approaching object and display the distance readings on the LCD. Simultaneously the sensor display visual LED signals set and color coded as for instance, distances less than 150 cm, 70 cm and 40cm corresponding to Green, Blue and Red LED lights respectively, while at the same time producing sound signals n a sound buzzer. Thus, this method of distance sensing and measurement is efficient and assures measurements of small distances precisely. This distance sensing and measurement system can get wide applications where proximity detection is required e.g. in industries and traffic departments.
Content may be subject to copyright.
Arduino Uno, Ultrasonic Sensor HC-SR04 Motion
Detector with Display of Distance in the LCD
Mutinda Mutava Gabriel
Department of Physical Sciences,
Chuka University
Kamweru Paul Kuria
Department of Physical Sciences,
Chuka University
Abstract- Motion detection has become one of the great
areas of research in the world. Many activities are carried out
in the presence of motion. One of the research focus has been
the use of Arduino Uno microcontroller, Ultrasonic sensor,
passive infrared sensor and many others to sense and measure
distances. The goal is to measure and monitor human activity
remotely, and using less manpower as much as possible. This
study aimed at designing a sensor that can easily measure how
far the object is, monitor change of distances as the object
approach and display the results in the Liquid Crystal Display
(LCD), give a light coded signal and a sound alarm. The
hardware utilized included the Arduino Uno on a bread board
interfaced with LCD, LEDs, Buzzer and Ultrasonic sensor.
The program to run the circuit was developed using Arduino
IDE and stored at the memory of the Arduino
microcontroller. The study demonstrated that the designed
sensor could be used to accurately determine the position of
an approaching object and display the distance readings on
the LCD. Simultaneously the sensor display visual LED
signals set and color coded as for instance, distances less than
150 cm, 70 cm and 40cm corresponding to Green, Blue and
Red LED lights respectively, while at the same time producing
sound signals n a sound buzzer. Thus, this method of distance
sensing and measurement is efficient and assures
measurements of small distances precisely. This distance
sensing and measurement system can get wide applications
where proximity detection is required e.g. in industries and
traffic departments.
Keywords: Arduino UNO, Motion, Ultrasonic sensor, LCD
I. INTRODUCTION
Population increase, lifestyle changes and economic
development has led to increase in human activity and
hence high demand of manpower and especially in cities all
over the world [1,2]. For example there is increasing need to
employ security officers at the gates to monitor the
movement of people which might be intruders [3,4], traffic
police in highways to monitor traffic, care givers in homes
for the old or sick [5], automatic doors [6], washing [7],
wireless Sensor-Based Driving Assistant for Automobiles
[8,9,10,11,12] and many others. Use of human to sense
motions and other human activities is prone to human error
and limitations. Some security officers have been found in a
serious case of corruption [13], theft from the company and
institutions since some guards end up taking some of the
company’s material home and of which it has led to the fall
of various companies like Kenya textile and Mumias sugar
company [14].
This among other reasons have necessitated automated
sensing that could be recorded for future reference and also
remote. Samuel Bango [15] was the first person to invent a
motion detector whereby he came up with a burglar alarm in
the early 1950s. Doppler Effect is the main principle upon
which Bango [15] motion detector is based on. Majority of
motion detectors today still employ the same principle for
example, use of the Doppler Effect to sense gestures [16].
Other sensors include IR sensors [17,18], ultrasonic sensors
[19,20,21] and microwave sensors [22] which by the change
in the frequencies they emit they are able to sense motion.
Several researchers have come up with motion detectors
techniques to cub insecurity amongst other applications
[23,24]. Some researchers have used Passive Infrared (PIR)
Sensors [25]. The study by Ervin et al. (2010) [25], used
Arduino Uno microcontroller to detect the motion of the
object or the intruder. The study was able to alert an
observer the presence of an intruder by producing a sound
signal using LEDs and Piezo Buzzer. However, they could
not display the distance between the intruder/ object and the
sensor to the LCD.
A study by Soni et al. (2017) [26], made a motion
detector using the ultrasonic sensor and Arduino Uno
microcontroller to detect motion and finally their study was
finally able to display the distance on the LCD. Their study
had some limitation since the sensor in that study had only a
visual signal, no sound or recorded signal. This implied that
their study could only apply when there is eye focus to the
LCD screen.
Another example of the research study used in motion
sensor was carried out by Edwards et. al. (2014) [27]. The
study was aimed to study a simple harmonic motion
detector using ultrasonic distance sensor and the Arduino
microcontroller. The study aimed at sensing the motion of
objects such as pendulum bob. This was to provide an
alternative or automatic study of the simple harmonic
motions. The study was successful since the parameters
such as determination of force of gravity, g, could be easily
measured automatically. However, the study had no other
interfaces such as Piezo Buzzer, LCD and LEDs
The findings of the mentioned studies in ref. 25,26 and
27 motivated this current study. The aim was to make an
attempt on motion detection using Arduino Uno, LEDs,
Piezo Buzzer, Ultrasonic sensor and finally give out sound
and recorded signals. The study was also to display the
records of distances on the LCD.
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
936
This study aims at designing a Motion detector with
distance display at the liquid crystal display and produce
sound alarm. The use of Arduino Uno, LCD, LEDs and
Piezo Buzzer is cheap since the designing of the circuit is
not sophisticated. Arduino is a low-cost and effective [28]
microcontroller. It uses readily available and cheap
appliances which can easily be found in the electronics
dealers. The language needed to program the
microcontroller is friendly since it uses a combination of C
and C++. Its storage is almost space less since together
with its components requires minimal space and can reduce
the congestion of workers like those of security men [29].
The Ultrasonic sensor works by producing ultrasound
waves that are reflected back after hitting an obstacle. The
time taken by the waves to and from the obstacle shall be
recorded in the microcontroller [30]. The Piezo Buzzer
produces a sound signal while the LCD produces the visual
results of the parameter expected (distance).
II. HARDWARE USED
1) Arduino Uno
The Arduino Uno is an open-source microcontroller
board based on the Microchip ATmega328P
microcontroller and developed by Arduino [31,32,33]. The
board is equipped with sets of digital and analog
input/output (I/O) pins that may be interfaced to various
expansion boards (shields) and other circuits. The board has
14 digital I/O pins (six capable of PW output), 6 analog I/O
pins, and is programmable with the Arduino IDE
(Integrated Development Environment), via a type B USB
cable. It can be powered by the USB cable or by an external
9-volt battery, though it accepts voltages between 7 and 20
volts. It is also similar to the Arduino Nano and Leonardo.
A good example of the Arduino Uno microcontroller is
shown in the figure 1.
The word " Uno " means "one" in Italian and was
chosen to mark the initial release of Arduino Software
[34,35]. The Uno board is the first in a series of USB-based
Arduino boards; it and version 1.0 of the Arduino IDE were
the reference versions of Arduino, which have now evolved
to newer releases. The ATmega328 on the board comes
preprogrammed with a bootloader that allows uploading
new code to it without the use of an external hardware
programmer. While the Uno communicates using the
original STK500 protocol, it differs from all preceding
boards in that it does not use the FTDI USB-to- serial driver
chip. Instead, it uses the Atmega16U2 (Atmega8U2 up to
version R2) programmed as a USB-to-serial converter.
Arduino Uno microcontroller is full set containing the
memory and the I/O serial ports which are used in
interfacing it with other devices like LCD, LEDs, Buzzer
and many others [36]. Once the program is made in the
computer, it is transferred to the Arduino chip using the
USB cable. The circuit to be interfaced with the
microcontroller is connected to it [37]. Arduino Uno in the
circuit controls all the functioning of the attached device
and make them operate as per the program Arduino
microcontroller has been used by several researchers
[25,26] to interface the devices in motion detector with
LEDs, Buzzers and LCD.
2) Ultrasonic Sensors
The HC-SR04 ultrasonic sensor (like the one shown in
figure 2) uses SONAR to determine the distance of an
object just like the bats do. It offers excellent non-contact
range detection with high accuracy and stable readings in an
easy-to-use package from 2 cm to 400 cm or 1” to 13 feet.
The operation is not affected by sunlight or black material,
although acoustically, soft materials like cloth can be
difficult to detect. It comes complete with ultrasonic
transmitter and receiver module.
Fig. 1. Ultrasonic sensor for ultrasonic wave production in motion
detection.
The ultrasonic sensor uses the reflection of sound in
obtaining the time between the wave sent and the wave
received. It usually sent a wave at the transmission terminal
and receive the reflected waves. The time taken is used
together with the normal speed of sound in air (340ms-1) to
determine the distance between the sensor and the obstacle.
The Ultrasonic sensor has been used by several researchers
[25,26] to sense the movements of the objects as they
approach it.
3) Liquid-Crystal Display (LCD)
Liquid-Crystal Display (LCD), shown in figure 3, is a
flat-panel display or other electronically modulated optical
device that uses the light-modulating properties of liquid
crystals combined with polarizers. Liquid crystals do not
Fig. 1. Figure 1:Arduino Uno microcontroller.
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
937
emit light directly, instead using a backlight or reflector to
produce images in color or monochrome. LCDs are
available to display arbitrary images (as in a general-
purpose computer display) or fixed images with low
information content, which can be displayed or hidden, such
as preset words, digits, and seven-segment displays, as in a
digital clock. They use the same basic technology, except
that arbitrary images are made from a matrix of small
pixels, while other displays have larger elements. LCDs can
either be normally on (positive) or off (negative), depending
on the polarizer arrangement. For example, a character
positive LCD with a backlight will have black lettering on a
background that is the color of the backlight, and a character
negative LCD will have a black background with the letters
being of the same color as the backlight. Optical filters are
added to white on blue LCDs to give them their
characteristic appearance.
Fig. 2. Liquid Crystal Display for displaying distances.
The Liquid Crystal Display is used to display the
distances according to the program in the Arduino
microcontroller. It displays the distances in meters or in
centimeters as per the set of the study. The LCD has been
used in displaying the distances from their research study
[26].
4) Piezo buzzers
Piezo buzzers, an example in figure 4, is a simple device
that can generate basic beeps and tones. They work by using
a piezo crystal, a special material that changes shape when
voltage is applied to it. If the crystal pushes against a
diaphragm, like a tiny speaker cone, it can generate a
pressure wave which the human ear picks up as sound.
Simple change the frequency of the voltage sent to the piezo
and it will start generating sounds by changing shape very
quickly [38].
Fig. 3. Piezo Buzzer.
Piezo Buzzer is also readily available in the market in
the most of the electronics dealers. It is a low and cost-
effective device which has capability of converting
mechanical energy into sound energy [39]. When the
ultrasonic sensor detects motion of the object, it activates
the piezo buzzer which produces the alarmed sound depend
on the frequency of the approaching object. It has been
used in various motions detectors in producing the sound
signals [25].
III. MATERIALS AND METHODS
A. Materials
The following hardware was used to design and
assemble a motion detector; 1 Arduino Uno, 1 Ultrasonic
sensor module (HC-SR04), 1 LCD (16*2), 1 9V battery or
source of power, Battery clip, 3 LEDs, 1 piezo Buzzer, 1,
10kΩ resister potentiometer, 1 Breadboard, Several jumper
wires, USB cable for programming, A computer for
programming only, 7, 330-ohm resistors.
B. Methods
The materials were connected as follows. The Arduino
Uno was fixed to the breadboard and the jumper wires were
connected as illustrated in the following sections. One
jumper wire from the 5-volt pin on the Arduino was
connected to the to the bottom channel of the breadboard.
Another jumper wire from a ground pin on the Arduino was
connected to the upper channel of the breadboard. Piezo
Buzzer has two terminals. Positive and negative. The
positive terminal was connected to the pin 13 at the Arduino
while the negative part was interfaced with 330 Ohms
resister and connected to the lower channel of the
breadboard. The ultrasonic sensor has four pins that’s Vcc,
Trig, Echo and ground. Echo was connected to pin number
11 while Trig being connected to pin number12 in the
Arduino Uno. Vcc was connected to the upper channel while
the Ground (Gnd) to the lower channel of the breadboard.
The study utilized three LEDs one red, 1blue and greens.
LED1 was connected to the pin number 8 and LED2 to pin
number 7, LED3 to pin number 6. The negative terminal
was interface with the 330 Ohms resisters to the lower
channel of the breadboard as shown in figure 5. The jumper
wires connected to the LEDs was connected to the lead on
the right, while the left lead of the LED connected to the
ground channel via a 330-ohm resistor. LCD has 14
terminals which were connected to the Arduino as: Pin 12 to
Pin 2, Pin 11 to pin3, Pin 5 to pin 4, Pin 4 to pin 5, Pin 3 to
pin 9, Pin 2 to pin 10 as shown in figure 5. The 5V pin from
the Arduino was connected to the positive line on the
breadboard. Also, the ground pin from the Arduino was
connected to the negative part of the breadboard. For the re-
set of the intensity of the LCD screen, a 10kΩ potentiometer
was interfaced to the breadboard. Potentiometer was
connected to the breadboard, the positive terminal to the
positive pin and the negative terminal to the ground pin to
the ground pin as shown in the figure 5. The code was
generated using the computer with the appropriate Arduino
IDE program and sent to the Arduino microcontroller for
running the circuit. The data for the study were collected
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
938
and compared to the actual distance. The object from whose
motion was to be detected was moved towards the sensor
and the display of the distances to the LCD screen was
observed. The displayed distances were compared from the
actual distances from the meter rule.
IV. RESULTS AND DISCUSSION
This study sought to first design of a motion detector to
detect approaching objects and raise a light (from an LED)
and a sound alarm (from a sound buzzer). To achieve this,
the components that include the Arduino Uno, resistors,
LEDs, buzzer, LCD and ultrasonic sensor were fixed to the
breadboard and connected as described in chapter three.
Figure 5, shows the connections in progress. A jumper wire
was connected from the 5 volts port from the Vcc port in the
microcontroller chip to the positive channel of the
breadboard. Another cable was grounded to the negative
terminal of the breadboard from the GND port of the chip.
Fig. 4. Figure 2; Circuit for arrangement of resistors, LEDs, buzzer, LCD
and ultrasonic sensor.
A piezo buzzer having two terminals, positive terminal
was connected to the pin 13 at the Arduino while the
negative part was interfaced with 330 Ohms resister and
connected to the lower channel of the breadboard. When the
power source was connected as in figure 6 piezo buzzer
produced a single tone signal to indicate that power was
flowing through it. The limit set for the Piezo Buzzer was to
produce the sound alarm at the distance greater than 0cm
and less than 150cm.
The ultrasonic sensor having four pins, Echo was
connected to pin number 11 while Trig being connected to
pin number12 in the Arduino Uno. Vcc was connected to
the upper channel while the Ground (Gnd) to the lower
channel of the breadboard. Before enclosing the assembly
in a casing, the complete connection as shown in Figure 6
was connected to a power supply, to confirm if it’s working
as expected. When power was applied as in figure 6, the
piezo buzzer produced continuous sound alarm.
Fig. 5. A powered circuit for motion detector with LEDs, Buzzer,
Ultrasonic sensor, Arduino microcontroller
LED1-RED was connected to the pin number 8 and
LED2-BLUE to pin number7, LED3-GREEN to pin
number 6. The negative terminal for all the LEDs each was
interface with the 330 Ohms resisters to the lower channel
of the breadboard. When the power was applied, the three
LEDs produced the light as in Figure 6 and as per the
program. Green LED produced light when the object was at
150.5cm, Blue LED when the object was 70.2 cm and Red
LED when the object was at 40cm.
LCD has 14 terminals which were connected to the
Arduino as: Pin 12 to Pin 2, Pin 11 to pin3, Pin 5 to pin 4,
Pin 4 to pin 5, Pin 3 to pin 9, Pin 2 to pin 10 as shown in
figure 5. The 5V pin from the Arduino was connected to the
positive line on the breadboard. Also, the ground pin from
the Arduino was connected to the negative part of the
breadboard. For the re-set of the intensity of the LCD
screen, a 10kΩ potentiometer was interfaced to the
breadboard. Potentiometer was connected to the breadboard,
the positive terminal to the positive pin and the negative
terminal to the ground pin to the ground pin as in figure 7.
When the power was connected to the circuit, LCD
produced a green light and it displayed distances as in figure
7 and 8. The program to run the circuit shown in figure 5
above was compiled in Arduino IDE and upload to the
Arduino microcontroller chip.
The study also tested the display of the LCD, its
brightness that could be adjusted, and the accuracy of the
displaced distance versus the actual object distance. The
Figure 7 shows an object distance of 187 cm on display.
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
939
Fig. 6. A motion detector with display of distances on the Liquid Crystal
Display.
Once confirmed that everything was working as
expected, the connections were assembled into a single unit
as shown in Figure 8.
Fig. 7. A motion detector in a container for convenient data collection.
An object was moved along the tape measure as shown
on figure 9. The set up in figure 9was set and the carton
drawn using the rope. The values from the tape were
compared to the corresponding data from the LCD and the
readings in the LCD were tabulated in the table 1.
Fig. 8. A motion detector in data collection.
Table 1 comprise of the Actual values recorded from the
tape measure, values displayed on the LCD, Absolute
errors, relative errors and the percentage errors tabulated in
excel [40]. Absolute errors were obtained from the
difference between the values from the tape measure-actual
values and the values recorded from the LCD-approximated
values. Relative errors were obtained from dividing the
absolute errors by the actual values. Percentage errors were
obtained from the product of relative errors by 100%.
TABLE I. DISTANCE VALUES, MEASURED VERSUS DISPLAYED IN
THE SENSOR
S/No.
Tape measure
Distance
reading (cm)
Recorded
data from
the LCD
(cm)
Absolute
Errors
Relative
Errors
% Errors
1
309.5
309
0.5
0.001292825
0.1292825
2
295.3
296
0.7
0.002370471
0.2370471
3
283
283
0
0
0
4
273.6
274
0.4
0.001461988
0.1461988
5
260.2
260
0.2
0.00076864
0.076864
6
239.5
239
0.1
0.000418235
0.0418235
7
219.8
218
1.8
0.008189263
0.8189263
8
195.2
195
0.2
0.00102459
0.102459
9
170.3
170
0.3
0.001761597
0.1761597
10
159
158
1
0.006289308
0.6289308
11
149
150
1
0.006711409
0.6711409
12
140.5
140
0.5
0.003558719
0.3558719
13
129.2
129
0.2
0.001547988
0.1547988
14
113.5
113
0.5
0.004405286
0.4405286
15
104
103
1
0.009615385
0.9615385
16
94.6
93
1.6
0.016913319
1.6913319
17
82.8
82
0.8
0.009661836
0.9661836
18
74.4
74
0.4
0.005376344
0.5376344
19
70.2
70
0.2
0.002849003
0.2849003
20
62.8
62
0.2
0.004016064
0.4016064
21
49.8
50
0.5
0.012345679
1.2345679
22
40.5
40
0.5
0.012345679
1.2345679
23
20
20
0
0
0
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
940
The distances recorded from the LCD had a small deviation
from the actual distances from the meter rule as shown in
table 1. The values recorded from the LCD deviated from
the actual values from the tape measure by small margins as
shown in the column of Absolute errors. The system is
better than manual readings of distances. The possible
sources of errors might be as a result of; (1) Instrumental
errors, (2) Observation errors and (3) Variation of natural
phenomena is also a possible source of error.
LEDs interfaced to the Arduino microcontroller were
able to blink giving out the light signals. The order of the
light signal was set from the Green LED being the first one
to light followed by Blue LED and finally Red LED
produced according to the program. The Green LED was set
to produce continuous light signal at the distance
<=150.5cm, Blue LED at <=70.2cm and Red LED at a
distance <=40cm. The results obtained from the project
slightly below the set parameters from the program.
V. SUMMARY, CONCLUSION AND
RECOMMENDATION
In this study, a tool to detect motion of objects, display
the recorded distances on the LCD screen, produce a
recorded sound alarm by Piezo Buzzer and also light by
LEDs was assembled. The circuit was successfully
connected and the program was sent to the Arduino
microcontroller chip to run the circuit. The ultrasonic sensor
was able to send the ultrasonic sound waves to the
approaching object and the alarm sound from the piezo
buzzer was produced. Piezo Buzzer was set to produce
sound at different levels. The limit set for the Piezo Buzzer
was to produce the sound alarm at the distance greater than
0cm and less than 150cm. The results were correct since for
the distance equal or greater than 150cm and the distance
equal to 0cm produced no tone from the piezo buzzer.
LEDs were also set to produce light signal in a particular set
of distances starting with Green LED followed by Blue
LED and lastly Red LED. On the outcome, LEDs produced
light as they were expected. The LCD was also expected to
display the variation of distances as the object approaches
the ultrasonic sensor. When the power was connected to the
set-up, there were values recorded in the LCD screen
indicating that the connection was right. The intensity of the
screen was expected to be controlled by the potentiometer
of which the same was approved.
This tool can be custom made to fit various applications
such as being fitted in cars to aid when reversing, could tell
the level of water in a well or storage tanks etc. The
technique can also be implemented with the GSM for
proper remote monitoring. The technique can also be
recommended to be used in the tunnels such as train or
vehicle tunnels to give signal in case there are
complications.
REFERENCES
[1]. P.A. Balland, C. Jara-Figueroa, S.G. Petralia, M.P. Steijn, D.L.
Rigby, C.A. Hidalgo. Complex economic activities concentrate in
large cities. Nature Human Behaviour. 2020 Jan 13:1-7.
[2]. S.T. Hassan, M.A. Baloch, N. Mahmood, J. Zhang. Linking
economic growth and ecological footprint through human capital
and biocapacity. Sustainable Cities and Society. 2019 May
1;47:101516.
[3]. M. Sathishkumar, S. Rajini. Smart surveillance system using pir
sensor network and gsm. International Journal of Advnced
Research in Computer Engineering & Technology. 2015 Jan;4(1).
[4]. E.E.Tanner-Smith, B.W. Fisher, L.A. Addington, J.H. Gardella.
Adding security, but subtracting safety? Exploring schools’ use of
multiple visible security measures. American journal of criminal
justice. 2018 Mar 1;43(1):102-19.
[5]. A. Hall, C.B. Wilson, E. Stanmore, C. Todd. Implementing
monitoring technologies in care homes for people with dementia:
a qualitative exploration using normalization process theory.
International journal of nursing studies. 2017 Jul 1;72:60-70.
[6]. T. Crowe. Crime prevention through environmental design.
Butterworth-Heinemann; 2000 Apr 13.
[7]. A.K. Shrivastava, A.S. Verma, S.P. Singh. Partial automation of
the current sewer cleaning system. Invertis Journal of Science and
Technology. 2008;1(4):261-5.
[8]. S.P. Bhumkar, V.V. Deotare, R.V. Babar. Accident avoidance and
detection on highways. International Journal of Engineering
Trends and Technology. 2012 Mar;3(2):247-52.
[9]. C. Galeriu, S. Edwards, G. Esper. An Arduino investigation of
simple harmonic motion. The Physics Teacher. 2014
Mar;52(3):157-9.
[10]. D. G. Sabuj, M. S.Islam, A.H. Akond, & R.S. Amin. Design and
Implementation of Water Depth Measurement and Object
Detection Model Using Ultrasonic Signal System, International
Journal of Engineering Research. (2012, Octomber) Volume 4,
Issue 3, PP. 62-69.
[11]. C. So-In, C. Phaudphut, S. Tesana, N. Weeramongkonlert, K.
Wijitsopon, U. KoKaew, B. Waikham, S. Saiyod. Mobile animal
tracking systems using light sensor for efficient power and cost
saving motion detection. In2012 8th International Symposium on
Communication Systems, Networks & Digital Signal Processing
(CSNDSP) 2012 Jul 18 (pp. 1-6). IEEE.
[12]. S. Nanda, S. Manna, A.K. Sadhu, A. Konar, D. Bhattacharya.
Real-time surface material identification using infrared sensor to
control speed of an arduino based car like mobile robot.
InProceedings of the 2015 Third International Conference on
Computer, Communication, Control and Information Technology
(C3IT) 2015 Feb 7 (pp. 1-6). IEEE.
[13]. P. Karari. Traffic Police Corruption, Vehicular Emissions and
Disease: The Case of Kenyan Smoking Vehicle.
[14]. A.K. Wangara. The collapse of Mumias Sugar Company.
Ureport. Retrieved from
https://www.standardmedia.co.ke/ureport/story/2001238878/the-
sugar-crisis-in-kenya-and-the-collapse-of-mumias-sugar-
company. (2017, May 07)
[15]. H. Otani, inventor; NIPPON PROSENSOR CO Ltd, assignee.
Burglar alarms utilizing ultrasonic waves. United States patent
US 4,123,748. 1978 Oct 31.
[16]. S. Gupta, D. Morris, S. Patel, D. Tan. Soundwave: using the
doppler effect to sense gestures. InProceedings of the SIGCHI
Conference on Human Factors in Computing Systems 2012 May
5 (pp. 1911-1914).
[17]. T. Agarwal. Introduction to Motion Detector Circuit Diagram
with Working Principle. (2013).
[18]. P. Zappi, E. Farella, L. Benini Tracking motion direction and
distance with pyroelectric IR sensors. IEEE Sensors Journal. 2010
Jul 8;10(9):1486-94.
[19]. A. Carullo, M. Parvis. An ultrasonic sensor for distance
measurement in automotive applications. IEEE Sensors journal.
2001 Aug 1;1(2):143.
[20]. H. Zhao, Z. Wang. Motion measurement using inertial sensors,
ultrasonic sensors, and magnetometers with extended kalman
filter for data fusion. IEEE Sensors Journal. 2011 Aug
25;12(5):943-53.
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
941
[21]. S. Monisha, R. Ratan, S.K. Luthra. Design & Development of
Smart Ultrasonic Distance Measuring Device. International
Journal of Innovative Research in Electronics and
Communications (IJIREC). 2015;2(3):19-23.
[22]. K. Shrivastava, A. Verma and S.P. Singh. Partial automation of
the current sewer cleaning system,Invertis Journal of Science and
Technology, Vol. 1, No. 4, 2008, pp. 261-265.
[23]. H.F. Chong and D.W. Ng. Development of IoT device for traffic
management system. In2016 IEEE Student Conference on
Research and Development (SCOReD) 2016 Dec 13 (pp. 1-6).
IEEE.
[24]. A. Hall, C.B. Wilson, E. Stanmore, C. Todd. Implementing
monitoring technologies in care homes for people with dementia:
a qualitative exploration using normalization process theory.
International journal of nursing studies. 2017 Jul 1;72:60-70.
[25]. F. Ervin. Arduino-based Object Detection System. Project Final
Report. 2010 Apr 27.
[26]. N. Soni, S. Maheshwari, B.K. Sahu, B. Jain, G. Shrivastava.
Distance Measurement Using Ultrasonic Sensor and Arduino.
International Journal of Engineering Science and Computing.
2017;7(3):1-2.
[27]. A. Buachoom, A. Thedsakhulwong, S. Wuttiprom. An Arduino
board with ultrasonic sensor investigation of simple harmonic
motion. InJournal of Physics: Conference Series 2019 Nov (Vol.
1380, No. 1, p. 012098). IOP Publishing.
[28]. A.M. Muhammad, G.M. Janice. The 8051 Microcontroller and
Embedded System”, Pearson Education. 2000. Retrieved on 13th
April, 2016 from https://www.elprocus.com/motion-detector-
circuit- with-working-description-and-its-applications/
[29]. S. Hirata, M.K. Kurosawa, T. Katagiri. Accuracy and resolution
of ultrasonic distance measurement with high-time-resolution
cross-correlation function obtained by single-bit signal
processing. Acoustical science and technology. 2009 Nov
1;30(6):429-38.
[30]. V. Magori. Ultrasonic sensors in air. In1994 Proceedings of IEEE
Ultrasonics Symposium 1994 Oct (Vol. 1, pp. 471-481). IEEE.
[31]. Arduino, S. A. (2015). Arduino. Arduino LLC.
[32]. https://www.arduino.cc/
[33]. Y.A. Badamasi. The working principle of an Arduino. In2014
11th international conference on electronics, computer and
computation (ICECCO) 2014 Sep 29 (pp. 1-4). IEEE.
[34]. A. Anil, D. Mohan, P. Raj. Area calculation by using adxl335
and ultrasonic distance sensor.
[35]. A.I. Bugaje, A.Z. Loko, U. Ismail, A. Samuel. Design and
implementation of an unmanned ground vehicle for fumigation
purpose. Int J Eng Trends Technol, SharjahUAE. 2015
Dec;30(9):440-3.
[36]. L. Louis. Working Principle Of Arduino And U Sing It. Int. J.
Control. Autom. Commun. Syst. 2016;1:21-9.
[37]. G. Organtini. Arduino as a tool for physics experiments.
InJournal of Physics: Conference Series 2018 Sep (Vol. 1076,
No. 1, p. 012026). IOP Publishing.
[38]. F. ikder, D. Sarkar (2017). Log-sum distance measures and its
application to human-activity monitoring and recognition using
data from motion sensors. IEEE Sensors Journal, 17(14), 4520-
4533.
[39]. A. Jain (2012). Insight - How Piezo Buzzer works. Engineers
Garage. Retrieved on 13th April, 2016 from “Basic circuit
Analysis” by
k.v.vmurthyhttp://www.engineersgarage.com/insight/how-piezo-
buzzer-works
[40]. Mac OS X. définition-Microsoft Excel.
International Journal of Engineering Research & Technology (IJERT)
ISSN: 2278-0181http://www.ijert.org
IJERTV9IS050677 (This work is licensed under a Creative Commons Attribution 4.0 International License.)
Published by :
www.ijert.org
Vol. 9 Issue 05, May-2020
942
... The application notifies users both before and upon reaching the endpoint of the titration. This innovative approach empowers colorblind and visually impaired students to actively engage in the typical laboratory task of titration (Gabriel & Kuria, 2020). ...
... It is capable of measuring pH levels, detecting color changes and determining the volume of solutions. A previous study constructed a similar cost-effective Arduino-based pH sensors, using universal pH paper , a Smartphone Aid for Color-Blind and Visually Impaired Students to actively perform a routine laboratory activities of titration (Bandyopadhyay & Rathod, 2017) and Arduino Uno, Ultrasonic Sensor Motion Detector with Display of Distance in the LCD (Gabriel & Kuria, 2020). ...
Article
Full-text available
This study developed a talking Arduino-based device tailored to enhance the teaching and learning of chemical titration reactions and ion identification. The device was designed to sense colors, measure pH and determine the volume of solutions. The study employed the experimental design, using a chemistry achievement test as quantitative data. Sixteen BVI students and their two chemistry teachers from two secondary schools were purposively selected to participate in the study. A three-in-one Arduino-based device, capable of detecting colors, measuring volume and pH was developed. The study revealed that the cost-effective talking Arduino device significantly enhanced students' performance in chemistry, particularly in acid-base titration and ion identification. Notably, the learners improved their performance in the post-test and there was a significant difference in the mean scores between the pre-and post-tests, following the intervention using the device (p < 0.05). Both teachers and BVI students confirmed that the device motivated the students to engage in chemistry using other sensory modalities (tactile and auditory) to perform hands-on lab activities. The study recommends that educational authorities equip the chemistry school laboratories with adaptive devices to facilitate effective chemistry teaching and learning with the BVI learners.
... Data-data ini akan diteruskan menuju mikrokontroller Arduino Uno yang selanjutnya memberikan perintah pada komponen aktuator seperti relay, LCD, motor DC, lampu indikator, dan buzzer. Power supply sebagai sumber tegangan akan mengalirkan arus listrik, sementara motor DC akan men-transfer fluida sesuai data hasil pembacaan sensor yang ditampilkan oleh LCD[12,13].Gambar 2. Diagram blok system2.4. Perancangan DetailMembuat model 3d kerangka alat beserta peletakan komponen-komponen elektronika yang digunakan sebagai sistem kontrol alat dengan menggunakan bantuan software CAD seperti tampak pada Gambar 3. bahwa alur jalannya sistem dimulai dengan terjadinya proses pemisahan yang dimonitoring oleh sensor turbidity pada tabung primary dengan mendeteksi kadar kekeruhan fluida di dalamnya[14]. ...
Article
Pencemaran lingkungan maritim selalu menjadi isu strategis dimana peningkatan produksi kapal turut memicu peningkatan pencemaran lingkungan maritim akibat aktivitas kapal seperti pembuangan air bilga/limbah minyak kapal. MARPOL 73/78 Annex I, 1978, Regulation 16 mensyaratkan bahwa air lambung kapal yang dipompa kembali ke laut harus memiliki konsentrasi minyak tidak lebih dari 15 ppm sehingga air limbah akan melewati pemisah air berminyak (oily water separator) untuk mengurangi tingkat partikel minyak air agar tidak menimbulkan pencemaran. Di samping itu alat peraga menjadi salah satu metode pembelajaran yang membantu peserta didik memahami permesinan di atas kapal. Sampai saat ini, studi mengenai purwarupa oily water separator dengan menggunakan prinsip metode filtrasi belum pernah dilakukan. Pada penelitian ini, karbon aktif dipilih sebagai media filtrasi dalam proses pengujian. Beberapa komponen elektronika seperti sensor TDS dan sensor turbidity juga digunakan dalam penelitian. Tujuan dari penelitian ini adalah untuk mengetahui efektivitas kinerja alat peraga dimana sampel uji melalui dua tahap proses pemisahan, yaitu melalui proses filtrasi dan tanpa proses filtrasi. Hasil dalam penelitian ini diperoleh nilai persentase keberhasilan atau efektivitas kinerja alat sebesar 61,1%.
... Sensor ultrasonik bekerja dengan mengirimkan pulsa ultrasonik kurang lebih 40 KHz,kemudian memantulkan kembali pulsa gema tersebut dan menghitung waktu yang dibutuhkan dalam satuan mikrodetik, Kita dapat memicu pulsa secepat 20 detik.1 kali per detik dan dapat secara akurat menemukan lokasi objek yang berjarak 3 meter. [13] ...
Article
Sistem pendeteksi kekosongan air minum di kandang ayam yang berbasis Internet of Things (IoT) berkonsentrasi pada pengawasan suplai air minum unggas peternakan yang efektif secara real time. Kesehatan dan produktivitas ayam sangat bergantung pada ketersediaan air minum yang memadai. sebuah inovasi untuk mempermudah peternak dalam memantau level air di kandang ayam. Sistem ini terdiri dari sensor ultrasonik yang digunakan untuk mendeteksi level air, mikrokontroler untuk mengirimkan data ke server cloud, server cloud untuk menyimpan data yang dikirimkan ke peternak jika level air telah mencapai batas minimum. Dengan menggunakan sistem ini, peternak dapat memantau secara real time level air di kandang ayam dan dapat segera mengambil tindakan jika level air sudah mencapai batas minimum yang ditentukan. sebagai teknologi utama untuk pemantauan otomatis dan komunikasi data secara real time. IoT memungkinkan perangkat sensor untuk mendeteksi level air secara terus-menerus dan mengirimkan informasi ke platform pemantauan yang dapat diakses peternak. Ketika level air turun di bawah ambang batas tertentu, sehingga peternak dapat melakukan tindakan pengisian ulang dengan cepat. Dengan peran ini, IoT membantu mengotomatisasi proses pemantauan, meningkatkan efisiensi operasional. Hasil pengujian menunjukkan bahwa sistem deteksi IoT dapat mendeteksi kekosongan tabung air ayam dengan akurasi yang cukup tinggi. Penggunaan teknologi IoT dalam pertanian unggas
... HC-SR04 Ultrasonic Sensor Module SONAR is used by the HC-SR04 ultrasonic sensor to calculate distance [15],shown in Fig. 3. From 2 to 400 cm, it provides good non-contact range detection with consistent readings and high accuracy. An ultrasonic transmitter and receiver module are included. ...
Article
Full-text available
Overflow and excessive use are two major causes of water waste in daily life. Additionally contributing to the rate of water waste is overflow from overhead tanks. A crucial component that lessens human intervention in preventing such circumstances is the use of an automatic water level control mechanism. In this research, we suggest an intelligent system to regulate the water level and the process of turning on and off. The water level is detected by this method using an ultrasonic sensor and an Arduino. The water level is calculated in percentage based on the sound the water makes, and the result is displayed on the LCD screen. The water level is computed up to 100%. The relay switch attached to this system will automatically turn on and off when the water level exceeds the preset algorithmic value, which is then displayed on the LCD screen. When the water level falls to 0%, it will activate automatically, and once it reaches 100%, it will switch off. Additionally, we will observe that the pump will not operate in the absence of a water source to fill the tank since air will enter the pump and cause damage if it runs without water. Under these circumstances, the LCD panel will display the words "dry protection," which refers to the condition. Given that it would make it simpler for the user to fill the tank without assistance, the results showed that the automatic water level control device employing ultrasonic technology was effective based on readings that were practically monitored during the project's operation.
... Sensor ultrasonik memiliki empat pin yaitu vcc, gnd, tring, dan echo. Prinsip kerja dari sensor ultrasonik adalah memanfaatkan pantulan gelombang bunyi ultrasonik dengan frekuensi sekitar 20 kHz [14], [15]. ...
Article
Full-text available
Waste is the most common problem in everyday life. Waste that is scattered and piled up can become a hotbed of disease, especially during the current Covid-19 pandemic. In this study purpose to design and build a trash can works automatically. The method in design and build an automatic trash can is using waterfall method. The trash can designed using Arduino Uno microcontroller, HC-SR04 sensor and SG90 servo motor. The automatic trash can works is to detect the distance then processed by the arduino microcontroller and so SG90 servo motor will move to open and close the trash can automatically. The result of this research is that the design of the trash can can be opened with an object distance of less than 50 cm and will close for pause of 5 seconds.
... Microcontrollers or development boards, including the ESP32 or Raspberry Pi, can be used to interface with the ultrasonic sensor and process the measurements. [22] JavaScript plays a crucial role in controlling and processing the signals, particularly when using a server environment such as Node.js or a web server running on the ESP32. In these setups, JavaScript can handle the signal processing from the ultrasonic sensor, manage data flow, and interface with the microcontroller to interpret and act upon the sensor data. ...
Article
Background and Objectives: The Tambaklorok fishing village area, located on the northern coast of Semarang City, Indonesia, is susceptible to sea level fluctuations, which often lead to tidal flooding and seawater encroaching into residential areas. Consequently, a seawater flood detector (rob) is needed for effective disaster mitigation for affected communities. This study aims to implement a disaster mitigation system by installing an IoT-based Seawater Flood (Rob) Early Warning System to reduce disaster risks and their impacts on the community. Methods: The IoT-based Early Warning System is designed to detect floods by monitoring sea level height parameters. Results: IoT-based devices measure sea level using ultrasonic sensors, with the readings processed by a microprocessor. The data is then periodically analyzed and transmitted to an application in real-time. This technology allows for real-time information dissemination through web applications and alerts in the form of sirens. These warnings enable residents to evacuate and move to safer areas. The siren alerts are categorized into two levels: Alert 1 indicates that seawater is approaching the land boundary, while Alert 2 signals that water has begun to enter residential areas. Additionally, designated evacuation zones will guide affected communities to safer areas. Conclusion: The installation of an IoT-based Early Warning System delivers real-time information to help mitigate the impact of rising sea levels (rob) in the Tambak Lorok fishing village community.
Article
Full-text available
Resumo A placa Arduino foi utilizada em combinação com os sensores HC-SR04 e DHT11 para medir o comprimento de duas diferentes mangueiras de borracha através do guiamento de ondas ultrassônicas. Os experimentos consistiram em aferir os comprimentos levando em consideração a correção e a não correção da temperatura (T) e da umidade relativa (U.R.) do ambiente. Os dados foram comparados com aqueles obtidos com uma trena de fita comercial (TFC), cujos valores de referência medidos foram L 1,ref = (103,6 ± 0,5) cm e L 2,ref = (206,5 ± 0,5) cm. Os resultados mostraram que ao introduzir a correção, os valores se aproximavam daqueles computados com a TFC. Comprimentos iguais a L 1 = (97,5 ± 0,6) cm e L 2 = (195,7 ± 0,7) cm foram determinados para o cenário não-corrigido. Já para o cenário onde a correção foi implementada, as leituras médias foram L 1 (T,U.R.) = (101,7 ± 0,9) cm e L 2 (T,U.R.) = (204,6 ± 0,7) cm. Em âmbito geral, podemos notar que tais resultados foram mais próximos aos de referência, indicando diferenças de 1,8% e 0,92%, respectivamente. Por outro lado, os valores não compensados estiveram em torno de 5% aquém dos medidos com a TFC. Os testes estatísticos corroboraram os resultados experimentais sugerindo que a regressão linear simples (RLS) não se apresentou adequada para as medidas não corrigidas. No entanto, ao serem levadas em consideração T e U.R. nas análises estatísticas, a RLS teve seus pressupostos atendidos e, assim, foi mostrado que esses preditores http://periodicos.unb.br/index.php/rpf 66
Article
Full-text available
Strengthening healthcare services is the first step to improving children's lives, and improving primary healthcare is a key part of this. Individuals can be involved in their healthcare by using personal health information systems, which provide engaging medical tools to the public. Our goal is to provide a smart system with a GSM network that can fully monitor the health and safety of kindergarten children. This system works using GSM technology, a computer, temperature and heartbeat sensors, and an LCD screen. When the system detects an odd temperature or heart rate, it immediately alerts the parents through the GSM network. Our younger students' health and safety are protected by this reliable method, which works well for kids of all ages and has been thoroughly tested and proven.
Conference Paper
Full-text available
An Arduino, one of the most popular microcontroller platforms, is widely used in teaching and learning STEM. It is really open source software and hardware, huge community, low-cost boards and peripherals, and simple programming language. This research aims to develop an Arduino-based physics investigation of the simple harmonic motion (SHM) of mass on a spring. This rich cross-curricular STEM activity integrates electronics, computer programming, physics, and mathematics in a way that is both experimentally exciting and intellectually rewarding. The experimental data are collected with the help of an HC-SR04 ultrasonic distance sensor and an Arduino Uno board. The data are then graphed and analyzed using Microsoft Excel in real-time. The experiment data can be used to investigate Hooke’s law. The elastic constant of the spring, k = 16.54 N/m, is very close to the value determined from the period of the SHM. This Arduino-based investigation of SHM can be helped the students to improve both their experimental and theoretical skills.
Article
Full-text available
Human activities, such as research, innovation and industry, concentrate disproportionately in large cities. The ten most innovative cities in the United States account for 23% of the national population, but for 48% of its patents and 33% of its gross domestic product. But why has human activity become increasingly concentrated? Here we use data on scientific papers, patents, employment and gross domestic product, for 353 metropolitan areas in the United States, to show that the spatial concentration of productive activities increases with their complexity. Complex economic activities, such as biotechnology, neurobiology and semiconductors, concentrate disproportionately in a few large cities compared to less--complex activities, such as apparel or paper manufacturing. We use multiple proxies to measure the complexity of activities, finding that complexity explains from 40% to 80% of the variance in urban concentration of occupations, industries, scientific fields and technologies. Using historical patent data, we show that the spatial concentration of cutting-edge technologies has increased since 1850, suggesting a reinforcing cycle between the increase in the complexity of activities and urbanization. These findings suggest that the growth of spatial inequality may be connected to the increasing complexity of the economy. Balland et al. use data on scientific papers, patents, employment and GDP for 353 metropolitan areas in the United States to show that economic complexity drives the spatial concentration of productive activities in large cities.
Article
Full-text available
Arduino is a widely used open-source platform composed of both hardware and software tools that can be very useful in a physics laboratory. Its low price, the large availability of sensors and transducers, its ease of use and its open nature makes it a perfect tool to involve students in active and cooperative learning. In this paper we show a few examples of what can be done using an Arduino and some sensor, and propose a template for documenting activities.
Conference Paper
Full-text available
Traffic congestion is a major issue that happens across urban cities around the world. In 2015, annual economic losses of Malaysia caused by traffic congestion is estimated about RM20 billion. Fixed cycle traffic light system (TLS) is first introduced on road intersection to solve traffic congestion. However, fixed cycle TLS in unable to cope with dramatically increase of registered vehicles. In this paper, development of Internet of Things (IoT) device for traffic management system is proposed. An Intel Edison collects real-time traffic flow and communicate with Microsoft Azure IoT cloud server. The cloud server assign priorities to each road bound based on their current traffic volume. Green light phase time (GLPT) is then calculated utilizing a dynamic algorithm. Simulation results showed that dynamic cycle TLS reduces queue length and waiting time on the road intersection by 68% and 67% respectively. Additionally, a monitoring application is designed to ease traffic officer in monitoring real-time traffic flow.
Article
Full-text available
This paper focuses on the design and implementation of an unmanned ground vehicle (UGV) for fumigation purpose. An Arduino Uno board, four DC motors, one servo motor, sprayer and Bluetooth module were used for the successful testing of the system. The Arduino Uno board with an on board ATmega328P microcontroller was used to serve as the entire brain of the system which holds the C code that controls the robot car movements, the spraying and the rotation of the sprayer. The Bluetooth module was used to establish a wireless control of the vehicle, the spraying and sprayer tank rotation. Consequently, with this kind of system presented in this paper, the fumigation or spray of pesticide, insecticide on agricultural farmlands and hostile animals’ like snakes can be done easily by sending the vehicle to do the spray without any human spraying, thereby reducing the dangers of human exposure to pesticides during spraying. The system prototype designed was tested under different case scenarios to verify its reliability. Index term- Arduino Uno, Bluetooth module, DC motors, Servo Motor, Sprayer, UGV
Conference Paper
Full-text available
Article
In response to continued concerns over crime and violence, schools are increasingly employing visible security measures such as cameras, metal detectors, and security personnel. These security measures are not mutually exclusive, but few studies have considered the relationship between the use of multiple forms of security and youth’s exposure to drugs, fighting, property crime, and firearms at school. To address this issue, we analyzed nationally representative school administrator-reported data from the School Survey on Crime & Safety, using a quasi-experimental design with propensity scores to adjust for potential confounding factors. The results indicated that utilization of multiple security measures reduced the likelihood of exposure to property crime in high schools, but most other security utilization patterns were associated with poorer school safety outcomes. Our findings provide guidance to policymakers in considering whether to use – or expand – visible school security measures in schools.
Article
Crime Prevention Through Environmental Design, 3e is a vital book for anyone involved in architectural design, space management, and urban planning. The concepts presented in this book explain the link between design and human behavior. Understanding this link can enable a planner to use natural environmental factors to minimize loss and crime and to maximize productivity. This practical guide addresses several environmental settings, including major event facilities, small retail establishments, downtown streets, residential areas, and playgrounds. A one-stop resource with explanations of criminal behavior and the historical aspects of design, it teaches both the novice and the expert in crime prevention how to use the environment to affect human behavior in a positive manner.