⟁ THREAD 3 — ANALOG LOGIC & ALGORITHMS · MODULE 1
S Science T Technology E Engineering A Arts M Mathematics

The Fluid Logic Computer

Computers are not magic boxes. They are millions of tiny switches executing basic rules of logic. By building those switches with physical water valves, you rip the lid off the black box of computation and hold the fundamental language of the digital age in your hands.

High School – Adult · Ages 14+ Project Duration: 1 weekend No electricity required
HOW DO YOU LEARN BEST?
PART 0

Build Safety First

E · Engineering

This project can be built two ways: glued (permanent, classic PVC cement) or threaded (no glue, fully reusable, beginner-friendlier). Read both before choosing.

If Using PVC Cement Work outdoors or in genuinely well-ventilated space — vapors are flammable and can cause headaches, dizziness, and eye/skin irritation. No open flames or sparks nearby. Wear safety glasses and gloves. Gluing is adult-only — younger team members can dry-fit and plan, not glue. Let joints cure fully before pressure testing.
Glue-Free Alternative (Recommended for Families) Use threaded or push-to-connect compression fittings instead of slip joints and cement. No solvent chemicals anywhere in the build, the whole system disassembles and reuses for future logic experiments, and younger siblings can build the full project, not just plan it.
PART 1

The Anatomy of a Decision

T · Technology · M · Mathematics

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

INPUT X Valve A X Valve B OUTPUT (Y)

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

INPUT X Valve A X Valve B OUTPUT (Y)

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.

An Honest Note 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 — no hand required. In your build, you open and close valves by hand and read the result by watching water flow. That gap is exactly the right thing to sit with — it's the next real question in computer science, not a flaw in this project.
TRY IT

Logic Gate Simulator

M · Mathematics · S · Science

Before you build with real pipes, try the logic here. Toggle the valves and watch whether water reaches the output.

⟁ AND Gate — Series Circuit

OUTPUT
0 — No water flows

⟁ OR Gate — Parallel Circuit

OUTPUT
0 — No water flows
CONTEXT

Why This Isn't Just a Toy

S · Science

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.

Real-World Precedent 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 is doing the same fundamental job as the logic inside a transmission, just slower and visible.

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

STEP 1
Source Materials. ½-inch PVC piping, four ½-inch PVC ball valves, two PVC T-joints, a bucket for the water source, and a catch-basin for the output. Decide now: glued joints or threaded/press-fit joints.
STEP 2
Build the Source Manifold. Tap a spigot into the bottom of your bucket as your main water supply. Connect a short length of pipe to it.
STEP 3
Build the AND Gate. Cut a length of pipe. Connect Valve A, a short connector pipe, and Valve B in a straight line. This is your series circuit.
STEP 4
Build the OR Gate. Attach a T-joint to split water into two parallel pipes. Place Valve C on the top pipe and Valve D on the bottom pipe. Use a second T-joint to reconnect both pipes into a single output pipe.
STEP 5
Dry Fit Before Committing. Always connect PVC pieces without glue first to confirm everything fits and valves have full room to turn. Once confirmed: glue (Part 0 safety practice, ventilated, adult-only) or thread/press-fit (no special ventilation needed).
STEP 6
Test the AND Gate. Fill the bucket. Run all four combinations of Valve A and Valve B (closed/closed, open/closed, closed/open, open/open). Record water flow as 1 or 0 for each.
STEP 7
Test the OR Gate. Run all four combinations of Valve C and Valve D. Record water flow as 1 or 0 for each.
STEP 8
Sketch the Combined Circuit. Imagine connecting the AND gate's output into the OR gate's input. Sketch it. Predict how many valves need to be open to get water at the very end, then test your prediction if your build allows it.

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 AInput BOutput 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 CInput DOutput Y
0 (Closed)0 (Closed)
1 (Open)0 (Closed)
0 (Closed)1 (Open)
1 (Open)1 (Open)
Notice and Wonder If you connected the output of the AND gate directly into the input of the OR gate, how many valves would need to be open to get water at the very end? Sketch the combined circuit before testing it.

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