Good Afternoon,
Project to build and implement in my Digital logic course. I am generally ok in lab when given the topic at hand, but when given everything at our disposal in lab im kind of flustered at what to begin with on this. This lab is entirely independent from class, and generally dont learn much from the class side of it. I feel like this would be somewhat easy to make using basic AND OR NOT gates, although probably to clunky for the test board and im sure that is not the right way to go about it.....
This truth table works as far as I understand it. Any point into the right direction would be beneficial.
You are required to design and construct a circuit for a cookie vending machine. The machine sells cookie for 75 Yen each. Assume that there are only 25, 50, and 100 Yen coins. Three different types of coins can be denoted by three different switches on the board, respectively. With the total amount of input coins, seven-segment display A should display the number of cookies that a user can buy. Whenever there is changeafter getting the cookie, the machine will turn on an LED to remind the users of changes. For example, ifone 25 and one 100 Yen coins are inserted in the slot, turn on the LED to signal the change. However, if one 50 or one 25 are inserted in the slot, don’t turn on the LED. That is no cookie no change.
[Bonus Points]
Display the amount of changes in the unit of 25 Yen coins on seven-segment display B as a decimal number along with the number of cookies the machine sells. For example, if the changes are 50 Yen, the machine will display the number “2”.
Thanks in advance
Moderators note : used code tags to force monospaced font
Project to build and implement in my Digital logic course. I am generally ok in lab when given the topic at hand, but when given everything at our disposal in lab im kind of flustered at what to begin with on this. This lab is entirely independent from class, and generally dont learn much from the class side of it. I feel like this would be somewhat easy to make using basic AND OR NOT gates, although probably to clunky for the test board and im sure that is not the right way to go about it.....
Code:
100 yen 50 yen 25 yen LED #cookie #change
0 0 0 0 00 00
0 0 1 0 00 00
0 1 0 0 00 00
0 1 1 0 01 00
1 0 0 1 01 01
1 0 1 1 01 11
1 1 0 0 10 00
1 1 1 1 10 10
This truth table works as far as I understand it. Any point into the right direction would be beneficial.
You are required to design and construct a circuit for a cookie vending machine. The machine sells cookie for 75 Yen each. Assume that there are only 25, 50, and 100 Yen coins. Three different types of coins can be denoted by three different switches on the board, respectively. With the total amount of input coins, seven-segment display A should display the number of cookies that a user can buy. Whenever there is changeafter getting the cookie, the machine will turn on an LED to remind the users of changes. For example, ifone 25 and one 100 Yen coins are inserted in the slot, turn on the LED to signal the change. However, if one 50 or one 25 are inserted in the slot, don’t turn on the LED. That is no cookie no change.
[Bonus Points]
Display the amount of changes in the unit of 25 Yen coins on seven-segment display B as a decimal number along with the number of cookies the machine sells. For example, if the changes are 50 Yen, the machine will display the number “2”.
Thanks in advance
Moderators note : used code tags to force monospaced font
Last edited by a moderator: