Build Safety First
This project can be built two ways: glued (permanent, classic PVC cement) or threaded (no glue, fully reusable, beginner-friendlier). Read both before choosing.
The Anatomy of a Decision
Imagine trying to get water from a bucket at the top of a hill to a cup at the bottom.
The AND Gate — Series Circuit
Two valves on one path. Both must be open for water to reach the end. If A is open but B is closed, water stops dead at B.
The OR Gate — Parallel Circuit
Two valves on separate parallel branches. Water only needs one open path. If A is open, it bypasses B entirely. If B is open, it bypasses A.
Logic Gate Simulator
Before you build with real pipes, try the logic here. Toggle the valves and watch whether water reaches the output.
⟁ AND Gate — Series Circuit
⟁ OR Gate — Parallel Circuit
Why This Isn't Just a Toy
Hydraulic and fluidic logic computers are a real, peer-reviewed field. Researchers have built complete binary adding machines using nothing but containers, straws, and siphons — full 4-bit adders that correctly compute sums using only gravity and fluid mechanics, with no electricity anywhere in the system.
The Full Module — Reading Mode
What This Is
Every computer, smartphone, and digital network on Earth operates on Boolean logic — a system where the only two possible values are 1 (True) and 0 (False). In a microchip, these states are represented by electricity flowing (1) or being blocked (0) through microscopic switches called transistors.
But computation doesn't require electricity. It only requires a medium that flows and a switch that can stop it. In this module, water is your electricity, and manual PVC ball valves are your transistors. You will build the two foundational logic gates that underpin the digital world: the AND gate and the OR gate.
The Concept
In computing, a logic gate takes one or more inputs, applies a rule, and produces a single output. We represent these states physically: 1 (True) means a valve is open and water is flowing; 0 (False) means a valve is closed and water is blocked.
An AND gate produces an output of 1 only if Input A and Input B are both 1. Physically, this is achieved by placing two valves in series — one right after the other, on the same single pipe. Both must be open or nothing reaches the end.
An OR gate produces an output of 1 if Input A or Input B is 1, or if both are. Physically, this is achieved by splitting water into two parallel pipes, placing one valve on each, then joining them back together. Only one path needs to be open.
An Honest Note on What This Is and Isn't
What you're building is a physical demonstration of logic gates, not a self-running computer. A real digital logic gate's output automatically becomes the next gate's input, with no hand required. In your build, you open and close valves by hand and read the result by watching water flow. That gap — between manually setting and observing a rule, versus billions of gates firing automatically every second — is exactly the right thing to sit with. It's the next real question in computer science: how would you make the output of one gate automatically set the input of the next, without a hand on the valve? That question is where real computer engineering begins.
Why This Isn't Just a Toy
Hydraulic and fluidic logic computers are a real, peer-reviewed field of physics and engineering, not a metaphor stretched to fit. Researchers have built complete binary adding machines using nothing but containers, straws, and siphons — full 4-bit adders that correctly compute sums using only gravity and fluid mechanics, with no electricity anywhere in the system. Separately, fluidic logic devices using pressure-controlled valves have been patented and used in real industrial and biomedical applications, where electrical switching isn't practical or safe.
Automatic transmissions in cars have used hydraulic computers — real fluidic logic circuits — to make shifting decisions since the late 1940s, decades before consumer electronics existed. The valve in your hand right now is doing the same fundamental job as the logic inside a transmission, just slower and visible.
Build Safety
This project can be built glued (permanent, classic PVC cement) or threaded (no glue, fully reusable). If using PVC cement: work outdoors or in genuinely well-ventilated space, since the vapors are flammable and can cause headaches, dizziness, and eye or skin irritation with poor ventilation. No open flames or sparks nearby. Wear safety glasses and gloves. Gluing should be adult-only — younger team members can dry-fit pieces and plan the layout. Let joints cure fully before pressure-testing with water.
The glue-free alternative uses threaded PVC fittings or push-to-connect compression fittings instead of slip fittings and cement. This costs slightly more per joint but removes solvent chemicals from the build entirely, allows the whole system to be disassembled and reused for future logic experiments, and lets younger siblings participate in the full build, not just the planning.
The Arts-as-Attention Pass
You must test your computer to confirm it follows the laws of Boolean logic. In computer science, a Truth Table maps every possible combination of inputs to prove the output. Fill your bucket with water, connect it to your manifold, and run the physical tests. Draw these tables in your field notebook and fill in the output column with a 1 (water flowed) or 0 (no water) for every combination of valve states.
Field Engineering: Step by Step
The Arts-as-Attention Pass — Truth Tables
Fill in the Output column as you physically test each combination. This data lives in your browser only — nothing is sent anywhere.
Test 1 — The AND Gate (Valves A & B)
| Input A | Input B | Output Y |
|---|---|---|
| 0 (Closed) | 0 (Closed) | |
| 1 (Open) | 0 (Closed) | |
| 0 (Closed) | 1 (Open) | |
| 1 (Open) | 1 (Open) |
Test 2 — The OR Gate (Valves C & D)
| Input C | Input D | Output Y |
|---|---|---|
| 0 (Closed) | 0 (Closed) | |
| 1 (Open) | 0 (Closed) | |
| 0 (Closed) | 1 (Open) | |
| 1 (Open) | 1 (Open) |
Complete Project Checklist
Phase 1 — Plan and Prepare
- Decided: glued joints or threaded/press-fit joints
- All materials sourced
- Safety equipment ready (glasses, gloves) if using cement
- Workspace confirmed well-ventilated and clear of ignition sources if using cement
Phase 2 — Build
- Source manifold built with spigot and bucket
- AND gate built (Valves A and B in series)
- OR gate built (Valves C and D in parallel via T-joints)
- All joints dry-fit and confirmed before committing
- Joints glued (adult, ventilated, outdoors) OR threaded/press-fit
- If glued: full cure time observed before pressure testing
Phase 3 — Test
- AND gate truth table completed with all 4 combinations tested
- OR gate truth table completed with all 4 combinations tested
- Results match expected Boolean logic
- Combined AND→OR circuit sketched and reasoned through
Phase 4 — Document and Reflect
- Truth tables recorded in field notebook
- Notice and Wonder question answered in writing
- Honest note about manual vs. automatic gates discussed and understood
- One real-world hydraulic logic application researched and noted