Guide to Electrical

From Official Barotrauma Wiki
Revision as of 18:03, 27 March 2022 by Tomsweep (talk | contribs) (Started to detail simple circuits)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Electrical Components can be used to achieve a wide range of effects, automated systems and QoL improvements to a submarine. However they must typically be combined with each other to create circuits as a single component is unlikely to fufill a task on its own. These circuits can be built in the Submarine Editor or in-game.

This page is a collection of simple to complex circuits for novice electricians or those who want a brief refresher.

Generic Circuits

Pulse circuits

Pulse circuits can be very useful for a situation where a specific timed pulse is needed in which a button is ineffective or insufficient.

XOR/Delay Pulse

Arguably the simplest, most reliable way to generate a pulse from a lever or switch (or any other 'settable' source) is this circuit.

Connect the input signal to one input of the XOR and the delay input. Set the delay to the amount of time required for your purposes, and connect the delay output to the other XOR input. The XOR output is your pulse.

However this configuration generates a pulse when the signal etc. is switched off as well as when it is switched on, which can be a problem in some situations.

Edge Detector - AND/NOT variant

An edge detector gives a pulsed output IF AND ONLY IF the input signal is changing state - this could be either 'on to off' or 'off to on'. Applications might include a signal being pulsed when a lever is enabled and then no output until the next time it is enabled.

Depending on whether you want a signal when the 'LEVER' is

Latches

Latches are a convenient way of storing signals, superceded in many ways by the memory component but still find use in parts of more complex circuits.