- 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.
Difference between revisions of "User:Hussell"
(repeater design #4) |
(Success! 102 step repeater) |
||
Line 255: | Line 255: | ||
|} | |} | ||
− | Where {{Raw Tile|┼|#0FF|#000}} is linked to an on/off lever, and {{Raw Tile|^|#FF0|#000}} is a 7/7 plate linked to hatches {{Raw Tile|¢|#FF0|#000}}, and the screw pump is running continuously, pumping water to the left. The screw pump takes water off the pressure plate instantly, eliminating the variability from draining water off the plate. However, I'm concerned that over-pressurized water will flow over the hatch on Z-level 0 even when it's open, but under-pressurized water won't flow over it fast enough when it's closed. | + | Where {{Raw Tile|┼|#0FF|#000}} is linked to an on/off lever, and {{Raw Tile|^|#FF0|#000}} is a 7/7 plate linked to hatches {{Raw Tile|¢|#FF0|#000}}, and the screw pump is running continuously, pumping water to the left. The screw pump takes water off the pressure plate instantly, eliminating the variability from draining water off the plate. However, I'm concerned that over-pressurized water will flow over the hatch on Z-level 0 even when it's open, but under-pressurized water won't flow over it fast enough when it's closed. |
+ | |||
+ | As I feared, testing showed some problems due to either overflow across the open hatch or variable time to flow across the closed hatch, depending on pressurization. The design also drains an enormous amount of water, since the hatches are open 100 out of 102 steps. But that's OK, because I finally came up with a design that works! | ||
+ | |||
+ | |||
+ | Fifth design (Success!): | ||
+ | {| | ||
+ | |- | ||
+ | |Z-level +1 | ||
+ | |Z-level 0 | ||
+ | |Z-level -1 | ||
+ | |- | ||
+ | | | ||
+ | {| style="border-spacing: 0" | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{RT0|.|#008}} | ||
+ | |{{RT0|%|#080}} | ||
+ | |{{RT0|%|#0F0}} | ||
+ | |{{RT0|¢|#F0F}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{RTC|*}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{RT0|║|#880}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |} | ||
+ | | | ||
+ | {| style="border-spacing: 0" | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{RT0|2|#008}} | ||
+ | |{{RT0|%|#0F0}} | ||
+ | |{{RT0|%|#080}} | ||
+ | |{{RT0|^|#F0F}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{RT0|*|#F0F}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |} | ||
+ | | | ||
+ | {| style="border-spacing: 0" | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{RT0|2|#00F}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |- | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |{{888}} | ||
+ | |} | ||
+ | |} | ||
+ | |||
+ | {{Raw Tile|%|#080|#000}}{{Raw Tile|%|#0F0|#000}} is an active screw pump, pumping from the bright end to the dark end. {{Raw Tile|^|#F0F|#000}} is a 2-7 pressure plate which turns gear {{Raw Tile|*|#F0F|#000}} off and opens hatch {{Raw Tile|¢|#F0F|#000}}. There is solid floor between the two pumps (meaning that no power is transmitted between them), but no floor between the two gears. The upper screw pump must be constructed ''before'' the lower screw pump. | ||
+ | |||
+ | That last requirement may seem a little odd. Here's what you need to know: every turn, screw pumps attempt to pump water in the order ''opposite'' to the order they were built in. If a [[Screw_pump#Pumping_up_multiple_levels|pump stack]] is built from bottom to top, it will pump water one level per step. But if it's built from top to bottom, it will pump water from the bottom to the top in ''one step''. In particular, any pressure plates on the intermediate levels will ''not'' be activated. This is how this design gets around the fact that the lower screw pump continues to pump for 50 steps after the lower gear is deactivated. | ||
+ | |||
+ | You can check the order in which your screw pumps were built on the {{k|r}}ooms page. Just {{k|PgUp}} until you find the screw pumps, then check the last two on the list. If the lower screw pump isn't last on the list, just deconstruct and reconstruct it. | ||
+ | |||
+ | Why is the plate 2-7? I use a pond zone to put water into the Z-level -1 pit. Screw pumps ignore 1/7 water, but pump 2/7 water completely, so 2 is the minimum amount of water needed to run this machine. Up to 7 will also work, but isn't required. More than 7 may cause spillage, depending on where the accessible spaces are. I have no idea what will happen if there's more than 7 water and no place for it to flow to, but the device will almost certainly malfunction. | ||
+ | |||
+ | Step 1: water in pit, lower gear active, hatch closed (CLOSE signal sent) | ||
+ | Step 2: water on plate, lower gear active, hatch closed | ||
+ | Step 3: water in shaft, lower gear inactive, hatch open (OPEN signal sent) | ||
+ | Step 52: lower pump pumps nothing this step, water soon rests in pit | ||
+ | Step 103: water in pit, lower gear active, hatch closed (CLOSE signal sent) | ||
+ | Step 104: water on plate, lower gear active, hatch closed | ||
+ | Step 105: water in shaft, lower gear inactive, hatch open (OPEN signal sent) | ||
+ | |||
+ | So: a 102 step cycle. During 100 of these steps, the hatch is open and the lower gear is inactive. The CLOSE signal is sent at the beginning of the 101st step, the water is on the pressure plate during the 102nd step, and the OPEN signal is sent at the beginning of the 103rd step, which is also the first of the 100 steps during which the hatch is open. Although the lower gear is inactive for 100 steps, the lower pump continues pumping for 50 steps, but the water never touches the plate while the hatch is open if you've constructed the pumps in the correct order. | ||
+ | |||
+ | I believe this is the fastest or almost the fastest repeater possible with pressure plates. Best of all, it doesn't require pressurized water, so there's no danger of flooding your fortress. There may be a simpler design, though. This one requires two screw pumps (2 blocks, 2 pipe sections/tubes, and 2 enormous corkscrews), two gears, a pressure plate, and two linkages (7 mechanisms), plus at least 2 mechanisms to link the output to something. 30 power plus however much is needed by the axle is required, so it could be powered by a single windmill, possibly on the surface directly above the upper gear. In any event, at least 3 logs will also be needed (for a waterwheel), and possibly more (4 for a windmill, plus some for axles). |
Revision as of 15:12, 14 November 2009
I've put together a few fluid logic circuits using doors (because they react about 100 times faster than floodgates and bridges), and NOT using hatches (because I have trouble preventing them from letting overflow through, especially when the water is pressurized). These setups are awkward to initialize, but once you've managed that, they can do some interesting things.
The "Clock Toggle", as I'm calling it, causes its output to toggle only when it receives an ON signal. OFF signals are ignored. This could, in theory, be used to build a clock, although I've only built one so far.
The Quest for a Fast Repeater
The goal is to create a device that triggers a pressure plate in a regular cycle, with no time variability, and a period faster than the standard Repeater, which sends an OPEN signal once every 302 steps, and a CLOSE signal on the 201st step, plus a small and variable delay caused by the time the water takes to drain away from the pressure plate.
This was my first quick design for a door-based repeater:
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
^
|
^
|
┼
|
█
|
█
|
█
|
█
|
█
|
█
|
█
|
Little-known fact: pressure plates react instantly when their ON condition is met, but require 100 continuous steps of OFF conditions before sending an OFF signal. So the design above doesn't work as desired, because the red plate doesn't close the red door fast enough.
This was my second design, using a hatch, and requiring a drainage system:
█
|
█
|
█
|
█
|
█
|
█
|
≈
|
┼
|
¢
|
^
|
┼
|
█
|
█
|
█
|
█
|
█
|
█
|
█
|
Where ┼ turns the oscillator on and off, and ^ is linked to hatch ¢ and door ┼. Seems to work, with a period slightly over 100 steps, but there's some variability due to the water flow, so I'm fiddling with the drainage system and pressurization.
Actually, the fastest repeater I know of (and the easiest to set up) is "Pull the lever" on infinite repeat. I get about 1 pull every 5 or 6 steps with a perfectly agile dwarf, meaning one OPEN signal every 10-12 steps. Too bad it requires a dwarf.
Third design:
Z-level +1 | Z-level 0 | Z-level -1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
^ is a 7-7 pressure plate which turns the green gear OFF and the red gear ON. There must be solid floor between the two pumps and the red and green gears, and open space between the other two gears. In theory, this should be a perfectly consistent 101 step repeater. The water triggers the pressure plate and instantly gets sucked away. The pressure plate then delays for 100 steps, which should be plenty of time for the water to fall down two squares. After the deactivation of the pressure plate, the pumps should move all the water in 1 tick.
Testing, however, reveals that screw pumps remain active for exactly 50 steps after they lose power. Since the water can fall two squares within 50 steps, it gets pumped onto the pressure plate again, delaying the CLOSE signal by the time it took for the water to fall, which is variable. Back to the drawing board.
Fourth design:
Z-level +1 | Z-level 0 | ||||||||||||||||||||||||||||||
|
|
Where ┼ is linked to an on/off lever, and ^ is a 7/7 plate linked to hatches ¢, and the screw pump is running continuously, pumping water to the left. The screw pump takes water off the pressure plate instantly, eliminating the variability from draining water off the plate. However, I'm concerned that over-pressurized water will flow over the hatch on Z-level 0 even when it's open, but under-pressurized water won't flow over it fast enough when it's closed.
As I feared, testing showed some problems due to either overflow across the open hatch or variable time to flow across the closed hatch, depending on pressurization. The design also drains an enormous amount of water, since the hatches are open 100 out of 102 steps. But that's OK, because I finally came up with a design that works!
Fifth design (Success!):
Z-level +1 | Z-level 0 | Z-level -1 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|
%% is an active screw pump, pumping from the bright end to the dark end. ^ is a 2-7 pressure plate which turns gear * off and opens hatch ¢. There is solid floor between the two pumps (meaning that no power is transmitted between them), but no floor between the two gears. The upper screw pump must be constructed before the lower screw pump.
That last requirement may seem a little odd. Here's what you need to know: every turn, screw pumps attempt to pump water in the order opposite to the order they were built in. If a pump stack is built from bottom to top, it will pump water one level per step. But if it's built from top to bottom, it will pump water from the bottom to the top in one step. In particular, any pressure plates on the intermediate levels will not be activated. This is how this design gets around the fact that the lower screw pump continues to pump for 50 steps after the lower gear is deactivated.
You can check the order in which your screw pumps were built on the rooms page. Just PgUp until you find the screw pumps, then check the last two on the list. If the lower screw pump isn't last on the list, just deconstruct and reconstruct it.
Why is the plate 2-7? I use a pond zone to put water into the Z-level -1 pit. Screw pumps ignore 1/7 water, but pump 2/7 water completely, so 2 is the minimum amount of water needed to run this machine. Up to 7 will also work, but isn't required. More than 7 may cause spillage, depending on where the accessible spaces are. I have no idea what will happen if there's more than 7 water and no place for it to flow to, but the device will almost certainly malfunction.
Step 1: water in pit, lower gear active, hatch closed (CLOSE signal sent) Step 2: water on plate, lower gear active, hatch closed Step 3: water in shaft, lower gear inactive, hatch open (OPEN signal sent) Step 52: lower pump pumps nothing this step, water soon rests in pit Step 103: water in pit, lower gear active, hatch closed (CLOSE signal sent) Step 104: water on plate, lower gear active, hatch closed Step 105: water in shaft, lower gear inactive, hatch open (OPEN signal sent)
So: a 102 step cycle. During 100 of these steps, the hatch is open and the lower gear is inactive. The CLOSE signal is sent at the beginning of the 101st step, the water is on the pressure plate during the 102nd step, and the OPEN signal is sent at the beginning of the 103rd step, which is also the first of the 100 steps during which the hatch is open. Although the lower gear is inactive for 100 steps, the lower pump continues pumping for 50 steps, but the water never touches the plate while the hatch is open if you've constructed the pumps in the correct order.
I believe this is the fastest or almost the fastest repeater possible with pressure plates. Best of all, it doesn't require pressurized water, so there's no danger of flooding your fortress. There may be a simpler design, though. This one requires two screw pumps (2 blocks, 2 pipe sections/tubes, and 2 enormous corkscrews), two gears, a pressure plate, and two linkages (7 mechanisms), plus at least 2 mechanisms to link the output to something. 30 power plus however much is needed by the axle is required, so it could be powered by a single windmill, possibly on the surface directly above the upper gear. In any event, at least 3 logs will also be needed (for a waterwheel), and possibly more (4 for a windmill, plus some for axles).