Delayed Dual Edge Detector

A dual edge detector activates whenever its input turns on or off, and this specialized version adds a customizable timer of up to 128 seconds. Depending on how you configure the output, it can either emit a single long pulse or wait for a long delay before firing a short pulse. It is ideal for timed doors, automated farms, and complex technical redstone systems that need a synchronized cooldown on both rising and falling edges.

Pulse CircuitsIntermediateJava Edition
Delayed Dual Edge Detector video tutorial

Video: Tutorial: Extreme Delay/Duration Dual Edge Detector by R.K.F. Walter

How to build it

  1. Set Up the Input Block

    Place your main input block with a lever attached so you can toggle both rising and falling edges during testing. Leave space behind it for the dual edge detection and timing line.

  2. Build the Dual Edge Trigger

    Wire the input line so that both turning the lever ON and turning it OFF cause a state change in the trigger mechanism. Use redstone dust, a repeater, and a torch or piston arrangement to detect both signal transitions.

  3. Install the Hopper Timer

    Place two hoppers facing into each other to form the long-duration timer section capable of holding up to 5 stacks of items (up to 128 seconds of transfer time). Connect your edge trigger so that a state change unlocks one hopper while locking the other.

  4. Add the Comparator Readout

    Place redstone comparators reading from the hoppers into solid building blocks. Run redstone repeaters or dust from these blocks to capture the state of the items moving between the hoppers.

  5. Configure the Output Mode

    Wire the output line from the timer readout depending on your need: take the direct active signal while items are transferring for a long pulse duration, or invert/edge-detect the end of the cycle to produce a short pulse after the full delay.

  6. Load Items and Test

    Place stackable items into one of the hoppers based on your desired delay (up to 128 seconds at 0.4 seconds per item). Flip the input lever on and off to verify that the circuit triggers cleanly on both edges.

How it works

This circuit combines a dual edge detector (which responds to both a 0 → 1 rising edge and a 1 → 0 falling edge) with an item-transfer hopper timer to achieve up to 128 seconds of delay or pulse length.

  • Edge Detection: Toggling the input switches which side of the timer is locked, initiating an item transfer cycle regardless of whether the input just turned on or off.
  • 128-Second Timing: Hoppers transfer 1 item every 4 redstone ticks (0.4 seconds). Five full stacks (320 items) take exactly 128 seconds to move from one hopper to the other.
  • Dual Output Options: Reading the active transfer state gives a continuous pulse for the entire duration, whereas reading the completion of the transfer yields a short pulse after the delay finishes.

Tips & variations

  • Adjusting the Time: Calculate the exact number of items you need by dividing your target time in seconds by 0.4 (for example, 25 items equal a 10-second delay or pulse).
  • Avoid Retriggering Early: Wait for the items to finish transferring before toggling the input again, otherwise the remaining delay will be shorter than the full cycle.
  • Chunk Boundaries: Build the entire hopper timer within a single chunk so that unloading the area does not freeze one side of the detector while the other stays active.

Frequently asked questions

How is the 128-second maximum delay calculated?
A standard hopper holds 5 slots of 64 stackable items (320 items total) and transfers 2.5 items per second (0.4 seconds per item). Multiplying 320 items by 0.4 seconds gives a maximum cycle of 128 seconds.
What is the difference between the delay mode and duration mode?
Duration mode keeps the output powered for the entire time items are moving (up to 128 seconds), while delay mode waits until the timer finishes and then emits a brief pulse.
Why use a dual edge detector instead of a normal pulse extender?
A standard pulse extender only triggers when a button is pressed or when an input turns off. A dual edge detector triggers the long timer both when a lever or state turns ON and when it turns OFF.

Components used

More dual-edge detector