Professional Documents
Culture Documents
JUNE 14LATEST FINALMicrocontrolled Based Automated Electrocoagulation For Wastewater Treatment FINAL9
JUNE 14LATEST FINALMicrocontrolled Based Automated Electrocoagulation For Wastewater Treatment FINAL9
A Thesis
Presented to the Faculty of
Information and Communications Technology Program
STI College Calamba
In Partial Fulfilment
of the Requirements for the Degree
Bachelor of Science in Computer Engineering
May 2022
ENDORSEMENT FORM FOR ORAL DEFENSE
ENDORSED BY:
Oliver A. Medina
Thesis Adviser
Jocelyn G. Llanderal
Thesis Coordinator
NOTED BY:
May 2022
Oliver A. Medina
Thesis Adviser
APPROVED:
May 2022
We are highly grateful to God, the Almighty, for blessing us with benefits during our
research endeavor, which enabled us to conclude the research.
We want to express our deepest gratitude to our thesis mentor, Engr. Dennis V. Mercado,
and Mr. Oliver A. Medina for enabling us to conduct research and for providing invaluable
assistance throughout this process. Their vitality, vision, sincerity, and commitment have
left an everlasting imprint on us. They instructed us on how to perform the study and
convey the results as clearly as possible. It was a great privilege to work and study under
his direction. We are grateful for what they have done for us. We would also want to thank
them for their professionalism, compassion, and amazing sense of humor.
We also want to thank Engr. Jose Carlos T. Gonzalez and Ms. Jocelyn G. Llanderal for the
genuine support in completing this thesis successfully. We are grateful for what they have
done for us. Furthermore, we wish them well in their dreams to pursue.
To Mr. Jester Emann E. Peñaranda, MIT, and Mrs. Fe Dalangin Yedra, MAITE, who
supported us and gave us feedback on our work that helped develop our study and research.
We appreciate the opinions and corrections we needed.
To our Thesis Review Panels, especially Dr. Ferdinand R. Bunag and Dr. Richard John
Brian D. Manzano, who approved our proposal and are crucial figures in completing this
work. We are grateful for seeing the project through our eyes and directing us to enhance
our research.
We are eternally thankful to our families for their love, prayers, concern, and sacrifices in
teaching and preparing us for the future. We are highly grateful to Pesquisa Family for their
understanding and ongoing support in completing this research project. They allowed us in
their house amid the pandemic to complete the prototype.
The fast rise in population, urbanization, and industry impairs water quality, particularly in
densely populated areas and areas of household activity. The discharge of household runoff
has severely polluted the receiving water bodies. This effluent includes raw sewage,
detergents, chemical compounds, oils, and even solid garbage. Each of these contaminants
has a distinct harmful impact on human life. Greywater is typically released untreated into
the environment in the Philippines since there are no effective and centralized sewage
facilities. Electrocoagulation (EC) is a popular wastewater treatment option that has been
widely explored for a wide range of wastewater types because of its versatility, ease of
setup, low footprint, and eco-friendliness. Having said that, the developers saw this is an
opportunity to develop a Microcontroller-Based Automated Electrocoagulation System For
Wastewater treatment with the use of an Arduino Mega 2560 as its micro-controller unit.
The developers used a Modified Waterfall Model which allows a return to a previous phase
for verification or validation, ideally confined to a connecting step to properly create this
thesis paper and the system prototype itself. The Microcontroller-Based Automated
Electrocoagulation System For Wastewater Treatment is intended to be scalable depending
on the type of infrastructure that want to utilize the proposed system. The system is
designed to run on 12VDC. A three-stage Water Filtration and six-stage Water Filtration
process will be responsible for transforming electrocoagulated water into significantly
Page
Title Page i
Endorsement Form for Proposal Defense ii
Approval Sheet iii
Acknowledgements iv
Abstract v
Table of Contents vii
List of Tables ix
List of Figures xi
List of Appendices xiii
Introduction 1
Background of the problem 2
Overview of the current state of the technology 4
Objectives of the study 5
Scope and limitations of the study 6
Literature Review 8
Review of related literature, studies or systems 8
Conceptual Framework 13
Synthesis 14
Microcontroller-Based Automated Electrocoagulation System for 17
Wastewater Treatment
Overview of the project 17
Modified Waterfall Model 17
System design specification 18
Hardware 19
Software 38
Block Diagram 38
Flowchart 39
Results and Discussions 41
Conclusions and Recommendations 47
Table Page
1 Benchmarking Table 12
2 Synthesis Table 16
3 20x4 LCD Display with I2C 19
4 pH Meter Sensor 20
5 Arduino Mega 2560 21
6 Turbidity Sensor Module SKU SEN0189 22
7 Aluminum Flat Bar 22
8 Analog TDS Sensor / Meter for Arduino 23
9 6L Gallon 24
10 Acrylic Tank 24
11 Blue PVC Pipes 25
12 Clear Flexible Tubing 25
13 DC 6-24V to 5V USB Output Step Down / Buck Module 26
14 Transformer 12V / 12A 27
15 Waterproof Junction Box 27
16 LED 5mm Diode Light 28
17 8-Channel Relay 29
18 Arduino Uno R3 29
19 Rocker Switch 30
20 Hose Clamp 30
21 Alligator Clips 31
22 Rubber Footing 31
23 Caster Wheel 32
24 Miniature Circuit Breaker with Box 33
25 Cooling Fan 33
26 12V DC Diaphragm Pump 34
27 Inlet Water Pipeline-Filter 34
28 Momentary Push Button 35
29 Faucet 35
Figure Page
1 Conceptual Framework 13
2 Modified Waterfall Model 17
3 20x4 LCD Display with I2C 19
4 pH Meter Sensor 19
5 Arduino Mega 2560 20
6 Turbidity Sensor Module SKU SEN0189 21
7 Aluminum Flat Bar 22
8 Analog TDS Sensor / Meter for Arduino 22
9 6L Gallon 23
10 Acrylic Tank 24
11 Blue PVC Pipes 24
12 Clear Flexible Tubing 25
13 DC 6-24V to 5V USB Output Step Down / Buck Module 25
14 Transformer 12V / 12A 26
15 Waterproof Junction Box 27
16 LED 5mm Diode Light 28
17 8-Channel Relay 28
18 Arduino Uno R3 29
19 Rocker Switch 30
20 Hose Clamp 30
21 Alligator Clips 31
22 Rubber Footing 31
23 Caster Wheel 32
24 Miniature Circuit Breaker with Box 32
25 Cooling Fan 33
26 12V DC Diaphragm Pump 33
27 Inlet Water Pipeline-Filter 34
28 Momentary Push Button 35
29 Faucet 35
Appendix Page
A. Architectural Design 52
B. Gantt chart of activities 54
C. Actual Thesis Expenses 57
D. User’s Manual 60
E. Source Code 65
F. Laboratory Result / Report 76
G. Adviser’s Acceptance Form 82
H. Revision List 84
I. Curriculum Vitae of Researchers 87
A person can survive without water for about 3-5 days. Up to 60% of the human adult body
is water, and the blood is 90% water. All living organisms need to access and consume
clean water. We use it in our daily lives for bathing, cooking, cleaning, drinking, etc. It is
used for washing, processing, cooling, or diluting a product for industrial purposes. There
are many usages of water; however, according to the Department of Environment and
Natural Resources (DENR), 70% of the Philippines' available water of 160 billion cubic
meters per year is lost or wasted (Villanueva, 2018).
Water pollution is a significant problem and a factor in the water shortage in the country.
Agriculture covers 32% of the Philippines' landmass, or about 96,000 square kilometers,
according to the Water Environment Partnership in Asia (WEPA) (WEPA, 2018). In the
Philippines, population growth, urbanization, agriculture, and industrialization have
lowered water quality. According to WEPA, the impacts of water pollution cost the
Philippines $1.3 billion per year. The government continues to clean up the mess by
imposing fines on polluters and imposing environmental taxes, but many issues remain
unresolved. According to government monitoring data, coliform was found in up to 58
percent of the groundwater tested. Water-borne sources were responsible for about one-
third of the illnesses observed over five years (Marone, 2017). Many areas experience
water shortages during the dry season.
There are many electrocoagulation devices are being used and available in the market here
in the Philippines. There are devices that are portable and a treatment reactor or treatment
plant in using the electrocoagulation process. It is currently used in cleaning the water in
food processing plants, fast food restaurants, Paint, Ink Manufacturing, malls and other
industries where the water is needed to be cleaned. The use of electrocoagulation devices
here will cost for about 800,000 pesos in cleaning the wastewater. The technology of the
electrocoagulation process that is currently being use consists of using sacrificial anodes
and then providing a active metal hydroxide that will act as a strong coagulant to destabilize
and separate the particles and then remove the particles by precipitation or adsorption. The
proposed project will supplement the current electrocoagulation devices by adding a real-
time monitoring by using the sensors and adding a filtering device so that the water can be
potable.
Water is a necessity in our lives. Water is commonly used for drinking and cooking. Having
safe and clean drinking water is a must in a household. Total dissolved solids, color, arsenic,
copper, cadmium, lead, mercury, nickel, boron, and zinc were all tested in household
wastewater. There are times that people combine water with chemicals or dirt, which
makes the water polluted and contaminated. Bacteria, viruses, parasites, fertilizers,
pesticides, pharmaceutical products, nitrates, phosphates, plastics, feces, and even
radioactive substances are among the most common water contaminants. Because these
compounds do not necessarily affect the color of the water, they are frequently undetectable
pollutants (IBERDOLA, 2022). This contaminated water becomes a waste, affecting the
1. How to develop a module that can eliminate pollutants and cleans the contaminated
water?
Tons of water is discarded out in the kitchen as the water is contaminated with dirt and
chemicals which certain pollutants are visible. The water that is being discarded can be
considered a big waste for the community because the water can still be cleaned and can
be used for other purposes.
2. How to develop a module that will avoid using chemicals for treating the water?
Using chemicals in treating the water can be expensive. It also limits the use of treated
water, like for drinking and cooking, because it can be potentially hazardous for human
consumption because of the chemicals.
3. How to develop a module that utilizes the wastewater that can provide a drinkable
source of water?
The primary source that pollutes the water is insufficient treated domestic wastewater,
which carries used water from houses due to household activities, reducing the available
water that can be utilized to drinkable water.
Freshwater is a limited resource that is required for agriculture, industry, and even human
survival. Sustainable development will be impossible without proper quantities and quality
of freshwater. Water contamination and excessive use of freshwater endanger development
initiatives and necessitate water treatment to create safe drinking water. Some of today's
significant sources of water quality degradation include hazardous chemical discharge,
over-pumping of aquifers, long-distance air transfer of pollutants, and poisoning of water
bodies with agents that encourage algae growth.
A wide range of water quality tests is used to help determine how safe, or even drinkable,
water is to be used in a household setting or otherwise that water test labs perform. Water
filtration is removing or reducing the concentration of particulate matter, including
suspended particles, parasites, bacteria, algae, viruses, and fungi. As well as other
undesirable chemical and biological contaminants from contaminated water produce safe
and clean water for a specific purpose, such as drinking, medical, and pharmaceutical
applications. The filtration systems for drinking water usually incorporate a five-stage
filtration process: sediment, mechanical, chemical, mineral, and bacterial (Mao, 2017).
Coagulation and flocculation are frequently the initial processes in the treatment of water.
Positively charged chemicals are introduced to the water. The positive charge of these
compounds cancels out the negative charge of dirt and other dissolved particles in water.
When this happens, the particles interact with the chemicals and combine to create bigger
particles known as floc.
2. Sedimentation
During sedimentation, floc settles to the bottom of the water supply, due to its weight. This
settling process is called sedimentation.
Once the floc has descended to the bottom of the water supply, the clear water on top will
be filtered using filters of various compositions (sand, gravel, and charcoal) and pore sizes
to remove any remaining dissolved particles such as dust, parasites, bacteria, viruses, and
pollutants.
4. Disinfection
A disinfectant is added after the water has been filtered (for example, chlorine and
chloramine). It may be added to kill any lingering parasites, bacteria, or viruses and protect
the water from pathogens before it is piped to homes and businesses.
The general objectives of the proposed project are to aim to develop and implement a
Microcontroller-based Automated Electrocoagulation System for wastewater treatment
that can treat the wastewater by using electrocoagulation, which uses electric current and
treating it without chemicals. The proposed project will help the user to still reuse the
wastewater by treating it without such chemicals.
Specific Objectives
1. Develop a module that can eliminate pollutants and cleans the contaminated
water.
- The developers will develop a module that removes contaminants in the water
using an electrocoagulation process where pollutants can be eliminated. It can
also treat a range of contaminants by electrolytically oxidizing a sacrificial
anode to release metal ions that form coagulants, destabilizing contaminants,
and breaking emulsions.
3. Develop a module that utilizes the wastewater, which can provide a drinkable
source of water.
- The developers will develop a module that will utilize the wastewater that uses
electrocoagulation to provide a drinkable source of water, where after
electrocoagulation, there will be a water purification process to make drinkable
water.
Scope
Limitations
The prototype cannot clean the chemically treated water such as Arsenic. It is incapable of
cleaning chemically treated water containing arsenic (As). There has been finite research
on advanced electrocoagulation (EC) techniques for as removal. The prototype cannot be
filled with 5 liters of dirty water above. The developed project is limited to carrying and
electrocoagulating 5 liters of water at the same time. The prototype cannot clean and filter
chemical cleaning agent to drinkable water. It is incapable of cleaning and filtering
chemical cleaning agents into drinking water. To become potable, the device can only filter
kitchen wastewater without the use of cleaning chemicals. The device is not capable of
recycling and/or reusing wastewater contained with blackwater. It is unable of recycling or
reusing blackwater-containing wastewater. Due to various pathogens and grease pollution,
blackwater from bathrooms and toilets contains fecal matter and urine. The device will be
severely polluted that it will require frequent filter changes and extensive cleaning of the
tank and liters.
Foreign
In this study, we describe the development of an automated water tank filtration system
and the study on water turbidity using a light-dependent resistor (LDR) as the sensing unit.
The system comprises a microcontroller (Arduino Uno), a micropump, a sensing unit, and
a water filter. The primary objective of this study is the ability of the LDR sensing unit to
detect water changes and define the turbidity value of the water. This paper also described
how the microcontroller controls the filtration system. Experiments on water turbidity were
conducted under two conditions, undisturbed flow and continuous flow, which will affect
the measurements of the LDR. Results show that the LDR readings in the continuous flow
require more time between reading so that the turbidity value can be consistent. Results
show that the LDR sensing, together with the microcontroller, can create a system capable
of measuring water turbidity not only for water tanks but also for other water resources,
e.g., rivers, lakes, treatment plants, etc. Implementing an automated water filtration system
can potentially help consumers monitor their water tanks and can be included in the smart
home system (Ibrahim, Hakim, Asnawi, & Malik, 2018).
The proposed project and the related study aim to use a microcontroller to create a water
filtration system.
Water is the basic and essential resource required for every need, such as agriculture,
industrial activity, and domestic purpose. Especially in the industrial areas, although many
water monitoring systems were planted, the wastewater disposal is minimally controlled.
This project helps to monitor water at the industrial level, but it can be used anywhere water
The proposed project and the related study aim to make a filtration system to treat
wastewater and monitor the water quality, such as pH and temperature.
Water is the amongst the most valuable resources for the Survival of life is on the verge of
depletion; hence various treatment processes to treat wastewater are being researched.
About waste, another solid waste comes into the picture, which is available in abundance
and easily accessible, i.e., “FLY ASH.” Much research has been done to utilize fly ash to
remove heavy metals like Arsenic, Cadmium, Nickle, etc., for the past years. This study is
based on the idea of utilization of the magnetic property of the Nano iron particles present
in the fly ash and the adsorption capacity of the carbon particles present in the fly ash. The
magnetic property harnessed using magnetic filtration led to a decrease in the settlement
time of the sludge to 35 seconds in 1000ml of wastewater with a fly ash concentration of
12 g/l. Turbidity removal was 95% in most cases at variable settlement time. The
wastewater used for the experiment/study was obtained from an Educational University in
Gandhinagar, having various organic and inorganic contents. This sewage water initially
had over-range turbidity, which was reduced to a limit of 50 to 100 NTU by the Fly ash
treatment process-induced with magnetic filtration. An atomic spectrometric test for Fe+
ions was done and the result obtained has a slight decrease in the Fe+ concentration in the
treated water. The whole treatment process is done by the adopted method, leading to a
vast decrease in the time for treatment compared with the standard adopted process for the
treatment of sewage water at the university treatment plant (Singh, Barman, S, & Kandya,
2019).
Local
In Panobolon Island, Central Philippines, the technical and social feasibility of employing
a solar-powered ultraviolet light-emitting diode (UV-LED) module for a microbial water
treatment system was examined. A laboratory-scale prototype and water point source
sampling in nine Panobolon Island deep wells were used to investigate technical feasibility.
On the other hand, social feasibility was evaluated using survey responses from island
people. The results showed that (1) controlled solar power is a viable alternative power
source for UV-LED equipment, (2) all water point sources tested on Panobolon island were
positive for Escherichia coli contamination, and (3) the suggested system is socially
acceptable by the locals. Consequently, it is feasible to conclude that the proposed solar-
powered UV-LED microbial water treatment system is a viable solution for improving the
quality of the drinking water consumed by residents (Larroder & Oguma, 2019).
The proposed project and the related study both aim to treat water to improve the quality
of drinking water.
The proposed project and the related study both aim to filter water.
Two prime objectives of this research work are: first, to develop a text message service that
will collect text messages, interpret, and filter out the unwanted texts with easy to manage
web interface collecting various feedbacks and questions sent from various stakeholders
via SMS and secondly, to test certain commands of MSDOS sent via SMS. We did not
focus too much on hardware components such as microcontrollers and sensors. GSM
modem was used for text message sending and receiving. Stakeholders can view SMS of
different types such as feedback, questions, informative, and general SMS in reports and
charts sent by them. In short, the system can be useful to educational institutes, especially
for distance learning education, and provides an effective way of sorting, filtering,
extracting, and reporting text message data received from different stakeholders (DSpace
Repository, 2019).
The proposed project and the related study both aim to create a filtration system.
Innovation
The filtration system has been changing through and with technology. The way of filtration
has its own kind of functionality where it can be used with a certain technology such as
Conceptual Framework
Synthesis
Electrocoagulation (EC) has been reported in several papers as an effective method for
various contaminants. It is a popular wastewater treatment alternative that has been studied
extensively for a wide range of wastewater types due to its ability to treat wastewater
effectively at a lesser cost. Maximum removal was obtained after treatment. It has been
reported in several papers as an effective method for various contaminants. It destabilizes
suspended, dissolved, or emulsified pollutants by using an electric current. EC, compared
with other common methods, has advantages such as reducing energy consumption and
reducing operating costs. The treatment made use of iron electrodes, and pollutant removal
was monitored through time. Reduction of water hardness from domestic wastewater is
extremely important to prevent corrosion, scale and hard foam formation, clogging, a
decline in efficiency, and lathering of soap.
The prototype can filter domestic wastewater into drinking water. It is controlled with a
keypad to cancel, terminate, or stop and continue the process of filtration. The LED and
the speaker will turn on to alert the person if the water is full. The prototype allows the user
to control the desired amount of water to be treated and filtered. It can show the information
of the water level and pH level if it is in an abnormal condition.
Synthesis Table
Following the data analysis and collection period, the developers devised a set of goals that
must be met throughout the framework's evolution. The designers sought similar
examinations relevant to the topic and tailored them to the system. The application of those
linked findings resulted in a more comprehensive viewpoint on the optimal method to
develop the system. The developers put together all the elements, including hardware and
software, that are most suitable for the system project. With its ability to recycle domestic
wastewater and identify its water quality, the prototype will be able to accomplish the
above-listed general and specific objectives.
Planning the proposed project will start, and the developers will understand the possible
concepts and ideas needed and the process by which the project will perform well.
Analysis, the developers will examine the parts and requirements of the current device
Design the developers will design the project based on the analysis of the existing device,
and the project is user-friendly as it is easy to use in the future. As for a possible client, the
developers will accept suggestions from the client for comfortability.
Implementation, the developers will gather the needed information from the design and
planning and implement the required steps and suggestions to develop and create a device
that can be used and in working condition.
Testing the developers will investigate if any parts of the device are malfunctioning and
make sure that the device is working in mint condition.
Maintenance in this phase, the device is now being monitored to check if there is any sign
of errors and then fix it to provide a smooth flow of operation.
It describes the technical requirements for the hardware and software created for the
purposes of hardware and software design, analysis, or programming to maintain and
further develop the hardware and software, including all derivatives that explains how a
system meets the standards given in the functional requirement which contains necessary
details on testing certain requirements, configuration settings, or a review of functionalities
or code, depending on the system.
Microcontroller: ATmega2560
Operating Voltage 5V
Input Voltage (Recommended) 7-12V
Input Voltage (Limit) 6-20V
Operating Voltage: 5V DC
Operating Current: 40mA (MAX)
Response Time: <500ms
Insulation Resistance: 100M (Min)
Output Method: Analog
Analog output: 0-4.5V
Digital Output: High/Low level signal
Size: 10 inches
Material: Aluminum
Table 7. Aluminum Flat Bar
Figure 9. 6L Gallon
It is a water container that can be refilled. It is a food-grade plastic that is also long-lasting.
It has a capacity of 6 liters.
Size: 23 x 12 x 29
Material: Food Grade Plastic
Color: Blue
Material: PVC
Table 11. Blue PVC Pipes
Color: Green
Material: PVC and Polyurethane
Table 12. Clear Flexible Tubing
Microcontroller Atmega328p
Operating Voltage 5v
Input Voltage (Recommended) 7-12v
Input Voltage (Limit) 6-20v
Digital I/O Pins 14 (of which 6 provide pwm output)
Pwm Digital I/O Pins 6
Analog Input Pins 6
Dc Current Per I/O Pin 20 Ma
Dc Current For 3.3v Pin 50 Ma
32 Kb (Atmega328p) of which 0.5 kb used by
Flash Memory
bootloader
Sram 2 Kb (Atmega328p)
Eeprom 1 Kb (Atmega328p)
Clock Speed 16 Mhz
Led_Builtin 13
Length 68.6 Mm
Width 53.4 Mm
Weight 25 G
Table 18. Arduino Uno R3
Size: Miniature
Voltage: 400V
Hertz: 50/60 Hz
Amperage: 16 amp
Table 24. Miniature Circuit Breaker with Box
Size: 80mm
Voltage: 12V
Amperage: 0.13mA
Table 25. Cooling Fan
Suction hoses and pressure washer filters are attachments for pressure washer water input
systems that are used to clean the supply or to help in self priming.
Color: Black
Size: Plastic + Mesh
Material: 10 x 5 cm / 3.94 x 1.97 inches
Table 27. Inlet Water Pipeline-Filter
Material: Plastic
Color: White + Blue
Type: Faucet Switch
Table 29. Faucet
Power: 6W
Interface: 4-point external thread
Shell material: 304 stainless steel, alloy
Power Input: 220v-50Hz
6W flow rate: 0.1m³/h
Length of UV tube: 212mm
Quartz sleeve length: 240mm
Flow rate: 6w/0.5GPM (1.8 liters per minute)
Table 30. UV Water Sterilizer
Arduino
Block Diagram
Flowchart
Introduction
In this chapter, the developers will conduct a series of experiments and tests to check if the
device and the modules are working properly and accurately and to determine if the results
are in line with the objectives of the project. The data gathered will then be evaluated and
verified to confirm the device's functionality. Any malfunction and errors that arise will
then be tackled and fixed continuously until the developers get the desired output. The
developers will run a series of tests to ensure that the device and modules are operating
correctly and accurately, and that the findings are in line with the project's objectives. The
developers will run a series of tests to ensure that the device and modules are operational.
The data obtained will then be examined and confirmed to certify the device's functioning.
Any malfunctions or faults that occur will then be addressed and rectified on a constant
basis until the developers achieve the intended output in a timely and accurate manner, as
well as to establish whether the results are in line with the project's objectives. ISO/IEC
25010 model is for hardware or software quality testing. The developers test and run the
device multiple times to guarantee that the device's flow of process works continuously
and properly.
Experimentation
The developers test and operate the device numerous times to ensure that the flow of the
process of the device works continuously and performs properly. Test procedures and trials
will be conducted to double-check the data and see if any changes occurred. The readings
of the sensors are done before and after the procedure.
1st 2nd
Reading Reading
5L Water + 2 tsp cooked rice + 1tsp greasy foods 348.77 315.07 Good
(such as adobo broth) + 2 tsp salt
Turbidity Sensor
• It determines the clarity of the water. The higher the Total Suspended Solids (TSS)
is, the higher the water's turbidity level (Murkiness or cloudiness) is.
• The developer needs to test the device on different set of water because sometimes
it gives inaccurate readings
Turbidity Chart
1st 2nd
Reading Reading
5L Water + 2 tsp cooked rice + 1tsp greasy foods 4.87 3.55 Clear
(such as adobo broth) + 2 tsp salt
pH Sensor
• It measures the amount of alkalinity and acidity in water, and it ensures the safety
and quality of the water.
• To measure the pH of the water, there is a cap that can be used to scoop up the water
and then the cap is inserted back into the probe.
pH Chart
1st 2nd
Reading Reading
5L Water + 2 tsp cooked rice + 1tsp greasy foods 7.49 6.99 Normal
(such as adobo broth) + 2 tsp salt
5L Water + dead insects (such as cockroach and 8.95 8.65 Not Normal
ants) + leaves
Testing Summary
The water is tested for microbiological water analysis, which is a method of assessing water
that allows for the recovery of microorganisms to identify them and calculates the number
of bacteria present. The plate count is the examination approach. The water had been
contaminated with the content solution 5L water + ½ tsp. milk + ½ tsp. chocolate powder
+ 1 tsp. soy sauce + ½ tsp. sugar + 1 tsp. salt. It is subjected to testing at Alpha Laboratory,
a Department of Health (DOH) authorized laboratory. As a result, the output water is not
drinkable (See Figure 38. Microbiological Test Results – April 1, 2022).
Electrocoagulation, a three-stage water filtration, and a UV water sterilizer have all been
used to treat the contaminated water. When the laboratory test failed, additional protection
Conclusions
The developers conclude that the device is working as intended and meets the objectives
of the study. The main objective is to make the wastewater drinkable by cleaning it without
using any chemicals and filtering the debris and other contaminants that can make the water
not safe to drink. Using a series of sensors and tests, the developers analyzed and
determined that the device can clean and filter any kind of mixture, but not all those
mixtures can become drinkable for varied reasons. For example, it is tested with the content
solution that is 5 liters of water mixed with dead insects and leaves which dead insects such
as cockroach in the water has the risk of listeriosis, a bacterial infection that is more
common in those with compromised immune systems which diarrhea, fever, and muscular
pains are among the symptoms. Salmonellosis is a bacterial illness that causes vomiting,
fever, and diarrhea however the contaminated water that has gone through the process with
the device can still be reusable such as for cleaning and/or watering the plants. The device
runs from 40 minutes to complete its whole process. The developers have concluded that
the device will contribute to the water shortage problem and provide a reliable source of
clean water that can be drinkable to the people.
Recommendations
The developers recommend to future researchers interested in this study that there are
possible improvements that can be added to the device and features to be added to enhance
the capability and functionality of the device. The developers suggest considering changing
or adding the following to the device:
1. Future researchers may use a different type of power source and experiment if it
can speed up the process of electrocoagulation.
2. Consider adding more stages of filtration so that the device can clean more kinds
of mixture.
4. The device can have a back-up power so that when there is power failure, the system
can be backed up and the interruption will be minimal.
Ibrahim, S. N., Hakim, M. L., Asnawi, A., & Malik, N. (2018). IEEE Xplore. Retrieved
from IEEEXplore: https://ieeexplore.ieee.org/document/7808309
Kumar, G. M., Gouthem, S., Srithar, A., & Prakash, V. S. (2021, February).
ResearchGate. Retrieved from ResearchGate:
https://www.researchgate.net/publication/349595501_IOT_based_water_quality_
control_and_filteration_system
Larroder, A., & Oguma, K. (2019, July). ResearchGate. Retrieved from ResearchGate:
https://www.researchgate.net/publication/334375916_Technosocial_feasibility_an
alysis_of_solar-powered_UV-
LED_water_treatment_system_in_a_remote_island_of_Guimaras_Philippines
Singh, A., Barman, R., S, A. S., & Kandya, A. (2019, December). ResearchGate.
Retrieved from ResearchGate:
https://www.researchgate.net/publication/338230484_Potentiality_of_Magnetic_F
iltration_on_Wastewater_Treatment_with_Flyash_Media
The Hamburg University of Technology. (2019). Retrieved from The Hamburg University
of Technology: https://cgi.tu-
harburg.de/~awwweb/wbt/emwater/lessons/lesson_a1/lm_pg_1066.html?fbclid=I
wAR35ZssHZRDsY8Eg7e1YoTW6uJR1gq9jmXLRoa5K4aV9xFgV2zENRWkt
CgI#:~:text=Wastewater%20is%20the%20water%20which,and%20was%20histor
ically%20called%20sewage.&text=Physically%
Front View
ACTIVITY
Planning
Data Gathering
Documentation
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Canvassing of Parts
Parts Acquisition
Design
Assembly
Testing
Implementation
Laboratory Testing
Mock Defense
Final Defense
Developer’s Name Legends
Annielu Elyca D. Rosales Ongoing
Jaybee P. Pesquisa Finish
Josh Alan T. Lutero
Kenn Philip N. Villarete
Thesis Coordinator Jocelyn G. Llanderal
Thesis Adviser Oliver A. Medina
Approximate Actual
Quantity Specifics
Cost Cost
1 20x4 LCD Display I2C ₱215.00 ₱249.75
1 pH Meter Sensor ₱1,605.00 ₱1,399.00
1 Arduino Mega 2560 ₱600.00 ₱598.75
1 Turbidity Sensor ₱612.00 ₱612.25
1 Analog TDS Sensor ₱490.00 ₱888.00
1 Aluminum Flat Bar (20ft) ₱400.00 ₱400.00
2 Acrylic Tank with Lid (7.5 x 7.5 x 10 in.) ₱650.00 ₱650.00
Prepared by:
Noted by:
Approved by:
***CAUTION: Don’t clip the alligator clips on each other to avoid spark and
short circuit.
2. Plug in the cables for microcontrollers (Arduino Uno and Arduino Mega)
6. If the LED in the 1st tank turns red, it means that the tank is inacceptable range of
water level (Maximum of 5 Liters) to start the process.
9. If there are another batch of kitchen wastewater, clean first the electrocoagulation
tank.
Maintenance
2. Use a water filter wrench and carefully loosen up the canisters one by one.
3. After loosening up the canisters, proceed to unscrew and remove the canisters.
4. Drain the excess water that have accumulated below the canisters.
5. Carefully check each filter and change the filters, one by one.
6. Put the new filters inside the canister and put it back into their corresponding places
and make sure that the canister is sealed properly to prevent any leakage.
7. Put slightly hot water and baking soda to the electrocoagulation tank.
10. After the whole process is done, turn off the device.
12. After cleaning the containers put back all the containers.
• PP Cotton Filter – Lasts for about 6 months. Service life is 3-6 months. Consider
replacing if the filter has dark visible discoloration.
1. Remove the two aluminum bars in the 1st tank. Remove the tank and the blue gallon
containers.
2. Wash the inside of the tank with antibacterial dishwashing soap and water. Same as
with the blue gallon containers.
3. Rinse the tank and blue gallon container thoroughly with clean water and let it dry
in a warm area.
2. Remove the two alligator clips that are connected to the aluminum bars.
4. Wash the bar with dishwashing soap and water. Scrub it gently using a sponge to
remove the excess dirt and sludge.
//pH Sensor
float calibration_value = 21.34;
int phval = 0;
unsigned long int avgval;
int buffer_arr[10],temp;
void setup()
{
//Turbidity Sensor
pinMode(A1, INPUT);
Serial.begin(9600);
//TDS Sensor
pinMode(TdsSensorPin, INPUT);
lcd.init();
lcd.begin(16, 2);
lcd.backlight();
}
void loop() {
//pH Sensor
for(int i=0;i<10;i++)
{
buffer_arr[i]=analogRead(A0);
delay(30);
}
for(int i=0;i<9;i++)
{
for(int j=i+1;j<10;j++)
{
//Turbidity Sensor
int sensorValue = analogRead(A1);
float voltage = sensorValue * (5.0 / 1024.0);
//TDS Sensor
tdsValue=(133.42*compensationVolatge*compensationVolatge*compensationVolatge -
255.86*compensationVolatge*compensationVolatge +
857.39*compensationVolatge)*0.5; //convert voltage value to tds value
if (ph_act >= 6.5 && ph_act <= 8.5 && tdsValue <= 900 && voltage >= 2.50) {
lcd.clear();
lcd.setCursor(5,3);
lcd.print("Drinkable");
delay(30);
}
else
{
lcd.clear();
lcd.setCursor(3,3);
lcd.print("Not Drinkable");
delay(30);
}
}
}
int getMedianNum(int bArray[], int iFilterLen)
{
int bTab[iFilterLen];
for (byte i = 0; i<iFilterLen; i++)
bTab[i] = bArray[i];
int i, j, bTemp;
for (j = 0; j < iFilterLen - 1; j++)
{
for (i = 0; i < iFilterLen - j - 1; i++)
{
if (bTab[i] > bTab[i + 1])
{
bTemp = bTab[i];
bTab[i] = bTab[i + 1];
8-channel Relay:
void setup() {
pinMode(9, HIGH); //turn on
delay (1800000);
pinMode(9, LOW);//turn off
delay(120000);
pinMode(10, HIGH);
delay (85000);
pinMode(10, LOW);
pinMode(11, HIGH);
pinMode(12, HIGH);
pinMode(13, HIGH);
delay (300000);
pinMode(11, LOW);
pinMode(12, LOW);
pinMode(13, LOW);
//pH Sensor
float calibration_value = 16.09;
int phval = 0;
unsigned long int avgval;
int buffer_arr[10],temp;
void setup()
{
//Turbidity Sensor
pinMode(A1, INPUT);
Serial.begin(9600);
//TDS Sensor
pinMode(TdsSensorPin, INPUT);
lcd.init();
}
void loop() {
//pH Sensor
for(int i=0;i<10;i++)
{
buffer_arr[i]=analogRead(A0);
delay(30);
}
for(int i=0;i<9;i++)
{
for(int j=i+1;j<10;j++)
{
if(buffer_arr[i]>buffer_arr[j])
{
temp=buffer_arr[i];
buffer_arr[i]=buffer_arr[j];
buffer_arr[j]=temp;
}
}
}
avgval=0;
for(int i=2;i<8;i++)
avgval+=buffer_arr[i];
float volt=(float)avgval*5.0/1024/6;
float ph_act = -5.70 * volt + calibration_value;
//TDS Sensor
tdsValue=(133.42*compensationVolatge*compensationVolatge*compensationVolatge -
255.86*compensationVolatge*compensationVolatge +
857.39*compensationVolatge)*0.5; //convert voltage value to tds value
if (ph_act >= 6.5 && ph_act <= 8.5 && tdsValue <= 900 && voltage >= 2.50){
lcd.clear();
lcd.setCursor(0,0);
lcd.print ("pH: ");
lcd.setCursor(3,0);
lcd.print(ph_act);
lcd.setCursor(0,1);
lcd.print("TDS: ");
lcd.setCursor(4,1);
lcd.print(tdsValue);
lcd.setCursor(0,2);
lcd.print("Voltage(NTU): ");
lcd.setCursor(13,2);
lcd.print(voltage);
lcd.setCursor(9,0);
lcd.print("Potable");
delay(30);
else{
lcd.clear();
lcd.setCursor(0,0);
lcd.print ("pH: ");
lcd.setCursor(3,0);
lcd.print(ph_act);
lcd.setCursor(0,1);
lcd.print("TDS: ");
lcd.setCursor(4,1);
lcd.print(tdsValue);
lcd.setCursor(0,2);
lcd.print("Voltage(NTU): ");
lcd.setCursor(13,2);
lcd.print(voltage);
lcd.setCursor(9,0);
lcd.print("Not Potable");
delay(30);
}
}
}
//TDS Sensor
int getMedianNum(int bArray[], int iFilterLen)
{
CONFORME:
Oliver A. Medina
Thesis Adviser
APPROVED BY:
NOTED BY:
EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2015 – Present STI College Calamba
High School 2011 – 2015 St. John Colleges
Elementary 2005 – 2011 St. John Colleges
AFFILIATIONS
Inclusive Dates Name of Organization Position
2018 - Present Organization of Computer Member
Engineering Students (OCpES)
2018 – Present Institute of Computer Member
Engineering Students (ICpEP)
Listed in reverse chronological order (most recent first).
SKILLS
SKILLS Level of Competency Date Acquired
Microsoft Office Intermediate 2013
Java Intermediate 2018
AutoCAD Foundational 2020
SQL Foundational 2020
EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2017 – Present STI College Calamba
High School 2012 – 2018 Palo Alto Integrated School
Elementary 2006 – 2012 Mayapa Elementary School
AFFILIATIONS
Inclusive Dates Name of Organization Position
2018 - Present Organization of Computer Member
Engineering Students (OCpES)
2018 – Present Institute of Computer Member
Engineering Students (ICpEP)
Listed in reverse chronological order (most recent first).
SKILLS
SKILLS Level of Competency Date Acquired
Microsoft Office Intermediate 2018
SQL Foundational 2019
Editing Intermediate 2018
EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2019 – Present STI College Calamba
2015 – 2018 Colegio De San Juan De Letran -
Calamba
High School 2011 - 2015 Colegio De San Juan De Letran -
Calamba
Elementary 2005-2011 Colegio De San Juan De Letran -
Calamba
AFFILIATIONS
Inclusive Dates Name of Organization Position
June 2019 - Organization of Computer Member
Present Engineering Students (OCpES)
June 2019 - Institute of Computer Member
Present Engineering Students (ICpEP)
2015 – 2018 Society of Young Leaders (SYL) Member
2015 – 2018 Letran Calamba Industrial Member
Engineering Society (LCIES)
2015 – 2018 Philippine Institute of Industrial Member
Engineers (PIIE)
Listed in reverse chronological order (most recent first).
SKILLS
SKILLS Level of Competency Date Acquired
Microsoft Office Advanced 2005 – 2011
HTML Foundational 2012
Arduino Intermediate 2014
Visual Basic, C++, and C# Foundational 2016
AutoCAD Foundational 2017
EDUCATIONAL BACKGROUND
Level Inclusive Dates Name of school/ Institution
Tertiary 2018 - Present STI College Calamba
High School 2012 – 2018 Calamba Institute Canlubang
Elementary 2006 – 2012 Calnlubang Elemtary School
AFFILIATIONS
Inclusive Dates Name of Organization Position
2018 – Present Organization of Computer Member
Engineering Students (OCpES)
Listed in reverse chronological order (most recent first).
SKILLS
SKILLS Level of Competency Date Acquired
Microsoft Office Intermediate 2018
Java Intermediate 2019