A simple circuit which solves the problem where there may not be sufficient power to run the Fusion Reactor.
Observe our power plant does produce enough energy to create Neutronium, but not continuously.
We can’t run the thing full out because it will drain the battery buffer and entiirely consume electricity production.
One way to solve this is by controlling the Fusion Reactor with a switch. Keep the switch off until electricity and heat buffers are maxed, then turn the switch on and let it run until storage is exhausted.
Break this down into 4 components
The three inputs determine our desired output.
My smart cousin helped me with the algorithm to make this happen. He said something about [http://www.32x8.com/var3.html] and provided the answer:
CONTROL = X OR (NOT Y and SWITCH)
We can do this! Here is my solution, not as tidy as I would like but sufficient.
Start with an interface that reads state of the battery (use Network) and a circuit like this which sets X:
Checking the empty battery state is similar, compare current available power to a piece of rock, set Y:
We need NOT Y, the opposite signal. Just compare the signal to 0, so it’s 1 if 0 and 0 if 1 (call it M or something):
Add an interface pointed at the switch to get the current state. Feed this to an AND circuit along with M:
And our last circuit, OR the full-battery signal with the AND signal:
And that’s it! Take that signal to a controller aimed at the switch:
And there you have it. I am certain someone smarter will come up with a more elegant solution. Hopefully you’ve found this entertaining and helpful. Hit us up on Discord with problems, suggestions, comments.
– Quazar, Christmas 2022