Wiring

From Frackin' Universe Wiki
Jump to navigation Jump to search

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

P1: Objects can have red & blue nodes that indicate input and outputs for itself

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.

P2: An example of two switches, one in the OFF state and the other in the ON state.

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.




Logic Gates Breakdown

NOT Gate

P3: NOT GATE - When the Input is OFF (0), Return ON (1). When input is ON (1), return OFF (0)
NOT Gate
Input Output
0 1
1 0

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

AND Gate.png
2-input AND Gate
Input 1 Input 2 Output
0 0 0
0 1 0
1 0 0
1 1 1
3-input AND Gate
Input 1 Input 2 Input 3 Output
0 0 0 0
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 1

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

Common uses for AND gates are when you want to have several conditions met before doing something. IE: a Lightswitch that will only turn your lights on if it is night out.


OR Gate

OR Gate.png
2-input OR Gate
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 1
3-input OR Gate
Input 1 Input 2 Input 3 Output
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 1

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

Common uses for standard OR gates are actually not too many, as the OR operation is implicitly done by blue input nodes (if any of the inputs to a blue node is ON, the blue node is treated as ON). However, OR gates can be used when you want to be explicit that your are OR'ing some inputs.


NAND Gate

NAND GATE.png
2-input NAND Gate
Input 1 Input 2 Output
0 0 1
0 1 1
1 0 1
1 1 0
3-input NAND Gate
Input 1 Input 2 Input 3 Output
0 0 0 1
0 0 1 1
0 1 0 1
0 1 1 1
1 0 0 1
1 0 1 1
1 1 0 1
1 1 1 0

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

NOR Gate.png
2-input NOR Gate
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 0
3-input NOR Gate
Input 1 Input 2 Input 3 Output
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 0
1 0 0 0
1 0 1 0
1 1 0 0
1 1 1 0

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

XOR Gate.png
2-input XOR Gate
Input 1 Input 2 Output
0 0 0
0 1 1
1 0 1
1 1 0
3-input XOR Gate
Input 1 Input 2 Input 3 Output
0 0 0 0
0 0 1 1
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 0
1 1 1 0

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


NXOR Gate

NXOR Gate.png
2-input NXOR Gate
Input 1 Input 2 Output
0 0 1
0 1 0
1 0 0
1 1 1
3-input NXOR Gate
Input 1 Input 2 Input 3 Output
0 0 0 1
0 0 1 0
0 1 0 0
0 1 1 1
1 0 0 0
1 0 1 1
1 1 0 1
1 1 1 1

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


Latches, Other Gates, and etc.

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:

Master Logic Gate Signal mapping
Signal 1 AND NAND
CLK/Enable OR NOR
Signal 2 XOR NXOR

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

Common ITD Uses

Automated Ore Smelting

WIP

Sift/Crush/Centrifuge/Extractor Queueing

General Process for setting up a Processing queue system.

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!
Input slots per Processor
Extraction Station Input slot #s Input Type
Hand Mill 1,2,3 all
Extraction Lab 1,2,3 all
Extraction Lab MKII 1,2,3 all
Quantum Extractor 1,2,3 all
Sprouting Table 1,2,3 Seeds & Plants
Xeno Research Lab 1,2,3 Seeds & Plants
Advanced Xenolab 1,2,3 Seeds & Plants
Rock Breaker 1 Rocks, stone & crystal blocks
Rock Crusher 1 Rocks, stone & crystal blocks
Sifter 1 granulars
Powder Sifter 1,2 granulars
Wooden Centrifuge 1 Milk, Water, Contaminated Water and Combs
Iron Centrifuge 1 Milk, Fluids and Combs
Industrial Centrifuge 1,2 Milk, Fluids and Combs
Lab Centrifuge 1,2,3 Milk, Fluids and Combs
Gas Centrifuge 1,2,3,4 Milk, Fluids, Isotopes and Combs





Power

Power Wiki Page

WIP

Liquid Movers

WIP