I doubt I'm the first one to discover this, but I've found a compact way to increase the pulse length on a stone button from 0.9 seconds (standard button) to any amount of time. Here's how you do it:
This is the basic setup for the circuit. The button activates the output (in this example, a wood door) initially by the straight line from it to the door. However, when that first piece of redstone is activated, it sends a second signal through a delayed loop, which reconnects with the old circuit just two blocks from the initial point. As such, it provides a longer lasting activation.
In the picture above, the door will open 0.1 seconds after the button is pressed, and will remain open for 1.2 seconds instead of the regular 0.9. Increasing the delays on the three repeaters in the secondary loop will delay the signal further, and allow for a longer pulse from the initial button press. The maximum delay length is actually 3-4-4 (one repeater is at the third delay, the other two are maxed), and if set up as such it will provide a signal for 2.0 seconds (door shuts at 2.1 seconds).
Note: If all three repeaters in the delay loop are set to 4, the signal is too slow and the door will shut before the delayed signal reaches it. This results in the door opening, then shutting and re-opening instantly, and finally shutting.
To extend this design to create any delay imaginable, do the following:
The total delay loop is now a single delay loop, with a delay loop attached to it.
In the picture, the door will open 0.1 seconds after the button is pressed, and will remain open for 1.4 seconds. Again, the repeaters in this design can be set to 3-4-4 to create a much longer signal.
More and more of these delay loops can be attached, and with enough repeaters any length pulse is possible.
you can achieve this exact same thing with a memory latch... where you run a redstone wire into the "set" input and run another through repeaters into the reset... meaning the door will stay open for the duration of the timer...
* This was pointed out to me by a very helpful redstone helper when i thought i figured out an easier way at using memory latch ideas
EDIT: realised he said compact... disregard and flame me...
you can achieve this exact same thing with a memory latch... where you run a redstone wire into the "set" input and run another through repeaters into the reset... meaning the door will stay open for the duration of the timer...
* This was pointed out to me by a very helpful redstone helper when i thought i figured out an easier way at using memory latch ideas
Actually another effective way of doing this would be using a pulse generator (NOTICE: it is different from a pulsar) which would look like this:
Input is the left side, output is on the right. Not sure on how long it would stay open, but you can increase the length by adding more repeaters.
I do like your method, Vicktor0, though. It is more compact, but a pulse generator would be the only way to go if you would like to use a switch and you want the power to go off eventually.
Yeah I realize there's probably dozens of different ways to do this with some assortment of logic gates. I just stumbled on this and saw how compact and simple it is and figured I'd share it.
What I was trying to do with it was increase the amount of time my doors stayed open. I always make double iron doors with a button on either side, but it always seems to me that they close too quickly. If I could just add a half second or so, it would be open for the perfect amount of time. This solves that problem for me, and probably many others if they happen to see this thread.
Yeah I realize there's probably dozens of different ways to do this with some assortment of logic gates. I just stumbled on this and saw how compact and simple it is and figured I'd share it.
What I was trying to do with it was increase the amount of time my doors stayed open. I always make double iron doors with a button on either side, but it always seems to me that they close too quickly. If I could just add a half second or so, it would be open for the perfect amount of time. This solves that problem for me, and probably many others if they happen to see this thread.
why be logical when you can have the doors open for 3 minutes and close on some random and lol at them from your treetop house... i did this today... it really was funny when it closed on people xD
Yeah a monostable would be best for any major delay. The sweet spot for this system would probably be a delay less than five seconds. Like if one wanted their (button activated) doors to open for a bit longer.
Sorry Smexy, I don't know how to vid stuff. But this isn't really complicated. Everything is shown in the two pictures provided. Just put the repeaters in the right direction with everything in its place and push the button.
This is the basic setup for the circuit. The button activates the output (in this example, a wood door) initially by the straight line from it to the door. However, when that first piece of redstone is activated, it sends a second signal through a delayed loop, which reconnects with the old circuit just two blocks from the initial point. As such, it provides a longer lasting activation.
In the picture above, the door will open 0.1 seconds after the button is pressed, and will remain open for 1.2 seconds instead of the regular 0.9. Increasing the delays on the three repeaters in the secondary loop will delay the signal further, and allow for a longer pulse from the initial button press. The maximum delay length is actually 3-4-4 (one repeater is at the third delay, the other two are maxed), and if set up as such it will provide a signal for 2.0 seconds (door shuts at 2.1 seconds).
Note: If all three repeaters in the delay loop are set to 4, the signal is too slow and the door will shut before the delayed signal reaches it. This results in the door opening, then shutting and re-opening instantly, and finally shutting.
To extend this design to create any delay imaginable, do the following:
The total delay loop is now a single delay loop, with a delay loop attached to it.
In the picture, the door will open 0.1 seconds after the button is pressed, and will remain open for 1.4 seconds. Again, the repeaters in this design can be set to 3-4-4 to create a much longer signal.
More and more of these delay loops can be attached, and with enough repeaters any length pulse is possible.
TL;DR - See pictures and figure it out.
* This was pointed out to me by a very helpful redstone helper when i thought i figured out an easier way at using memory latch ideas
EDIT: realised he said compact... disregard and flame me...
Actually another effective way of doing this would be using a pulse generator (NOTICE: it is different from a pulsar) which would look like this:
Input is the left side, output is on the right. Not sure on how long it would stay open, but you can increase the length by adding more repeaters.
I do like your method, Vicktor0, though. It is more compact, but a pulse generator would be the only way to go if you would like to use a switch and you want the power to go off eventually.
What I was trying to do with it was increase the amount of time my doors stayed open. I always make double iron doors with a button on either side, but it always seems to me that they close too quickly. If I could just add a half second or so, it would be open for the perfect amount of time. This solves that problem for me, and probably many others if they happen to see this thread.
why be logical when you can have the doors open for 3 minutes and close on some random and lol at them from your treetop house... i did this today... it really was funny when it closed on people xD
Sorry Smexy, I don't know how to vid stuff. But this isn't really complicated. Everything is shown in the two pictures provided. Just put the repeaters in the right direction with everything in its place and push the button.