If you find any errors or got any improvements then please write them here.
You are very welcome to write more text to the logic gates
I might add the XOR gate later.
I have also renamed my RS Flipflop to RS NOR Latch because thats what it really is.
Good job. Though for the timer (wouldn't the digital logic term be clock?) you say a 3-timer is possible, but a 1-timer is also possible.
You can even prevent it form burning out, like this: viewtopic.php?f=35&t=16761#p298275
but I don't know if that really needs to be included, since any other torches you hook it up to will burn out anyway.
My first day testing this out I came up with the X shaped xor like you have there, and when I came on here I wondered why all the other examples were so complex. I actually registered an account to post cause it was irking me, but seems you got it already :smile.gif:
Another way to do a small style xor is to move the front three tiles vertically up 1 space and then back towards the switches one space, and move the torches on the switch blocks to the top. You can also make the X shape in a vertical fashion and it works just as well (but outputs 3-4 spaces up instead, good for multi-floor based layouts).
I think if I might make a Minecraft logic simulator so we can test things out without having to work in Minecraft. I'm loving this stuff but actually building it is a pain :sad.gif: . Then again I know nothing about making GUI's and since convenience is kind of the main point of this it would be kind of necessary to have a good one. Has anyone else already done this?
Do you think you could also update the RS NOR gate? It says it's the simplest version, but it's actually 1 component more complex than it needs to be (by 1 torch) if I'm not mistaken (as you demonstrated in an earlier post, but I don't think you noticed its the same latch type just with the output in a different direction):
I have a theory that would be on how to manipulate where signals go by using that nifty compact memory.
I can essentially design (In theory) a way to manipulate direction similar to the way we do so for tracks.
With being wire, being a powder torch, being everyone's favorite generic block, being input, and being output I can show this:
This.. MIGHT work. At least in theory it should. What it's supposed to accomplish is allow one input ( in center) to be manipulated in a different direction (by the side :Green:'s). Though having not tested this myself, I can't clearly say if this would work or not. Having the side inputs go into a NO gate would have both directions cut off when both sides are flipped into the "ON" position (This being the default that both should be in when not in use). When you want to tell it which way to go, flip a switch to the "OFF" position.
Both of these "ON" and "OFF" positions are what a normal lever would use only inverted.
What you need to do to operate this effectively, however, is to have BOTH side levers in the "OFF" position so that the torches are "ON". This would block the flow from the center input (The main one you want manipulated) since it hits both sides that have "ON" torches. If you switch one, or both of the side levers: The torches would turn off and allow flow to go through them, due to the main input turning them pack "ON".
This is confusing to explain in words, but basically this is where having a side lever turn "ON" the torch has it turn off when hit. But when the main input hits the torch in an "OFF" state, the torch then allows the main signal to continue instead of stopping it.
This may become useful if people want to have a single switch that can multitask, but they want to choose what it does simultaneously.
PS: Of course doing more than a 2-Way version of this would require more space and thought though. Since you'd need to have other side torches going either over or under the ones farthest from the center. Unless one of you awesome smart-alecs come up with a nifty way to make my idea become more compact, it's going to be quite large with 4-Way systems.
EDIT: Of course, with the memory idea that was previously stated: We could make the main input a button and the signal goes to memory "cells" where it would stay, and wait to be directed the the side-levers. Though not very useful now, this could help us make multi-controlled systems with varying complicated schemes to fulfill.
Well I have been wrong about things in theory that behave different ingame, so yeah I guess simply trying it is the next step :smile.gif: I would but kinda tired right now, will experiment in minecraft later
Oh right, why do I keep forgetting torches need to transmit through a block to be able to do that? Oh well, they might not burn out, though im still not sure that will work as is, still the more people sciencing the better :biggrin.gif:
I just can't make it work though..
Remember that the right part is an RS NOR Latch.
That won't work even in normal circuits (I've tried in logic simulators). You need this... Just make J and K the same to get a T flip flop.
After 2-3 painstaking days I finally got a JK and T flip flop to work properly. Turns out the 4 gate versions don't work properly. Also turns out that the 2x2 RS Latch we're using is made from NORs, which has the lovely effect of breaking flip flops that use NANDs.
The middle switch gets blocked no matter what the side inputs do, its just the toggling the side levers just cause that side to turn on/off(NOT/inverter)
But all it really did was make it let the sides toggle their torch on and off, and the middle one toggled both on and off, if both sides are on, toggling the middle does nothing, with one side on, toggling the middle simply turns the other side on/off, and both off lets the middle toggle them both on/off, not quite sure if thats what you were after or not, but thats what seems to happen
This WORKS! It alters the flow of the signal to either way, or both depending on which levers you turn off.
Overview:
Levers:
Main Input (Both Ends Blocked):
Main Input (One End Opened):
Main Input (Both Ends Opened):
Right click to view full images, but yeah it works! Imagine what this could be used for...
The middle switch gets blocked no matter what the side inputs do, its just the toggling the side levers just cause that side to turn on/off(NOT/inverter)
I don't know what you did wrong, but my model worked perfectly.
The middle switch gets blocked no matter what the side inputs do, its just the toggling the side levers just cause that side to turn on/off(NOT/inverter)
I don't know what you did wrong, but my model worked perfectly.
I...don't know what I did wrong either, I had to rebuild the middle part since I left it the other way that I posted when I finished, but now it does seem to behave the same way as in your screenshots...yet I swear before it wasnt lighting up the far powder, and am fairly certain I connected it properly.....I think its sleepy times now
The middle switch gets blocked no matter what the side inputs do, its just the toggling the side levers just cause that side to turn on/off(NOT/inverter)
I don't know what you did wrong, but my model worked perfectly.
I...don't know what I did wrong either, I had to rebuild the middle part since I left it the other way that I posted when I finished, but now it does seem to behave the same way as in your screenshots...yet I swear before it wasnt lighting up the far powder, and am fairly certain I connected it properly.....I think its sleepy times now
You might've had the Powder Torches disconnected from the wall, that wouldn't of worked.
I think that I might be able to re-work ZarroTsu's button systems into a lock, though the combo would be hard to change without re-wiring
Reworking the Combo should be easy if you read the diagram logically from how each signal moves. As demonstrated on the wiki, the bit memory can be as small as
(I think?). My diagram simply has wires between this (Top of the diagram is an example of a single, two-button on/off bit), which is more for personal reading than useful space conservation.
...Man, houses are going to be bulky as hell when we string electrical powders around them, eh? I'll have a hayday making a working electric system when torches, or a new light source, are inclusive on the electric diagram.
I guess you could use And gates and switches to be able to change the combo, but I still have to work out how to make a combo with buttons while allowing button repeats. I'll try some designs and see what I come up with.
Good job. Though for the timer (wouldn't the digital logic term be clock?) you say a 3-timer is possible, but a 1-timer is also possible.
You can even prevent it form burning out, like this:
viewtopic.php?f=35&t=16761#p298275
but I don't know if that really needs to be included, since any other torches you hook it up to will burn out anyway.
[iron] [iron]
:!:
[iron] [iron]
[iron] [iron]
[iron] [iron]
:!:
[iron] [iron]
[iron] [iron]
! is switch, iron is air, -> is your output (eg, door)
Modified weyvern super simplified XOR gate, this is just for people who want to move the levers but dont know how.
There's an already smaller version
:idea: output
[iron] air
[iron]
[iron]
[iron]
It is being shown at the first post.
(well, it is being shown with the inputs closer together, it doesn't matter, both versions work.)
Haha, Finally! :biggrin.gif:
My first day testing this out I came up with the X shaped xor like you have there, and when I came on here I wondered why all the other examples were so complex. I actually registered an account to post cause it was irking me, but seems you got it already :smile.gif:
Another way to do a small style xor is to move the front three tiles vertically up 1 space and then back towards the switches one space, and move the torches on the switch blocks to the top. You can also make the X shape in a vertical fashion and it works just as well (but outputs 3-4 spaces up instead, good for multi-floor based layouts).
Do you think you could also update the RS NOR gate? It says it's the simplest version, but it's actually 1 component more complex than it needs to be (by 1 torch) if I'm not mistaken (as you demonstrated in an earlier post, but I don't think you noticed its the same latch type just with the output in a different direction):
:sand:=air
:cobblestone:=block
:tnt:=torch
:arrow:=S
:!:=R
:idea:=Q
:?:=Q
(note: top torch is attached to right block, bottom one to left block).
Interesting, you came up with a way to pulse it... Neat.
I can essentially design (In theory) a way to manipulate direction similar to the way we do so for tracks.
With
This.. MIGHT work. At least in theory it should. What it's supposed to accomplish is allow one input (
Both of these "ON" and "OFF" positions are what a normal lever would use only inverted.
What you need to do to operate this effectively, however, is to have BOTH side levers in the "OFF" position so that the torches are "ON". This would block the flow from the center input (The main one you want manipulated) since it hits both sides that have "ON" torches. If you switch one, or both of the side levers: The torches would turn off and allow flow to go through them, due to the main input turning them pack "ON".
This is confusing to explain in words, but basically this is where having a side lever turn "ON" the torch has it turn off when hit. But when the main input hits the torch in an "OFF" state, the torch then allows the main signal to continue instead of stopping it.
This may become useful if people want to have a single switch that can multitask, but they want to choose what it does simultaneously.
PS: Of course doing more than a 2-Way version of this would require more space and thought though. Since you'd need to have other side torches going either over or under the ones farthest from the center. Unless one of you awesome smart-alecs come up with a nifty way to make my idea become more compact, it's going to be quite large with 4-Way systems.
EDIT: Of course, with the memory idea that was previously stated: We could make the main input a button and the signal goes to memory "cells" where it would stay, and wait to be directed the the side-levers. Though not very useful now, this could help us make multi-controlled systems with varying complicated schemes to fulfill.
Possibly, I guess I can go into Alpha and test this, but in theory it should just turn them off when it hits them in the "ON" state.
Oh right, why do I keep forgetting torches need to transmit through a block to be able to do that? Oh well, they might not burn out, though im still not sure that will work as is, still the more people sciencing the better :biggrin.gif:
That won't work even in normal circuits (I've tried in logic simulators). You need this... Just make J and K the same to get a T flip flop.
After 2-3 painstaking days I finally got a JK and T flip flop to work properly. Turns out the 4 gate versions don't work properly. Also turns out that the 2x2 RS Latch we're using is made from NORs, which has the lovely effect of breaking flip flops that use NANDs.
The middle switch gets blocked no matter what the side inputs do, its just the toggling the side levers just cause that side to turn on/off(NOT/inverter)
So I tried changing it to this:
But all it really did was make it let the sides toggle their torch on and off, and the middle one toggled both on and off, if both sides are on, toggling the middle does nothing, with one side on, toggling the middle simply turns the other side on/off, and both off lets the middle toggle them both on/off, not quite sure if thats what you were after or not, but thats what seems to happen
This WORKS! It alters the flow of the signal to either way, or both depending on which levers you turn off.
Overview:
Levers:
Main Input (Both Ends Blocked):
Main Input (One End Opened):
Main Input (Both Ends Opened):
Right click to view full images, but yeah it works! Imagine what this could be used for...
I don't know what you did wrong, but my model worked perfectly.
So eh... Since this works: What kind of gate is this and/or what do we call it?
I...don't know what I did wrong either, I had to rebuild the middle part since I left it the other way that I posted when I finished, but now it does seem to behave the same way as in your screenshots...yet I swear before it wasnt lighting up the far powder, and am fairly certain I connected it properly.....I think its sleepy times now
You might've had the Powder Torches disconnected from the wall, that wouldn't of worked.
I guess you could use And gates and switches to be able to change the combo, but I still have to work out how to make a combo with buttons while allowing button repeats. I'll try some designs and see what I come up with.