User:Sorceror Nobody/Sandbox

Hopper clock

 * Independent invention

A pulse is output every  seconds, where   is the total number of items in the hoppers.

Switching the lever on halts the output and, eventually, the hoppers.

Components needed to build this system from scratch:
 * 36 Redstone
 * 27 Stone
 * 4 Nether Quartz
 * 20 Iron Ingots
 * 12 Wood of any variety
 * 1 Cobblestone
 * any 6 solid blocks
 * Any combination of items to be used in the hoppers

Seven spare Sticks will be produced, unless the lever is left out, in which case, one can neglect the Cobblestone and one of the blocks of Wood.

Repeater clock with piston toggle

 * Independent invention

Piston clocks are noisy, but if the sound of a piston is tolerable just while toggling the clock on and off, this is simpler than the toggleable all-repeater clock. Obviously, the schematic can be modified to have any period, and the output can be drawn from any suitable point in the loop.

Clock Multiplier
First Appearance: October 22-23, 2012. in three videos by "ftheriachab": (1, 2, 3).

This circuit takes a clock input of period  and any pulse length, and outputs as a clock of period , where   is the number of latches used; the output is on for a pulse length of  , and off for the remaining. Additionally, a T flip-flop can be used to regularize the pulse, while doubling the period. The circuit is nearly flat, and tiles lengthwise.

is limited to 12 or so by redstone signal attenuation; however, the design can simply be repeated to multiply the period again, e.g. a 21-multiplier can be made by chaining a 7-multiplier and a 3-multiplier. This can be continued indefinitely.

The build is somewhat tricky: the multiplier loop is in fact a repeater-only clock, which needs to be started separately, before the latches are engaged. The latches are driven by an edge detector which takes a rising edge and produces an OFF pulse; this edge detector's pulse must match the delays of the latched repeaters, so that the multiplier's pulse advances one repeater per edge, with the circuit's output being ON while the last repeater is lit. The delay/pulse length must also be no longer than the input clock, so it's probably best to keep them both at 1. Note that the delays of the latched repeaters are not actually part of the output period; the latches only count off input edges.

This circuit need not be fed with a regular clock. With any varying input, it will count N rising edges and output HIGH between the (N-1)th and Nth rising edge.

State cycler

 * Independent realisation based on the above

Same as the clock multiplier, except that the input is just a trigger (e.g. a button) rather than a clock, unless of course a clock is the intended trigger. Additionally, there must be at least one piece of redstone wire between each of the latches so as to be able to draw the output of each state. The number of latches needed is simply the number of states to cycle through.

There is always exactly one state active -- neither overlap nor dead time occurs between states -- and the delay between trigger and state change is negligible.

Resilient hopper filter

 * Independent invention

Prevents the item stock that makes a hopper filter function from being extracted from the hopper.

The hopper should, initially, contain exactly 22 of the item being filtered, distributed as below. During operation, the item count may drop to 21, but this is not a problem.

Note that the length of redstone between the comparator and block must be exactly two. If it is longer, there must be more items in the hopper. It cannot be shorter, as the threshold for a signal strength of 1 is less than the minimum of five items needed to make the hopper work as a filter.

Resettable clock multiplier
Press the button at the upper right to reset the multiplier. This involves firing a signal along the output line to induce the reset latch position, and therefore users are warned that resetting will output a pulse.

This can probably be compacted or made otherwise neater, but the fact that it works at all is cool.

The minimum multiplier length is three, as shown in the schematic, but it can be extended leftwards without complications, up to the usual maximum of twelve.

Note that this does reset to the first position, rather than the zeroth/final (output) position. I can't really think of a simple way to improve on this; then again, depending on the purpose for which the circuit is being used, the reset pulse and subsequent advance to the first position may be precisely the reset behaviour the user desires.