Is there a logic gate for this?
I have a set of lights that turn on based on time of day. I want to be able to turn on a separate switch and have the lights blink on and off with a clock I've already built.
So basically, is there a way to ignore input A if input B is detected?
Best Answer
Check out the Implies Gate. It would allow power flow unless, in your case, B is detected, in which it will be off
In the example below we have a 5-clock pulser in the left, this connects to a Implies gate where in A implies B. A in this case is your switch saying whether to flash or go off sunlight. On the other side of this switch, we are inverting the switch with a not gate and implying with the light detector (In diagram the light detector is the switch close to the clock). These two outputs, the implies clock and implies light and then put into a final and gate the output of which powers your lamps.

Pictures about "Is there a logic gate for this?"



How do you identify a logic gate?
Logic gates are based on Boolean algebra. At any given moment, every terminal is in one of the two binary conditions, false or true. False represents 0, and true represents 1. Depending on the type of logic gate being used and the combination of inputs, the binary output will differ....Basic logic gates.InputOutput11What are the 7 different types of logic gates?
The basic logic gates are classified into seven types: AND gate, OR gate, XOR gate, NAND gate, NOR gate, XNOR gate, and NOT gate. The truth table is used to show the logic gate function. All the logic gates have two inputs except the NOT gate, which has only one input.What is the rule for a logic gate?
Rule for an OR gate: output is \u201chigh\u201d if input A or input B are \u201chigh.\u201d Rule for a NAND gate: output is not \u201chigh\u201d if both the first input and the second input are \u201chigh.\u201d Rule for a NOR gate: output is not \u201chigh\u201d if either the first input or the second input are \u201chigh.\u201dWhat is logic gate with example?
Logic gates are the electrical circuit with only one output and one or more inputs. A specific logic governs the relationship between the input and the output. AND gate, OR gate, NOT gate, and so on are examples of logic gates.Logic Gates, Truth Tables, Boolean Algebra AND, OR, NOT, NAND \u0026 NOR
More answers regarding is there a logic gate for this?
Answer 2
I personally, instead of a gate, would simply make it to when input B is true it extends a sticky piston with a block diagonal to a block the circuit from input A to turn it off, or use the T Flip-Flop Memory circuit as a toggle option.
Answer 3
What you are looking for is a toggle for your input line, which is easily done with three repeaters, a sticky piston and a block.

Put the two input lines (clock and daylight sensor) next to each other using repeaters pointing in the same direction. The repeaters cannot transmit via air, but any solid block will do, so moving the solid block will change the input line.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Gije Cho, Matheus Bertelli, RinaS, Jakson Martins
