Professional Documents
Culture Documents
Automatic Drainage Cleaner Using Atmega3
Automatic Drainage Cleaner Using Atmega3
Automatic Drainage Cleaner Using Atmega3
by
Angelu L. Garingo
Ralph Emerson D. de Belen
Mapua University
September 2019
CHAPTER 1
the flooded area are usually left with no choice but to wait until the
flood subsides before they can go back to their daily routine without
any hassle. Nature has always been taken for granted and as a result,
it pays us back.
existing under the laws of the Republic of the Philippines is one of the
most flooded areas in Metro Manila due to its location with Pasig river
along the shore. Over the years, Barangay 833 experienced different
kinds of flooding. From heavy to light and moderate rain, the area
waste materials is one of the biggest reasons why the area gets
flooded so easily. Because of this, our team will design a device that
will collect the trash automatically from the small drainages connected
1
A. Client
B. Need
manhole, they use cranes and backhoes to open the manholes for the
such as plastic and sometimes they dispose their trash directly to the
small drainages connected to the main pipe that leads to the manhole;
A continuous pour of rain for a few days is a huge threat to the area
2
because of its clogged manhole and drainages that results to
unwanted diseases. From the houses that connect to a one pipe going
to the drainage, the drains were quite narrow to begin with. With more
C. Solution
Manila. The Barangay is located along Pasig River which leads to more
pipes that are connected to the river itself. Along with the client’s
came up with a plan that will tend to Barangay 833’s need without the
help of cranes and backhoes. The solution simply directs on the small
drainages that lead to the main pipe of the drainage system, filtering
the waste materials before it gets to the manhole reducing the chance
of a clogged drainage.
Also, this solution will reduce the trash and debris like plastics and
other solid waste from the small drainages before it gets to the
3
manhole. Hence, preventing the drainage from clogging and the water
Basically, the elevator will collect the waste materials from the small
detected through electrical signal. When the trash is ready for disposal
the upper part of the elevator tilts upward and dumps the trash to an
external trash bin and returns to its initial position after disposal for
another collection.
The external trash bin along the side of the road will have its own
Global System for Mobile (GSM) module that will send a notification
be notified once the trash bin reaches 80% of the capacity. This would
give them an option of disposing the garbage from the bin at an earlier
trash bin is full or when the trash bin reaches 100% of its capacity. An
full. The notification will only be sent if the ultrasonic sensor is still
messages.
4
To allow the device to move like an elevator that automatically
There will also be another stepper motor to tilt the cabin of the
elevator; both motors will rotate at the same time. When the cover has
been lifted, only the second motor to tilt the cabin will work.
enclosure with one side that opens and closes. Our design will have the
same concept, except one side of the wall will be completely open. The
open side will be facing the small drainage where the waste materials
are coming from. This opening will then catch the debris or waste
materials. The design of the cabin will have a netted like structure (see
Figure 3.3: Isometric View of the Device Structure) to keep the trash
from flowing whilst collecting the waste material, preventing them from
passing through. As the elevator returns to its initial position the netted
While the device goes up, there will be a net that is flexible and
fixed like a garage door below the cabin. It will spread up while the
cabin is going up. It will also serve as a stopper since the waste
materials from the small pipe is nonstop. Hence, this will help prevent
the solid waste from going directly to the manhole while the cabin is
5
Since we will be using ATMEGA as the controlling unit, our device
metals. The circuit will be enclosed at the top with a roofing to prevent
the device from getting wet, which will be connected to the sensors
below. The sensors for the external trash bin will be using a
a) Objectives
6
To design a device that uses a lifting mechanism inside the
7
D. Differentiation
8
Hard plastic will be
used as the structure
of elevator.
9
The device will receive center rod to allow
a signal from the motion.
sensor of the trash bin The pan helps to
and send a message remove waste
using SIM800L Global materials that has
System and send a been removed by the
message when the cleaner to the trash
battery is low. can.
Table 1. Differentiation Table from Existing study
sensor. The GSM module will then send a notification once the trash bin
system, the proposed design does not need manual work. Bicycle
the slum areas in India but it needs a lot of manual labor to save
electricity.
such as motor, shaft, chain, sprocket, lifter and collecting bin. When
which gives rotation to the shaft and through the help of shaft, the
10
of the drainage is not reachable by sunlight hence the solar power is
batteries as its power source and the GSM module will send a
E. Benefits
The chances of flooding will lessen since they won’t have to wait
for MMDA to clean their drainages, which only happens twice a month.
This is enough time for their drainages to get blocked especially during
rainy seasons. Rainwater will flow easily if the garbage along the
borne diseases from spreading around the area such as typhoid fever,
11
Chapter 2
The core area of Metro Manila is low-lying and about 70% (52
km²) of the area depends on the pump drainage systems [5]. Flood
usually occurs when these drainage systems are blocked due to debris
cleaned by using cranes and backhoes, but the cleaning is only done
twice a month. That’s enough time to block the drainage and cause
with the assistance of his team. They kept their consideration towards
12
the wellbeing of metropolitan enterprise laborers. They proposed,
main instrument used in the system is fitted inside the drain cleaner
powered by the pedal power which can be used for the system instead
of electricity.
such as motor, shaft, chain, sprocket, lifter, collecting bin etc. It has
lifting pans that are lifted by the chains which are in-line with the
13
starts functioning which gives rotation to the shaft and through the
help of shaft, the sprockets which are fixed to the shaft rotates.
Daniels (2014) uses the Pan and Tilt Mechanism where the
relate to the ratio of 4:1 which helps gear to create a complete rotatory
on top of it and also attached in its center to the holding pole. It aids
movement of the pan to and from the axis. Also, the pan itself is held
axes (a).
gather information. The low cost, less maintenance and real time
14
system can update the civil officers by instant message if a certain
benefit to the citizens and workers who cleans the drainage. Diseases
like malaria, dengue and the likes can also be prevented since the
Chapter 3
DESIGN PROCEDURES
in Chapter 1.
2.) If all the steps of the design process flow are correlated to the
3.) On the design process flow, identify the input entity, the
15
4.) Conceptualize and design a block diagram with the materials
5.) Download and install the Fritzing software for the creation of
8.) Export and save the schematic once it’s done (see Fig. 3.5).
A. Hardware Development
16
Figure 3.1 Design Flow of the proposed Device
was designed and created. The design process begins with the
determining the problem of the client and identifying the needs and
of the client is determined and listed, the design group will list
and the requirements for the problem. The design group conducted a
system. After that the design group will conceptualize and design
based on the review of related literature and the objectives listed. The
design group will present to the client the proposal for the design
17
project, as the innovative solution to their problem that will meet the
needs and the requirements, if the client does not approve of the
design proposal, the group will then have to redesign the device to
satisfy the requirements of the client. If the client has approved of the
design proposal, then the design group will then proceed in the
is complete, the design group will test the functionalities and the
capabilities of the device and draw conclusion if and only if the device
is working properly, if it does not work properly, the design group will
conduct error checking, correct and verify until the prototype will work
properly.
Conceptual Diagram
18
As presented in figure 3.2, the device will collect trash and wait
for the weight sensor to send input signals to indicate if there are
enough trash collected in the elevator and the Ultrasonic sensor sends
input signal to the device for the external trash bin. The microcontroller
processes to determine the status of the external trash bin. The device
then sends signals to moves the motor as its output and dump the
trash collected and return to its initial position and to send signal to the
GSM as its output regarding the status of the external trash bin.
Block Diagram
19
Figure 3.3 shows the Hardware block diagram of the proposed
device for automatic drainage cleaner device. The device makes use of
(LM7805), the SIM800L GSM Module, and the weight and ultrasonic
sensors. The input will be signals from the sensors, which will then be
The microcontroller will also send an output signal to the GSM Module
starts with the 12V power supply to a voltage regulator that consist of
23
two 100uF capacitor for a smooth transfer of 5V to the ATMEGA and
The crystal oscillator is possible to obtain very high precise and stable
from the readings of the weight sensor. For the SIM800Lv2 we used
that have multiple coils in them, so that they can be moved in small
bipolar, meaning that they have either one main power connection or
two. For the stepper motor to work properly we used DRV8825 stepper
two seven segment output for the percentage capacity of the trash bin
and operations done by the device within the day. Normally an 8-bit
24
INPUT OUTPUT
A B C NUM A B C D E F G
0 0 0 0 1 1 1 1 1 1 0
0 0 1 14 0 1 1 0 0 0 0
0 1 0 28 1 1 0 1 1 0 1
0 1 1 42 0 1 1 0 0 1 1
1 0 0 56 1 0 1 1 0 1 1
1 0 1 70 1 1 1 0 0 0 0
1 1 0 84 1 1 1 1 1 1 1
1 1 1 100 1 1 1 1 1 1 0
BC
00 01 11 10
0 1 0 0 1
1 1 1 1 1
A = A+C’
BC
00 01 11 10
B = A’+C+B
0 1 1 1 1
1 0 1 1 1
BC
00 01 11 10
0 1 1 1 0
1 1 1 1 1
C= A+B’+C
BC
00 01 11 10
0 1 0 0 1
1 1 0 1 1
D =AB+C’
BC
00 01 11 10
0 1 0 0 1
1 0 0 1 1
E= AB+A’C’
BC
00 01 11 10
F=BC+A 0 1 0 1 0 C’+B’C’
1 1 0 1 1
BC
00 01 11 10
0 0 0 1 1
1 1 0 0 1
G= A’B+AC’
27
Figure 3.5.6 Karnaugh Map for G
A’B+ AC’
OUTPUT
A B C D E F G X
1 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
1 1 1 1 1 1 1 0
1 1 0 1 1 0 1 0
1 0 1 1 1 1 1 0
1 1 1 1 1 1 0 0
0 1 1 0 0 1 1 0
1 1 1 1 1 1 0 1
Figure 3.6 Truth Table (1’s)
needed X to trigger when the input is 111 to output 100, as you can
28
Equations for 1’s
BC
00 01 11 10
0 1 0 1 1
1 1 1 1 0
A A= A’C’+BC+AB’
A’C’+BC+AB’
BC
00 01 11 10
0 1 1 1 1
1 0 1 1 1
A
B = A’+C+B
A’+C+B
Using Karnaugh Map For C
BC
00 01 11 10
0 1 1 0 1 29
1 1 1 1 1
A
C = C’+B’+A
C’+B’+A
Using Karnaugh Map For D
BC
00 01 11 10
0 1 0 1 1
1 1 1 1 0
D =A’C’+BC+AB’
A’C’+BC+AB’
BC
00 01 11 10
0 1 0 1 1
1 1 1 1 0
30
E= A’C’+BC+AB’
A’C’+BC+AB’
Using Karnaugh Map For F
BC
00 01 11 10
0 1 1 0 1
1 1 1 1 1
F=
C’+B’+A
C’+B’+A
Using Karnaugh Map For G
BC
00 01 11 10
0 0 1 1 1
1 1 0 0 1
G= AC’+A’B+A’C
AC’+A’B+A’C
31
Hardware Components
up the ATmega328.
Stepper Motor Controller IC, the device has two H-bridge drivers and
Weight sensor is used to detect the input (trash) coming from the
drainage system.
The sensor head emits an ultrasonic wave and receives the wave
32
HX711 Amplifier is used for a more precise value of weight from the
AND, NOT, OR Logic gates for building blocks of our digital system.
It is an electronic circuit having one or more than one input and only
Isometric View
The device will have an elevator structure which has holes for it to
collect trash and drain water that passes through it. The elevator goes
up by turning the two-stepper motor at the same time, then a net like
the structure, then the elevator pushes up the cover of the drainage
for it to open. Then when the elevator reaches the top of the structure,
33
only the second motor will work for it to tilt and dumps the trash to an
B. Software Development
The following figure shows the main flowchart for the software
34
Figure 3.8.1 Main flowchart
Figure 3.8.1 shows that the device will begin with initializing the
capacity to do the process (see Figure 3.8.2). Then it will start to detect
if there are trash using the weight sensor, the signals that will be sent
depending on the input of the sensors (see Figure 3.8.4). Then the
device will dump the trash to an external bin (see Figure 3.8.5), and
will send message to the mobile device once the external trash bin is
35
80% full or higher and every time the device finishes the whole
procedure and there are still 80% or higher of the external trash bin
3.8.5).
Figure 3.8.2 shows the flowchart for the Battery Check Module of
the device. The device takes the input of the analog signal from the
battery where voltage level will be read from and stores that value into
the variable Battery. The device then determines whether the value
36
that was read is less than or equal to 9.8V then it sets the value of a
The figure 3.8.3 shows the flowchart for the Trash Detection Module.
The device will collect the trash inside the drainage. The device will
then measure the weight of the trash. Once the weight reaches greater
than or equal to 1kg it will return. If not, it will wait until it reaches the
threshold value.
37
Figure 3.8.4 Flowchart of Activate Stepper Motors Module
Module. The microcontroller will send signal to the two motors to rotate
and move the elevator cabin up. Until it reaches its destination it will
38
Figure 3.8.5 Flowchart for Trash Disposal Module
The figure 3.8.5 shows the flowchart for Trash Disposal Module.
rotate and turn a side of the elevator cabin or tilt the elevator. Then if
39
Motor 1 and stepper motor 2 will rotate in reverse at the same time to
this module the battery status will be checked and status update on
the trash bins capacity. When the battery is running low, the module
system will be able to detect the trash bin’s capacity (80-100%) and
40
through the message module, the system will then send status update
References
[1] V Vivek. Jawnekar, Mr. Dhiraj, C Jagtap, Shubham, Gulhane H., Arti
2017.
41