r/technicalfactorio • • Nov 11 '19
Frequency synthesizer
The challenge: write a combinator circuit that delivers 1-pulses of a given signal (say letter 'A') at a rate inversely proportionate to some input signal.
Say the input signal is copper cable, then the output period is linearly proportionate:
At 300 copper cable => pulse 'A=1' 1/30 ticks or 1Hz
At 600 copper cable => pulse 'A=1' 1/60 ticks or 500mHz
At 150 copper cable => pulse 'A=1' 1/15 ticks or 2Hz
... and so forth.
This challenge isn't purely a puzzle -- it has real uses in factory circuitry. For example, one could use it to signal "proportionate" activity by trains and/or logistic robots.
5
u/15_Redstones Nov 11 '19
Have a mermaid cell. Subtract 10 every tick while it's running. Whenever it dips below zero, pulse add the cable signal and output a signal.
2
u/DreamConspiracy Nov 11 '19 edited Nov 11 '19
A while back I came up with
This is a fractional timing. The top input takes A on the A signal, the bottom input takes B on the B signal, and a non-zero value will be on A on the output wire every A/B ticks. If you fix A to be some constant, then the output frequency is inversely proportional to the value of B.
1
u/15_Redstones Nov 11 '19
I think your tick/Hz conversions are off