Fig. 1 — Three-Switch OR Gate Lighting CircuitInteractive simulation

What You'll Learn

  • Trace the three location requests through two cascaded 2-input OR gates.
  • Verify that only 000 leaves the final lamp off.
  • Apply OR associativity to a concrete two-level network.
  • Distinguish maintained-request aggregation from toggle-style multiway switching.
  • Recognize unequal logic depth on the three input-to-output paths.

How It Works

The production circuit has three switches labeled Living Room, Hallway, and Bedroom, two 2-input OR gates, and one output light labeled Ceiling Light. The first OR combines Living Room and Hallway. The second combines that intermediate result with Bedroom.

The implemented equation is Ceiling Light = Living Room + Hallway + Bedroom, with + denoting Boolean OR. All three inputs at 0 produce Ceiling Light = 0; any of the other seven combinations produce Ceiling Light = 1.

The cascade matters physically even though grouping does not change the Boolean result. A change on Living Room or Hallway traverses two OR gates, while Bedroom reaches the final output through one. A timed hardware implementation can therefore have unequal path delays and transient behavior even though its steady-state truth table is unambiguous.

This schematic models request aggregation: any maintained request turns the indicator on, and it turns off only after all requests return low. That behavior should not be confused with the traveler wiring used by ordinary residential multiway wall switches.

Truth Table

Three maintained requests feed a cascaded three-input OR. Only 000 keeps the lamp off.

InputsOutput
Living RoomHallwayBedroomCeiling Light
0000All three requests low — lamp off.
0011Bedroom alone is sufficient.
0101Hallway alone is sufficient.
0111Hallway and Bedroom high — lamp remains a binary 1.
1001Living Room alone is sufficient.
1011Living Room and Bedroom high — lamp on.
1101Living Room and Hallway high — lamp on.
1111All three high — lamp on.

Boolean Expression

Ceiling Light=Living Room+Hallway+Bedroom\text{Ceiling Light} = \text{Living Room} + \text{Hallway} + \text{Bedroom}

The lamp is high when the Living Room, Hallway, or Bedroom request is high.

Ceiling Light=(Living Room+Hallway)+Bedroom\text{Ceiling Light} = (\text{Living Room} + \text{Hallway}) + \text{Bedroom}

This grouping matches the production wiring: the first OR combines Living Room and Hallway, then the second OR combines that result with Bedroom.

Ceiling Light=Living Room‾⋅Hallway‾⋅Bedroom‾‾\text{Ceiling Light} = \overline{\overline{\text{Living Room}} \cdot \overline{\text{Hallway}} \cdot \overline{\text{Bedroom}}}

De Morgan's law gives the equivalent NAND-of-complements form.

Try It Step-by-Step

Set the listed controls in the embedded circuit, then compare the observed modeled state with the expected result.

  1. 1
    Bedroom=0Hallway=0Living Room=0
    Expected:Ceiling Light = 0
    What you'll see:With every location switch low, both OR outputs are low and the ceiling-light indicator is off.
  2. 2
    Bedroom=0Hallway=0Living Room=1
    Expected:Ceiling Light = 1
    What you'll see:Living Room alone propagates through both OR stages and turns the indicator on.
  3. 3
    Bedroom=1Hallway=1Living Room=0
    Expected:Ceiling Light = 1
    What you'll see:Hallway and Bedroom both request light; the final output remains one binary high level.
  4. 4
    Bedroom=1Hallway=1Living Room=1
    Expected:Ceiling Light = 1
    What you'll see:All three requests high still produce Ceiling Light = 1. Clear every request to turn it off.

Components Used

Applications and Design Context

Request aggregation. Several controllers can assert independent requests that are ORed into one enable signal.

Lighting automation. Occupancy, schedule, and manual-override requests can be combined so any active source requests illumination.

Cooling demand. Multiple thermostats or subsystems can request a shared fan or pump through an OR network.

Interrupt aggregation. Peripheral interrupt requests can be ORed into one processor-facing interrupt line, with separate status logic identifying the source.

Fault summaries. Independent fault bits can drive one master warning while detailed indicators preserve the individual causes.

Frequently Asked Questions

Is this the same as residential 3-way or 4-way switching?

Mechanical residential multiway wiring changes the lamp according to the relative positions of traveler switches; it behaves like a parity/toggle arrangement, not three maintained requests simply ORed together. In this OR circuit, one location cannot turn the lamp off while another request remains high.

How can I add a fourth control location?

Add another 2-input OR after the current final gate and connect the new request to its second input. OR is associative, so extending the cascade preserves the existing three-input behavior.

How can a master enable disable all requests?

AND each location request with a common Enable signal before the OR network. Enable = 0 masks every request; Enable = 1 restores the present behavior.

Why does the production circuit contain two OR gates?

There are two 2-input OR gates. The Living Room and Hallway signals enter the first; its output and the Bedroom signal enter the second. The final light therefore reflects all three inputs.

Do all three input paths have the same delay?

A physical implementation has two logic levels on the Living Room and Hallway paths but one on the Bedroom path. Exact delay, power, and transistor topology depend on the selected technology and cell library; the simulator presents the logical result.

Continue Learning