This is basically the T-flipflop you've been waiting for.
- Extremely simple to build.
- Lovely small 5x2x2 footprint.
- Works reliably in any orientation.
- Comfortable input/output locations.
- Can cycle VERY fast (it can keep up with a piston+repeater pulsar at 1T delay)
- Triggers on 1-tick pulses (but can take any duration fine)
- Acts as RS NOR latch.
- Cannot burn out (torch not part of circuit)
- Edit: The reset is not isolated. If you want this, put the reset line 1 level lower with a repeater tucked underneath, against the block under the reset piston that you'll also have to put there. Alternatively just have the reset come in from the side.
The only downside I can think of is that it doesn't have an inverse output, but you can just invert the output I guess.
Also note that you should not have the toggle input ON by default. It will still work but the OFF pulse needs to be longer then (~4 ticks) for it to pick up the state change.
awesome design. I don't think I've ever really seen a single logic gate that could be used for two very different functions. Congrats on the awesome design.
Really nice. I especially like the trick with the button.
Rollback Post to RevisionRollBack
Support the Allocator! Find my inventions such as my pressure plate removal detector on the About Me page of my profile.
I'm still looking for more feedback on my configurable Redstone Gate mod. All gates and common circuits (such as e.g. clocks, edge detectors, latches and Flip-Flops) in a single block.
You should do some D Flip flops for me :smile.gif: I've been having issues with them lately! Good job on this one though. I'll be sure to implement it :wink.gif:
Uh, I have a 3x2x2 D-flipflop (yes, it's that small. it's not 2x2-stackable though, and it has no explicit reset)
Just as an observation, there's an issue if you power the Set input with a repeater, for obvious reasons if you know redstone... But for those less adept it could cause headaches.Edit:I've noticed similar issues to you in some orientations. It seems to be fixable by using a repeater for the Reset input. I think it's the north-south quirk causing the redstone wire that feeds the Reset input to remain charged 1 tick after the repeater turns off, causing the piston to push everything back again...
Yeah I noticed that too but I don't consider that much of an issue considering the relatively large amount of ways to wire both R and S; e.g. power it from the side or back, or place a block underneath the piston and power that with a repeater. It's very flexible :smile.gif:
I think I've figured it out. This design has timing issues with a slow input to the toggle, such as from a pressure plate or lever (more than one or two ticks input causes your flip-flop to reset). The T flip-flop I built does not, but mine has issues with fast inputs because it uses torches, and torches burn out if cycled too fast. So I'm going to update mine using just pistons. That should solve both problems, it just won't be as compact as some.
Rollback Post to RevisionRollBack
"I dunno, ZK, that sounds pretty awesome..." "Well then, let's get awesome!"
I think I've figured it out. This design has timing issues with a slow input to the toggle,
Huh? I tried it with a button toggle and it works every time. What issue are you talking about?
Also, you could just put a pulse limiter if slow input is a problem.
This design has no issues with pulse length as far as I am aware. There is a problem due to the north-south quirk, but that can be fixed by modifying the R input like so:
You can tuck the repeater underneath too, so the 5x2x2 size is maintained, like this:
This design has no issues with pulse length as far as I am aware.
Connect a pressure plate or lever to the toggle. Activate it a few times with a pulse length longer than about two ticks (or you could just stand on the plate). Watch the flip-flop show a marked preference for one side.
Rollback Post to RevisionRollBack
"I dunno, ZK, that sounds pretty awesome..." "Well then, let's get awesome!"
Connect a pressure plate or lever to the toggle. Activate it a few times with a pulse length longer than about two ticks (or you could just stand on the plate). Watch the flip-flop show a marked preference for one side.
I see no issues with levers, buttons, or pressure pads... Could you post some screenshots to show the issue? It's possible our flip flops are different :tongue.gif:
I don't believe that works :sad.gif: Cue screenshots :tongue.gif:
[bla]
As you can see, it stops the R input getting charged, and that seems to prevent the bug...
Hope this helps :smile.gif:
Support the Allocator! Find my inventions such as my pressure plate removal detector on the About Me page of my profile.
I'm still looking for more feedback on my configurable Redstone Gate mod. All gates and common circuits (such as e.g. clocks, edge detectors, latches and Flip-Flops) in a single block.
The "Set" and "Reset" functionality will be very useful for making Binary counters whose values can be changed on the fly. You can reset its count to 0 or make it start at 7 if you want. This will be a very useful function for making program-counters in computers since you can easily jump from one line of code to another.
Rollback Post to RevisionRollBack
Hans Lemurson's Thread of Links:http://www.minecraftforum.net/topic/371610-hans-lemursons-thread-of-links/
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.
- Extremely simple to build.
- Lovely small 5x2x2 footprint.
- Works reliably in any orientation.
- Comfortable input/output locations.
- Can cycle VERY fast (it can keep up with a piston+repeater pulsar at 1T delay)
- Triggers on 1-tick pulses (but can take any duration fine)
- Acts as RS NOR latch.
- Cannot burn out (torch not part of circuit)
- Edit: The reset is not isolated. If you want this, put the reset line 1 level lower with a repeater tucked underneath, against the block under the reset piston that you'll also have to put there. Alternatively just have the reset come in from the side.
The only downside I can think of is that it doesn't have an inverse output, but you can just invert the output I guess.
Also note that you should not have the toggle input ON by default. It will still work but the OFF pulse needs to be longer then (~4 ticks) for it to pick up the state change.
Good job on this one though. I'll be sure to implement it :wink.gif:
I'm still looking for more feedback on my configurable Redstone Gate mod. All gates and common circuits (such as e.g. clocks, edge detectors, latches and Flip-Flops) in a single block.
"Well then, let's get awesome!"
Uh, I have a 3x2x2 D-flipflop (yes, it's that small. it's not 2x2-stackable though, and it has no explicit reset)
Yeah I noticed that too but I don't consider that much of an issue considering the relatively large amount of ways to wire both R and S; e.g. power it from the side or back, or place a block underneath the piston and power that with a repeater. It's very flexible :smile.gif:
"Well then, let's get awesome!"
Huh? I tried it with a button toggle and it works every time. What issue are you talking about?
Also, you could just put a pulse limiter if slow input is a problem.
Sure.
You can tuck the repeater underneath too, so the 5x2x2 size is maintained, like this:
Connect a pressure plate or lever to the toggle. Activate it a few times with a pulse length longer than about two ticks (or you could just stand on the plate). Watch the flip-flop show a marked preference for one side.
"Well then, let's get awesome!"
Nope, works fine here.
Derp. You're right of course.
What I kind of meant was this:
No, the button trick will fail.
I'm still looking for more feedback on my configurable Redstone Gate mod. All gates and common circuits (such as e.g. clocks, edge detectors, latches and Flip-Flops) in a single block.
Look here to find links to my inventions, creations, and my Youtube channel featuring Amazing Creations of Mine (Redstone engineering FTW!!!) and charming Music-Videos about clones. I also made "Minecraft in Minecraft" (2D platformer/building game). I'm currently trying to make a computer.