Truth table with logical gates for a traffic lightWriting down logic of a circuitSR Latch/Racing?What operation does this circuit perform?Output of XOR gate with high-impedance inputLogic Gates - Did I connect them correctly?NAND Gate Logic OptimizationCreate a circuit with max 6 NAND gates

Is there any reason nowadays to use a neon indicator lamp instead of an LED?

Did Apollo carry and use WD40?

How to manage expenditure when billing cycles and paycheck cycles are not aligned?

Writing a letter of recommendation for a mediocre student

Which museums have artworks of all four ninja turtles' namesakes?

How can I prevent soul energy from dissipating?

Can planetary bodies have a second axis of rotation?

Debussy as term for bathroom?

US entry with tourist visa but past alcohol arrest

Safely hang a mirror that does not have hooks

Is there any actual security benefit to restricting foreign IPs?

How to deal with my team leader who keeps calling me about project updates even though I am on leave for personal reasons?

Do the villains know Batman has no superpowers?

How to make interviewee comfortable interviewing in lounge chairs

Pseudo Game of Cups in Python

How would a native speaker correct themselves when they misspeak?

Aligning two sets of equations with alignat?

Do things made of adamantine rust?

Manager encourages me to take day of sick leave instead of PTO, what's in it for him?

Is it true that, "just ten trading days represent 63 per cent of the returns of the past 50 years"?

Escape the labyrinth!

How to fix folder structure in Windows 7 and 10

Apple Developer Program Refund Help

Are actors contractually obligated to certain things like going nude/ Sensual Scenes/ Gory Scenes?



Truth table with logical gates for a traffic light


Writing down logic of a circuitSR Latch/Racing?What operation does this circuit perform?Output of XOR gate with high-impedance inputLogic Gates - Did I connect them correctly?NAND Gate Logic OptimizationCreate a circuit with max 6 NAND gates






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3












$begingroup$


I want to create this truth table:
truth table



So I tried this but I was not able to get the last row, which is:
While a =1 and b =1 ,yellow = 1 red = 0 and green = 0.

This is my design for it, but I could not make the last row.



enter image description here



Does anyone have a sample or a tip about what I can do to fix this?

Thanks!










share|improve this question











$endgroup$













  • $begingroup$
    I remember doing a traffic light problem like this in one of my school labs.
    $endgroup$
    – user4574
    Apr 15 at 13:14










  • $begingroup$
    @user4574 yep it is one of my assignments
    $endgroup$
    – John wiliam
    Apr 15 at 18:14

















3












$begingroup$


I want to create this truth table:
truth table



So I tried this but I was not able to get the last row, which is:
While a =1 and b =1 ,yellow = 1 red = 0 and green = 0.

This is my design for it, but I could not make the last row.



enter image description here



Does anyone have a sample or a tip about what I can do to fix this?

Thanks!










share|improve this question











$endgroup$













  • $begingroup$
    I remember doing a traffic light problem like this in one of my school labs.
    $endgroup$
    – user4574
    Apr 15 at 13:14










  • $begingroup$
    @user4574 yep it is one of my assignments
    $endgroup$
    – John wiliam
    Apr 15 at 18:14













3












3








3





$begingroup$


I want to create this truth table:
truth table



So I tried this but I was not able to get the last row, which is:
While a =1 and b =1 ,yellow = 1 red = 0 and green = 0.

This is my design for it, but I could not make the last row.



enter image description here



Does anyone have a sample or a tip about what I can do to fix this?

Thanks!










share|improve this question











$endgroup$




I want to create this truth table:
truth table



So I tried this but I was not able to get the last row, which is:
While a =1 and b =1 ,yellow = 1 red = 0 and green = 0.

This is my design for it, but I could not make the last row.



enter image description here



Does anyone have a sample or a tip about what I can do to fix this?

Thanks!







logic-gates simulink






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 19 at 15:45







John wiliam

















asked Apr 15 at 11:46









John wiliamJohn wiliam

185 bronze badges




185 bronze badges














  • $begingroup$
    I remember doing a traffic light problem like this in one of my school labs.
    $endgroup$
    – user4574
    Apr 15 at 13:14










  • $begingroup$
    @user4574 yep it is one of my assignments
    $endgroup$
    – John wiliam
    Apr 15 at 18:14
















  • $begingroup$
    I remember doing a traffic light problem like this in one of my school labs.
    $endgroup$
    – user4574
    Apr 15 at 13:14










  • $begingroup$
    @user4574 yep it is one of my assignments
    $endgroup$
    – John wiliam
    Apr 15 at 18:14















$begingroup$
I remember doing a traffic light problem like this in one of my school labs.
$endgroup$
– user4574
Apr 15 at 13:14




$begingroup$
I remember doing a traffic light problem like this in one of my school labs.
$endgroup$
– user4574
Apr 15 at 13:14












$begingroup$
@user4574 yep it is one of my assignments
$endgroup$
– John wiliam
Apr 15 at 18:14




$begingroup$
@user4574 yep it is one of my assignments
$endgroup$
– John wiliam
Apr 15 at 18:14










4 Answers
4






active

oldest

votes


















3














$begingroup$

YELLOW = $B$.



RED = $bar A$.



GREEN = $overline RED + YELLOW$



enter image description here



Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light.



One OR gate and two inverters would do the trick.






share|improve this answer











$endgroup$














  • $begingroup$
    thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
    $endgroup$
    – John wiliam
    Apr 15 at 11:59



















2














$begingroup$

You can write the equations easily from the truth table



$$Red = bar A $$
$$Yellow = B$$
$$Green = A land bar B$$



They can be built the following circuit:
enter image description here






share|improve this answer









$endgroup$










  • 1




    $begingroup$
    thanks for the picture :)
    $endgroup$
    – John wiliam
    Apr 15 at 12:00


















2














$begingroup$

I do have a tip for you!



Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the advice :)
    $endgroup$
    – John wiliam
    Apr 15 at 18:13


















1














$begingroup$

I will be honest and say, i am not all that good at designing logic diagrams, way too long since i had it in school. But there is one thing i remember: Logic Friday. Its a freeware program that is an immense help when designing such diagrams and solving the equations. Using Logic Friday, i got these results:



A - input 1



B - input 2



F3 - red



F4 - yellow



F5 - green



Logic input gave me this truthtable after minimizing:



F3 = A';



F4 = B;



F5 = A B';



And this diagram followed:



Logic diagram



I know a program like this is no substitute for real knowledge, but it works for a home fiddler like me.



Good luck :)






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the help :)
    $endgroup$
    – John wiliam
    Apr 16 at 19:13













Your Answer






StackExchange.ifUsing("editor", function ()
return StackExchange.using("schematics", function ()
StackExchange.schematics.init();
);
, "cicuitlab");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "135"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f432631%2ftruth-table-with-logical-gates-for-a-traffic-light%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























4 Answers
4






active

oldest

votes








4 Answers
4






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














$begingroup$

YELLOW = $B$.



RED = $bar A$.



GREEN = $overline RED + YELLOW$



enter image description here



Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light.



One OR gate and two inverters would do the trick.






share|improve this answer











$endgroup$














  • $begingroup$
    thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
    $endgroup$
    – John wiliam
    Apr 15 at 11:59
















3














$begingroup$

YELLOW = $B$.



RED = $bar A$.



GREEN = $overline RED + YELLOW$



enter image description here



Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light.



One OR gate and two inverters would do the trick.






share|improve this answer











$endgroup$














  • $begingroup$
    thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
    $endgroup$
    – John wiliam
    Apr 15 at 11:59














3














3










3







$begingroup$

YELLOW = $B$.



RED = $bar A$.



GREEN = $overline RED + YELLOW$



enter image description here



Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light.



One OR gate and two inverters would do the trick.






share|improve this answer











$endgroup$



YELLOW = $B$.



RED = $bar A$.



GREEN = $overline RED + YELLOW$



enter image description here



Purple is the implied logic for the red light, orange is the implied logic for the yellow light and green is for the green light.



One OR gate and two inverters would do the trick.







share|improve this answer














share|improve this answer



share|improve this answer








edited Apr 15 at 12:12

























answered Apr 15 at 11:53









Andy akaAndy aka

254k11 gold badges196 silver badges452 bronze badges




254k11 gold badges196 silver badges452 bronze badges














  • $begingroup$
    thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
    $endgroup$
    – John wiliam
    Apr 15 at 11:59

















  • $begingroup$
    thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
    $endgroup$
    – John wiliam
    Apr 15 at 11:59
















$begingroup$
thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
$endgroup$
– John wiliam
Apr 15 at 11:59





$begingroup$
thanks i do not know know much about the gates i i were trying too much things thanks for helping :) i solve it
$endgroup$
– John wiliam
Apr 15 at 11:59














2














$begingroup$

You can write the equations easily from the truth table



$$Red = bar A $$
$$Yellow = B$$
$$Green = A land bar B$$



They can be built the following circuit:
enter image description here






share|improve this answer









$endgroup$










  • 1




    $begingroup$
    thanks for the picture :)
    $endgroup$
    – John wiliam
    Apr 15 at 12:00















2














$begingroup$

You can write the equations easily from the truth table



$$Red = bar A $$
$$Yellow = B$$
$$Green = A land bar B$$



They can be built the following circuit:
enter image description here






share|improve this answer









$endgroup$










  • 1




    $begingroup$
    thanks for the picture :)
    $endgroup$
    – John wiliam
    Apr 15 at 12:00













2














2










2







$begingroup$

You can write the equations easily from the truth table



$$Red = bar A $$
$$Yellow = B$$
$$Green = A land bar B$$



They can be built the following circuit:
enter image description here






share|improve this answer









$endgroup$



You can write the equations easily from the truth table



$$Red = bar A $$
$$Yellow = B$$
$$Green = A land bar B$$



They can be built the following circuit:
enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 15 at 11:57









RenanRenan

4,3712 gold badges22 silver badges44 bronze badges




4,3712 gold badges22 silver badges44 bronze badges










  • 1




    $begingroup$
    thanks for the picture :)
    $endgroup$
    – John wiliam
    Apr 15 at 12:00












  • 1




    $begingroup$
    thanks for the picture :)
    $endgroup$
    – John wiliam
    Apr 15 at 12:00







1




1




$begingroup$
thanks for the picture :)
$endgroup$
– John wiliam
Apr 15 at 12:00




$begingroup$
thanks for the picture :)
$endgroup$
– John wiliam
Apr 15 at 12:00











2














$begingroup$

I do have a tip for you!



Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the advice :)
    $endgroup$
    – John wiliam
    Apr 15 at 18:13















2














$begingroup$

I do have a tip for you!



Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the advice :)
    $endgroup$
    – John wiliam
    Apr 15 at 18:13













2














2










2







$begingroup$

I do have a tip for you!



Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.






share|improve this answer









$endgroup$



I do have a tip for you!



Work column by column, not row by row. First, create a circuit for the red light, ignoring the other two lights. Next, do the same for the yellow light. Finally, do the same for the green light. After you've created these three circuits, you can simply combine them into one.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 15 at 14:18









Tanner SwettTanner Swett

4593 silver badges8 bronze badges




4593 silver badges8 bronze badges














  • $begingroup$
    thanks for the advice :)
    $endgroup$
    – John wiliam
    Apr 15 at 18:13
















  • $begingroup$
    thanks for the advice :)
    $endgroup$
    – John wiliam
    Apr 15 at 18:13















$begingroup$
thanks for the advice :)
$endgroup$
– John wiliam
Apr 15 at 18:13




$begingroup$
thanks for the advice :)
$endgroup$
– John wiliam
Apr 15 at 18:13











1














$begingroup$

I will be honest and say, i am not all that good at designing logic diagrams, way too long since i had it in school. But there is one thing i remember: Logic Friday. Its a freeware program that is an immense help when designing such diagrams and solving the equations. Using Logic Friday, i got these results:



A - input 1



B - input 2



F3 - red



F4 - yellow



F5 - green



Logic input gave me this truthtable after minimizing:



F3 = A';



F4 = B;



F5 = A B';



And this diagram followed:



Logic diagram



I know a program like this is no substitute for real knowledge, but it works for a home fiddler like me.



Good luck :)






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the help :)
    $endgroup$
    – John wiliam
    Apr 16 at 19:13















1














$begingroup$

I will be honest and say, i am not all that good at designing logic diagrams, way too long since i had it in school. But there is one thing i remember: Logic Friday. Its a freeware program that is an immense help when designing such diagrams and solving the equations. Using Logic Friday, i got these results:



A - input 1



B - input 2



F3 - red



F4 - yellow



F5 - green



Logic input gave me this truthtable after minimizing:



F3 = A';



F4 = B;



F5 = A B';



And this diagram followed:



Logic diagram



I know a program like this is no substitute for real knowledge, but it works for a home fiddler like me.



Good luck :)






share|improve this answer









$endgroup$














  • $begingroup$
    thanks for the help :)
    $endgroup$
    – John wiliam
    Apr 16 at 19:13













1














1










1







$begingroup$

I will be honest and say, i am not all that good at designing logic diagrams, way too long since i had it in school. But there is one thing i remember: Logic Friday. Its a freeware program that is an immense help when designing such diagrams and solving the equations. Using Logic Friday, i got these results:



A - input 1



B - input 2



F3 - red



F4 - yellow



F5 - green



Logic input gave me this truthtable after minimizing:



F3 = A';



F4 = B;



F5 = A B';



And this diagram followed:



Logic diagram



I know a program like this is no substitute for real knowledge, but it works for a home fiddler like me.



Good luck :)






share|improve this answer









$endgroup$



I will be honest and say, i am not all that good at designing logic diagrams, way too long since i had it in school. But there is one thing i remember: Logic Friday. Its a freeware program that is an immense help when designing such diagrams and solving the equations. Using Logic Friday, i got these results:



A - input 1



B - input 2



F3 - red



F4 - yellow



F5 - green



Logic input gave me this truthtable after minimizing:



F3 = A';



F4 = B;



F5 = A B';



And this diagram followed:



Logic diagram



I know a program like this is no substitute for real knowledge, but it works for a home fiddler like me.



Good luck :)







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 16 at 6:00









FiskelordFiskelord

386 bronze badges




386 bronze badges














  • $begingroup$
    thanks for the help :)
    $endgroup$
    – John wiliam
    Apr 16 at 19:13
















  • $begingroup$
    thanks for the help :)
    $endgroup$
    – John wiliam
    Apr 16 at 19:13















$begingroup$
thanks for the help :)
$endgroup$
– John wiliam
Apr 16 at 19:13




$begingroup$
thanks for the help :)
$endgroup$
– John wiliam
Apr 16 at 19:13


















draft saved

draft discarded















































Thanks for contributing an answer to Electrical Engineering Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f432631%2ftruth-table-with-logical-gates-for-a-traffic-light%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?