Need help with a logic gate circuit please?

Click For Summary
A user is seeking assistance with a logic gate circuit involving four source signals to control two bridges in a video game. The circuit must activate or deactivate the bridges based on specific combinations of active (1) and inactive (0) states from the sources. The user has outlined various input scenarios and the corresponding bridge states needed for each combination. They are open to using any of the available logic gates, including AND, OR, and XOR, but require a solution that avoids multiple outputs leading to the same bridge. The discussion suggests presenting the required functionality as a state diagram or a truth table for clarity.
kamyk
Messages
1
Reaction score
0
Hello, I just joined because I am having a serious issue figuring out a logic gate circuit with 4 source signals, and a non active state and two items that activate depending on a number of different states for each signal. I've been giving myself a headache for hours trying to puzzle this out. It's for a video game I'm working on where two bridges need to activate or deactivate depending on off/on (0/1) signals from the 4 sources, and I would appreciate it if someone could give me the solution.

It would be easier if I just posted my notes on what I need to achieve than to explain. I have listed the 4 source signals with 0 or 1 to show it's active state, what state bridge 1 and/or 2 need to be in, and the numbers needed to activate or deactivate the bridges. I have separated each situation by containing them inside dashes. Some of the sources are only activated by other sources, therefore the combinations I present are the only possible ones. I may not need to mention this, but I can't have multiple outputs all leading to each bridge. It will act as an AND if I connect more than one, hence the need for the logic circuit. I have AND, OR, XOR, NAND, NOR, XNOR, and NOT to work with, so anyone finding me a solution can use any of them. These combinations are listed in the order they become available to the player, and also the numbers on the left are both toggleable, and the numbers on the right remain 1 once activated. Additionally, the bottom left number will remain 1 once the bottom right number becomes 1.---------------------------

Inputs
0 0

0 0

bridges on on
Need a 1 and a 1

---------------------------

Inputs
0 1

0 0

bridges off off
need a 0 and a 0

---------------------------

Inputs
1 1

0 0

bridges on off
need a 1 and a 0

---------------------------

Inputs
1 1

1 0

bridges on on
need a 1 and a 1

---------------------------

Inputs
1 1

1 1

bridges off off
need a 0 and a 0

---------------------------

Inputs
0 1

1 1

bridges off off
need a 0 and a 0I'm kind of new to logic gates, and I really have been puzzling over this for hours getting a headache, so I would really appreciate help.
 
Last edited:
Engineering news on Phys.org
Thread 'I thought it was only Amazon that sold unsafe junk'
I grabbed an under cabinet LED light today at a big box store. Nothing special. 18 inches in length and made to plug several lights together. Here is a pic of the power cord: The drawing on the box led me to believe that it would accept a standard IEC cord which surprised me. But it's a variation of it. I didn't try it, but I would assume you could plug a standard IEC cord into this and have a double male cord AKA suicide cord. And to boot, it's likely going to reverse the hot and...

Similar threads

  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 8 ·
Replies
8
Views
8K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 29 ·
Replies
29
Views
4K
  • · Replies 25 ·
Replies
25
Views
6K