Transcript

VENDINGMACHINEUSINGVHDL1ANCHALKATIYAR,2PRAGATISACHAN,3ANITADIADAL,4PALLAVIGAUTAM

M.TechScholar,VLSI,JayotiVidyapeethWomen’sUniversityJaipur,Rajasthan,INDIA

Email:[email protected],[email protected],[email protected], [email protected]

ABSTRACT

Vendingmachinesareusedtodispensesmalldifferentproducts,whenacoinisinserted.Thesemachinescanbeimplementedin differentways by usingmicrocontroller and FPGA board. Here in this paper,we proposed an efficient algorithm forimplementationofvendingmachineonFPGAboard.BecauseFPGAbasedvendingmachinegive fastresponseanduses lesspowerthanthemicrocontrollerbasedvendingmachine.TheFPGAbasedvendingmachinesupportsfourproductsandthreecoins.Thevendingmachineacceptscoinsasinputsinanysequenceanddeliversproductswhenrequiredamountisdepositedandgivesbackthechangeifenteredamountisgreaterthanthepriceofproduct.Italsosupportscancelfeaturemeansausercanwithdrawtherequestanytimeandenteredmoneywillbereturnedbackwithoutanyproduct.TheproposedalgorithmisimplementedinVerilogHDLandsimulatedusingXilinxISEsimulatortool.

1. INTRODUCTION

Avendingmachineisamachinethatprovidesitemssuchas fourdifferentproductsevendiamondsandplatinumjewellerytocustomers,afterthevendeeinsertscurrencyorcreditintothemachineusingextremelysimplesteps.These steps would not be time consuming at all. Thevendee would get all the details on the screen whichhe/she should follow. Previous microcontroller ormicroprocessorbasedvendingmachineswereinefficientas compared to FPGA based vending machine. So it isnecessary to make it more reliable with efficientalgorithmthatwillbe fully commandedbyFPGAbasedsolution.Themainpurposeofthisprojectwastocreatea vending machine which could provide four differentsnacks products to the people using extremely simplesteps.Wehavemadeanattempttovendfourproductsofdifferent prices in the samemachine. Themachinewillalsoprovidethechangetothevendeedependingontheamountofmoneyhe/shehasinserted.Itisalsopossibleto withdraw the deposited money in between, ifconsumerwishesbypressingacancelbutton.

2. DESIGNOBJECTIVES

To Design a powerful vendingmachine containingthefollowingfeatures:

1. Sell four different types of snacks and accept threetypesofcoins(Rs1,Rs2,Rs5)

2.Givechangeaftersuccessfultrade

3.Returnmoneywhentradefails

4.Smallsizeandacceptablepowerconsumption

5.Ifcancelbuttonisenter,amountwillreturn

3. VENDINGMACHINEDESIGN

Weknow that a vendingmachinemust rememberhowmuch money has been inserted. This means that itsoutputs are a function of past inputs, so it must be asequential circuit. Probably the bestway to design thiscircuitisasastatemachine.

Thevendingmachinedeliversapackageofgumafter ithasreceived15centsincoins.Themachinehasasinglecoinslot thatacceptsnickelsanddimes, onecoinatatime.

Amechanical sensor indicates to the controlwhether adimeoranickelhasbeeninsertedintothecoinslot.Thecontroller’soutputcausesasinglepackageofgumtobereleaseddownachutetothecustomer.

ANCHAL KATIYAR et al. DATE OF PUBLICATION: SEPTEMBER 25, 2014

ISSN: 2348-4098 VOLUME 2 ISSUE 7 SEP-OCT 2014

INTERNATIONAL JOUURNAL OF SCIENCE, ENGINEERING AND TECHNOLOGY- www.ijset.in 1446

4. OPERATIONOFVENDINGMACHINE

I.Whentheuserputsinmoney,moneycountertellsthecontrol unit, the amount of money inserted in theVendingMachine.

II. When the user presses the button to purchase theitem that hewants, the control unit turn on themotoranddispensestheproductifcorrectamountisinserted.

III. If there is any change;machinewill return it to theuser.

IV. The machine will demand for servicing when theproductsarenotavailableinsidethemachine.

ANCHAL KATIYAR et al. DATE OF PUBLICATION: SEPTEMBER 25, 2014

ISSN: 2348-4098 VOLUME 2 ISSUE 7 SEP-OCT 2014

INTERNATIONAL JOUURNAL OF SCIENCE, ENGINEERING AND TECHNOLOGY- www.ijset.in 1447

5. COINDISCREMINATOR

Figure:Schematicofcoindiscriminator

1‐ Coin entry,2‐Coin rolling,3‐Anvil,4‐Coinrolling ramp, 5‐ IR sensors, 6‐ Acceptation gate, 7‐Coinacceptancechute,8‐Coinrejectionchute

Whenacoinisintroducedintotheslot,itfallsverticallyandfirsthitsananvil,rollingdownashortrampofabouttencentimeters.Thesensorsarelocatedalongthispath,and their signals have to be processed to decide if thecoin is good or a fake before it reaches the end of theramp,wherethecoinisdriventothestorageorreturnedto the customer. The role of the sensors is tomeasurephysical properties of the coins, such as dimensions,conductivity,magnetic permeability, elasticity, etc., andeventheexistenceornotofrelief.Only thediameterofthe coin, actually its secant, can be directly measured,while for the remaining parameters only indirectinformation is obtained. This is not a limitation, sincewhat is really needed is to have for each coin a set ofparameters, sufficiently large so that, even consideringtheir drifts (due to aging, sensor accuracy, cointrajectory,etc.)

6. DESIGNMETHODOLOY

Flowchartofvendingmachine

Initiallywhen the reset button is pressed, themachinewill be ready for the users to select the product. Thisstateistheinitialstateofthedesign.Afterthistheuserwillselecttheproducttobedispensed.Thisstatecanbeone of the select1, select2, select3 and select 4. Themachine can accept only three types of coins i.e. Re1,Re2, Re5. Let us suppose that the user selects 1 input.Themachinewillfirstlycheckthewhethertheproductsare available in the machine or not.When the desiredamount is inserted themachine will go to the productstateandwillbedeliveredattheproductoutput.

If products are not available in the machine then thecontrolunitwilldemand for servicingandafter service

the machine will get reset. This methodology isexplainedusingaflowdiagramshowninFig3.Thereisalsoanadditional featureofwithdrawing therequest iftheuserdoesn’twantto taketheproduct.Whencancelbutton is pressed then the money inserted will bereturnedtotheuserthroughthereturnoutput.Amoneycount signal is used for calculating the total moneyinserted in the machine. And if the money inserted ismore than the money of the product then the extrachangewillbereturnedtotheuser.Thetotalamountofthe product taken at a time is shown by the moneysignal. Similarly the user can select and get the otherproductsfollowingtheaboveprocedure.

ANCHAL KATIYAR et al. DATE OF PUBLICATION: SEPTEMBER 25, 2014

ISSN: 2348-4098 VOLUME 2 ISSUE 7 SEP-OCT 2014

INTERNATIONAL JOUURNAL OF SCIENCE, ENGINEERING AND TECHNOLOGY- www.ijset.in 1448

7. BLOCKDIAGRAMOFVENDINGMACHINE

7.1.EXPLANATION

InFig2,themachinecanacceptthecoinsofonerupees,two rupees and five rupees in any possible sequence.There are coin slots and it commonly connected to theFPGA. User interface is used for coin dispense and

product dispense. Relay is used to control the productdispatch.TheprogramhaswrittenonKCPSM3processorand downloads into the FPGA Spartan‐3A kit by usingELBERT configuration for selecting products, coin sumandbalanceanditwillbedisplayonLCD.

8. RTLSCHEMATICVIEWOFVENDINGMACHINE

9. WAVEFORMOFVENDINGMACHINE

ANCHAL KATIYAR et al. DATE OF PUBLICATION: SEPTEMBER 25, 2014

ISSN: 2348-4098 VOLUME 2 ISSUE 7 SEP-OCT 2014

INTERNATIONAL JOUURNAL OF SCIENCE, ENGINEERING AND TECHNOLOGY- www.ijset.in 1449

10. CONCLUSION

Itwas observed through different scenarios, that FPGAbasedvendingmachinegivefastresponseandalsoshowlowpowerconsumptionandeasytousebyanordinaryperson. Our results clearly indicate that FPGA basedsolutionincreasestheefficiencyandaccuracyofvendingmachines.AlsowecanmonitortheFPGAbasedvendingmachinewiththemainframecomputer.Itsalgorithmisvery flexible and reliable as the vendor can easilyenhancethealgorithmforlargenumberofproductsandcoinsofdifferentdenominationsatlowcostascomparedtomicroprocessorbasedvendingmachine.

ANCHAL KATIYAR et al. DATE OF PUBLICATION: SEPTEMBER 25, 2014

ISSN: 2348-4098 VOLUME 2 ISSUE 7 SEP-OCT 2014

INTERNATIONAL JOUURNAL OF SCIENCE, ENGINEERING AND TECHNOLOGY- www.ijset.in 1450


Recommended