Barotrauma Wiki
Register
Advertisement


Wiring Components
Wiring Components
Stats
Type Electrical Component
Item Cost 90-125 Marks
Crafting
Constructible? Checkmark True
Deconstructible? Checkmark True
Crafting Time 10
Deconstructing Time 10
Fabricator Skill Electrical Engineering 20
Fabricator Materials FPGA CircuitFPGA Circuit

TinTin

Deconstructor Materials FPGA CircuitFPGA Circuit

TinTin

Logic[]

And Component And Component[]

"Sends a signal when both inputs receive a signal within a set period of each other."

The And Component is an electrical component used to check if both inputs are receiving a signal.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In_1
Connection Port Signal_In_2
Connection Port Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out Connection Port
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1

Equals Component Equals Component[]

"Sends a signal when both inputs receive the same signal."

The Equals Component is an electrical component used to check if both inputs are the same.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In_1
Connection Port Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out Connection Port
The output of the component.


Greater Component Greater Component[]

"Sends a signal if the value the signal_in1 input is larger than the signal_in2 input."

The Greater Component is an electrical component used to check if one input is higher than the other.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In_1
Connection Port Signal_In_2
The input of the first signal.
The input of the second signal.
Signal_Out Connection Port
The output of the component.


Not Component Not Component[]

"Sends a signal when the input is NOT receiving a signal."

The Not Component is an electrical component used to invert a signal.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input Output
0 1
1 0

Or Component Or Component[]

"Sends a signal if either of the inputs receives a signal."

The Or Component is an electrical component used to check if any input is receiving a signal.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In_1
Connection Port Signal_In_2
Connection Port Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out Connection Port
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1

RegEx Component RegEx Find Component[]

"Sends a signal if the received signal matches a specific regular expression pattern."

The RegEx Find Component is an electrical component used to match an exact string.

It is most commonly used with a Terminal.

Click here for a tutorial on regular expressions. Click here to create/test regular expressions.

In "Capture Group" mode it expects a named group, and the name. E.g. Expression `command (?<num>[0-9])`, Output `num` would grab the number at the end.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Signal Check Component Signal Check Component[]

"Sends a signal when a signal matching a specific value is received."

The Signal Check Component is an electrical component used to check if two signals match. If Signal_In is equal to Set_Targetsignal, Signal_Out will output the value fed into Set_Output. Else, it will send the False Output set in the Submarine Editor. When using in Submarine Editor, it is possible to hardwire the output and target values rather than wire them to memory components.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
Connection Port Set_Output
Connection Port Set_Targetsignal
The input signal.
Sets the "true" output.
Sets the signal that must be matched to. (Optional, can be set in editor)
Signal_Out Connection Port
The output of the component.


Xor Component Xor Component[]

"Sends a signal if either of the inputs, but not both, receives a signal."

The Xor Component is an electrical component used to check if only one input is receiving a signal.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In_1
Connection Port Signal_In_2
Connection Port Set_Output
The input of the first signal.
The input of the second signal.
Sets the "true" output.
Signal_Out Connection Port
The output of the component.


"1" denotes any input, "0" denotes a blank or zero input

Truth Table
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0

Math[]

Abs Component Abs Component[]

"Outputs the absolute value of the input."

Adder Component Adder Component[]

"Outputs the sum of the received signals."

Ceil Component Ceil Component[]

"Outputs the smallest integer value that is bigger than or equal to the input."

Divide Component Divide Component[]

"Outputs the divided value of the received signals."

Exponentiation Component Exponentiation Component[]

"Outputs the input raised to a given power."

Factorial Component Factorial Component[]

"Outputs the factorial of the input."

Floor Component Floor Component[]

"Outputs the greatest integer value that is less than or equal to the input."

Modulo Component Modulo Component[]

"Outputs the remainder when the input is divided by a specific number."

Multiply Component Multiply Component[]

"Outputs the product of the received signals."

Round Component Round Component[]

"Rounds a numerical input to the nearest integer value."

Square Root Component Square Root Component[]

"Outputs the square root of the input."

Subtract Component Subtract Component[]

"Outputs the subtracted value of the received signals."

Trigonometry[]

Acos Component Acos Component[]

"Outputs the angle whose cosine is equal to the input."

The Acos Component is an electrical component that performs the inverse cosine function; cos-1(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Asin Component Asin Component[]

"Outputs the angle whose sine is equal to the input."

The Asin Component is an electrical component that performs the inverse sine function; sin-1(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Atan Component Atan Component[]

"Outputs the angle whose tangent is equal to the input. If the "signal_in_x" and "signal_in_y" connections are used, the input is interpreted as a vector and the angle calculated using Atan2."

The Atan Component is an electrical component that performs the inverse tan function; tan-1(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
Connection Port Signal_In_X
Connection Port Signal_In_Y
The input signal.
The input of the X signal.
The input of the Y signal.
Signal_Out Connection Port
The output of the component.


Cos Component Cos Component[]

"Outputs the cosine of the input."

The Cos Component is an electrical component that performs the cosine function; cos(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Sin Component Sin Component[]

"Outputs the sine of the input."

The Sin Component is an electrical component that performs the sine function; sin(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Tan Component Tan Component[]

"Outputs the tangent of the input."

The Tan Component is an electrical component that performs the tangent function; tan(x).

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The input signal.
Signal_Out Connection Port
The output of the component.


Misc[]

Color Component Color Component[]

"Outputs a combined color signal for light control."

The Color Component is an electrical component used to provide a color signal for lamps/lights.

It is most commonly used in tandem with Light Components for easily changeable lighting.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_R
Connection Port Signal_G
Connection Port Signal_B
Connection Port Signal_A
The brightness of the red channel.
The brightness of the green channel.
The brightness of the blue channel.
The transparency of the alpha channel.
Signal_Out Connection Port
The combined color signal.


Delay Component Delay Component[]

"Delays all received signals for a specific amount of time."

The Delay Component is an electrical component used to delay a signal for a short amount of time.

It is most commonly used in tandem with Terminals for custom commands.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
The signal to be delayed.
Signal_Out Connection Port
The delayed signal.


Memory Component Memory Component[]

"Outputs a stored value that can be updated from other sources. Use the signal_in connection to set the stored value, and the signal_store input to toggle whether the received signals should be stored."

The Memory Component is an electrical component used to store signals for later use.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
Connection Port Signal_Store
The signal to be stored
Sets whether signals will be stored (1=yes, 0=no)
Signal_Out Connection Port
The currently stored signal


Oscillator Oscillator[]

"Sends out a periodic, oscillating signal."

The Oscillator is an electrical component used to provide a signal that changes over time.

It is most commonly used in tandem with a Subtract Component for timers or countdowns.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Set_Frequency
Connection Port Set_Outputtype
Sets the frequency of the oscillator, in Hz (Hertz).
Sets the output type of the oscillator (0=pulse, 1=sine, 2=square).
Signal_Out Connection Port
The output of the component.


Relay Component Relay Component[]

"When switched on, forwards all received signals from the input connections to the outputs."

The Relay Component is an electrical component used to disconnect power or signals from a circuit.

It is most commonly used for providing toggleable power to lights or duplicating signals.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Power_In
Connection Port Signal_In_1
Connection Port Signal_In_2
Connection Port Toggle_State
Connection Port Set_State
Power input from a power network.
The input of the first signal.
The input of the second signal.
Toggles the relay between on and off when a signal of 1 is supplied.
Sets the current state of the relay (1=on, 0=off).
Power_Out Connection Port
Signal_Out_1 Connection Port
Signal_Out_2 Connection Port
State_Out Connection Port
Power output to a power network.
The output of the first signal.
The output of the second signal.
The current state of the relay.


Wifi Component Wifi Component[]

"Allows remote communication between other wifi components that are using the same channel."

The Wifi Component is an electrical component used to transfer signals over long distances.

It can also output into text radio chat.

Hover over pins to see their descriptions

Connection panel for Wiring Components
Connection Port Signal_In
Connection Port Set_Channel
The signal to be transmitted.
Sets the current wifi channel.
Signal_Out Connection Port
The received signal.


Electrical
Alarms Alarm BuzzerAlarm BuzzerEmergency Siren iconEmergency Siren
Detectors Motion Detector iconMotion DetectorOxygen Detector iconOxygen DetectorSmoke Detector iconSmoke DetectorWater Detector iconWater Detector
Interactable ButtonButtonLeverLeverSwitchSwitchTerminalTerminal
Wiring Components Abs ComponentAbsAcos ComponentAcosAdder ComponentAdderAnd ComponentAndAsin ComponentAsinAtan ComponentAtanCeil ComponentCeilColor ComponentColorCos ComponentCosDelay ComponentDelayDivide ComponentDivideEquals ComponentEqualsExponentiation ComponentExponentiationFactorial ComponentFactorialFloor ComponentFloorGreater ComponentGreaterMemory ComponentMemoryModulo ComponentModuloMultiply ComponentMultiplyNot ComponentNotOr ComponentOrOscillatorOscillatorRegEx Find ComponentRegEx FindRelay ComponentRelayRound ComponentRoundSignal Check ComponentSignal CheckSin ComponentSinSquare Root ComponentSquare RootSubtract ComponentSubstractTan ComponentTanWifi ComponentWifiXor ComponentXor
Misc CameraCameraDetonatorDetonatorLight ComponentLight Component


Advertisement