Combinational Logic Circuit

In summary, the Heater and a thermometer with four sensors: a, b, c, d can operate in series or in parallel connection.
  • #1
says
594
12
A Heater and a thermometer with four sensors:

a, b, c, d (input variables) ((a = highest temperature to d = lowest temperature))

Particular sensors indicate logical 1, if temperature is above level Ta, Tb, Tc , Td.

Design a circuit for three switches: Sw1, Sw2 and Sw3, Sw4 (outputs) so that the heaters can operate in series or in parallel connection.

(1) The temperature < Td --- H1 and H2 work in parallel
(2) Td < the temperature < Tc --- only H1 is working
(3) Tc < the temperature < Tb --- only H2 is working
(4) Tb < Temperature < Ta -- H1 and H2 work in series
(5) T ≥ Ta --- H1 and H2 are NOT working

I was just wondering if someone could give me some feedback. I've made a truth table with the input variables (temperature) and with the output variables (sensors) below.

Ta | Tb | Tc | Td |
0 | 0 | 0 | 0
0 | 0 | 0 | 1
0 | 0 | 1 | 0
0 | 0 | 1 | 1
0 | 1 | 0 | 0
0 | 1 | 0 | 1
0 | 1 | 1 | 0
0 | 1 | 1 | 1
1 | 0 | 0 | 0
1 | 0 | 0 | 1
1 | 0 | 1 | 0
1 | 0 | 1 | 1
1 | 1 | 0 | 0
1 | 1 | 0 | 1
1 | 1 | 1 | 0
1 | 1 | 1 | 1 Sw1 (A) | Sw2 (B) | Sw3 (C) | Sw4 (D) | OUTPUT
0 | 0 | 0 | 0 | 0
0 | 0 | 0 | 1 | 0
0 | 0 | 1 | 0 | 0
0 | 0 | 1 | 1 | 1 (5)
0 | 1 | 0 | 0 | 1 (3)
0 | 1 | 0 | 1 | 1 ***
0 | 1 | 1 | 0 | 1 *** (NOT SURE ABOUT THIS ONE)
0 | 1 | 1 | 1 | 1 ***
1 | 0 | 0 | 0 | 0
1 | 0 | 0 | 1 | 1 (2)
1 | 0 | 1 | 0 | 0
1 | 0 | 1 | 1 | 1 ***
1 | 1 | 0 | 0 | 1 ***
1 | 1 | 0 | 1 | 1 (1)
1 | 1 | 1 | 0 | 1 (4)
1 | 1 | 1 | 1 | 1 ***

*** I'm not sure if these outputs should be 1's or X (don't care states) on the truth table. I've attached a photo of the circuit.

Y= CD + B + BD + BCD + AD + ACD + AB + ABD + ABC + ABCD

Y = CD + AD + B (reduced form)

Therefore the circuit is:

C
-----AND GATE -----------
D

A
-----AND GATE --------- (3 INPUT OR GATE (CD, AD and B all lead to this OR gate)
D

B -------------------------Sw1 (A) Sw2 (B) Sw3 (C) Sw4 (D) OUTPUT
0 1 1 0 1

According to the reduced function, if Sw2 (B) is on 1 then the output will always be 1. However, this appears to contradict the photo in which Sw2 (B) relies upon Sw3 (C) being 0 so that the circuit can loop around and have an output of 1.

I think I've overthought this a little bit so I might just leave it here for now and see if anyone can give me some feedback. Cheers!

P.S. Sorry about the formatting.
 

Attachments

  • Screen Shot 2015-10-31 at 1.54.02 am.png
    Screen Shot 2015-10-31 at 1.54.02 am.png
    6 KB · Views: 360
Last edited:
Engineering news on Phys.org
  • #2
Hello says

Temperature sensor truth table:
Does the problem state a particular sensor will send a signal above a threshold temperature?
Is that sensor signal dependent upon what another sensor is sending?

says said:
Design a circuit for three switches: Sw1, Sw2 and Sw3, Sw4 (outputs) so that the heaters can operate in series or in parallel connection.

I see 4 switches.
I also see 4 in the truth table and in your picture post.

Maybe you could clarify more clearly.

From the circuit: It does seem to be problematic.
If the switch 3 is between the bottom connection of heaters 1 and 2 and the bottom rail, then switch 3 would be closed for the heaters to operate either singly or in parallel.
There would then appear to be no series circuit.

If the switch 3 is along the bottom rail, then the heaters can operate in series, or not at all.
Not sure where the bottom connection of the two heaters fits to which side of switch 3.
 
  • #3
Thanks for the reply!

Yes, the whole question is a bit confusing in my opinion -- especially the "design a circuit with 3 switches, sw1, sw2, sw3, sw4" bit...

I think they mean to design a circuit with 4 switches, and it was just a typing error! I'm just going to design a circuit with 4 switches.

I've attached a new photo with some new calculations.
 

Attachments

  • photo (12).JPG
    photo (12).JPG
    68.8 KB · Views: 344
  • #4
If the temperature is above a certain level, then do all the other temperature sensors below it also have to be a logic 1?

For example: Ta | Tb | Tc | Td OUTPUT: sw1 = ? sw2 = ? sw3 = ? sw4 = ?
1 0 0 0


In my mind this isn't possible, because the temperature cannot be above Ta but below Tb, Tc, and Td. In this case I would take the output value from the previous row on the truth table and insert that into the output:

Ta | Tb | Tc | Td OUTPUT: H1 and H2 work in series
0 1 1 1 sw1 = 1 sw2 = 1 sw3 = 1 sw4 = 0

Therefore:

Ta | Tb | Tc | Td OUTPUT: sw1 = 1 sw2 = 1 sw3 = 1 sw4 = 0
1 0 0 0

P.S. Formatting! Sorry.
 
  • #5
says said:
Thanks for the reply!

Yes, the whole question is a bit confusing in my opinion -- especially the "design a circuit with 3 switches, sw1, sw2, sw3, sw4" bit...

I think they mean to design a circuit with 4 switches, and it was just a typing error! I'm just going to design a circuit with 4 switches.

I've attached a new photo with some new calculations.

A typo could be possible, I wasn't sure if I was not reading it correctly.
I do think it is possible to have a circuit with 3 switches and operate as they state.

Code:
Truth table ** would be:    dc=don't care

Switch                  Heater
1     2     3          1     2        Comments
Off  Off   Off        Off   Off    All heaters off
On   Off   Off        On    Off    Heater 1 On
Off  On    Off(*)     Off   On     Heater 2 On
On   On    Off        On    On     Parallel
Off  Off   On         On    On     Series

* Circuit would still function with a 'dc', but best for an Off for optimization, safety, failsafe.
** another mirror circuit could be made, except connections for Switch 3 and Switch 2 have to be changed.
 
  • #6
says said:
P.S. Formatting! Sorry.

No problem.
You can format in the code window, by selecting the + symbol in the menu, and type away in the pop up window.
 
  • #7
256bits said:
A typo could be possible, I wasn't sure if I was not reading it correctly.
I do think it is possible to have a circuit with 3 switches and operate as they state.

Code:
Truth table ** would be:    dc=don't care

Switch                  Heater
1     2     3          1     2        Comments
Off  Off   Off        Off   Off    All heaters off
On   Off   Off        On    Off    Heater 1 On
Off  On    Off(*)     Off   On     Heater 2 On
On   On    Off        On    On     Parallel
Off  Off   On         On    On     Series

So this truth table corresponds to:

ROW 1: T ≥ Ta --- H1 and H2 are NOT working
ROW 2: Td < the temperature < Tc --- only H1 is working
ROW 3: Tc < the temperature < Tb --- only H2 is working
ROW 4 The temperature < Td --- H1 and H2 work in parallel
ROW 5: Tb < Temperature < Ta -- H1 and H2 work in seriesI'm trying to understand what this circuit will look like now. What the function will be and what gates it will have.
 
  • #8
I think I have to draw a diagram of the circuit as well and write down the function, but I'm a little confused because there is a H1 and H2 output.

H1 = sw1 NOTsw2 NOTsw3 + sw1 sw2 NOTsw3 + NOTsw1 NOTsw2 sw3
H2 = NOTsw1 sw2 NOTsw3 + sw1 sw2 NOTsw3 + NOTsw1 NOTsw2 sw3

H1 & H2 BOTH WORKING: sw1 sw2 NOTsw3 + NOTsw1 NOTsw2 sw3

I think I might assign letters to each of the switches and then try to derive a simpler expression. I don't think I need the H1 & H2 both working function either.
 
  • #9
H1 = A 'B 'C + A B 'C + 'A 'B C
H2 = 'A B 'C + A B 'C + 'A 'B C

Both of these functions don't make sense. :s
 
  • #10
says said:
H1 = A 'B 'C + A B 'C + 'A 'B C
H2 = 'A B 'C + A B 'C + 'A 'B C

Both of these functions don't make sense. :s

I really feel for you on this. I do absolutely dislike truth tables and trying to make a circuit from them.

I don't know if I should give you the circuit I came up with as it might be cheating, but here goes anyways.
Hopefully this is correct to work.

1. Draw the top rail V and the bottom rail Grd
2. Put 2 heater resistors upright to the rails but do not connect to the rails. Label H1 to the left, H2 to the right.
3. Connect H1 to the top rail.
4 Connect H2 to the top rail.
5 erase the top rail connection between H1 and H2.
6. Put a swithch in there. Label S2
7 Put a switch S1 between H1 and the bottom rail.
8 Connect H2 to the bottom rail
9. Locate the bottom of H1 before S1 and the top of H2. connect these 2 positions with switch S3.

( You can change the locations of S1, S2, S3 and H1, H2 if preferrred, with corresponding thruth table changes.
You might want to do that anyways to see how the truth tables differ )

Now with all switches open, no current can flow and all heaters off.
By a selection of switches open and closed, H1 and H2 can operate as needed.
Note that with all switches closed, there is a short circuit.
Hopefully I did not make an error.

What you should do is expand the switch and heater table for all 8 occurances of switches open/closed and heaters On/Off.
Easier to see what is going on.
Some might be Don't Care, or Dissallowed states of switches.
( some of the Don't Cares might be converted to Dissallowed in real life, sometimes it is not necessary to do so )

The big part is now doing the AND/OR gates for this to function, and tying in the temperature sensors.

PS I apologize for the late reply.

Another PS : For future consideration. You might want to consider posting in the Homework Section as it gets replies like toute de suite.
 
  • #11
V-----------SWITCH2------H2--------
|
|
|
|
--H1------SWITCH1--------------GRND

Like this? I would have put switch three above GRND and connected it on the right hand side of the circuit but formatting... hahaha
 
  • #12
Actually, I'm trying to see how the circuit would work in series now I take a second look...
 
  • #13
This circuit looks a bit better.

EDIT: H2 should be to the left hand side of switch 2, then I think everything is fine.
 

Attachments

  • photo (13).JPG
    photo (13).JPG
    58.5 KB · Views: 334
Last edited:
  • #14
Ok, this is my final answer. I think everything looks good now. Thank you very much for your feedback 256bits! :D
 

Attachments

  • photo (14).JPG
    photo (14).JPG
    67.9 KB · Views: 334
  • photo (15).JPG
    photo (15).JPG
    49.3 KB · Views: 322
  • #15
says said:
Ok, this is my final answer. I think everything looks good now. Thank you very much for your feedback 256bits! :D
Super.
I guess we really didn't cheat, because your circuit is different than mine, and it seems to work.

cheers
 

Related to Combinational Logic Circuit

What is a "Combinational Logic Circuit"?

A combinational logic circuit is a type of digital logic circuit that uses input signals to generate output signals. It consists of logic gates and is designed to perform a specific logical function, such as addition, multiplication, or comparison.

What are the basic components of a "Combinational Logic Circuit"?

The basic components of a combinational logic circuit include logic gates (such as AND, OR, and NOT gates), input signals, and output signals. These components are connected together to form a circuit that performs a specific logical function.

What is the difference between a "Combinational Logic Circuit" and a "Sequential Logic Circuit"?

The main difference between a combinational logic circuit and a sequential logic circuit is that a combinational logic circuit has no memory element, meaning that the output is solely determined by the current input. In contrast, a sequential logic circuit has a memory element and the output is determined not only by the current input, but also by previous inputs and the current state of the circuit.

What are some common applications of "Combinational Logic Circuits"?

Combinational logic circuits are used in a wide range of applications, including computer processors, calculators, digital clocks, and traffic lights. They are also used in various electronic devices, such as smartphones, televisions, and home appliances.

What are the advantages of using "Combinational Logic Circuits"?

Some of the advantages of using combinational logic circuits include their simplicity, low cost, and fast operation. They also have a wide range of applications and can be easily integrated with other digital circuits. Additionally, combinational logic circuits do not require a clock signal, making them more energy efficient compared to sequential logic circuits.

Similar threads

  • Electrical Engineering
Replies
4
Views
962
  • Electrical Engineering
Replies
2
Views
576
  • MATLAB, Maple, Mathematica, LaTeX
Replies
10
Views
1K
Replies
55
Views
3K
  • Electrical Engineering
Replies
1
Views
1K
  • Electrical Engineering
Replies
32
Views
3K
  • Set Theory, Logic, Probability, Statistics
2
Replies
45
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
14
Views
4K
  • Introductory Physics Homework Help
Replies
4
Views
406
  • Introductory Physics Homework Help
Replies
8
Views
810
Back
Top