Post

Circuit Board Projects

Circuit Board Projects

Circuit Board Projects

AND-OR Combination Circuit

🔎 Summary

This circuit lights the LED if either both A and B are ON at the same time, or if at least one of C or D is ON.

The AND gate section makes it so A and B must both be 1 to contribute.

The OR gate section means C or D can individually turn the LED on.

The final OR gate combines both conditions.

In other words:

LED turns on if (A AND B) OR (C OR D) is true.

LED turns off only when A=0, B=0, C=0, and D=0 or when A/B don’t both match.

📊 Truth Table

Here’s the full table of values for all switches:

ABCDAND (A·B)OR (C+D)Final Output FLED
0000000OFF
0001011ON
0010011ON
0011011ON
0100000OFF
0101011ON
0110011ON
0111011ON
1000000OFF
1001011ON
1010011ON
1011011ON
1100101ON
1101111ON
1110111ON
1111111ON

Station what it is located IRL Circuit Image

Circuit in action Gif representation of truth table

Half-Adder

🔎 Summary

The half adder uses two inputs (A and B) that feed into:

An XOR gate → output = A ⊕ B → this is the Sum (S)

An AND gate → output = A · B → this is the Carry (C)

The two outputs are separate:

Sum (S) represents the addition result for the current bit.

Carry (C) represents a carry to the next higher bit if both inputs are 1.

The final logic expressions are:

Sum S=A⊕B Carry 𝐶=𝐴⋅𝐵

The half adder cannot handle carry input from a previous addition (unlike a full adder). Effectively:

Sum LED lights when exactly one input is ON.

Carry LED lights only when both inputs are ON.

📊 Truth Table

ABCarry (C)Sum (S)
0000
0101
1001
1110

Station what it is located IRL Circuit Image

Video of Circuit IRL

Circuit in action Gif representation of truth table

4-input XOR chain

🔎 Summary

Your circuit has 4 switches: A, B, C, and D.

Step 1: Switches A and B go into an XOR gate → output = A ⊕ B.

Step 2: That output goes into another XOR gate with input C → (A ⊕ B) ⊕ C.

Step 3: That output goes into a final XOR gate with input D → (A ⊕ B ⊕ C ⊕ D).

Step 4: The result drives the light bulb (LED).

✨ Key property: The LED shows the parity of the number of ON switches.

If an odd number of switches are ON → LED is ON.

If an even number of switches are ON → LED is OFF.

The final logic expression is:

F=A⊕B⊕C⊕D

So effectively, flicking any single switch will toggle the LED’s state.

📊 Truth Table

ABCDOutput (F)LED
00000OFF
00011ON
00101ON
00110OFF
01001ON
01010OFF
01100OFF
01111ON
10001ON
10010OFF
10100OFF
10111ON
11000OFF
11011ON
11101ON
11110OFF

Station what it is located IRL Circuit Image

Circuit in action Gif representation of truth table

This post is licensed under CC BY 4.0 by the author.