- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Vending machine
The vending machine dispenses two items: a can of soda or a candy bar. The can of soda costs $7 while the candy bar costs $4. 1. There is an input select for each product and a reset input that takes the machine to the idle state. 2. The machine only accepts $1 and $5 bills. 3. When sufficient funds have been inserted, the product selection is made. The maximum amount of money that can be inserted is $10. 4. Change is dispensed but only in $1 bills. 5. If a product selection is made and insufficient funds have been inserted, the machine illuminates an “insufficient funds” display and waits for more money to be inserted. 6. The transaction can be cancelled at any time with the appropriate refund. 7. If the product is not available, all money is returned. 8. When a product is dispensed the customer must take it before a new transaction can start.Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you talk about Algorithmic Machine, you can use FSM approach. Try stateflow from Matlab. Good luck
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sounds like a good project - please ask any questions when you get stuck writing code..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'd suggest to design your state machine on paper first, defining your different states and transitions. Then it will be easier to translate it into VHDL code.
As I side note I find those prices expensive. If the point is to prevent people from eating and drinking unhealthy food you should also consider distributing fruits and vegetable snacks.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page