Design a soda vending machine, Mechanical Engineering

Assignment Help:

Design a soda vending machine that can deliver three kinds of soda, A, B and C. All the three soda cost the same amount - 70 cents. The vending machine has four coin slots, one each for nickel (N = 5c), dime (I = 10c), quarter (Q = 25c) and dollar (D = 100c). Coins are inserted into the machine one at a time in any order.

1918_Design a soda vending machine.png

The machine should take coins until 70 cents or more has been put in. When this occurs, the machine should wait for the choice of the soda A, B or C. After the choice is made, the machine is ready for vending. The machine should indicate vending by turning on one of the lines A_O, B_O or C_O for 1 second. During this time the machine cannot accept any coins. After 1 second, the machine is ready to accept coins again. The machine does not return any change. The machine should be a Finite State Machine (FSM) operating with a 100 Hz clock. The machine should have a reset input (R), which when pressed and released puts the machine in READY mode. Whenever this happens, the machine should display the total amount accumulated since last reset. Also, the internal amount accumulated is reset to zero cents.

You can assume that the soda cans are unlimited in number.

Write a VHDL code that implements the above soda machine. You have to turn in the following:
 
1. A state diagram showing the implementation of your design. Clearly show all the states and the conditions on which transitions occur.

2. Hardcopy of your VHDL code and the testbench.

3. Hardcopy of annotated waveforms that show at least the following cases:

(a) Normal operation of soda vending, showing the order in which the coins are inserted,  the state transitions and the vending process. Show that your machine does not accept coins when the machine is vending.

(b) Show the reset operation after a few sodas are vended, clearly displaying the total  amount accumulated and the state change.


Related Discussions:- Design a soda vending machine

Expression for temperature distribution, Derive the mathematical expression...

Derive the mathematical expression for temperature distribution for plane wall with internal heat generation when both the surfaces are at same temperature?

Estimate elapsed time and height , Phase 1 Initially ALL Valves A, B, C...

Phase 1 Initially ALL Valves A, B, C, D, E and F are closed.  ALL Tanks A, B, C, D, E are separated and each sealed from the atmosphere. Tank E initially has 2' of air @

Calculate the maximum shear stress, The square cross sections A and B a...

The square cross sections A and B are shown in Fig Q1, the dimensions b = 80 mm, thickness t = 10 mm. A shear force V is applied at the cross section, calculate the maximum she

Working of drum type brake , Working of Drum Type Brake: When we apply br...

Working of Drum Type Brake: When we apply brake to the motorcycle that means we are applying force 'F' to the brake shoes. This force pushes the brake shoes towards the drum surf

Electron beam welding-nuclear applications, NUCLEAR APPLICATIONS OF ELECTRO...

NUCLEAR APPLICATIONS OF ELECTRON BEAM WELDING   Electron beam has been applied to the fabrication of fuel elements for pressurised water reactors and the distinct advantages

Shear force and bending moment diagrams and contra flexure, Draw the shear ...

Draw the shear force and bending moment diagrams for the beams shown in Figures 4 and 5. Also find the maximum shear force, bending moment and the points of contra-flexure

Determine tension in the rope - motion of lift, Determine tension in the ro...

Determine tension in the rope: An elevator cage of mineshaft, weighing 8KN when, is lifted or lowered by means of wire rope. Once man weighing 600N entered it and lowered wit

Brass is an alloy of which materials, Brass is an alloy of (A) Copper ...

Brass is an alloy of (A) Copper and zinc.  (B) Copper and iron. (C) copper and Aluminium.  (D) Copper and tin. Ans: Brass is an alloy of copper and zin

Steam engine main parts, STEAM ENGINE MAIN PARTS:    Connecting Rod: ...

STEAM ENGINE MAIN PARTS:    Connecting Rod: It connects cross head with crank on other side.    Crank Shaft: It is output shaft on which the mechanical power which is a

Describe cold extrusion, Q. Describe Cold extrusion? • Cold extrusio...

Q. Describe Cold extrusion? • Cold extrusion is done at room temperature or near room temperature. • The advantages of this over hot extrusion are the lack of

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd