Circuits: Difference between revisions
Create: Minecraft Mod Wiki>CaptiousToady Added text and picture for variable cycle clock |
Create: Minecraft Mod Wiki>CaptiousToady Adding categories |
||
Line 55: | Line 55: | ||
Two pulse extenders, one in inverse mode, can make a clock with independently settable on and off durations. The clock will start itself when one of the two pulse extenders is set to inverse mode. | Two pulse extenders, one in inverse mode, can make a clock with independently settable on and off durations. The clock will start itself when one of the two pulse extenders is set to inverse mode. | ||
[[File:Variable Cycle Pulse Extender Clock.png|left|thumb|540x540px|Variable Cycle Pulse Extender Clock]] | [[File:Variable Cycle Pulse Extender Clock.png|left|thumb|540x540px|Variable Cycle Pulse Extender Clock]] | ||
[[Category:Redstone]] |
Revision as of 00:39, 11 April 2023
Create adds several components that can be used in redstone circuits. These include the Redstone Contact, Redstone Link, Linked Controller, Pulse Repeater, Pulse Extender, Powered Latch, and Powered Toggle Latch. These components can make redstone circuits simpler and smaller as well as giving finer control over timing.
Logic Gates
Logic gates are circuits that provide a digital output signal based on the conditions of one or more input signals. Digital signals are either on or off (powered or unpowered redstone) and usually represented as a 1 or 0 respectively.
NOT GATE
The ability to place the Pulse Extender in an inverse output mode allows it to be used as a NOT gate. Simply set the pulse length to 2 ticks (or as needed for your particular circuit) and right click the Pulse Extender to toggle to inverse mode.

A Powered Latch can also be used for a NOT gate. A continuously powered signal is sent to the set input and the control signal is sent to the reset input.

AND, OR, NAND, and NOR Gates

A simple pattern of three Pulse Extenders can act as an AND, OR, NAND, or NOR gate depending only on the selection of inverse settings among the Pulse Extenders. If we label the two input Pulse Extenders A and B, and the output O, then the following table shows the Normal (N) versus Inverse (I) setting of each Pulse Extender to achieve the indicated gate. (Note that there are smaller circuit options for some of the gates.)
GATE | A | B | O |
---|---|---|---|
AND | I | I | I |
NAND | I | I | N |
OR | N | N | N |
NOR | N | N | I |
XOR Gate
Pulse Extenders can be used to create a single layer XOR Gate. The design shown below uses repeaters to push charges into opaque blocks which act as diodes providing isolated signals to both the redstone dust continuing to the right and the redstone dust between the two blocks. The center Pulse Extender injects a signal into another block which also acts as an isolating diode forming independent OR Gates with the redstone dust on the far side and near side of the block. All three of the Pulse Extenders are in the inverted mode.

Clocks
Pulse Clock
A Pulse Repeater along with a Redstone Repeater can make a pulse clock where a short pulse is repeatedly sent out with a selectable delay between pulses. In the clock shown below, the Redstone Repeater must have at least 1 tick delay. A pulse input on any of the redstone lines will start the clock. Note that the pulse from a button is too long and will interfere with the feedback signal from the repeater. To start the clock, you can quickly switch a lever on and off or you can feed a button output through another Pulse Repeater set to 2 ticks. The delay between pulses is controlled by the delay setting on the Pulse Repeater.

Variable Cycle Clock
Two pulse extenders, one in inverse mode, can make a clock with independently settable on and off durations. The clock will start itself when one of the two pulse extenders is set to inverse mode.
