Evospace Wiki

Evospace Wiki

Posts (Latest 10 updated) : Read all
Contents:
  1. Power Logic Circuit Example
    1. Do we need this? What would be required?
    2. How to build it

Power Logic Circuit Example

A simple circuit which solves the problem where there may not be sufficient power to run the Fusion Reactor.

Do we need this? What would be required?

Observe our power plant does produce enough energy to create Neutronium, but not continuously.

Evospace_64_2022-12-24_13-29-34

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.

  • If the reactor is off and the battery is full, turn the smelter on
  • If the reactor is on and the battery is empty, turn the smelter off

Break this down into 4 components

  • Read the battery, compare to full. Set X=1 when battery is full, set X=0 when battery is not full
  • Read the battery, compare to empty. Set Y=1 when battery is empty, set Y=0 when battery is not empty
  • Read the state of the switch, a function provided by the Logic Interface device. Easy money
  • Set the state of the switch, a function provided by the Logic Controller. This is the output of our circuit

The three inputs determine our desired output.

Evospace_-_Google_Sheets_—_Mozilla_Firefox_2022-12-24_19-22-01

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.

2022-12-23_17-02-14

How to build it

  • Interface and Circuit which checks full (X)
  • Interface and Circuit which checks empty (Y)
  • Const and Circuit which sets NOT Y
  • Interface which checks state of switch
  • Circuit which sets AND condition for (NOT Y and SWITCH)
  • Circuit which sets output, the OR part
  • Controller which applies result to switch

Start with an interface that reads state of the battery (use Network) and a circuit like this which sets X: Evospace_64_2022-12-24_19-47-45

Checking the empty battery state is similar, compare current available power to a piece of rock, set Y: Evospace_64_2022-12-25_13-12-05

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): Evospace_64_2022-12-25_13-14-12 Evospace_64_2022-12-25_13-14-20

Add an interface pointed at the switch to get the current state. Feed this to an AND circuit along with M: Evospace_64_2022-12-25_13-17-15

And our last circuit, OR the full-battery signal with the AND signal: Evospace_64_2022-12-25_13-18-57

And that’s it! Take that signal to a controller aimed at the switch: 2022-12-25_13-19-47

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