Professional Documents
Culture Documents
Abstract
The objective of this project is to design and build an FPGA based vending machine control system prototype using
VHDL desig and modular approach. Vending Machine has its own comparative advantages compared with conventional
purchasing mechanism; it provides better accessibility and practicality, not to mention anonymity and limitless purchasing
time. These advantages become apparent in big metropolis city where the demand over practicality to purchase daily needs
such as beverages and snacks is high. Vending machine is designed with the fixed control over its nominal money input and
its product price and variety, due to the user’s demand. This control system has tendency to be static and hard to modify
neither its nominal money input nor its product price and variety. Thus, it is proposed to design the decent, easily configured
and modified control system by the user so that it can be applied respectably to the needs.
The FPGA based Vending Machine’s control system is designed using VHDL design and modular approach. This
approach is held with the main principal of dividing the whole system into modules implemented through VHDL. Eventually
these modules will be integrated and compiled using the Max+plusII software. The design runs smoothly on the ALTERA
EPF10K10 development board.
1
and 576 logic elements and 6.144 bit RAM with JTAG three choices per product. For the system input, three coin
connector for byteblaster connection [1] nominal generally used in Indonesia, IDR 200, IDR 500
The Vending Machine’s control system design is and IDR 1000. The IDR 100 coin is not used as it
conducted in VHDL (VHSIC Hardware Description considered inefficient.
Language). VHSIC itself stands for Very High Speed As explained before, the vending machine control
Integrated Circuits. HDL is the hardware description system is designed with modular approach, with the
language which defines circuit character and behaviour, objectives of flexibility in modification and faster error
and is the first hardware description language which gets source detection. These modules consist of several sub
the standardizations from the Institute of Electrical and modules.
Electronic Engineers (IEEE) through IEEE 1076, and In purchasing transaction process, buyers has to
IEEE 64 as the standard addition [4]. input a number of coins with certain nominal. To control
input and process to obtain the total input money, the Input
3. Vending Machine Control System Coin Module is designed. The Input Coin Module, or
MODUL_KOIN_MASUK in the VHDL design code, is a
module with the function of controlling the input coin,
Vending machine control system is designed
nominal per nominal. The module of
using modular approach to obtain the flexibility in design
MODUL_KOIN_MASUK as shown in figure 2 will count
configuration and error source detection. These modules,
the total of inserted coin, and states it as its output
which later would be integrated, consist of sub modules.
(TOTALUANG[6..0]).
The basic reason for modular approach is to
achieve design simplicity, and to avoid system complexity
that will lead to longer design time spent. In other words,
the modular approach design decreases the level of system
design complexity.
Besides that, the modular approach design will
easily allow the designer to spot the error and bugs during
the designing process within the nick of time. Figure 2 Vending machine Input Coin Module
From the user point of view, the modular In purchasing transaction process, besides
approach design allows the user to easily change or inserting the coin in respect to product’s prices, buyers
configure the data, since if the user wants to do some also has to select the product they wish to purchase and the
configuration, they only need to refer to the related amount of product selected. To facilitate this, The
modules and does not need to change the whole system MODUL_PEMILIH_PRODUK or The Product selector
design. The modules or diagram block for this vending Module is designed, as shown in figure 3
machine control system is shown in figure 1.
2
Figure 4. Vending machine Main Module
3
Figure 10 Temporal Tray Module
Pintu non
temporal tray
Uang masuk
Pintu
temporal tray
4
Total logic element used in the system design is 6. References
552 logic element or 86% of the FPGA’s total logic
element capacity. 1. Altera, 2001, FLEX 10K Embedded Programmable
The experiment result shows that the vending Logic Device Family, ALTERA Coorporation, USA.
machine control system runs well. The strength of this
2. Dong, B. & Roff, G., 2004, Adaptive Self-
control system is the simplicity in reconfiguration by user
Configuring Traffic Control Systems,
to meet the demand.
This vending machine control system is capable 3. Maxfield, C., 2004, The Design Warrior’s Guide to
of facilitating products with different prices and input FPGAs, Mentor Graphics Corporation and Xilinx
nominal coin with different value. The capability lays on Inc., USA.
its flexibility of modifying the inside data of prices and 4. Pedroni, V. A., 2004, Circuit Design with VHDL,
nominal, and adding or changing the amount of product MIT Press, Massachusetts.
sold and the variety of input coin, done by modifying the
related module instead of the whole system.
5. Conclusion
The experiment result shows that the vending
machine control system runs well; with total logic element
used in the system design is 552 logic element or 86% of
the FPGA’s total logic element capacity.
The vending machine control system has the
capability to facilitate products with different prices and
input nominal coin with different value. The capability
lays on its flexibility of modifying the inside data in
modules