Difference between revisions of "User:Vortex1942/Automating the TEG"

From Space Station 13 Wiki
Jump to navigation Jump to search
(added contraption examples)
Line 138: Line 138:


{|class="wikitable mw-collapsible mw-collapsed plainrowheaders" style="width: 30%;
{|class="wikitable mw-collapsible mw-collapsed plainrowheaders" style="width: 30%;
|'''Circulators'''
|'''Circulators (Blowers) '''
|-
|-
|
|
=== Circulators ===
=== Circulators (Blowers) ===
 
Useful for optimizing the target pressure on the blowers.


==== Inputs ====
==== Inputs ====
** '''NOTE''': <code>parameter</code> has a max value of 100000kPa
* <code>Toggle Active</code>: <code>(Pipe Pressure)</code>
* <code>Set Target Pressure</code>: <code>(Pipe temperature)</code>
|}


TODO!
== Hot Loop Auto-purge Assembly ==
Tired of your hot loop pipes rupturing and plasma flooding engineering? Well this is for you!


* <code>pressure</code>: <code>(Pipe Pressure)</code>
Mechlab Shopping List:
* <code>temperature</code>: <code>(Pipe temperature)</code>
* 1x RegEx Find Component.
* 1x Arithmetic Component.
* 2x Signal Check Component.
* 1x WiFi Component.
Optional:
* Letter Display (See if the pump is currently on)
* Text Display (Show off your current pipe pressure)
* Component Cabinet
To Assemble (Or see wiring diagram below):
# Place and wrench components, Optionally: In a component cabinet
# Interact with a multitool on a meter, select "Connect Component"
#* Use a pressure meter that is directly connecting to the furnaces/combustion chamber, Avoid meters on the output end of pipes
# Interact with the RegEx Find Component, select "Check String"
# Interact with the multitool to finish pairing
# On the RegEx Find Component set "Expression Pattern" to <code>([0-9]+)</code>
# Hold your multitool, Click and drag from the RegEx Find Component to the Arithmetic Component
#* Select "Trigger" then "Set A"
# On Signal Check A, set: "Set B" = <code>14500</code>; "Mode" = <code>gte</code>
#* This compares if A >= B, B is your max pressure (Change "Mode" to lte to make this setup do something when the pressure is low, Eg. Turn on an inlet pump)
# On the Arithmetic component set "Set B" to <code>14500</code> (This is your Auto-purge pressure)
# On the Arithmetic component set "Mode" to <code>gte</code> (Greather than or Equal) (Additionally, this is where you could turn this into an Auto-filler if the pressure is low)
# Hold your multitool, Click and drag from the Arithmetic Component to both Signal Check Components
# On Signal Check A, set: "Send Signal" = <code>tag=Hot Loop Purge Pump;command=power_on</code>; "Trigger String" = <code>1</code>; Replace Signal = <code>On</code>
# On Signal Check B, set: "Send Signal" = <code>tag=Hot Loop Purge Pump;command=power_off</code>; "Trigger String" = <code>'''0'''</code>; Replace Signal = <code>On</code>
# Hold your multitool, Click and drag both Signal Check Components to both the WiFi Component
# On the WiFi component, set: "Frequency" = <code>1255</code>
# Open the manual hot loop purge valve
#* If multiple use the one before gas reaches the engine inlet


==== RegEx ====
What is this doing?
* When the meter pressure is above <code>14500</code>, the Arithmetic will send a 1 to both Signal Checks, Signal Check A then sends a WiFi packet to turn on the purge pump.


Example Output: <code>pressure=3410.27&temperature=20462.7</code>
[[File:AutoTEGControllerWiring.png]]


Seperate pressure as whole number: <code>([0-9]+)</code> = <code>3410</code>
== Engine Power Output Display ==
Automagically brag about your engine output


|}
Mechlab Shopping List:
* 1x RegEx Find Component.
* 1x Text Display.


== Hot Loop Auto-purge ==
To Assemble (Or see wiring diagram below):
Tired of your hot loop pipes rupting and flooding engineering with plasma? Well this is for you!
# Place and wrench components
# Interact with a multitool on the generator, select "Connect Component"
#* Use a pressure meter that is directly connecting to the furnaces/combustion chamber, Avoid meters on the output end of pipes
# Interact with the RegEx Find Component, select "Check String"
# Interact with the multitool to finish pairing
# On the RegEx Find Component set "Expression Pattern" to <code>(?<=&powerfmt=)[^&]+</code>
# Hold your multitool, Click and drag from the RegEx Find Component to the Text Display


TODO Explain this


[[File:AutoTEGControllerWiring.png]]


==Supplementary Video==
==Supplementary Video==
<youtube>wEFzcmtATMM</youtube>
<youtube>wEFzcmtATMM</youtube>
----
----
<code>tag</code>: <code>(Pump Name)</code>
<code></code>: <code></code>

Revision as of 19:32, 13 December 2023

MechanicNew64.png This page is under construction.
The following information may be incomplete.

Wireless Devices

Frequencies

Most Atmos devices will use these frequencies, You're going to have to explore security to find the other frequency.

  • Engineering: 122.5
  • Science: 122.9
Pumps

Pumps

Powered down pumps do not transfer gas, Meaning they can be used as controllable Electronic Valves,

Commands

The following points demon

  • WARNING: Omitting tag will cause commands to be sent to ALL pumps
  • Power on
    • command: power_on
    • tag: (Pump Name)
  • Power off
    • command: power_off
    • tag: (Pump Name)
  • Set target pressure
    • NOTE: parameter has a max value of 5066.25kPa
    • tag: (Pump Name)
    • command: set_target_pressure
    • parameter: (Target Pressure)
  • Broadcast status
    • command: broadcast_status

Pump Status

The following is transmited whenever a pump recieves are command

  • tag: (Pump Name)
  • device: AGP
  • power: on or off
  • target_output: (Target Pressure)
  • address_tag: pumpcontrol

Packet Examples

Purge Hotloop:

  • tag=Hot Loop Purge Pump;command=power_on

Check All Pumps:

  • command=broadcast_status

Set Pressure:

  • tag=Hot Loop Purge Pump;command=set_target_pressure;parameter=5000
Gas Mixers

Gas Mixers

Did I hear you say "Adjustable combustion chamber temperatures?"

  • Unfortunately I have not been able to tap into status reports from mixers

Commands

  • Toggle Power
    • command: toggle_pump
    • parameter: power_on or power_off
    • tag: (Mixer Name)
  • Set gas ratio
    • NOTE: parameter value is Input 1 ratio only ie. 66 = 66:33
    • command: set_ratio
    • parameter: (0-100 Number)
    • tag: (Mixer Name)
  • Set gas pressure
    • NOTE: parameter is an uncapped value
    • command: set_ratio
    • parameter: (Target Air Pressure)
    • tag: (Mixer Name)

Packet Examples

Set Ratio to 66:33:

  • tag=engine_combust_control; command=set_ratio; parameter=66

Set Pressure to 75kPa:

  • tag=engine_combust_control; command=set_pressure; parameter=75

Turn off mixer:

  • tag=engine_combust_control; command=toggle_pump; parameter=power_off

MechComp Devices

Connecting the generator and pressure will require using you multitool on them and selecting "Connect Component"

The Generator

The Generator

Ever wanted to boast about the engine output to the crew? Well now you can do it automatically!

Outputs

  • power: (Unformatted power output)
  • powerfmt: (Formatted power output, 2.21 GW)

power=3.84698e+06&powerfmt=3.847 MW

RegEx

Example Output: power=3.84698e+06&powerfmt=3.847 MW Seperate powerfmt: (?<=&powerfmt=)[^&]+ = 3.847 MW

Pressure Meter

Pressure Meter

Ever wanted to boast about the engine output to the crew? Well now you can do it automatically!

Outputs

  • pressure: (Pipe Pressure)
  • temperature: (Pipe temperature)

RegEx

Example Output: pressure=3410.27&temperature=20462.7

Seperate pressure as whole number: ([0-9]+) = 3410

Circulators (Blowers)

Circulators (Blowers)

Useful for optimizing the target pressure on the blowers.

Inputs

    • NOTE: parameter has a max value of 100000kPa
  • Toggle Active: (Pipe Pressure)
  • Set Target Pressure: (Pipe temperature)

Hot Loop Auto-purge Assembly

Tired of your hot loop pipes rupturing and plasma flooding engineering? Well this is for you!

Mechlab Shopping List:

  • 1x RegEx Find Component.
  • 1x Arithmetic Component.
  • 2x Signal Check Component.
  • 1x WiFi Component.

Optional:

  • Letter Display (See if the pump is currently on)
  • Text Display (Show off your current pipe pressure)
  • Component Cabinet

To Assemble (Or see wiring diagram below):

  1. Place and wrench components, Optionally: In a component cabinet
  2. Interact with a multitool on a meter, select "Connect Component"
    • Use a pressure meter that is directly connecting to the furnaces/combustion chamber, Avoid meters on the output end of pipes
  3. Interact with the RegEx Find Component, select "Check String"
  4. Interact with the multitool to finish pairing
  5. On the RegEx Find Component set "Expression Pattern" to ([0-9]+)
  6. Hold your multitool, Click and drag from the RegEx Find Component to the Arithmetic Component
    • Select "Trigger" then "Set A"
  7. On Signal Check A, set: "Set B" = 14500; "Mode" = gte
    • This compares if A >= B, B is your max pressure (Change "Mode" to lte to make this setup do something when the pressure is low, Eg. Turn on an inlet pump)
  8. On the Arithmetic component set "Set B" to 14500 (This is your Auto-purge pressure)
  9. On the Arithmetic component set "Mode" to gte (Greather than or Equal) (Additionally, this is where you could turn this into an Auto-filler if the pressure is low)
  10. Hold your multitool, Click and drag from the Arithmetic Component to both Signal Check Components
  11. On Signal Check A, set: "Send Signal" = tag=Hot Loop Purge Pump;command=power_on; "Trigger String" = 1; Replace Signal = On
  12. On Signal Check B, set: "Send Signal" = tag=Hot Loop Purge Pump;command=power_off; "Trigger String" = 0; Replace Signal = On
  13. Hold your multitool, Click and drag both Signal Check Components to both the WiFi Component
  14. On the WiFi component, set: "Frequency" = 1255
  15. Open the manual hot loop purge valve
    • If multiple use the one before gas reaches the engine inlet

What is this doing?

  • When the meter pressure is above 14500, the Arithmetic will send a 1 to both Signal Checks, Signal Check A then sends a WiFi packet to turn on the purge pump.

AutoTEGControllerWiring.png

Engine Power Output Display

Automagically brag about your engine output

Mechlab Shopping List:

  • 1x RegEx Find Component.
  • 1x Text Display.

To Assemble (Or see wiring diagram below):

  1. Place and wrench components
  2. Interact with a multitool on the generator, select "Connect Component"
    • Use a pressure meter that is directly connecting to the furnaces/combustion chamber, Avoid meters on the output end of pipes
  3. Interact with the RegEx Find Component, select "Check String"
  4. Interact with the multitool to finish pairing
  5. On the RegEx Find Component set "Expression Pattern" to (?<=&powerfmt=)[^&]+
  6. Hold your multitool, Click and drag from the RegEx Find Component to the Text Display


Supplementary Video