Multi-Switch Control Panel
Multiple independent switch-light pairs. Learn basic digital I/O concepts with visual feedback. Foundation for more complex circuits.
学べること
- Wire multiple independent switch-to-light channels.
- Recognize that channels operate independently — no inter-channel logic.
- Connect this to microcontroller GPIO arrays and bus structures.
- Lay out a control panel mentally before adding internal logic.
- Distinguish I/O (switches, lights) from logic (gates between them).
仕組み
A control panel with multiple independent switches and lights demonstrates parallel I/O channels. Each switch drives its own light directly, with no shared logic. Toggling one switch affects only one light — the channels are independent.
This is the simplest multi-bit I/O example: N switches, N lights, no inter-channel logic. It's the foundational pattern for any system that handles parallel digital signals — buses, parallel ports, GPIO arrays.
While the circuit has no Boolean function to compute, it's pedagogically useful for understanding: - Bus width: N switches and N lights mean an N-bit bus. - Independence: Each bit operates without affecting others. - Visual layout: Real control panels arrange switches and lights in groups; the schematic mirrors that grouping.
From this multi-channel base, you can add gates between switches and lights to compute parallel logic — an N-bit AND, an N-bit OR, etc. Each output light becomes one bit of a Boolean function over the input switches. The control panel is the user-facing IO; the gates between are the logic.
真理値表
Each output equals its corresponding input — 4 independent identity functions.
| 入力 | 出力 | |||||||
|---|---|---|---|---|---|---|---|---|
| S3 | S2 | S1 | S0 | L3 | L2 | L1 | L0 | |
| 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | All switches off — all lights dark |
| 1 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | Independent channels — only the switched lights respond |
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | All on — all lit |
ブール式
Each output light equals its corresponding input switch — N independent identity functions.
順を追って試す
上の埋め込み回路で入力を設定し、期待される結果と一致するか確認しましょう。
- 1S0 = 1期待値:
L0 = 1, others = 0観察ポイント: Single switch on — only its dedicated light responds. The other channels are unaffected. - 2S0 = 1 S2 = 1期待値:
L0 = 1, L2 = 1, L1 = 0, L3 = 0観察ポイント: Two non-adjacent switches on. Lights respond exactly to their inputs — independence. - 3S0 = 1 S1 = 1 S2 = 1 S3 = 1期待値:
All lights on観察ポイント: All channels active — full panel lit. No interaction between channels. - 4S0 = 0期待値:
L0 = 0観察ポイント: Toggle one channel off; only that light responds. Others remain in their previous state.
使用コンポーネント
実世界での応用
Microcontroller GPIO arrays. A microcontroller's GPIO pins behave like multiple independent I/O channels — each pin reads or drives one bit. Software accesses them as parallel ports.
Bus interfaces. PCIe, AXI, AHB, and similar protocols carry multiple independent signal lines in parallel. Each line behaves like one switch-light pair internally.
Industrial control panels. Real-world panels with rocker switches and indicator lights for each function (pumps, valves, motors) are physical multi-channel I/O.
Test instrumentation front panels. Logic analyzers and bench testers expose dozens of independent input/output channels via knobs, switches, and LEDs.
Pinball machines and arcade controllers. Each button + lamp is its own channel; the game logic combines them via internal Boolean networks.