Engineering Basic Logic Circuit for a vending machine

Click For Summary
The discussion focuses on designing a logic circuit for a vending machine that accepts nickels, dimes, and quarters, dispensing water for 15-30 cents and beer for over 30 cents. Participants are struggling to create a circuit diagram using a single Quad AND IC and are seeking guidance on how to implement the truth table effectively. Suggestions include using NAND gates for greater flexibility and employing Karnaugh maps to simplify the logic. The importance of organizing the truth table to minimize changes in input bits is also highlighted. Overall, the conversation emphasizes the challenge of constructing the circuit with limited components while ensuring correct outputs based on coin inputs.
jmckennon
Messages
39
Reaction score
0

Homework Statement


Design a logic circuit to simulate the circuitry that might exist in a vending machine. the vending machine accepts inputs of nickels, dimes, and quarters but only one of each. It dispenses water and beer. Use three logic switches to simulate the coin detectors one each for nickels dimes and quarters. and two indicator lights for water and beer. for amounts less than 15 cents, no output is given. for amounts of 15-30 cents, water is dispensed. for amounts over 30 cents, beer is dispensed.

This problem was assigned in my 3 hour lab period today, and none of the groups were able to draw out a sketch of the possible AND, OR, and NAND combinations that could make this circuit work.


Homework Equations





The Attempt at a Solution



I'm just beginning in digital logic so i don't have much logical background. I started off by making a truth table

N D Q W B
0 0 0 0 0
0 0 1 1 0
0 1 0 0 0
0 1 1 0 1
1 0 0 0 0
1 0 1 1 0
1 1 0 1 0
1 1 1 0 1


we used 1 7408 series AND gate chip, but I don't really know how to draw out the circuit. It's worth a hefty amount of points on my exam wednesday morning so any help would be appreciated in drawing how this circuit would work
 
Physics news on Phys.org
http://www.utcbanyat.com/Web%20_Digital/GATE%20PICTURE/7408.gif

is the picture of the chip we used. i know the outputs are pins 3 and 11, but if i were to draw out the circuit logically, OR use it on a breadboard, how would i get this to work?
 
Last edited by a moderator:
You're only allowed to use one Quad AND IC to implement the truth table? AND gates by themselves are not sufficient to implement general logic. If you are asked to use just the single Quad AND IC, then you will have to use some tricks to implement that truth table, it would seem.

If you are allowed to use any number of NAND gates (which are sufficient by themselves to implement general logic), or if you can use a mix of inverters, OR and AND gates, then you would re-write the truth table above, with the 3 left columns sorted in an order so that only one bit changes at a time (what is this ordering called?), and then draw 2 Karnaugh maps -- one for each output. Then group terms on the K-maps, and implement those minterms with your logic gates. Sound familiar?

http://en.wikipedia.org/wiki/Minterms

.
 

Similar threads

  • · Replies 14 ·
Replies
14
Views
5K
Replies
9
Views
3K
  • · Replies 10 ·
Replies
10
Views
5K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 1 ·
Replies
1
Views
5K