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

Painting of structural components of skid, Q. Painting of structural compon...

Q. Painting of structural components of skid? Sandblasting and priming shall be carried out prior to assembly, and shall include all bolt holes, flange faces, etc. Flange gaske

Important terms related to boiler, IMPO R T AN T TERMS: Fi r e ...

IMPO R T AN T TERMS: Fi r e Box: Place where fuel is burnt. Grat e : The fuel is burnt on this. Baffles : Plates are used for directing the flow of flue gass

Key words related to railway line, Keywords related to railway line: ...

Keywords related to railway line: Railway Station : A facility along a railway line where trains stop and passengers are serviced, and cargo is handled. Platform : A fa

What are the two ways of pile foundation, What are the two ways of pile fou...

What are the two ways of pile foundation Pile foundations can be installed in two ways. Timber, steel and precast concrete piles, are driven from the ground using hammers till

Pulsed dc welding, Pulsed DC Welding Pulsed DC involves the repetitive ...

Pulsed DC Welding Pulsed DC involves the repetitive variation in arc current from a background (low) value to a peak value. Adjustments of the pulse current time, background cu

Equilibrium of rigid bodies, Ask question #MinimumThe man is pulling a load...

Ask question #MinimumThe man is pulling a load of 4kg with one arm held as shown. Determine the force FH this exerts on the humerus bone H, and the tension developed in the biceps

Working of lacashire boiler, Working of lacashire boiler: WORKIN G: ...

Working of lacashire boiler: WORKIN G: Water is filled through feed check valve. On burning fuel over grate, the hot gasses are produced which move in flue gas tubes.

GOVERNORS, Explain Wilson HArtnell Governor

Explain Wilson HArtnell Governor

M.o.s, Draw the shear force and bending moment diagrams for overhanging bea...

Draw the shear force and bending moment diagrams for overhanging beam subjected to pont load at its free end

Clearance volume, Clearance Volume ( V C ) : The nominal volume of the c...

Clearance Volume ( V C ) : The nominal volume of the combustion chamber above the piston when it is at the top dead centre is the clearance volume. It is designated as V C an

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