Basic Logic Circuit for a vending machine

  • Context: Engineering 
  • Thread starter Thread starter jmckennon
  • Start date Start date
  • Tags Tags
    Circuit Logic Machine
Click For Summary
SUMMARY

The forum 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 amounts over 30 cents. Participants utilized a 7408 series AND gate chip to create a truth table but struggled with circuit design. The discussion emphasizes the need for additional logic gates, such as NAND gates, to implement the required functionality effectively. The use of Karnaugh maps for simplifying the logic expressions was also highlighted as a crucial step in the design process.

PREREQUISITES
  • Understanding of digital logic concepts, including truth tables and logic gates.
  • Familiarity with the 7408 series AND gate chip and its pin configuration.
  • Knowledge of Karnaugh maps for simplifying logic expressions.
  • Basic skills in circuit design and breadboarding techniques.
NEXT STEPS
  • Learn how to construct and interpret Karnaugh maps for logic simplification.
  • Study the functionality and applications of NAND gates in digital circuits.
  • Explore circuit design techniques using breadboards for practical implementation.
  • Investigate the use of other logic gate ICs, such as OR and NOT gates, in conjunction with AND gates.
USEFUL FOR

Students in digital logic courses, electronics hobbyists, and anyone involved in designing basic logic circuits for applications like vending machines.

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
4K
Replies
1
Views
3K