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

Objectives-ceramics-refractory and abrasive materials, Objectives Afte...

Objectives After studying this section, you should be capable to: known properties that are essential to be present in a material for high temperature applications,

Define the side rake angle, Define the Side Rake Angle? It measured the...

Define the Side Rake Angle? It measured the slope of top surface of the tool to the side in the direction perpendicular to longitudinal axis it also guides the direction of chi

Determine the number of steel and bronze disks, Choose a wire rope for a ve...

Choose a wire rope for a vertical mine hoist to lift a load of 55 KN from a depth 300 meters. A rope speed of 500 meter/min is to be attained in 10 seconds. A multi -disk clutch

Construction activities for plant, Construction Activities for plant Co...

Construction Activities for plant Construction activities, such as shoring and bracing of excavations, lifting and rigging activities and scaffolding need to be considered as p

Thermodaynamic, Ask question #MiThe steam that leaves the super-heater is e...

Ask question #MiThe steam that leaves the super-heater is expanded from 130bar at 535°C to 25.2bar at 310°C in a high pressure turbine. The steam from the exit of the HP turbine is

Drill bit-tool and equipment , Drill Bit: This is a drilling tool used in ...

Drill Bit: This is a drilling tool used in drilling machines. The application of this tool is to make holes. Figure shows drill bit. Figure: Drill Bit

Evaluate power transmitted by belt, Evaluate power transmitted by belt.  ...

Evaluate power transmitted by belt.  Sol: Let T 1  = Tension in tight side of the belt T 2 = Tension in slack side of the belt V = Velocity of belt in m/sec.  = Π

Determine the angle of jet, A jet of water moving at 8 m/sec. impinges on a...

A jet of water moving at 8 m/sec. impinges on a concave-shaped vane to deflect the jet through 120 o when stationary. If the vane is moving at 5 m/sec., determine the angle of jet

Estimate the viscosity of this diluted , A diluted polymer solution with a ...

A diluted polymer solution with a density of 1130 kg/m3 was extruded through a capillary tube of 3.5 mm internal diameter and 1 m long. The following results were obtained at 25°C.

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