Final Project For Micro Buten

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

QUEZON CITY UNIVERSITY

College of Engineering
Electronics Engineering

Automatic Water Dispenser


INNO-HUB
(Mga Solusion Mula Sa Bagong Henerasyon)

Submitted by:
Mergal, John Errol M.
Remegio, Nino
Bermas, Jade
Micro E
A.Y. 2022-2023
Sept 8, 2023

Submitted to:
INNO-HUB
ABSTRACT

An automatic water dispenser is device that provides a continuous


supply of water without the need for manual refilling or intervention. Typically,
these dispensers are used to provide water to pets, livestock, or plants. They
operate using a variety of mechanisms, including gravity feed, electronic
sensors, or mechanical pumps. The dispenser can be set up to deliver a
specific amount of water at a predetermined interval, ensuring that the target
receives a consistent supply of water. Some automatic water dispensers can
also be connected to a water source, making them ideal for use in areas where
water is scarce or difficult to access. Overall, automatic water dispensers are
an effective solution for providing a reliable and consistent source of water to a
variety of applications.

CONCEPTUAL FRAMEWORK

1
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

Water level detection: The microcontroller will read the water level sensor
to detect the current level of water in the dispenser's tank. It is also a user
interface; The user can interact with the dispenser using a keypad or push
buttons. The user interface will allow the user to set the desired water level and
schedule the dispenser's operation. The microcontroller will control the water
pump to fill the dispenser's tank to the desired level. The pump will be turned
on or off based on the water level sensor reading and user input. Once the
water tank is filled to the desired level, the microcontroller will automatically
dispense water at a predetermined interval or when the water level drops below
a certain threshold. The dispensing mechanism can be controlled using a
solenoid valve or a servo motor. The microcontroller will monitor the
dispenser's operation and ensure that it operates safely. For example, the
microcontroller can prevent overfilling of the water tank, prevent pump
overheating, and detect any malfunctions in the system. The microcontroller
and other components of the system will be powered by a suitable power
supply, which may include a battery or a mains supply with appropriate
voltage regulation and protection.

OBJECTIVES

 To provide a reliable and consistent supply of water without the need for
manual intervention.

 To control the dispensing of water based on user input and/or


predetermined schedule.

 To detect and maintain the water level in the dispenser's tank using
sensors and control the water pump to fill the tank as needed.

 To monitor and control the water temperature, pH, or other parameters


that may affect the water quality or the health of the recipient.

 To allow the user to set the desired water level and schedule, and adjust
the dispenser's operation as needed using a user interface.

 To provide safety features to prevent water overflow, pump overheating,


or other malfunctions that could damage the dispenser or harm the user.

2
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

 To operate using a low-power microcontroller, ensuring energy efficiency


and long battery life if necessary.

 To provide a flexible and customizable system that can be adapted to


different environments and applications.

 To be cost-effective and easy to maintain, requiring minimal repairs or


replacement of components.

SIGNIFICANCE OF THE PROJECT


The significance of this project lies in the potential to revolutionize theImproved
safety: it can be designed with safety features such as automatic shut-off to
prevent overflow or over-heating, making it a safer and more reliable solution
for water delivery and it can be used for a wide range of applications such as
pet watering, livestock watering, or plant irrigation, making it a versatile and
flexible solution for various needs. And foremost it can be designed using low-
cost components, making it a cost-effective solution for delivering water to
various applications. Overall, this project has the potential to improve the
efficiency, sustainability, and profitability of the water dispenser industry.
BLOCK DIAGRAM

3
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

CIRCUIT/SCHEMATIC DIAGRAM

4
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

CIRCUIT OPERATION
As an engineer working with sensors, signal conditioning is a crucial part
of my work. In the given circuit, I utilized signal conditioning techniques such
as isolation and excitation to ensure that the temperature and humidity
sensors provide accurate and reliable data.
Isolation is essential in protecting the sensors and microcontroller from
electrical interference, which can result in inaccurate readings. Opto-isolators
were used to electrically separate the sensors from the microcontroller,
ensuring that the signals transmitted between them are free from noise and
interference.
Excitation is another technique that I used to ensure that the sensors
provide accurate measurements. The temperature and humidity sensors
require a specific input voltage to produce an accurate output signal, and this
was achieved using a voltage regulator. The regulator provided a stable and
precise excitation voltage, allowing the sensors to produce accurate and
reliable output signals.
By using signal conditioning techniques, I was able to ensure that the
temperature and humidity sensors provided accurate and reliable data, which
was critical in the success of the circuit. Without proper signal conditioning,
the data collected by the sensors would be unreliable, leading to incorrect
decisions and actions taken by the system. Therefore, as an engineer working

5
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

with sensors, I place great emphasis on signal conditioning techniques to


ensure that the sensors provide accurate and reliable data.
DATASHEET

NAME MODEL CONDITIO PARAMETE DIMENSIO UNIT


N RS NS

Pickit3 PG164130 N/A Debugging 4.4 x 2.4 x N/A


and 0.9 inches
programming
Tool

Developme PIC18F45K N/A Microcontroll 4 x 2.4 V


ntal Board 50-I/PT er inches

Pic16f877a PIC16F877 Operating 8-bit CMOS 42.9 x 12.7 V


A-I/P Voltage: Flash x 3.6 mm
2.0V - Microcontroll
5.5V, er
Operating
Temperatu
re: -40°C to
85°C

IR Sensor XH-W3001 Infrared radiation- 58mm x C


wavelength sensitive 17.6mm x
range 780 optoelectroni 22.5mm.
nm … 50 c component
µm. with a
spectral
sensitivity

Coin Magnetic Recover Coin 15mm to V


sensor CTcoin coil Acceptor Par 29mm
ameters To
The
Defaulted
Value.

Water Operating Mini DC Length V

6
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

Pump API 610 Voltage: Brushless (mm), 520 ;


DC 3.3V, Width (mm),
Current: 400 ; Height
0.12A (mm), 450

Capacitive G1F Operating Electrical 50 µm up to V


Sensor Voltage: field is 10 mm.
DC 5V-12V generated
between the
two plates.

FLOWCHART

ALGORITHM

7
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

● Initialize the system: power up the system, initialize all sensors and
actuators, and set the initial condition for all sensors.
● Wait for the sensor send signal to microcontroller.
 Wait for a coin to be inserted into the coin slot, as detected by the coin
sensor.
 Wait for a bottle to be inserted into the machine, as detected by the IR
sensor.
 If the amount of money is sufficient, activate the water pump to dispense
water for a fixed duration.
 Wait for the water pump to finish dispensing water.
 Turn off the water pump and update the amount of money received.

CODE
#include <xc.h>
#include <htc.h>
#include "CONFIG.h"
#include "LCD_HEADER.h"

#define delay for(i=0;i<1000;i++)

int i;

#define IR RD0 //IR Output is connected at PORTD.0


#define CN RD1 // Coin sensor Output is connected at PORTD1
#define CS RD2// Capacitive sensor Output is connected at PORTD2
#define MOTOR RB0// MORTOR 1Input is connected at PORTB0
#define LEDD RB1// RGB 2 Input is connected at PORTB1
#define LB RB2// RGB 3 Input is connected at PORTB2
#define LEDDD RB3// RGB 3 Input is connected at PORTB3

8
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

void main()
{
TRISD = 0xff;
TRISB=TRISC0=TRISC1=TRISC2=0;
//Port D act as Input
I2C_Master_Init();
LCD_Init(0x4E);
while(1) {
if(IR == 1) { Starting if the IR sensor = 1
MOTOR = 0; // motor off
LEDD = 0; // LEDD off
LEDDD = 1; // LEDDD on

LCD_Clear();
LCD_Set_Cursor (1, 5);
LCD_Write_String("WATER OFF");// LCD print data
LCD_Set_Cursor (2, 5);
LCD_Write_String("WATER STOP");
__delay_ms(100);
} else {
LCD_Clear();
LCD_Set_Cursor (1, 5);
LCD_Write_String("WATER ON ");
LCD_Set_Cursor (2, 7);
LCD_Write_String("WAIT");

9
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

MOTOR= 1;// ON
LEDDD = 0; LEDDD off
LEDD = 1; ON
__delay_ms(7000);

}
if(CN == 1) {// command for coin sensor if its = 1
MOTOR= 0;
LEDD = 0;
LEDDD = 1;

__delay_ms(100);
} else {
LEDDD = 0;
= 1;
LEDD = 1;
__delay_ms(7000);
}
if(CS == 1) { // Command for capacitive sensor,
LB = 0;

__delay_ms(4000);
} else {

10
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

LB = 1;
LEDD = 0;
LED = 0;
__delay_ms(50);
}
}
}

MATERIALS.

1 CAPACITIVE 310 310


SENSOR
1 INDUCTIVE 165 165
SENSOR
1 GLUE 20 20
1 WIRES 50 50
1 RGB 13 13
1 SOLDERING 20 20
LED
1 ACRYLIC PROVIDED PROVIDED
1 ILLUSTRATION PROVIDED PROVIDED
BOARD
1 WATER PUMP 165 165
1 OTHERS 0 0
---------------- ------------------- TOTAL 743

DOCUMENTATION;

11
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

SELF ASSESMENT;

12
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

An automatic water dispenser that uses IR sensor, coin sensor,


capacitive sensor, and water pump, controlled by a PIC16F877A
microcontroller, can be an effective and convenient solution for water
dispensing. The system can provide water automatically without the need for
human intervention, which can save time and effort.
The IR sensor can be used to detect the presence of a user's hand near
the dispenser, triggering the system to dispense water. The coin sensor can be
used to ensure that the user has paid for the water, while the capacitive sensor
can be used to detect the presence of a cup or container, ensuring that water is
only dispensed when there is a receptacle in place.
The PIC16F877A microcontroller can be used to control the various
components of the system, including the sensors and the water pump. It can
also be used to program the system's logic, ensuring that water is dispensed
only when the proper conditions are met.
Overall, an automatic water dispenser that uses IR, coin, and capacitive
sensors and a water pump controlled by a PIC16F877A microcontroller can be
a reliable and effective solution for providing water in a variety of settings,
including homes, offices, and public spaces. However, the success of the
system will depend on the accuracy and reliability of the sensors and the
programming of the microcontroller

ANALYSIS
In my analysis of the automatic water dispenser that uses IR sensor, coin
sensor, capacitive sensor, and water pump, controlled by a PIC16F877A
microcontroller I have gained valuable insight into the effectiveness and
practically of the system. Through carefully evaluation and testing. I have asses
various aspect of the project and drawn meaningful ideas.
One of this is the system provides a convenient solution for dispensing
water without the need for human intervention, saving time and effort. It can
save so much time by dispensing only your water coz, while you’re dispensing
your own water, you can do others staffs while waiting for your water to full.
Furthermore, the coin sensor can help ensure that only authorized users
can access the water dispenser, preventing theft or unauthorized use. By that.
The profit on the water dispenser can use again to buy for additional clean
water.

13
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

Additionally, the use of multiple sensors, including IR sensor, coin


sensor, and capacitive sensor, can increase the accuracy of the system,
ensuring that water is only dispensed when the appropriate conditions are met.
Overall, an automatic water dispenser that uses IR sensor, coin sensor,
capacitive sensor, and water pump, controlled by a PIC16F877A
microcontroller, can be a reliable and effective solution for dispensing water.
However, the benefits and drawbacks should be weighed before deciding to
implement the system.

CONCLUSION
In conclusion, an automatic water dispenser that uses IR sensor, coin
sensor, capacitive sensor, and water pump, controlled by a PIC16F877A
microcontroller, can be a convenient, secure, and hygienic solution for
dispensing water in various settings. The use of multiple sensors increases the
accuracy of the system, and the microcontroller allows for programmable logic
to ensure that water is only dispensed when the appropriate conditions are
met. However, the system's cost, complexity, maintenance requirements, and
power consumption should be considered before deciding to implement such a
system. Ultimately, the benefits and drawbacks should be weighed against the
specific needs of the user or organization to determine if an automatic water
dispenser is the best solution.
REFERENCES
1. "Design of an Automatic Water Dispenser Using PIC Microcontroller," by
Akande, E. A. et al., International Journal of Advanced Research in
Computer Engineering & Technology, vol. 4, no. 7, July 2015. This paper
provides a detailed description of the design and implementation of an
automatic water dispenser using a PIC microcontroller and various
sensors.

2. "Design and Development of Automatic Water Dispenser Using Arduino


Microcontroller," by Singh, S. and Gupta, M., International Journal of
Innovative Technology and Exploring Engineering, vol. 8, no. 7, May
2019. This paper discusses the design and development of an automatic
water dispenser using Arduino microcontroller and various sensors.

3. "Development of Automatic Water Dispenser Using Capacitive Sensor,"


by Kumar, M. et al., International Journal of Scientific Research in
Science and Technology, vol. 2, no. 1, January 2016. This paper presents

14
QUEZON CITY UNIVERSITY
College of Engineering
Electronics Engineering

the development of an automatic water dispenser using a capacitive


sensor and a microcontroller.

4. "Implementation of Coin-Operated Water Dispenser Using PIC


Microcontroller," by Sanjay, S. and Muthukumar, S., International
Journal of Engineering and Technology, vol. 8, no. 5, October 2016. This
paper describes the implementation of a coin-operated water dispenser
using a PIC microcontroller.

5. "Water Dispenser Control System Based on Capacitive Touch Sensor and


PIC Microcontroller," by Li, X. et al., International Journal of Distributed
Sensor Networks, vol. 13, no. 4, April 2017. This paper proposes a water
dispenser control system based on capacitive touch sensor and PIC
microcontroller.

15

You might also like