Professional Documents
Culture Documents
Research Project Arduino Powered Automatic Fluid Dispenser
Research Project Arduino Powered Automatic Fluid Dispenser
Department of Education
REGION II – CAGAYAN VALLEY
SCHOOLS DIVISION OF CAGAYAN
LICERIO ANTIPORDA SR. NATIONAL HIGH SCHOOL- MAIN
CHAPTER I
INTRODUCTION
in Wuhan, China and was first detected in December 2019, which has now spread to 113
countries and territories outside of China (World Health Organization, 2020). SARS-CoV-2 is
a beta-coronavirus that infects humans, and the disease presents mostly with fever, cough and
dyspnea or difficulty of breathing. The said virus had caused vast alteration not only in the
health status of the people, the health management system of nations and more so, the
Healthcare workers (HCWs) are at the front-line of the COVID-19 outbreak, and
their constant exposure to infected patients and contaminated surfaces can put them at risk of
acquiring and transmitting the infection. SARS-CoV-2 appears to be transmitted from person-
to-person through respiratory droplets and close contact, as previously seen in Severe Acute
Coronavirus (MERS-CoV), the two other zoonotic coronaviruses. In healthcare settings, this
highlights the necessity of practicing respiratory hygiene and hand hygiene, and using
appropriate personal protective equipment. The World Health Organization (WHO) has
strongly recommended HCWs to ask patients to cover their nose and mouth with a tissue or
elbow when coughing or sneezing, to provide masks for patients, and to perform appropriate
hand hygiene.
Hand hygiene with alcohol-based hand rub (ABHR) is widely used around the
world as one of the most effective, simple and low-cost procedures against COVID-19 cross-
coronaviruses, and thus ABHR formulations with at least 60% ethanol have been proven
effective for hand hygiene. ABHRs such as those recommended by the WHO, containing
ethanol (80% v/v) or isopropanol (75% v/v) as active components, have a marked virucidal
With everyone being more careful of their interactions with humans and objects,
personal hygiene has taken serious priority over all other factors in public space. In public
space specially that, disease carrying pathogens are easily transmitted with the hands. In
response to the health crisis brought by the pandemic, public places were obliged to follow
basic health and safety protocols by making alcohols and sanitizers readily available through
this, frequent contact with hand-pushed dispensers with the hands, can increase the incidence
A study by Fournier et al. reported that the use of a strategically positioned hand
sanitizer dispenser was successful in raising hand hygiene activity from 1.52% to over 60%.
A few types of dispensers such as mechanical, automated with pushbuttons, touchless, etc.,
are available to dispense the liquid or gaseous sanitizing materials. In public places including
hospitals, the use of mechanical dispensers and pushbutton sanitizer dispensers is found
widespread. Since physical contact is mandatory for using mechanical dispensers and
automated pushbutton hand sanitizer dispensers, they are vulnerable to pathogen infection.
vulnerability of acquiring infection as these can be contaminated with pathogens that cause
hand-associated infections (HAI). Nowadays, automated touchless sanitizers are taking place
in healthcare facilities, especially in developed countries. As this dispenser does not require
any human contact to operate, it can be very effective to stop the spread of infectious disease
if used carefully. Also, decreases environmental impact with zero small plastic containers to
dispose.
In response to the demand of basic health and safety protocols to make alcohols
and sanitizers readily available without hand contact, an electronic device-Arduino can be
used to meet such demand. Arduino Uno is an open-source microcontroller board based on
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 PWM 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
The main objective of this study is to make a low-cost hand sanitizer dispenser,
which is fully touchless and automated using Arduino which work through stored energy
battery. Due to the advancement of science and technology, it becomes possible to locally
fabricate a low-cost automated hand sanitizer dispenser, and such a low-cost device may be
very efficient to be deployed in public places where it can be easily accessed and be used by
individuals when going to places. This study may help to stop the COVID-19 transmission
where industrial/commercial dispensers are costly and not readily available or of not, are
manually operated.
dispensing fluids.
2. Determine the dispensing capability of the device given the following parameters:
b. Duration of dispensing
C. Hypothesis
The outbreak of coronavirus disease 2019 (COVID-19) has created a global health
crisis that had a deep impact on the way we perceive our world and our everyday lives. This
pandemic has affected thousands of peoples, regardless of their race, economic status, age,
gender but most of those who manifest the signs and symptoms are those with co-morbidities.
Hence, this study will help in preventing the spread of COVID-19 and the spread of
other diseases that are transmissible with the hands for the device is automatic, touch less,
and contactless.
The study will also benefit establishments that are required to provide readily
available alcohol and sanitizer in the workplace both for their staff and clients since the
device dispenses fluids at a regulated rate thereby helping them decrease the amount of
consumption. This will also help them manage waste for it minimizes the use of refilling
Lastly, this study will also help other researchers gain related information and
automatically dispensing fluids specifically alcohols and liquid hand sanitizers through
ultrasonic sensors.
Creation and preparation of all materials needed in assembling the device will be
conducted from April to July, 2021 or a duration of (3) months at Mala Weste, Buguey,
Cagayan.
inputs, outputs, and required processing tasks required to transform inputs into outputs. The
input shows the initial steps and goals we needed to accomplish in order to make the initial
design. The process shows the next steps and necessary revisions and other requirements in
order to achieve our desired output: Arduino Powered Automatic Fluid Dispenser. Figure 1
shows the IPO process and the steps to meet our goals.
H. Definition of Terms
3. Coronavirus – are a large family of viruses that cause illness ranging from the common
cold to more severe diseases such as Middle East Respiratory Syndrome (MERS-CoV) and
positive-strand RNA viruses that infect mammals. The natural reservoir for betacoronavirus
unintentionally transferred from one substance or object to another, with harmful effect.
6. Ultrasonic Sensor (HC-SR04) – an ultrasonic sensor measures the distance between its
transmitter and an obstacle in front using ultrasonic sound waves (operational at 40 KHz)
beyond the human audible sound wave range. The HC-SR04 is a popular sensor among the
maker community. Its operational field of view is essentially a straight line along the sensor’s
line-of-sight.
amount of something.
integrated circuit (IC) chip. A microcontroller contains one or more CPUs (processor cores)
CHAPTER II
REVIEW OF RELATED LITERATURE
To gain better knowledge and more insight regarding the potential of Arduino to
create an automatic fluid dispenser, different concepts relevant to the study were gathered by
the researchers.
Surveillance Robot Using Arduino Microcontroller, Android APIs and the Internet
Chinmay Kulkarni, Suhas Grama, Pramod Gubbi Suresh, Chaitanya Krishna, Joseph Antony
Arduino UNO microcontroller and a smartphone running the Android Operating System.
Surveillance robots typically consist of a video camera, a GPS module, and GSM radios.
Android smartphones come with excellent hardware satisfying the above needs. This can be
provided for the Android operating system. Moreover, the cost for building said robot using a
smartphone is mitigated to a great extent. The robot can be controlled remotely from a PC
using the internet and a microcontroller-smart phone interface residing on the robot. To
capture and archive the real time video from the robot, the inbuilt camera input of the phone
is utilized. The robot can be controlled based on visual feedback from the same smart phone.
Four motors help achieve a zero turning radius. The camera is attached to a stepper motor
which makes it feasible to capture the scene or object of interest. The captured video can be
enhanced and made intelligible using further image processing on the remote PC thereby
I. INTRODUCTION
generally occurs in a military scenario where surveillance of borderlines and enemy territory
sensitive areas in order to constantly monitor for changes. But humans do have their
limitations, and deployment in inaccessible places is not always possible. There are also
added risks of losing personnel in the event of getting caught by the enemy. With advances in
technology over the years, however, it is possibly to remotely monitor areas of importance by
using robots in place of humans. Apart from the obvious advantage of not having to risk any
personnel, terrestrial and aerial robots can also pick up details that are not obvious to humans.
By equipping them with high resolution cameras and various sensors, it is possible to obtain
information about the specific area remotely. Satellite communication makes it possible to
communicate seamlessly with the robots and obtain real-time audiovisual feedback. Thus, in
recent times, surveillance technology has become an area of great research interest. However,
building a small robot for testing and research purposes proves to be extremely expensive.
Primarily because a security robot would require certain components such as a GPS module
(Global Positioning System), High resolution cameras, radios for satellite connectivity, etc.
Each of these components are quite expensive and piecing them together for the purpose of a
robot is a very costly and time consuming affair. Moreover, a lot of time is wasted in writing
driver code to interface all these components. The solution to this dilemma is quite simple. In
the last few years, feature-rich smartphones have become popular. These phones come
equipped with the required features such as a GPS module, a high resolution camera and
internet connectivity. Due to the extremely efficient supply chains that go into manufacturing
consumer electronic devices, these phones come quite cheap for the features that they
provide. Also, the operating system on these smartphones provide Application Programmer
Interfaces (APIs) for using the various sensors with ease. By using the APIs provided, we can
easily write apps in a high-level language like Java, without the complication of writing
driver code. In our system, we have used a smartphone running the Android Operating
System [8], which is one the most popular mobile operating systems today.
available Android phone, which can be remotely controlled over the internet.
The field of surveillance robots is quite popular. A lot of work has been done in
navigational algorithms and control system of wireless surveillance robots [1], [2]. A
common theme is also the use of a camera on the robot in order to receive live video
feedback [1], [3], [5]. Wireless robots made using the Arduino microcontroller have been
implemented, but wireless communication occurs using the Zigbee protocol, which limits the
range of the robot [6]. A robot which performs image processing using the camera on an
Android smartphone has also been implemented [7]. However, this method is limited by the
processing power of the phone, a problem that we have addressed by remotely performing all
imaging processing operations on a different computer, after transmitting the camera’s feed.
Our project is rather unique in the sense that it is a low-cost solution that offers the ability to
remotely control a robot with an unlimited range (by using the internet), while also offering
video feedback. There is also no constraint on any extra processing since everything is done
remotely.
motion, and the requisite hardware (motors, chassis, power supply, etc.)
The user controls the robot by sending control signals to the Android smartphone. The
smartphone then forwards these signals to the Arduino Microcontroller, which then moves the
robot in the required direction. The camera on the Android smartphone is used to send video
feedback to the remote user simultaneously over the internet. This enables the user to
navigate the robot remotely. Additional processing can be performed on the video feed on the
The project is divided into 3 modules, each of which are explained in detail below.
At the remote computer, the user can control the robot through a MATLAB GUI that
we created using the GUIDE toolset [19]. A screenshot of the same is shown below.
As seen in the figure, there are 4 navigation buttons to move the robot. There is also a
window showing the live video feed from the robot. The slider above the video feed allows
us to control the brightness of the incoming video. We have also implemented an auto
contrast feature for the video. The ability to record, save and play back the video feed has
The Android smartphone on the robot writes the video feed to a particular IP address
which is set by the user. When the user clicks on the “Start Video” button, a MATLAB timer
is set off. This timer calls back on a read function at regular intervals of time. This function
reads the image that is transmitted by the Android phone at that instant in time. The image is
then passed through the user-controlled brightness and contrast filters, and then displayed in
the GUI. The interval at which the read function is called defines the frame rate of the video
feed. A record feature is also implemented where in the sequence of RGB matrices of the
frames are stored in a 4D matrix. This matrix is stored as .mat file, which can be played back
later. Navigation of the robot, based on the video feed, is done using the buttons on the GUI,
or through the arrow keys on the keyboard. When a particular button/key is pressed, a unique
String assigned to it is sent to the same IP address. This String is read by an app on the
Android smartphone.
feed respectively.
The Android phone is connected to the Arduino using a USB OTG (On-the-Go) cable.
Android provides support for USB connected devices through two modes of communication:
USB host and USB accessory. In our case, the Android phone acts as the host and powers the
Arduino.
The Android phone acts as a bridge for communicating between the remote computer
and the Arduino. For this purpose, there are two separate apps running simultaneously on the
phone. One of these is for transmitting the video feed to the remote computer. For this
microcontroller. A screenshot of
The app is coded in Java using the Android Software Development Kit (SDK) [10].
The app listens for incoming Strings from the Remote User on a specified port. Each String is
then mapped to a hexadecimal value. For example, an “up” command would be mapped to
0x00, “back” as 0x01 and so on. This hexadecimal value is then sent to the Arduino
microcontroller. We have used the USB Host API provided by Android for this purpose.
In the app, we have also included five navigation buttons for testing purposes. These
buttons simulate the same response as the ones on the MATLAB GUI.
C. Arduino Implementation
In our system, we have used an Arduino Uno is a microcontroller board based on the
based on Processing, and programming is done using a language based on Wiring, which is
The Arduino microcontroller is configured to receive serial input from the app
running on the Android smartphone, and subsequently control four DC motors (2 front and 2
rear). Upon receiving the hexadecimal codes from the Android phone, the Arduino generates
two control signals per DC motor. For e.g, on receiving 0x00 to indicate a forward motion,
of control signals.
A backward motion
would involve
inverting of the
Since the Arduino cannot directly power a DC motor due to insufficient current, motor
drivers, with their own power supply are used. Each motor driver is capable of controlling 2
DC motors. Hence, two motor drivers are used. In our implementation, the Arduino sends the
control signals to two L293D motor drivers each powered by a 9 volt battery [17].
This project offers a lot of scope for adding newer features. Since all image
processing is done remotely, there are no resource constraints apart from the bandwidth of the
network. We can program the robot such that it can detect objects and reach them on its own.
Thus, we can make it completely autonomous. Also, with the presence of GPS navigation and
mapping software, the robot has the capability of finding the best route possible to reach a
certain location. Also, by making it sturdier and giving it extra protection, we can make it an
There is also the option of adding sound processing to the remote computer, thus
The possibilities are endless. This robot in its current state provides a platform for
CHAPTER III
METHODOLOGY OF THE STUDY
of the study, instrumentation, data gathering procedures and data analysis in creating the
Research Design
The study made use of the pre-experimental research design in order to determine the
Materials
Procedures
1. Gathered all the materials needed in assembling the device, Arduino.
2. In designing an automatic fluid dispenser use a voltage source that comes from a 4
3. In front of the automatic fluid dispenser, there is the HC-SR04 ultrasonic sensor. The
from the sensor. If a human hand has been detected, the sensor will send input to the
Arduino UNO microcontroller. The Arduino UNO microcontroller is the control main
which has a program to access data from the input of the ultrasonic sensor. Arduino
UNO will send a signal to the servo motor, so that it will spin 180 degrees. The fluid
from the dispenser will be released through a small pipe in front of the appliance.
#include <Servo.h>
Servo servo;
int trigPin = 5;
int echoPin = 6; =
int servoPin = 7;
void setup() {
Serial.begin(9600);
servo.attach(servoPin);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
delay(100);
servo.detach();
void measure() {
digitalWrite(10,HIGH);
digitalWrite(trigPin, LOW);
delayMicroseconds(5);
digitalWrite(trigPin, HIGH);
delayMicroseconds(15);
digitalWrite(trigPin, LOW);
pinMode(echoPin, INPUT);
void loop() {
measure();
aver[i]=dist;
dist=(aver[0]+aver[1]+aver[2])/3;
if ( dist<30 ) {
servo.attach(servoPin);
delay(1);
servo.write(0);
delay(800);
servo.write(180);
delay(200);
servo.detach();
Circuit Design
Vcc – 5V
GND – GND
red – 3.3V
black – GND
Battery Connections:
positive – Vin
negative – GND
Research Locale
The study was conducted at Mala Weste, a barangay in the municipality of Buguey,
Luzon. Elevation at these coordinates is estimated at 9.4 meters or 30.8 feet above mean sea
level. Its population as determined by the 2015 Census was 1,006. This represented 3.33% of
The study has six (6) respondents. The respondents are senior high school students
sampling means every member of the population has a chance of being selected. It has four
main types which are Simple Random, Systematic, Stratified and Cluster Sample.
We chose Simple Random Sample in which the sampling frame should include the
whole population. To conduct this type of sampling, you can use tools like random number
generators or other techniques that are based entirely on chance. The Simple Random Sample
is reliable in this study as it includes its ease of use and its accurate representation of the
larger population.
To gather the needed data for the study the researchers administered several tests to
determine the capability of device which were performed by the selected respondents. Test I
(Table 2.1), tests the ultrasonic sensing capability of the device when hands are placed at
specified distance; Test II (Table 2.2) tests the time interval needed by the device to dispense
fluid when hands are place at 20 to 30 cm distance from the sensor; and Test III (Table 2.3)
tests the amount of fluid dispensed by the device for every use.
The researchers were given the permit to conduct a home-based study wherein they
can include their co-barangays as their respondents. With approval, the researchers personally
The data were collected and tabulated for the purpose of interpretation and analysis of
Chapter IV
DISCUSSION OF FIDINGS
This chapter discusses the data and results obtained after the accomplishments of the
research methodology.
Test Results
Testing of an automatic fluid dispenser device was done by examining its performance
through administering several tests. It involved placing your hands in the testing component
(ultrasonic sensor) at a certain distance, specifically 10 cm, 20 cm, 30 cm, 40 cm and 50 cm.
The test was carried out on six (6) senior high school residing at Zone 3, Mala Weste,
Buguey, Cagayan.
The table above shows the ultrasonic sensing capability of the device powered by
Arduino to dispense fluid when hands are placed at specific distance. It shows that at the
distance of 20 cm and 30 cm of hand from the Ultrasonic sensor, the device dispensed
alcohol. While at the distance of 10 cm, 40 cm, and 50 cm, of the hand from the dispenser,
the device did not dispense any liquid. This implies that the device can only sensor the hand
Table 2 shows that the time interval needed by the device to dispense fluid at
continuous use given that the hands are placed at 20-30 cm distance among the six
respondents are between 2-5 seconds interval. This means that the device will dispense the
The table shows the amount of fluid dispensed by the device in every use. This shows
that at a distance of not greater than 30 cm, the device will dispense 0.05 ml volume of liquid.
This implies that the device is only capable of dispensing 0.05 ml of liquid a certain distance
CHAPTER V
SUMMARY, CONCLUSION, AND RECOMMENDATION
This chapter shows the study’s summary, conclusion, and recommendation. This
presents the final and complete words of the researchers after the thorough analysis of the
automatically dispensing fluids. The study found that the at the distance of 20 cm and 30 cm
of hand from the Ultrasonic sensor, the device dispensed alcohol. The device will also
dispense the liquid after 1 second time interval. In addition, the device is only capable of
Conclusion
In light of the research project conducted, it is concluded that the device powered by
Arduino is capable of dispensing liquids. Such conclusion is derived from the Percentage
Recommendations
Upon completion of the research project, the researchers highly recommend that the
researchers who wish to conduct a research similar or related to this current study may work
on other variables not included in this current study like energy consumption of the device
when used. The number of respondents may also be increased by including people considered
vulnerable and front liners. It is also highly recommended that instead of battery-powered
dispensing device, the future researchers may ought to shift to Solar-powered device.
REFERENCES
[1] Hou-Tsan Lee, Wei-Chuan Lin, Ching-Hsiang Huang, Yu-Jhih Huang, “Wireless indoor
surveillance robot”, in 2011 Proceedings of SICE Annual Conference (SICE), 2011, p. 2164-
2169
[2] Change Zheng, “Mechanical design and control system of a miniature surveillance robot”,
in ICIA '09, International Conference on Information and Automation, 2009, p. 1228- 1233
[3] Kyunghoon Kim, “Intelligent surveillance and security robot systems”, in IEEE
Workshop on Advanced Robotics and its Social Impacts (ARSO), 2010, p. 70- 73
[4] D. Matko, “Image based control of a space surveillance robot”, IEEE International
[5] Ki Sang Hwang, Kyu Jin Park, Do Hyun Kim, Sung-Soo Kim, Sung Ho Park,
[6] Christian Hernández, Raciel Poot, Lizzie Narváez, Erika Llanes and Victor Chi, “Design
[7] Mejdl Safran and Steven Haar, “Arduino and Android Powered Object Tracking Robot”.
2012
[13] Shiffman, Daniel (September 23, 2009). "Interview with Casey Reas and Ben Fry".
Rhizome.org
[15] Android USB Host + Arduino: How to communicate without rooting your Android
[16] How do I use my smart phone camera as a webcam in MATLAB? On the MATLAB
2013
[17] L293D Datasheet- Texas Instruments – Quadruple Half- H Driver [Online] Available:
[19] (2013) Creating Graphical User Interfaces in MATLAB. On the Mathworks website