User:Munin295/Analog circuit

An analog circuit is a redstone circuit which operates on signal strength.

Analog source
An analog source provides a specific analog signal strength to a circuit.


 * Container Analog Source


 * A container and a redstone comparator can produce an analog signal strength dependent on how full the container is.

Analog transmission
An analog transmission (a.k.a. "hex line") is a transmission which outputs the same signal strength it receives as input. Because power levels can vary from 0 to 15, an analog transmission can convey 16 states in a single line.


 * Analog Comparator Line


 * flat, silent
 * circuit delay: 1 tick per 4 blocks


 * tl;dr: best option for short distances and tricky turns


 * The simplest analog line is a line of redstone comparators. However, like repeaters, comparators can draw a signal from an opaque block and push a signal into an opaque block, thus it is usually more efficient (in resources, and in signal delay) to place comparators every four blocks.


 * The signal strength of an analog comparator line (ACL) can be reduced or suppressed at some point along its length by feeding another signal into one of the comparators in subtraction mode. The signal can be overridden by feeding a stronger signal into one of the opaque blocks.


 * Because the redstone dust is not adjacent to any power or transmission components, only opaque blocks, it will not configure itself to point in any particular direction. This will cause the dust to also power any opaque blocks or mechanism components to the side of the analog line. Transmission components (redstone dust, redstone comparators, etc.) should not be placed adjacent to the line's dust because that would cause the dust to configure itself in a way where it doesn't power the rest of the analog line.


 * Earliest Known Publication: 9 January 2013.


 * Analog Repeater Line


 * flat, silent
 * circuit delay: 1 tick per 14 blocks


 * tl;dr: fastest option for long distances


 * Signal strength can also be retained by using repeaters to repeat every possible signal strength at the correct distance from the output to convey the correct signal strength.


 * A single segment of analog repeater line (ARL) consists of exactly 15 repeaters connecting an input line to an output line. To connect multiple segments together without additional comparators, the segments must be arranged so that the output dust of the last repeater is the same as the input dust of the next segment (i.e., block B of the previous segment is block A of the next segment). This causes the segments to overlap in distance by one block and causes each segment to be offset to the side from the previous segment by two blocks.


 * Variations: To keep the segments in-line, use a comparator and an opaque block between the segments, and alternate the direction the repeaters are facing. However, this increases the circuit delay to 2 ticks per 17 block.


 * Earliest Known Publication: 21 November 2012.


 * Analog Subtraction Line


 * flat, silent
 * circuit delay: 1 tick per (18-N) blocks (see below for N)


 * tl;dr: complicated, infrequently useful


 * If fewer than 15 states need to be transmitted, it may be more efficient to encode those N states in the higher levels of signal strength, and then repeatedly subtract the transmitted value from 15 after (17-N) dust, an even number of times.


 * Variations: The chests can be replaced with any other full container. The chests can also be replaced with regular power components (redstone torches, powered levers, etc.) if the redstone dust next to them is raised or lowered by one block, or if the subtraction comparator and its power source are moved so that the redstone dust runs straight into the comparator's side with the comparator perpendicular to the line still facing into the same block.


 * Earliest Known Publication: 26 January 2013

Vertical analog transmission
…

Analog operations
… arithmetic, comparison, etc.


 * Analog Subtraction


 * Analog MinMax


 * Analog Equality

Analog clock
An analog clock is a circuit which repeats a pattern of analog signal strengths.

…

Analog memory

 * SR Capacitor


 * 3&times;4&times;2 (24 block volume), flat, silent
 * circuit delay: 2 ticks


 * Earliest Known Publication: 4 January 2013 (basic concept) and 6 January 2013 (subtraction refinement)

Analog decoder
An analog decoder converts an analog encoding to another encoding type.

Analog-to-binary decoder
An analog-to-binary decoder (aka "a2b decoder") converts an analog encoding into a binary encoding.

…

Analog-to-tally decoder
An analog-to-tally decoder (aka "a2t decoder") converts an analog encoding (signal strength) into a tally encoding (N lines on).


 * Single-spaced A2T Decoder


 * Double-spaced A2T Decoder


 * Earliest Known Publication: 21 March 2013

Analog-to-unary decoder
An analog-to-unary decoder (aka "a2u decoder") converts an analog encoding into a unary encoding (Nth line on).


 * Opposed-Power A2U Decoder


 * Powers a line of 16 redstone dust with a power level equal to the input analog power level from one side, and (15 - input) from the other, leaving only a single dust unpowered.


 * Grizdale's decoder transmits the input's power level to both sides simultaneously by taking the input in the middle of the circuit and using the same number of comparators getting to either side. The output can be shortened to display fewer values by reducing the number of items in the subtraction comparator's input container (when shortening the comparator lines, make sure each dust has a comparator before or after it so it doesn't power an adjacent block with an output torch, as is purposefully done with the 0 output torch).


 * The ARL decoder transmits the input's power level to both sides simultaneously by using a single segment of analog repeater line. The schematic shows how you would typically build the circuit on the ground, but you can also drop the output line and torches 1 block to make the circuit only 2-high (reducing the circuit size to 7&times;16&times;2, or 224 block volume).


 * Earliest Known Publication: 17 March 2013


 * NOR-Gate A2U Decoder


 * Splits the input signal into two lines of redstone dust, with one line at one less power than the other, and compares the power level of the two lines at each potential input to see where the input's power level drops to 0.