Logic Help!

Thread Starter

coldwin

Joined Nov 3, 2017
2
Hello,

We have been assigned an assignment to set up an Arduino. I messed up with the most important with this question.

Problem - Figure below shows the intersection of a highway with a local street.. Vehicle detection sensors are placed along lanes B and D ( highway ) and lanes A and C ( Street ). These sensor outputs are LOW (0) when no car is present and HIGH (1) when a car is present. The intersection traffic light is to be controlled according to the following logic:

- The east - west (E - W) traffic light will be green whenever both lanes D and B are occupied.
- The E - W light will be green whenever either D or B is occupied but lanes A and C are not both occupied.
- The north - south (N - S) light will be green whenever both lanes A and C are occupied but D and B are not both occupied.
- The N - S light will also be green when either A or C is occupied while D and B are both vacant.
- The E - W light will be green when no vehicles are present.



Q1. Using sensor outputs A, B, C, and D as inputs, design a logic circuit to control the traffic light. There should be two outputs, N - S and E - W that go HIGH when the corresponding light is to be green.
Q2. Write down the Truth Table for this circuit.
Q3. Write down the Some - of - Product form for this circuit without any simplification.
Q4. Simplify your logic expression ob tained in Q3. Justify each step down using the multivariable theorems taught during the lectures.
Q5. Use a K - map as an alternative tool to simplify the logic expression achieved in Q3.
Q6. Describe how your circuit would operate if the sensor located at section C is stuck HIGH.

My Arduino works but I can't make the logic work. Can you guys please help me with Q2 of this assignment? I did make a truth table but the teacher says it is wrong and I have no where to get extra support. Thank you! If you are generous, can you help me with other questions too?
 

dl324

Joined Mar 30, 2015
18,300
Welcome to AAC !

For homework you need to post your best efforts so members can see where you're having difficulty and attempt to guide you to a solution.
 

WBahn

Joined Mar 31, 2012
32,783
My Arduino works but I can't make the logic work. Can you guys please help me with Q2 of this assignment? I did make a truth table but the teacher says it is wrong and I have no where to get extra support. Thank you! If you are generous, can you help me with other questions too?
How can we possibly help you figure out where your truth table is wrong unless you show us your truth table?
 
Top