0% found this document useful (0 votes)
14 views5 pages

IJCRT2205047

The document describes the design and implementation of a vending machine using Verilog HDL on an FPGA (Xilinx basys3), which accepts both cash and card payments. The system is modeled using a Mealy machine state chart and validated through simulations and experiments, demonstrating effective functionality in various scenarios. The vending machine is proposed for use in public domains such as malls and universities, offering a modern alternative to traditional vending systems.

Uploaded by

govadajasper02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views5 pages

IJCRT2205047

The document describes the design and implementation of a vending machine using Verilog HDL on an FPGA (Xilinx basys3), which accepts both cash and card payments. The system is modeled using a Mealy machine state chart and validated through simulations and experiments, demonstrating effective functionality in various scenarios. The vending machine is proposed for use in public domains such as malls and universities, offering a modern alternative to traditional vending systems.

Uploaded by

govadajasper02
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

www.ijcrt.

org © 2022 IJCRT | Volume 10, Issue 5 May 2022 | ISSN: 2320-2882

Design and Implementation of Vending Machine


Using Verilog HDL
Akula Vamsi1, Gadiparthi Jagadessh2, Samayamanthula Vikas3, Pika Trisha Srinivas4, Yogesh Kumar Verma5
School of Electronics and Electrical Engineering, Lovely Professional University, Punjab, 144411, India1, 2, 3, 4, 5

Abstract:

In this brief, we have implemented vending machine using Verilog. The Verilog code is implemented on FPGA (Xilinx basys3).
This machine acknowledges both either cash (money) or card (credit). In the present work, we have designed the Vending machine
with the assistance of a mealy machine state chart. The configuration is demonstrated utilizing Verilog HDL dialect which is a
hardware description language used to portray the computerized framework. The model is validated by performing the suitable
experiments in a test-bench. The Verilog code created for vending machine model and implemented using Xilinx Vivado. The
Vending machine we planned can be utilized by both cash and card. The card framework will be more practical and aides for a rapid
access. The target here is to outline a proposed vending machine which acknowledge cash or card as inputs and conveys the items at
that obliged sum has been stored furthermore returning back the change. It is conceivable to withdraw the stored cash during the
process if the client wishes after squeezing a cross out cash. In this work, we have designed a vending machine with less
construction modelling when compared to similar work performed using IOT thereby reducing power consumption.

Keywords: FPGA; vending machine; Xilinx basys3; Xilinx Vivado; Verilog HDL.

Introduction:

Vending machines are utilized to pick-up different items like espresso, beverages, postcards, and gums when cash is embedded into
it. The vending machines are more sensible and functional than the traditional methods of picking the items. The vending machines
can be used in schools, universities, rail route stations, and airplane terminals for offering tickets and drinks. They are also used in
banks for providing tokens to the clients. The vending machine can be utilized at different places like schools, universities, and rail
route stations. These machines reduce cost, time, and work.
Vending machine using IOT and embedded systems has become outdated. In the 21 st century growth of VLSI industry has been
rapidly evolving; therefore, making vending machines using hardware descriptive language of VLSI as the novel idea of this work.
The present model is validated for the simulations against the experimental results obtained using FPGA. The results obtained using
simulations through Xilinx are in good agreement with the experimental results obtained using FPGA (basys3).
The work in this paper is organized into three sections. The first section is the introduction, followed by the results and discussions
in the second section. The third section represents the conclusion highlighting the utility of the present work.

IJCRT2205047 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org a424


www.ijcrt.org © 2022 IJCRT | Volume 10, Issue 5 May 2022 | ISSN: 2320-2882
Table 1
State table for withdrawing an item of 100 INR cost
CURRENT 100 RS 25 RS CHANGE NEXT STATE OUTPUT
STATE
S0 0 0 0 S0 0
0 1 0 S25 0
1 0 0 S100 0
1 1 25 S125 1
S25 0 0 0 S0 0
0 1 0 S50 0
1 0 25 S125 1
1 1 50 S150 1
S50 0 0 0 S50 0
0 1 0 S75 0
1 0 0 S100 1
1 1 75 S175 1
S75 0 0 0 S0 0
0 1 0 S100 1
1 0 75 S175 1
1 1 100 S200 1
S100 0 0 0 S100 1
0 1 25 S125 1
1 0 100 S200 1
S125 0 0 0 S0 0
S150 0 0 0 S0 0
S175 0 0 0 S0 0
S200 0 0 0 S0 0

Fig. 1: Block diagram of vending machine

Description of different blocks of the vending machine

(a) Clock divider

Clock divider is an input signal of frequency F in with an output signal of frequency Fout, expression as Fout= Fin/n; where n is the
interior frequency divider.

IJCRT2205047 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org a425


www.ijcrt.org © 2022 IJCRT | Volume 10, Issue 5 May 2022 | ISSN: 2320-2882
Results And Discussions:

Fig. 2: Description of inputs and outputs of vending machine

The above-mentioned image description as follows:


If 1 is pressed it indicated the insertion of rupees 100
If 2 is pressed it represents OK
If 3 is pressed it represents the selection of items worth rupees 200
If 4 is pressed it represents the selection of items worth rupees 150
If 5 is pressed it represents the selection of items worth rupees 75
If 6 is pressed it represents the selection of items worth rupees 25
If 7 is pressed it represents RST
If 8 is pressed it indicated the insertion of rupees 25

Fig. 3: Demonstration of inserting rupees 200 and withdrawing items worth rupees150

IJCRT2205047 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org a426


www.ijcrt.org © 2022 IJCRT | Volume 10, Issue 5 May 2022 | ISSN: 2320-2882

Fig. 4: Demonstration of inserting rupees 200 and withdrawing items worth rupees 25

Simulation results

Fig. 5: Simulated waveform of vending machine using Xilinx Vivado

For every rising edge of the clock the input checks for rupees 100 and 25 simultaneously. If any one of them is active high then it
checks for the items, we tend to select items of worth rupees 200, 150, 75 or 25. If any of these items are selected then output is
drawn and change is given respective to it and accordingly displayed by the Xilinx basys3 FPGA.

Conclusion

The objective of the present work is the implementation of vending machine using Verilog HDL. This task is accomplished through
Xilinx Vivado with few modules that includes clock divider, FSM, refresh counter, BCD convertor, and anode/cathode controller.
The output of the vending machine is derived in Xilinx Vivado. Xilinx basys3 is used for the hardware implementation. The utility
of the present work has wide range of opportunities in public domain like malls, cafeteria, universities, parks, airports for
distribution of snacks, fare-tickets, etc.

IJCRT2205047 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org a427


www.ijcrt.org © 2022 IJCRT | Volume 10, Issue 5 May 2022 | ISSN: 2320-2882
References

[1] Krishna, V.V.S.V, “Design and implementation of an automatic beverages vending machine and its performance evaluation
using Xilinx ISE and Cadence,” Proceedings of the 4th International IEEE Conference, 2013.
[2] J. Bhaskar, “VHDL primer,” Third Edition.
[3] Ana Monga, Balwinder Singh, “Finite State Machine based Vending Machine Controller with Auto-Billing Features,”
International Journal of VLSI design & Communication Systems (VLSICS) Vol.3, No.2, April 2012.
[4] A. Dunlop and B. Kernighan, “A procedure for placement of standard cell VLSI circuits,” IEEE Trans. on Computer-Aided
Design of Integrated Circuits and Systems, pp. 92–98, 1985.
[5] Cadence. Encounter Design Flow Guide and Tutorial, Product Version 9.1, May 2010.
[6] Steve Kilts, “Advanced FPGA Design: Architecture, Implementation, and optimization,” Wiley-IEEE press, 2007.
[7] Xilinx Inc., Spartan 3 Data Sheet: http://www.xilinx.com.

IJCRT2205047 International Journal of Creative Research Thoughts (IJCRT) www.ijcrt.org a428

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy