Gas Harvester V3

If you liked this item, please rate it up on Steam Workshop page.

Author: CowsAreEvil

Last revision: 8 Jan, 2021 at 04:02 UTC

File size: 139.26 KB

On Steam Workshop

Description:

Filtration units use a lot of power to run so it is very helpful to turn them off when not in use. This script will monitor the collection of gasses and manage your filtration unit for you.

d0: storage tank for filtered gas. (Must have a data port or some other means or measuring pressure)
d1: filtration unit to be controlled.
d2: sensor. (can be tank data port, pipe analyser or gas sensor.)
d3: (Optional) Diode slide
d4: (Optional) Diode slide
d5: (Optional) Alarm. (Flashing light or anything that will work with an on command to trigger)

It will check the installed filter and then check the sensor for a matching gas.
If it finds a partial pressure more than 10 Pa then it will activate the unit.
If the storage tank reaches 5 MPa it will shut down
if one of the filters is empty it will activate the alarm.
If both filters are empty it will shut down.
The filter condition will be indicated on the diode slides.

The picture shows the grey filter with the full setup. All of the filters have a parallel connection to the source. My setup uses the large tank as the recycling storage for overflow from the habitat and collection from the furnace to capture all that precious nitrogen. The gasses are automatically filtered and stored ready for reuse. It can be used as a scrubber to look for toxins in a habitat and turn on a filter when they reach a certain level. You are the Engineer, use it however you want.

Example setups:
https://steamcommunity.com/sharedfiles/filedetails/?id=2354102442

27/12/2020 Temperature monitoring added. Maximum and minimum temperature limits are set at the start of the script so easy to find and change to your needs. The filter will only function when the gas in the tank is within the limits you set. If you are harvesting from a furnace the filter will function until the gas in the storage tank goes above 30C (default) then will switch off until the tank cools down. This way you are not trying to use hot gasses in your base. You can change these default settings by altering the max and min temperatures at the start of the code.

8/1/2021 Fixed bug when alarm not attached. Fixed problem of pump not starting when storage tank empty.