Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

I was wondering if anyone knew of a proper way to get a pressure plate to trigger a series of pistons instantly, but have their deactivation delayed by about a variable number of seconds.

I've tried this with a NAND gate and simply adding repeaters but this actually causes the door to open and close rapidly 2-6 times depending on how many repeaters you place.

Any help is appreciated.

share|improve this question
add comment

3 Answers

up vote 7 down vote accepted

A simple pulse lengthener will work here.

Screenshot

It works like this:

The first block gets powered from the pressure plate (or you can power it in some other way), the redstone line immediately takes power from there, so all the pistons go up instantly. After some time the repeater draws power from the block and powers the next block, and so on...

When you step off the pressure plate, the first block no longer powers the redstone line, but all the next blocks still do; the first repeater turns off after some time and the 2nd block is not powered anymore... but the line is powered until the last block loses power.

If the signal is shorter than 4 ticks, this scheme won't work well, but buttons always give a 5-tick pulse and pressure plates' signal lasts at least 5 ticks.

And by the way, I used iron blocks, but these can be any non-transparent blocks,


Old answer

Or, for a different behavior, use an RS NOR Latch as in this screenshot.
This scheme will keep the pistons up for at least the time it takes the current to go through the repeaters, or for more time if the player keeps standing on the pressure plate.

share|improve this answer
    
If I may ask is it possible to extend the length of the deactivation using this method? –  Casey Weed Aug 23 '12 at 17:09
    
@CaseyWeed Of course, just add more repeaters –  BlaXpirit Aug 23 '12 at 17:09
1  
Your new solution, the pulse lengthener, seems to be the ideal solution. It instantly activates, then deactivates after a short period of time. What's great is it's easy to build and adding a longer line of repeaters doesn't seem to cause any funny behavior. –  Casey Weed Aug 23 '12 at 18:14
3  
I was skeptical of this at first, then tested it. Works as advertised. The crux is that the iron blocks power the redstone, but the redstone can't power the iron blocks, preventing it from latching. –  MBraedley Aug 23 '12 at 20:51
1  
I tried this with wooden blocks and it also works great. –  Casey Weed Aug 24 '12 at 1:22
show 10 more comments

You can place a line of repeaters in parallel with a straight redstone wire and adjust the repeaters to give you the desired off delay. enter image description here

The only catch is you have to let the repeaters "charge up" to get the off delay to work. Otherwise, the piston will turn off, the turn on, then have a delayed off.

share|improve this answer
1  
A fix for the catch: i.stack.imgur.com/dzd1Z.png :D –  BlaXpirit Aug 23 '12 at 17:40
    
@BlaXpirit - I don't see how that fixes it. –  user9983 Aug 23 '12 at 17:42
    
It won't "turn off, then turn on, then have a delayed off". Note that all the repeaters have the same direction. –  BlaXpirit Aug 23 '12 at 17:44
    
@BlaXpirit I didn't notice the repeaters have different delays. I had considered this, but to make it work best, you'd need a cascade of 1-tick delays. I didn't mention it because it is impractically large. –  user9983 Aug 23 '12 at 17:47
    
I've tried this and it seems like it just might be my best bet. It has a good enough delay and even if it might be large when scaled up, at least it works reliably and is simple enough. –  Casey Weed Aug 23 '12 at 18:01
add comment

One way to delay the deactivation of a signal is to add a parallel path of activation that contains repeaters to create the delay AND has a long enough length of redstone wire on the end (i.e. greater than 15 blocks) such that it can't reactivate itself. Here's an example:

^*******
 *     *
 *     *
 PR*****

P = pressure plate
R = repeater
* = redstone wire
^ = piston
share|improve this answer
    
I think my friend actually came up with this by happenchance and it worked, but it was very large to build up a delay long enough for you to walk through. I'll have to try this and modify it. –  Casey Weed Aug 23 '12 at 17:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.