Skip to content
Tactiverge

Methods

The models behind every Build

Each Build runs a small simulation in your browser. This page says what each one computes, which constants it uses, what it leaves out and which automated tests check it, so a teacher, engineer or researcher can judge it.

These are educational models, written with AI assistance and checked by automated tests. No external engineer or educator has reviewed them yet. They are good for learning how a system behaves, not for designing a real one. If you find an error, please report it.

Simulation models by Build
BuildModelConstantsEquationsTested in
BUILD 001: Design a Washing MachineForced mass–spring–damper with a torque-limited motorTypical constants, one illustrative sub-model5src/lib/sim/washer.test.ts
BUILD 002: Engineer an ElevatorS-curve motion profile with PID levelling controlIllustrative constants4src/lib/sim/elevator.test.ts
BUILD 003: Create an Intelligent Sorting MachineSensor statistics, thresholds and logic on a conveyorIllustrative constants3src/lib/sim/sorter.test.ts
BUILD 004: Design a Robotic GripperPlanar two-link kinematics, friction statics and slip dynamicsIllustrative constants2src/lib/sim/gripper.test.ts
BUILD 005: Build a Traffic Management SystemTimed state machine with stochastic queuesIllustrative constants2src/lib/sim/traffic.test.ts
BUILD 006: Engineer a Planetary RoverGrid navigation with odometry drift, Kalman-style fusion and an energy budgetIllustrative constants4src/lib/sim/rover.test.ts
BUILD 007: Design a Smart GreenhouseLumped (one-box) thermal model with feedback controlIllustrative constants2src/lib/sim/greenhouse.test.ts
BUILD 008: Create a Virtual ComputerGate-level adders and a 4-bit accumulator machineExact logic2src/lib/sim/cpu.test.ts

BUILD 001: Design a Washing Machine

Forced mass–spring–damper with a torque-limited motor. Semi-implicit (symplectic) Euler integration at a 1 ms step, sampled every 0.1 s. Deterministic: the same inputs always give the same run, so the server re-runs graded designs.

Governing equations

  • M·x″ + c·x′ + k·x = mᵤ·r·ω(t)²·cos θ(t), θ′ = ω

    The tub on its springs and dampers, pushed around by the clump of wet clothes (an unbalanced mass) as the drum turns.

  • ωₙ = √(k / M)

    Natural frequency: shaking peaks when the drum passes this speed (300 rpm for this machine).

  • X = mᵤ·r·ω² / √((k − M·ω²)² + (c·ω)²)

    Steady-state amplitude if the drum were held at speed ω. Far above resonance it settles to mᵤ·r / M.

  • α ≤ τ_max / J, J = J₀ + m_load·r²

    The motor can only accelerate the drum so fast: heavier loads ramp more slowly.

  • G = ω²·r / g

    How many times gravity the clothes feel against the drum wall; higher G wrings out more water.

Limitations

  • The drying model is illustrative: chosen so faster spins dry more with diminishing returns, not taken from a manufacturer.
  • Machine constants are rounded, typical values for a front-loader, not one real machine.
  • No water extraction dynamics, tub rocking, or cabinet motion.

Open at Research depth · includes a reproducible parameter sweep with CSV/JSON export

BUILD 002: Engineer an Elevator

S-curve motion profile with PID levelling control. Profile integrated analytically segment by segment; peak speed lowered by bisection when a trip is too short to reach V. Deterministic.

Governing equations

  • jerk ∈ {+J, 0, −J, 0, −J, 0, +J}

    The seven-segment rest-to-rest profile: acceleration ramps, speed is smooth, position is exact.

  • M·ÿ = F − c·ẏ − (m_cab + m_p − m_cw)·g

    Cabin and counterweight move together on the ropes (rope stretch ignored).

  • F = M̂·a_ref + c·v_ref + (m_cab + m̂_p − m_cw)·g + Kp·e + Ki·∫e + Kd·ė

    Feedforward from the profile plus PID feedback on the position error e = r − y.

  • e_ss = ΔF / Kp

    With P-only control the leftover levelling error equals the unmodelled weight divided by the gain.

Limitations

  • Educational model; no rope dynamics, door timing or building sway.

Open at Research depth

BUILD 003: Create an Intelligent Sorting Machine

Sensor statistics, thresholds and logic on a conveyor. Monte Carlo over parts from a seeded generator; deterministic for a given seed.

Governing equations

  • σ_avg = σ / √n, n = rate × window / belt speed

    Averaging more samples cuts colour-sensor noise; faster belts give fewer samples.

  • length = v_belt × t_blocked

    The light gate times how long the beam is blocked (1 kHz timer, ±1 tick).

  • bin = rule[4R + 2L + M]

    Three thresholded bits pick a bin, in truth-table order.

Limitations

  • Sensor figures are illustrative; the statistics are exact for this model.

Open at Research depth

BUILD 004: Design a Robotic Gripper

Planar two-link kinematics, friction statics and slip dynamics. Analytic inverse kinematics; lift dynamics stepped in time with stick/slip switching. Deterministic.

Governing equations

  • 2·μ·N ≥ m·(g + a) → N_min = m·(g + a) / (2μ)

    Two fingers hold an object being lifted with acceleration a only if friction is enough.

  • τ = Jᵀ·F

    Joint torques that produce the fingertip force (planar cross product per joint).

Limitations

  • Crush limits are illustrative design limits for small pads, not measured breaking forces.

Open at Research depth

BUILD 005: Build a Traffic Management System

Timed state machine with stochastic queues. Discrete-time simulation at 1 s; the safety audit checks every light sequence.

Governing equations

  • P(arrival in 1 s) = rate / 60

    Bernoulli approximation of Poisson arrivals on each approach.

  • wait = t_depart − t_arrive

    Queued cars leave one per headway after a start-up delay; nobody leaves on amber.

Limitations

  • One crossroads; no driver behaviour, turning conflicts or network effects.

Open at Research depth

BUILD 006: Engineer a Planetary Rover

Grid navigation with odometry drift, Kalman-style fusion and an energy budget. Discrete legs between waypoints with seeded random drift; deterministic for a given plan and scenario.

Governing equations

  • P = P_fix + (Σ κ·L)²

    Odometry uncertainty grows with distance driven (κ worse in sand), on top of what was left after the last fix.

  • x̂ ← x̂ + K·(z − x̂), K = P / (P + R)

    Blending a camera fix with odometry; K is the Kalman gain or a camera trust you choose.

  • P⁺ = (1 − K)²·P + K²·R

    Variance after the update; equals (1 − K)·P when K is the Kalman gain.

  • E = P·t, delay = d / c

    Energy budget, and the radio light-time delay to Earth (about 3 to 22 minutes).

Limitations

  • Constants are illustrative for a small rover, not copied from any real mission.

Open at Research depth

BUILD 007: Design a Smart Greenhouse

Lumped (one-box) thermal model with feedback control. Exact exponential integration between control samples; energy balance closes to machine precision (checked in tests).

Governing equations

  • C·dT/dt = Q_heater + Q_sun − UA·(T − T_out)

    One well-mixed inside temperature, heated by the heater and sun, losing heat through glass, leaks and vents.

  • T(t+Δt) = T_eq + (T − T_eq)·e^(−UA·Δt / C)

    Between control samples inputs are held constant, so each step is solved exactly.

Limitations

  • C and UA are illustrative, right order of magnitude for a ~10 m² glass greenhouse, not measured.

Open at Research depth

BUILD 008: Create a Virtual Computer

Gate-level adders and a 4-bit accumulator machine. Exact logic evaluation; gate counts and critical-path depth computed from the circuit.

Governing equations

  • S = A ⊕ B ⊕ Cᵢₙ, Cₒᵤₜ = A·B + Cᵢₙ·(A ⊕ B)

    One full adder; ripple-carry chains them, carry-lookahead computes carries in parallel.

  • A ← (A + M[a]) mod 16

    The ADD instruction; adding 15 is adding −1 in 4-bit two's complement.

Limitations

  • No timing hazards, fan-out or power; a teaching machine, not a real ISA.

Open at Research depth