Two car garages have a common gate which needs to open automatically when a car enters either of the garages or cars enter both. Devise a circuit that resembles this situation using diodes for this situation.

Hint: We are getting output when any or both cars enter the gate.
Step 1: Find the output in each case.
As anyone or both cars enter the gate, the gate is opened.
The device is shown.
Step 2: Draw the truth table.
So, OR gate gives the desired output.

A

B

C

0

0

0

0

1

1

1

0

1

1

1

1