Compact Dual Edge Detector

A dual edge detector is a pulse circuit that outputs a short signal both when an input turns on (rising edge) and when it turns off (falling edge). This compact, silent design uses a pair of locked hoppers and a comparator to trigger two distinct pulses from a single button press. It is ideal for toggling contraptions like doors, lights, or farms at the start and finish of a timed cycle.

Pulse CircuitsBeginnerJava Edition
Compact Dual Edge Detector video tutorial

Video: Dual Edge Detector In Minecraft! by Pawnable

How to build it

  1. Create a Hopper Loop

    Place two hoppers directly next to each other so that their nozzles point into one another. Crouch while placing the second hopper into the side of the first so they form a closed loop.

  2. Place the Output Comparator

    Place a Redstone Comparator facing outward from one of the hoppers. If you want an inverted output option as well, you can place a second comparator facing away from the other hopper.

  3. Lock One Hopper with a Torch

    Crouch and place a Redstone Torch directly affecting one of the hoppers (or on a solid block above it) so that one hopper is powered and locked by default.

  4. Add the Button Input

    Attach a stone or wooden button so that pressing it turns off the Redstone Torch (or place the button one block higher with a piece of Redstone Dust on top, depending on your preferred layout).

  5. Insert a Single Item

    Open either hopper and place a single item inside. The circuit is now ready and will fire a pulse when you press the button and another when the button pops back out.

How it works

This circuit relies on hopper locking mechanics and item transfer timings rather than pistons or observers:

  • Resting State: The two hoppers point into each other and hold a single item. The Redstone Torch powers one of the hoppers, locking it so the item remains trapped inside and cannot cycle back and forth.
  • Rising Edge (Button Pressed): When you press the button, it briefly changes the locking state by turning off the torch. This allows the single item to transfer to the other hopper before getting locked again, changing the comparator's state for the first output pulse.
  • Falling Edge (Button Releases): When the button pops back out, the torch turns back on and reverses the lock, letting the item shift again and triggering the comparator a second time at the end of the button's pulse.

Tips & variations

  • Inverted vs. Non-Inverted Output: Because there are two hoppers, reading from one side gives a standard dual-edge pulse while reading from the opposite hopper with a second comparator gives an inverted output.
  • Alternative Input Layout: You can build the input one block higher by placing a solid block with Redstone Dust on top and a torch on the side to lock the hopper below.
  • Button Types: Both stone and wooden buttons work with this setup; a wooden button simply delays the second (falling-edge) pulse slightly longer than a stone button.
  • Silent Operation: Unlike piston-based dual edge detectors, this hopper design is completely silent.

Frequently asked questions

What does a dual edge detector do in Minecraft?
It sends a redstone pulse at the very beginning of an input signal (rising edge) and a second pulse at the very end when the signal turns off (falling edge).
Does it matter if I use a wooden or stone button?
No, both work the same way. A wooden button stays pressed longer, which just creates a slightly longer gap between the first and second output pulses.
Do I need two comparators for this build?
No, you only need one comparator for your output. Placing a second comparator on the opposite hopper is optional and simply gives you an inverted version of the output.

Components used

More dual-edge detector