How do I make a redstone lamp flash with a 50% duty cycle?
Story
I am using a two-hopper redstone clock to make a redstone lamp blink on and off as an indicator. The hopper clock looks like this:
The lamp is supposed to blink on and off at a constant rate to indicate to the user that the item that the lamp represents requires important attention.
Problem
The redstone lamp is expected to have a 50% duty cycle, that is it is on for the same amount of time as it is off. Instead, it stays on for a little longer, like so:
This is not ideal. The redstone lamp should stay on for the exact same amount of time that it spends turned off.
According to the Minecraft Wiki:
A redstone lamp activates instantly, but takes 2 redstone ticks to turn off (4 game ticks, or 0.2 seconds barring lag).
This means that in my case, the redstone lamp has a 75% duty cycle. This makes the indicator look very sloppy and floppy to the end user. A 50% duty cycle will make the lamp indicator more clean and make the user interface seem more professional.
Core question
What is the most compact way to compensate for the redstone lamp deactivation delay in a fast redstone clock?
There is already a very good answer below, however this question is not closed. If you have a better method, feel free to pitch in!
Answers that will be accepted include:
- Different clock circuits that have built-in functions to mitigate the redstone lamp.
- Modular devices that connect to an existing redstone clock to compensate the delay.
Please note that I cannot accept answers that are:
- Suggestions to use a different clock circuit, but using a compensation method that has already been shown here.
- Answers that are just images without justification.
Best Answer
You can put pistons facing each other with two block spaces between. Use red stone to connect the empty spot in front of each piston to itself. Then you put a red stone block in one of these spots and it will be pushed back and forth spending the same amount of time on each side. Each time it moves it triggers the closer piston causing it to move again and now be closer to the other one. This creates a clock that you can hook up to your lamp or anything else. Also helpful as a 2 output clock that the outputs are opposite. A sloppy drawing but it might help. The repeaters also help slow the signal so the pistons have now chance of interfering, or their delay can be changed to speed or slow your clock.
Pictures about "How do I make a redstone lamp flash with a 50% duty cycle?"
How do you make a Redstone lamp blink?
- Connect them using Redstone. - Choose any spot of Redstone as your output, and have it go over the lights and place a lever somewhere with Redstone. - Flick it on and then off extremely quickly and you have the flashing lights (it may takes a couple of tries depending on what tick you have the Repeaters on).How do you make a Redstone Flicker current?
Flashing Light Using RedstoneSources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Isaac Weatherly, Skylar Kang, Brett Sayles, jae park