Professional Documents
Culture Documents
CHAPTER 1: INTRODUCTION
1.1 Background
Vending machine, machine that sales food, drinks etc when coin is inserted, simple
vending machines require that the exact amount of money for a particular item.
The word vending means selling, this word comes from Greek.
Vending machines mainly supply food and are found in hotels, transportation
terminals, and instaurations. An important component of vending machine is the
mechanism that accepts and determines the value of inserted coin. When coins or
tokens are inserted a series of tests determines the dimensions, weight, electric
properties, and magnetic properties of the money, a coin or token that fails any test
is rejected. If the coin or token is accepted, its value is determined from the data
acquired
Through the tests. This is the project on microcontroller based vending machine,
basically the project is divided into three parts, the first part is mechanical part
(coin unit) i.e. used to sense coin. Another part consists of EPROM programming
which is implemented through microcontroller. The display unit display
information, according to that information, microcontroller gives input signal to
the drink output unit. In this project we have tried to design a low cost, accurate
and portable vending machine that cam sale cold drinks automatically. This project
is based on the embedded system also called the smart system. An embedded
system is a special purpose computer system built a large device. It is the hardware
and software that form a component of large system. An expected to function
without human intervention an embedded system is required to meet different
requirement than a general purpose personal computer. Embedded system often
used a slow processor and small memory to minimize the cost.
1.2 Problem Statement
1.3 Objectives
With regards to the popularity of vending machine in global market, the concept of
project is evolved. As per the business trend of our Nepalese Society, Vending
machine is totally a new concept. It is not widely used here. So for enhancement of
technology in our society and for its further application, the project idea has been
designed. Our project can be simply viewed as the machine that vends cold drinks
in cup. Here we have facility of vending two different types of liquids. Generally in
market it is found that products are vend as per the pet bottle but with regard to the
customer desire, this machine helps to dispense as per necessary. It is user friendly
and very simple in operation. Its simplicity within the complexity is its main
feature. Commercially over viewing, the main objective of our project is to launch
new technologys application in the society. The project has vision that this may be
the milestone product of technology in the Nepalese Market.
1.4 Methodology
Project development is not an easy task. It requires thorough study of the various
component and their outcomes. The project is effective only if it can fulfill the
objective that it aim to provide
The project is implemented using various that are organized in a specific way so
that the device is small and portable. Each component has a specific function to
perform. Our project is basically divided into three parts: mechanical, electronics
and display unit. This part consists of various components, which are as follows.
Photo-Diode
Voltage regulator (7805)
Microcontroller (AT89s52)
Oscillator
LED
Capacitor
Resistor
LCD
Water-pump
Power MOSFETs
Switch
Connecting wires
The circuit diagram using these components is shown below.
1.4.3 Flowchart
Port 1: Port 1 is an 8-bit bidirectional I/O port with internal pull-ups. The Port 1
output buffers can sink/source four TTL inputs. When 1s are written to Port 1 pins,
they are pulled high by the internal pull-ups and can be used as inputs. As inputs,
Port 1 pins that are externally being pulled low will source current (IIL) because of
the internal pull-ups.
In addition, P1.0 and P1.1 can be configured to be the timer/counter 2 external
count input (P1.0/T2) and the timer/counter 2 trigger input (P1.1/T2EX),
respectively, as shown in the following table.
Port Pin Alternate Functions
P1.0 T2 (external count input to Timer/Counter 2), clock-out
P1.1 T2EX (Timer/Counter 2 capture/reload trigger and direction
control)
P1.5 MOSI (used for In-System Programming)
P1.6 MISO (used for In-System Programming)
P1.7 SCK (used for In-System Programming)
2.1.3:.Power MOSFETs:
A power MOSFETs is a voltage controller device and requires only a small input
current. The switching speed is very high and the switching times are of the order
of nanoseconds. Power MOSFETs are finding increasing application in low power
high frequency converters. MOSFETs do not have the problem of second
breakdown phenomena, as do BJTS. However, MOSFETs have the problem of
electrostatics discharge and required special care in handling. In addition, it is
relatively difficult to protect them under short circuited fault conditions.
Enhancement mosfets:
An n-channel enhancement type mosfet has no physical channel, as shown in
figure below. If Vgs is positive, an induced voltage will attract the electrons from
the P-substrate and accumulate them at the surface beneath the oxide layer. If Vgs
is greater than or equal to a value known as threshold voltage, Vt, a sufficient
number of electron are accumulates to form virtual n channel and the current flows
from the drain to source. The polarities of Vds, Ids and Vgs are reversed for a P-
channel Enhancement type mosfet.
3.1.4.2 Connection:
Most LCD modules conform to a standard interface specification. A 14 pins access
is provided having 8 data lines, control lines and 3 power lines. The connections
are laid in one of two common configuration, either two rows of 7 pins, or a single
row of 14 pins. The pin configurations are displayed in figure show below:
2.1.5 BC547
Features:
Low current (max. 100 mA)
Low voltage (max. 65 V).
Application:
General purpose switching and amplification.
In the coin unit, IR LED, photodiode and transistor (BC547) is used as input
sensors for microcontroller. When the coin is inserted as an input, the light in
photodiode gets blocked and the output of the photodiode is zero. Then it reverses
biased transistors, which operate the microcontroller.
In the display unit, the main portion is Liquid Crystal Display (LCD). By
interfacing microcontroller with LCD we will display various options for the users
to interpret the machine. And as per the choice displayed and pressed the product is
supplied to the user.
In microcontroller unit, we have used AT89s52. As per the coding done to it, it
operates. When the timer triggers the microcontroller, it operates as per the
instruction stored and hardware gets controlled. Then the LCD displays the
instruction to be followed and proceeds towards the desired output.
In the drink supply unit, the main part is water pump which is controlled by the
motor which is further control by the microcontroller. With the desired
programmed the pump is controlled and the drinks are made to flow as per via
dispenser.
CHAPTER 5: PROBLEM FACED AND LIMITATION
5.1 Problem Faced
During the course of the making of project, we have faced a lot of problems from
various aspects. The main part of our project, for the flow control mechanism is the
solenoid valve. This part is not easily available in the market. Finally, we used a
water pump instead of solenoid valve which is comparably a low price device.
Another important part is in taking input of the coin and processing. The part being
mechanical we faced very serious problem in interfacing with the electronics.
Another problem is the framework design to cope with the electronic parts. Time
limit is also another serious problem that we have deal with due to which we have
to rush and have to compromise in so many fields. Anyway we have tried to do our
best in our context.
5.2 Limitation
The vending machine is commercially completely automatic and no need of
manpower for its operations. In our final product, certain frauds can be done by
using the replica of token (or coin) of the same physical dimension. As per the
desire of customer, we are not able to provide the varying volume of the drinks.
Also we are not able to show clearly source drinks indication.
8 IC Socket(8pins) 2 50 100
9 Crystal Oscillator- 1 40 40
11MHz
10 LCD(16*2 matrix) 1 525 525
11 Push Button 3 15 30
12 Transformers(6-0-6) 1 180 180
13 Resistor(1K,10K,8.2K) 6 packets 5 30
14 Capacitors(34pF) 2 15 30
15 Capacitors(100F,100 2 Packets 40 80
F,1000F)
16 Connecting wires 2m 8 16
17 Proto Board(small) 1 65 65
18 S-Con 7 10 70
Connectors(2,12)
19 Reset Switch 1 4 4
20 Diode 4007 12 5 60
21 Ribbon Wire 1 25 25
22 Power Supply Cord 1 22 22
23 Rivets 75 0.8 60
24 Aluminum angel(90 2 240 480
degree)
25 Bolt 50 3 150
26 PVC Transparent Sheet 1 100 100
(4x3)
27 PCB board(Big) 2 70 140
28 PCB Board(Small) 2 10 20
TOTAL COST 8102