What is this?
A cute little timer. It "holds" a signal for an amount of time and can be reset while it's counting.
It uses lamps to display how much time has passed, and all within reach of a single medium pole!
There is also a video demonstration/guide here: https://youtu.be/bZyit7cScHQ
Operation guide
There are two versions, "Opposite inputs" and "Same side inputs", they are essentially the same circuit rearranged.
The two external lamps and constant combinators can be used for testing or just deleted.
Setting the time
Time is set via the Constant Combinator that reads "T I M E", by modifying the White variable.
It represents time in ticks. (1 second = 60 ticks) By default, it's set to 240. (aka 4 seconds)
You can set the White variable to any positive integer. (but below 10 ticks some lamps might misbehave...)
Inputs and outputs
There are two inputs (S and R) and two copies of the same output (Red/Cyan)
- S will start the timer. When S is detected, a pulse is sent to the timer and it will start counting up until the White value is matched. The timer will then reset itself.
- R will reset the timer prematurely. When R is detected, a pulse is sent to the timer that will immediately reset it.
- The deciders that output Red or Cyan are your final output.
If you don't need both just delete the superfluous one.
Each of these variables (S, R, Red, Cyan) can be changed to suit your needs.
Advanced settings
By default, pulses are generated when a signal (S or R) goes from 0 to 1.
If you want a pulse to be generated when a signal goes from 1 to 0 instead, do this:
For the S, locate the combinator with a Yellow and a Grey variable, and change its sign to "<"
For the R, locate the combinator with a Black and a Grey variable, and change its sign to "<"
If you want a pulse to be generated whenever the signal changes state, do the same but with a "≠"
i promise to add pictures someday, but a vid guide will probably come first.
i came up with this timer design while working on something bigger... which i hope to be able to share soon.
in the meantime gl and hf ; )
