Your First Circuits in DigiSim.io: A Beginner's Guide
Build three introductory DigiSim.io circuits: a switch and indicator, a 2-input AND gate, and a conceptual multi-gate alarm model.
TL;DR: This tutorial walks through three starter circuits in DigiSim.io: a switch-driven light (digital signals), a 2-input AND gate (logic gates and truth tables), and a multi-gate alarm system (combining gates into useful behavior). The public digital editor runs in a supported web browser; individual account, storage, sharing, or other platform capabilities may have separate requirements.
This tutorial introduces three small circuits and assumes no previous digital-logic coursework. Interface labels can evolve, so use the editor’s current component names when they differ slightly from the screenshots or text.
By the end, you will have built a direct connection circuit, a logic gate circuit, and a simple alarm system. More importantly, you will understand the core ideas behind each one: digital signals, logical decision-making, and combining gates to produce useful behavior.
Project 1: The Switch-to-Light Circuit (Your “Hello World”)
A useful introductory model separates sources, logic/interconnect, and observed outputs. Real digital systems also include power, timing, electrical interfaces, state, and implementation constraints that this first circuit intentionally omits.

Step-by-Step
Step 1 — Open DigiSim.io
Go to digisim.io/logic/new in your browser. You will see a blank canvas with a component palette on the left. This canvas is where you build circuits by placing components and connecting them with wires.
Step 2 — Place a Switch
In the component palette, find Switch under Input components. Click it, then click on the canvas to place it on the left side. This switch is your input device. It has two states: OFF (sends a 0 signal) and ON (sends a 1 signal).
Step 3 — Place a Light
Find Light under Output components. Click to select it, then click on the canvas to the right of your switch. The light is your output device. It responds to the signal it receives: 0 means dark, 1 means glowing.
Step 4 — Connect Them
Hover over the small circle on the right side of the switch (its output port). Click and drag to the small circle on the left side of the light (its input port). A wire appears connecting the two components.
Step 5 — Test It
Click the switch to toggle it. The light turns ON. Click again. The light turns OFF. You have a working digital circuit.
What You Learned
- The simulator represents binary logic values: 0 (LOW) and 1 (HIGH) are the defined values used in this exercise. Physical voltage is continuous, and richer digital models may also represent unknown or high-impedance states.
- A schematic wire connects nodes: in the ideal functional model it conveys a logic value. Physical interconnect also has resistance, capacitance, inductance, delay, and loading.
- Sources, logic, and observers have distinct roles: This separation is useful for tracing a teaching circuit without claiming that every real system has only three kinds of element.
The exercise introduces Boolean abstraction. A phone or processor uses many additional layers—sampling, encoding, software, memory, protocols, analog interfaces, and physical implementation—so the analogy should not be read as a literal architecture.
Project 2: The AND Gate Circuit (Making Decisions)
A direct wire connection is not very interesting — the output just copies the input. The power of digital logic comes from placing logic gates between inputs and outputs. A gate examines its inputs and produces an output based on a specific rule.
The AND gate follows this rule: the output is 1 only when all inputs are 1. If any input is 0, the output is 0.
Step-by-Step
Step 1 — Start Fresh
Open a new circuit at digisim.io/logic/new, or clear your existing canvas.
Step 2 — Place Two Switches
Drag two Switch components onto the left side of the canvas, one above the other. These will be your two inputs, A and B.
Step 3 — Place an AND Gate
Find AND under Logic Gates in the palette. Place it in the center of the canvas, between the switches and where your output will go. The AND gate has two input ports on the left and one output port on the right.
Step 4 — Place a Light
Place an Output Light to the right of the AND gate.
Step 5 — Wire the Circuit
- Connect the top switch’s output to the AND gate’s top input.
- Connect the bottom switch’s output to the AND gate’s bottom input.
- Connect the AND gate’s output to the light’s input.
Step 6 — Test All Four Combinations
Systematically toggle the switches through every possible combination and record what happens:
| Switch A | Switch B | Light | Why |
|---|---|---|---|
| OFF (0) | OFF (0) | OFF | Neither condition met |
| OFF (0) | ON (1) | OFF | Only one condition met |
| ON (1) | OFF (0) | OFF | Only one condition met |
| ON (1) | ON (1) | ON | Both conditions met |
The light turns on only when both switches are on. This is the AND rule.

An AND gate in action: both switches must be ON for the light to illuminate — like a two-key security system.
What You Learned
- Logic gates evaluate Boolean functions. The AND output follows a defined truth table; “decision” is only an informal description.
- The AND rule requires every input to be 1. The two-switch circuit is a logic exercise, not a safety or security design. Real interlocks require fault analysis, validated hardware, appropriate standards, and fail-safe behavior beyond one AND gate.
- Two inputs have four binary combinations. Exhaustively checking those four rows verifies this small truth table in the simulator model. Verification of larger or stateful systems requires additional methods and does not generally scale to manual enumeration.
Project 3: A Simple Alarm System (Combining Concepts)
Now we combine what you have learned into a circuit with a practical purpose: a simple alarm system. The alarm should trigger (light turns on) if a door sensor OR a window sensor detects an intrusion, but only when the alarm system is enabled (armed).
The logic: (Door OR Window) AND Armed = Alarm
This requires two gates: an OR gate to combine the two sensors, and an AND gate to check whether the system is armed.
Step-by-Step
Step 1 — Plan the Circuit
Before placing components, think about the signal flow:
- Three inputs: Door sensor, Window sensor, Armed switch.
- An OR gate combines the two sensors (“is either sensor triggered?”).
- An AND gate checks whether the OR output AND the Armed switch are both 1 (“is there an intrusion AND is the system armed?”).
- One output: the Alarm light.
Step 2 — Place the Components
Open a new circuit. Place three Switches on the left (label them Door, Window, Armed if you like). Place an OR gate and an AND gate in the middle. Place an Output Light on the right.
Step 3 — Wire the Circuit
- Connect the Door switch to one input of the OR gate.
- Connect the Window switch to the other input of the OR gate.
- Connect the OR gate’s output to one input of the AND gate.
- Connect the Armed switch to the other input of the AND gate.
- Connect the AND gate’s output to the light.
Step 4 — Test the Alarm Logic
Work through the important test cases:
Test 1: System disarmed (Armed = 0). Toggle Door and Window freely. The alarm should never trigger, because the AND gate blocks the signal when Armed is 0.
Test 2: System armed, no intrusion (Armed = 1, Door = 0, Window = 0). The OR gate outputs 0 (no sensor triggered), so the AND gate outputs 0. Alarm stays off. Correct.
Test 3: System armed, door opened (Armed = 1, Door = 1, Window = 0). The OR gate outputs 1 (at least one sensor triggered), the AND gate sees 1 AND 1, so the alarm triggers. Correct.
Test 4: System armed, window opened (Armed = 1, Door = 0, Window = 1). Same as Test 3 but through the window sensor. The OR gate still outputs 1, the alarm triggers. Correct.
Test 5: System armed, both sensors triggered (Armed = 1, Door = 1, Window = 1). The OR gate outputs 1, the AND gate outputs 1. Alarm triggers. Correct.
What You Learned
- Gates combine to create complex behavior. The OR gate asks “is anything wrong?” The AND gate asks “should we care right now?” Together, they implement a useful security policy.
- Boolean expressions describe circuits. The alarm’s behavior is captured in one expression: . This is the same equation you built with physical gates.
- The circuit is combinational. The OR result feeds the AND gate, but no state element sequences these operations. After modeled propagation settles, the output is a function of the current inputs.
- The model expresses an arming condition. Real alarm panels include supervised sensors, timing, diagnostics, power-loss behavior, tamper detection, and safety/security requirements. This schematic demonstrates only the Boolean expression.
Understanding What You Built: The Big Picture
Across these three projects, you encountered the fundamental concepts of digital logic:
| Concept | Where You Saw It |
|---|---|
| Digital signals (0 and 1) | Every switch toggle |
| Wires carry signals | Every connection you drew |
| Logic gates make decisions | AND gate, OR gate |
| Truth tables map all possibilities | Testing all switch combinations |
| Boolean expressions describe logic | , |
| Combining gates builds complex behavior | The alarm system |
These concepts recur at larger scales, but modern processors are not merely this schematic repeated. They combine Boolean logic with memory structures, clocks, analog and I/O circuits, physical timing, power distribution, architecture, and software-visible semantics.
What to Explore Next
You now have the foundation. Here are four directions to grow:
Try the NOT Gate
Place a NOT gate between a switch and a light. Its settled binary output is the complement of the input. Then place a NOT gate after an AND gate to obtain NAND. NAND is functionally complete: networks of NAND gates can represent any finite Boolean function. That theorem does not imply that every manufactured chip should use only NAND cells.
Modify the Alarm System
Add a third sensor (e.g., a motion detector) to the OR gate’s inputs. The alarm now triggers if any of three sensors detects an intrusion. Observe how the OR gate naturally scales to handle additional inputs.
Try a Template
DigiSim.io includes pre-built circuit templates that demonstrate more advanced concepts. Open one, trace the signal flow, and experiment with the inputs to understand the behavior before you try building something similar from scratch.
Follow the Structured Lessons
The SimCast interactive lessons organize guided digital-logic material with embedded simulations. Consult the current lesson catalog for the available topics and sequence.
Quick Reference
| Component | Type | What It Does |
|---|---|---|
| Switch | Input | Generates a 0 or 1 signal |
| Light | Output | Glows when receiving a 1 |
| AND Gate | Logic | Output is 1 only when ALL inputs are 1 |
| OR Gate | Logic | Output is 1 when ANY input is 1 |
| NOT Gate | Logic | Inverts the input (0 becomes 1, 1 becomes 0) |
| Wire | Connection | Carries a signal from one component to another |
When you are ready, the natural next stop is Digital Logic 101 for a deeper look at AND, OR, and NOT, then Logic Gate Truth Tables as a single-page reference covering every gate.



