How to Create a Truth Table for a 10 Cent Coffee Machine?

  • Thread starter Thread starter ShakeECET109
  • Start date Start date
  • Tags Tags
    Coffee Machine
Click For Summary

Discussion Overview

The discussion revolves around the design of a truth table for a 10-cent coffee machine that accepts various coin combinations (nickels, dimes, quarters) and provides the correct change. Participants are focused on creating the truth table, writing the Sum of Products (SOP) form, and testing the circuit design using Altera software.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant outlines the initial truth table with inputs N1, N2, D, Q and outputs C, N, D1, D2, Q, expressing confusion about the correct combinations and the reduction of the boolean sum of products.
  • Another participant asks for clarification on where the original poster is having trouble, indicating a need for more specific guidance.
  • A later reply presents a complete truth table and expresses uncertainty about its correctness, particularly regarding the SOP forms for each output and their alignment with the circuit tested in Altera.
  • One participant provides detailed SOP equations for each output, including minimized forms and product of sums, but questions whether these equations are suitable for the intended design.
  • Another participant expresses feeling overwhelmed by the complexity of the discussion.
  • One participant suggests simplifying the design by eliminating inputs that exceed a quarter, questioning the necessity of combinations that exceed 25 cents.

Areas of Agreement / Disagreement

Participants do not appear to reach consensus on the correctness of the truth table or the SOP forms. There are multiple competing views regarding the design and functionality of the coffee machine, and the discussion remains unresolved.

Contextual Notes

There are limitations regarding the assumptions made about coin combinations and the specific requirements for providing change. The discussion includes unresolved mathematical steps and dependencies on definitions that are not explicitly stated.

ShakeECET109
Messages
18
Reaction score
0
Coffee Machine Desgin help PLEASE!

Hey Everyone, Not sure if this is where I can post this topic. I have a project in class to design a 10cent coffee machine. We just have to create the truth table, write the SOP form. Draw the circuit on @ltera and program the CPLD. I am having trouble creating the truth table, I know the inputs are N1(Nickel 1), N2(Nickel 2), D(Dime), Q(Quarter). The coffee machine has to give back the correct change so I know the outputs are C(coffee), N(Nickel), D1(Dime1), D2(Dime2), Q(Quarter). This is the start of my truth table.
_____INPUTS_________________OUTPUTS______
N1__N2__D___Q __________C___N__D1__D2__Q
0___0___0____0___________0___0___0___0___0
0___0___0____1___________1___1___1___0___0


Since I only have 4 inputs there should only be 16 possible combinations right? I get confused when you get the truth table and reduce the boolean sum of products for all five outputs. I am not sure if my equation is correct and I think I made a mistake on my truth table. Can anyone help me on the correct truth table to the design on this machine? Thanks guys
 
Physics news on Phys.org
Where exactly are you having trouble?

Do you know what the next line is?
 
yeah the whole truth table I got is

_____INPUTS_________________OUTPUTS______
N1__N2__D___Q __________C___N__D1__D2__Q
0___0___0____0___________0___0___0___0___0
0___0___0____1___________1___1___1___0___0
0___0___1____0___________1___0___0___0___0
0___0___1____1___________1___0___0___0___1
0___1___0____0___________0___1___0___0___0
0___1___0____1___________1___0___1___1___0
0___1___1____0___________1___1___0___0___0
0___1___1____1___________1___1___0___0___1
1___0___0____0___________0___1___0___0___0
1___0___0____1___________1___0___1___1___0
1___0___1____0___________1___1___0___0___0
1___0___1____1___________1___1___0___0___1
1___1___0____0___________1___0___0___0___0
1___1___0____1___________1___0___0___0___1
1___1___1____0___________1___0___1___0___0
1___1___1____1___________1___0___1___0___1

I wanted to be sure that this was the correct truth table for the design of a 10cent coffee machine that accepts 2 nickels, a dime, a quarter or any combination of those 4. AND also gives change for any amount over 10cents. I am having trouble writing the SOP forum of each output. I got the SOP for each output and then I used altera to test the circuit and it dosent go with this truth table. So I think I messed up somewhere on the table or writing the SOP forums of each output. Can anyone verify this is the correct table for my design? and the SOP forum for each output?
 
Entered by truthtable:
C = N1' N2' D' Q + N1' N2' D Q' + N1' N2' D Q + N1' N2 D' Q + N1' N2 D Q' + N1' N2 D Q + N1 N2' D' Q + N1 N2' D Q' + N1 N2' D Q + N1 N2 D' Q' + N1 N2 D' Q + N1 N2 D Q' + N1 N2 D Q;
N = N1' N2' D' Q + N1' N2 D' Q' + N1' N2 D Q' + N1' N2 D Q + N1 N2' D' Q' + N1 N2' D Q' + N1 N2' D Q;
D1 = N1' N2' D' Q + N1' N2 D' Q + N1 N2' D' Q + N1 N2 D Q' + N1 N2 D Q;
D2 = N1' N2 D' Q + N1 N2' D' Q;
Q1 = N1' N2' D Q + N1' N2 D Q + N1 N2' D Q + N1 N2 D' Q + N1 N2 D Q;

Minimized:
C = N1 N2' D' Q + N1' N2 D' Q + N1' N2' D' Q + N1 N2 + D ;
N = N1 N2' Q' + N1' N2 Q' + N1' N2' D' Q + N1 N2' D + N1' N2 D ;
D1 = N1 N2' D' Q + N1' N2 D' Q + N1' N2' D' Q + N1 N2 D ;
D2 = N1 N2' D' Q + N1' N2 D' Q;
Q1 = N1 N2 Q + D Q;

Minimized Product of Sums:
C = (N1+D+Q)(N2+D+Q);
N = (N1'+N2')(N1+N2+Q)(N1+N2+D')(N1+N2'+D+Q')(N1'+N2+D+Q');
D1 = (N1+D')(N2+D')(N1+D+Q)(N2+D+Q)(N1'+N2'+D);
D2 = (Q)(N1+D')(N2+D')(N1'+N2')(N1+N2+D);
Q1 = (Q)(N1+N2+D)(N1+N2'+D+Q')(N1'+N2+D+Q');

Factored:
C = D' Q (N2' (N1' + N1) + N1' N2) + N1 N2 + D;
N = N1' N2' D' Q + (N1 N2' + N1' N2) (Q' + D);
D1 = D' Q (N2' (N1' + N1) + N1' N2) + N1 N2 D;
D2 = D' Q (N1 N2' + N1' N2);
Q1 = Q (N1 N2 + D);Can anyone see what I am doing wrong? or if this equation works for the design I am trying to create? I don't have the equipment at home to test this circuit. Thanks any help is appreciated
 
Last edited:
Yikes. Way over my head...
 
Couldn't you eliminate the inputs where there is a quarter and some other coin. i.e. why complicate it with more than 25cents?
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
20K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K