Basic Switch and Light
One switch drives one output light directly, so the displayed logic level equals the input. The circuit models Boolean connectivity, not voltage, current, or loading.
What You'll Learn
- Identify the input switch and output light as digital I/O primitives.
- Trace a single signal from source to sink.
- Recognize that 'no logic' is still a valid circuit — just a wire.
- Connect this to physical buttons and LEDs in microcontroller projects.
- Build the mental model that more-complex circuits add gates to this base.
How It Works
The production circuit contains one input switch, one direct wire, and one output light. Toggling the switch on turns the light on; toggling it off turns the light off. No gate or storage element modifies the signal.
The circuit teaches the digital I/O abstraction: the switch supplies a Boolean value and the light displays the value received at its input. The implemented function is Light = Switch.
The schematic introduces three basic elements: 1. Input switch: A maintained, user-controlled source of 0 or 1. 2. Wire: A logical connection that carries the source value to the destination. 3. Output light: An observer that is on when its input is 1.
Physical implementations also involve voltage thresholds, current limits, loading, and propagation through interconnect. The logic simulator intentionally abstracts those electrical details so you can first learn signal direction and connectivity.
Truth Table
Just two rows — one input, one output, identity function.
| Inputs | Output | |
|---|---|---|
| Switch | Light | |
| 0 | 0 | Switch off → light off |
| 1 | 1 | Switch on → light on |
Boolean Expression
The output equals the input — identity function. No logic, just a wire.
Try It Step-by-Step
Set the listed controls in the embedded circuit, then compare the observed modeled state with the expected result.
- 1Switch=0Expected:
Light = 0What you'll see:Switch off — the direct wire carries 0 and the light is off. - 2Switch=1Expected:
Light = 1What you'll see:Switch on — light on. The input signal flows directly to the output without modification.
Components Used
Applications and Design Context
GPIO demonstrations. A button or switch can provide a logic input while an indicator reports the resulting output state.
Status indicators. Power-good, activity, and fault signals often drive visible indicators through appropriate physical driver and current-limiting circuitry.
Continuity and bring-up tests. Applying a known binary source and observing the destination helps verify signal routing.
Educational laboratories. A direct switch-to-indicator path establishes the I/O model before gates and state elements are introduced.
Frequently Asked Questions
Why is this called a circuit if there are no gates?
A circuit is any connected collection of components, with or without logic. A switch + light + wire is a complete circuit, even if the only function is identity. More elaborate circuits add gates between the input and output.
Could this be useful in a real product?
Yes — every LED indicator on a control panel is essentially this circuit (with a current-limiting resistor in the physical version). Status lights for power, fault indicators, activity LEDs all work this way.
What's the difference between this and a buffer?
A buffer also implements Y = A, but it is an active component with characterized input, output-drive, delay, and signal-restoration behavior. A direct connection adds no active drive stage. Whether buffering is required depends on loading, interconnect, timing, and the electrical interface.
How is this different from analog electronics?
Physical digital wires still carry continuous voltages and currents. Digital logic interprets specified voltage ranges as 0, 1, or possibly indeterminate, while this simulator abstracts those electrical details into Boolean states. Analog analysis retains the continuous values rather than applying only a logic-level interpretation.
Why include this in a simulator with hundreds of complex circuits?
It's the entry point. Anyone new to digital logic should start here, see how the simulator represents I/O, and then add gates from this base. Every more-complex circuit decomposes back to switches and lights at the I/O level.