Foundry — Ignium-Request Hysteresis Circuit

Local data-cable circuit that drives a train dispatch signal I from a buffer's item count. Three components, all sited at the drop-off — no long-distance cabling.

Hysteresis circuit diagram — Ignium buffer feeding two evaluators into a memory cell, output I drives station enable and train wait condition
⬇ PNG ⬇ SVG ⬇ .drawio source

What it does

Produces a single boolean signal I that's 1 when the drop-off buffer genuinely needs more Ignium, and 0 when it's been topped up. That signal feeds two things:

Why two thresholds, not one

A single threshold would chatter: the train arrives, dumps a couple of crates, the count crosses the line, the signal drops, and the train leaves half-full. The hysteresis band — low threshold sets the request, high threshold clears it — gives a clean window where the latch holds state.

Components

PartConfigurationWired to
Eval 1 — Request condition: Ignium ≤ 200 SET Memory Cell red input
Eval 2 — Satisfied condition: Ignium ≥ 1000 RESET Memory Cell green input
Memory Cell SR latch — set goes high, reset clears output I → station enable + train wait condition

Polarity flip vs the conveyor circuit

This is the same three-component pattern as the storage-conveyor circuit at /foundry — the only difference is which evaluator drives which memory input.

CircuitEval fires when…Goes to memory inputLatch behaviour
Conveyor stop buffer HIGH (Eval 2: full → stop) SET red output HIGH = "stop the belt"
Train request (this one) buffer LOW (Eval 1: empty → fetch) SET red output HIGH = "send a train"

The output polarity is the same — but the meaning is inverted because we want HIGH on low buffer, not on full buffer. So the low-threshold evaluator drives set instead of the high-threshold one.

Picking thresholds

Example: consumer eats 5/sec, round-trip is ~60s → X_low ≈ 350. Train cargo is ~1000 → X_high ≈ 1100.

Where it sits in the wider system

This circuit is the local "brain" for one drop-off site in the dedicated-train pattern: every consumer has its own drop-off + train + this circuit, all co-located. No data cables ever leave the drop-off site. The pickup station stays dumb — it just loads whichever train turns up.