v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

v0.34:Repeater

From Dwarf Fortress Wiki
Revision as of 20:18, 7 March 2012 by Quietust (talk | contribs) (remember to put {{av}} at the top to add links to other namespaces)
Jump to navigation Jump to search
This article is about an older version of DF.

A repeater is in DF1 a device which creates a never-ending cyclic on/off signal-- more technically known as an oscillator. The simplest repeater design is simply a dwarf pulling a lever on repeat-- vampires don't even need to take breaks from such a task. However, several automated designs are possible, and they can be made to operate at varying rates. They (usually) use fluid or creatures to trigger pressure plates cyclically.

As a general warning, always have a way to turn off the repeater, and/or allow your dwarves later access for repairs or modifications.

Fluid logic repeater

The most common repeater design is probably this fluid-based one, described on the forum by AncientEnemy):

≈≈≈≈≈ - infinite source of water
═╗≈╔═ - wall to channel out after construction
 ╠F╣  - shutoff floodgate (linked to exterior lever)
 ║#║  - 1-tile drawbridge (linked to pressure plate)
 ║p┼  - pressure plate (set to 7-7 water), and access door
 ╠F╣  - floodgate (linked to pressure plate)
 ╚═╝

So long as the shutoff floodgate isn't closed, water from an infinite source flows on to the pressure plate, causing the raising bridge to block access to the water source and destroy water in the circuit, while the opening of the southern floodgate compensates for the space taken up by this bridge. This water destruction mechanic means that, unlike many fluid logic circuits, this repeater needs no drainage. The single pressure plate works both to regulate the repeater, and as output.

This repeater toggles fairly slowly, about once every 300 steps, making it suitable for operating repeating bridges, floodgates, and upright spikes. Off signals tend to follow on signals about 200 ticks later. As an added bonus, the southern wall can be removed and connected to a cistern whose water level will be automatically maintained at a level between 3 and 4 deep-- perfect for swimming!

For an alternate water-based repeater, consider the design at User:SL/Logic_Gates#Repeater which demonstrates a two level, hybrid repeater.

Goblin repeater

Designs based on creature logic are also possible. The following example is compact, reliable, and fairly predictable.

¢
p ¢ ^ ¢ ¢ ^ ¢ p
¢

A captured goblin placed between the two pressure plates drives this system in his attempts to reach map edge through paths ¢p. ^ is linked to all ¢, and ^ is linked to all ¢, as well as to output. This gives the goblin a path away from his constrained tile every 100 ticks. Delays in picking up path tend to make it run a cycle every 250 ticks. with on and off signals separated by about 120 ticks. Its rate of repetition can be doubled by hooking both ^ to output, although this leads to close placement of on and off signals.

Clock Generation

Although the law of big numbers means that, over large enough intervals, the preceding irregular repeaters can be used to run a clock, designs that generate perfect clock signals are also possible.

This mechanical-fluid hybrid repeater will send regular signals at a frequency determined by the speed of pressure plate recovery. The basic design consists of 4 screw pumps and 4 pressure plates but other versions are possible, depending on the number of separate steps you need.


Level 0 Level -1 Level -2
÷ ÷
÷ ÷
÷ ÷
÷ ÷
^ ^
^ ^

÷÷ is a screw pump which pumps from the light side to the dark side. ^ is a pressure plate which disengages gear when water of depth 1-7 lands on it. The red, green, blue, and yellow pressure plates and gears are color coded only to show which is linked to which. In the game they'll all look like ^ and . Building a pump after the gear which powers it or a gear after the pressure plate which disengages it will introduce a 1-step delay; so, depending on build order, the repeater might have a period between 400 and 408 steps. If the pumps, gears, and pressure plates are built in that order, then this system will repeat every 400 steps, exactly. Start the repeater by using a pond zone to dump 2 buckets of water onto any one of the plates.

The device as depicted uses 47-62 power during operation, and requires 62 power for startup. Drive train to power may, of course, lead to higher requirements. Once the two units of water are introduced to the system, water is conserved perfectly.

See User:MrFake/NStepCyclicRepeater for generalizable n-step clock generator instructions.

User:Hash/SelfPoweredHaltableRepeater demonstrates clock generation with integrated water reactor.

Forum thread has more description and explanations.

DFMA movie shows the action of pump-based clock generation.