Wiring

Background Knowledge
Before diving too deeply into wiring, there is a slight bit of background knowledge to familiarize yourself with.

Binary & Binary Addition
Our "normal" counting system uses 10 digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. We will refer to this as Base-10. In Base-10, when you get to the last value in the list (9), you wrap around to first value (0) and increment the place to the left by one. For example: 9 + 1 = 10

Note that the above is equivalent to the following: 09 + 01 = 10

Binary is a simpler version of this. Binary is a system of counting that only has two digits it in, 0 and 1. So, when you would add two 1s together, you will get 0, much like how you get 0 when you add 9 and 1 in Base-10.

All binary numbers on this page will be given this prefix: b'

So in example, adding 1 and 1 in binary: b'1 + b'1 = b'10

or, alternatively: b'01 + b'01 = b'10

We add 1 and 1, which makes us loop around to 0. When we loop, we increment the place to the left by 1, just like in Base-10.

Here are some more addition examples: b'0010 + b'0010 = b'0100 b'0100 + b'0001 = b'0101 b'0101 + b'0001 = b'0110 b'0110 + b'0010 = b'1000

In Starbound, signals will either be ON or OFF, which correspond to 1 and 0 in binary, respectively.

This is really all we will need for now, but if you want a more in-depth look at binary, the Wikipedia Article on it is a good starting point.

Inputs and Outputs


In Starbound, if you toggle Wire Mode (default hotkey "T") and look around, you will notice many different devices have red and blue nodes on them. Blue nodes function as signal(and/or power) inputs and red nodes are signal (or power) outputs. Note that for signal inputs, if at least one of the inputs to that blue node is ON, then the input node as a whole is considered as ON, even if not all the input wires are ON.

Generally speaking, if you scan an object (default hotkey "N", then click on it) you should get some insight into what the inputs and outputs of an object do.



Logic Gates
A Logic Gate is a device that, when given a combination of one or more input(s), will always output a particular value that is dependent on the input combination. The Wiring Table provides several recipes to craft logic gates for your use.

Truth Tables
A truth table is a table that shows all the possible input combinations and the corresponding output value of an object based on those inputs. We will use these to describe Logic Gates. See the tables in the next section for examples of Truth Tables.

NOT Gate


A NOT gate has only one input. A NOT gate takes and returns the inverse of the input (0 if 1, 1 if 0).

AND Gate


The AND gate takes 2 or more inputs and only returns ON if all inputs are also ON.

OR Gate


The OR gate takes 2 or more inputs and returns ON if at least one of its inputs is ON.

NAND Gate


The NAND gate takes 2 or more inputs and only returns OFF if all inputs are ON. This gate is equivalent to an AND gate with a NOT gate attached to the output

NOR Gate


The NOR gate takes 2 or more inputs and returns OFF if at least one of its inputs is ON. This gate is equivalent to an OR gate with a NOT gate attached to the output

XOR Gate


The XOR gate takes 2 or more inputs and returns ON if only one of its inputs is ON.

NXOR Gate


The NXOR gate takes 2 or more inputs and returns OFF if only one of its inputs is ON. This gate is equivalent to an XOR gate with a NOT gate attached to the output

Master Logic Gate
This gadget has three input nodes on the left column and six output nodes on the middle and right columns.

This gate will simultaneously provide the output of the AND, NAND, OR, NOR, XOR, and NXOR operations applied to the signal 1 & signal 2 inputs.

The pin layout is such:

This gate will update its outputs only if CLK/Enable is either not connected, or if that signal is ON.

This gate is useful when you need to run several logical operations on a pair of inputs.

Configurable 3-state cycler
Main Article

This will cycle through 3 different outputs, with a user-defined duration at each step. To set this duration, place the cycler and then interact (Default key "E") with it to open a menu, edit the values, then hit save at the bottom.

The blue input node is an enable. If you toggle the enable from on to off, the cycler will cease all output and restart from input 1 when the enable is turned back on.

Sequencers
WIP

ITDs
 SECTION IS WIP

ITD Wiki Page

Automated Ore Smelting
WIP

Sift/Crush/Centrifuge/Extractor Queueing


Want to have stuff be processed without you manually putting items in the slots every time? You've come to the right place! This will show you how to make it so you have a drop-off box for stuff to put into a processor. The items in the box will be passed to the processor and the output will be stored in another chest.

To set up a Centrifuge, Crusher, Extractor, or Sifter for processing you will need the following:


 * Two ITDs
 * Two Storage Containers/chests
 * Two storage bridges
 * The Processing machine (Centrifuge, Crusher, Extractor, or sifter)
 * Adequate Power for the processor

Now, to configure the setup:
 * 1) Place the storage containers down with a storage bridge next to the bottom left corner of each container.
 * 2) Determine which chest you want to be the drop-off point for your item to be processed. Connect the output of this chest's storage bridge to the input node of an ITD.
 * 3) Connect the ITD's output node to the input node of the processing machine.
 * 4) Connect the output of the processing machine to the input of the other ITD
 * 5) Connect the second ITD's output node to the input node of the output chest's storage bridge.
 * 6) Open up the first ITD and set the output slots to the input slots used by the processor (For details on the slots to designate, see the Input slots per Processor table below.)
 * 7) Put an item of the type you want to pull out of the first container (block, liquid, etc.) in the leftmost item slot of the ITD.
 * 8) Click on the "Type" button in the Item 1 column of the ITD interface (should be a light gray color when selected)
 * 9) For the second ITD, exclude the input slots of the processor by entering the same numbers you did for the other ITD, then click on the Red "I" box below the input slots column. (It should turn from red to green)
 * 10) Finally, connect your power to the input slot of the processor and give the system a try!

Power
Power Wiki Page

WIP

Liquid Movers
WIP