This was nagging me, and so I tried to make it smaller.siggboy wrote:To implement a Schmitt Trigger (hysteresis circuit) you need 3 combinators (one to check lower bound, one for upper bound, and one for the latch).
Indeed you can make a Schmitt Trigger with only 2 combinators (plus an optional constant combinator for somewhat easier configuration):
This configuration is closer to how you'd make a real Schmitt Trigger (comparator + feedback loop).
"U" is the upper threshold.
"D" is the difference to the lower threshold.
(In this example the effective lower threshold is "20").
The decider combinator outputs A=1 if it's in the "high" state, and nothing if it's in the "low" state (so on the power switch you'd set "A=0" as the condition if you want to switch it on when the accumulator goes below 20).