As you can see, i have a 4 circuit system for opening 4 different doors. Im trying to emulate some sort of prison control panel. However i am trying to make a panic button at the moment that will:
A) Open or Close all doors
And maybe someday
B)Shut all currently open doors (But this isnt so important yet)
I have no idea how to do this. I know i need to take all 4 of my current circuits and merge them somehow, but im not sure how to do that without conflicting with the current switches. I want to be able to open 1 at a time, and open all of them at the same time.
shouldnt be tooo hard, i think it would work just puting a and gate in there on each door where one input is the one you already have, whilst the other is the panic button.
Actually I think he wants an or gate, the panic button should override whatever the other switches have, or at least I think thats what the ops looking for. also the overide in this fashion only works for either the open or closed state, not both. It might be possible to make something more complex that negates this though.
Rollback Post to RevisionRollBack
Quote from caDe »
Mining with your sis might be fun, but in the future use a pickaxe.It's more efficient and humane that way.
Linkto a totally legitimate site for a search class.
There is an easier way I'm trying to work out the best way to do this.
For those who understand, the equation would basically be (A+:cool.gif:*C=Output. A is the switch specifically for that door, B is the lesser override possibly open all doors(It'll override A but be overridden by C), and C will override everything probably lock all doors. Just trying to figure out how to keep the wiring small and straighten out the inversions in my head.
Actually, the best way to do this is to make it so that the doors are closed when they're powered (to prevent people inside from getting out just by plopping down a redstone torch!)
That way, it's actually very easy to do.
Each door is connected to a NOR gate that is connected to both the Master Lock, and the individual Door Lock. That way, if neither the individual lock nor the master lock are on, the door is open. Otherwise, the door is powered and thus locked.
I could design a more elaborate system, if you like, involving buttons and toggles and such instead (and that would make it possible to have an "open all" as well, without worrying about race conditions) but it should be easy enough as it is.
Ok sweet, i just tried it with XOR and XNOR and neither worked well. They behaved like an and.
Ill try that taggedjc.
Ok its not working. Nothing is.
Nothing i have overrides the individual switch. :\ So if i have 2 open, and i click panic button. It opens the two shut and leaves the two open the same. This is the same if i negate my outputs.
I need some sort of priority
EDIT:
FIXED IT ! Need a XOR gate :smile.gif: Should of read more carefully on the wiki page.
Lever on the far left is lockdown, far right is release all. It's designed for most of the wiring to be under the floor. I could probably clean it up a bit but its 4 AM and I can't be bothered.
A: The Individual Door Lock
B: The Master Lock
D: The Door state
Your goal is to have it so that if the Master Lock is on, the door is locked. Otherwise, if the Individual Door Lock is on, the door is locked. Otherwise, the door is open.
So your goal is this:
XOR gates would have this truth table:
A0, B0 : DClosed
A1, B0 : DOpen
A0, B1 : DOpen
A1, B1 : DClosed
So you can see that at least one of the cases won't be what you wanted.
XOR gates are great for making doors that open no matter which side's lever you pull (just like how multiple light switches work in your house; they're always toggles), but they're not going to help you with an override.
What truth table goes true-false-false-false ?
That's a NOR gate; if neither lock is on, then the door is powered (unlocked). If one lock is on (or both) the door is unpowered (locked).
If you wanted to keep sneaky people who carry around Redstone torches at bay, you just invert the output so that the output is unpowered if neither lock is on (thus "opening" the door) and powered if either lock is on (thus "locking" the door) rather than the usual; this is easily accomplished with a simple inverter at the end.
I have a nice big gif if you want:
The far-right lever is the Master Lock.
You can see from the one lock I've turned off that this results in opening the door. Hitting it or the Master Lock would lock the door. :smile.gif:
Maybe I'm quite stupid here, but wouldn't a simple OR switch do for each gate? With the master switch connected to all of the B inputs and a separate switch for all the A inputs? Or would this give undesired consequences?
EDIT: Of course it would, if you want the desired effect of B input overriding any input given by A input.
As stated earlier, the output of each gate should be true false false false (open only when both A and B are off).
I'm planning an Alcatraz style prison section of my castle and ofc want hidden wiring. Must... Experiment... With... Redstone...
Yup. The only reason we want to use NOR is because we're not looking for false-true-true-true, but rather the other way around (true-false-false-false).
If we used OR gates, we'd get a door that's open if either lock is turned on, and only closed if neither is on. Since we want the opposite effect, we invert the gate.
Mind you, if you reversed the door, then you ARE looking for true-false-false-false. In that case, OR gates will work. However, I prefer working with NOR gates, especially since they're Minecraft's most basic gate (basically, a multiple-input NOT gate) especially since one of the working OR gates for redstone is actually a NOR gate with a NOT gate attached to the end :wink.gif:
Went with NOR gates with an inverter between gate and door. This means following:
Every door can be opened/closed with a separate switch when master switch is set to close
If a door has its separate switch set to open, that door is always open, even if master switch is toggled (this can be perceived as a fault in the system)
Current logic:
Door switch 0 + Master 0 = Closed
Door switch 1 + Master 0 = Open
Door switch 1 + Master 1 = Open
Door switch 0 + Master 1 = Open
Meaning that powering either switch will open the door. Is there any possibility to build up a system where unpowering master will close all open doors, even if that door has its door switch open?
I am currently considering using an RS NOR flipflop to introduce a "Lockdown switch" to the system, where the output of the NOR gates to each door leads to S input on flipflop and the Lockdown switch goes to R. (Incidentally, one could also place a redstone torch at inverted output for the flipflop this giving a signal when lockdown is in effect.
Also, a little complication is introduced since I want all wiring hidden... :smile.gif:
-
The logic you described isn't a NOR gate at all. That's an OR gate. If you invert a NOR gate, you get an OR gate. That's why it's called that - Not OR = NOR
If you use a NOR gate connecting Door Lock and Master Lock, then the door will only be powered (open) if neither the Door Lock nor the Master Lock are powered. That's the -definition- of a NOR gate!
My schematic above should work correctly since I tested it in the Redstone simulator. With the Master Lock enabled, the other switches don't do anything. Otherwise, they will open/close the door.
Keep in mind that the logic in this case is reversed: the doors in the diagram are LOCKED when powered instead of the usual way. Which means you have to use different logic, since you want the door powered in 3/4 cases instead of in 1/4 cases.
Yes, I've fathomed as much. However, it gives me the desired output as of now. The extra inverters gives me longer wire distances however, and I've decided to keep them.
with regards to the lockdown switch and the RS NOR latch, I suspect that this would give the undesired effect of having to use the lockdown switch every time I want to close a door.
Any other suggestions for a lockdown switch that would override the standard switches?
Ah, do you mean a master switch that will either open or close all the doors? This would be a little more complex. You'll want to use an SR flip-flop with an edge-triggered clock latch.
Basically, you'll need two things: the switch itself, and then a button that you can press to say "make all of the doors the state the switch is in when I'm on".
Then, you'll probably want the door-opening/closing mechanisms to be buttons as well, to avoid state mixups with toggle-style levers.
Each door will have to have its own SR latch; it would be set/reset only the moment any of the buttons are pressed. That makes space a slight bit trickier, but still doable if you have basement room. I'll think on it and post a schematic in a bit :3
As you can see, i have a 4 circuit system for opening 4 different doors. Im trying to emulate some sort of prison control panel. However i am trying to make a panic button at the moment that will:
A) Open or Close all doors
And maybe someday
B)Shut all currently open doors (But this isnt so important yet)
I have no idea how to do this. I know i need to take all 4 of my current circuits and merge them somehow, but im not sure how to do that without conflicting with the current switches. I want to be able to open 1 at a time, and open all of them at the same time.
Thanks in advance.
Thanks
Actually I think he wants an or gate, the panic button should override whatever the other switches have, or at least I think thats what the ops looking for. also the overide in this fashion only works for either the open or closed state, not both. It might be possible to make something more complex that negates this though.
Linkto a totally legitimate site for a search class.
Ok i just finished working on an AND gate but its not working.
This is what i got, as you can see it definately wont work :sad.gif:
Ill try working on an or gate.
Thanks, and yes i want it to override :smile.gif:
An OR gate is an inverter, which is what you really don't need.
This is backwards, you want to turn those gates around
Just finished my OR version:
This time without back the front circuits !
For those who understand, the equation would basically be (A+:cool.gif:*C=Output. A is the switch specifically for that door, B is the lesser override possibly open all doors(It'll override A but be overridden by C), and C will override everything probably lock all doors. Just trying to figure out how to keep the wiring small and straighten out the inversions in my head.
That way, it's actually very easy to do.
Each door is connected to a NOR gate that is connected to both the Master Lock, and the individual Door Lock. That way, if neither the individual lock nor the master lock are on, the door is open. Otherwise, the door is powered and thus locked.
I could design a more elaborate system, if you like, involving buttons and toggles and such instead (and that would make it possible to have an "open all" as well, without worrying about race conditions) but it should be easy enough as it is.
Ill try that taggedjc.
Ok its not working. Nothing is.
Nothing i have overrides the individual switch. :\ So if i have 2 open, and i click panic button. It opens the two shut and leaves the two open the same. This is the same if i negate my outputs.
I need some sort of priority
EDIT:
FIXED IT ! Need a XOR gate :smile.gif: Should of read more carefully on the wiki page.
Lever on the far left is lockdown, far right is release all. It's designed for most of the wiring to be under the floor. I could probably clean it up a bit but its 4 AM and I can't be bothered.
XOR is A or B, but not both A and B.
Let's make a truth table:
A: The Individual Door Lock
B: The Master Lock
D: The Door state
Your goal is to have it so that if the Master Lock is on, the door is locked. Otherwise, if the Individual Door Lock is on, the door is locked. Otherwise, the door is open.
So your goal is this:
A0, B0 : DOpen
A1, B0 : DClosed
A0, B1 : DClosed
A1, B1 : DClosed
XOR gates would have this truth table:
A0, B0 : DClosed
A1, B0 : DOpen
A0, B1 : DOpen
A1, B1 : DClosed
So you can see that at least one of the cases won't be what you wanted.
XOR gates are great for making doors that open no matter which side's lever you pull (just like how multiple light switches work in your house; they're always toggles), but they're not going to help you with an override.
What truth table goes true-false-false-false ?
That's a NOR gate; if neither lock is on, then the door is powered (unlocked). If one lock is on (or both) the door is unpowered (locked).
If you wanted to keep sneaky people who carry around Redstone torches at bay, you just invert the output so that the output is unpowered if neither lock is on (thus "opening" the door) and powered if either lock is on (thus "locking" the door) rather than the usual; this is easily accomplished with a simple inverter at the end.
I have a nice big gif if you want:
The far-right lever is the Master Lock.
You can see from the one lock I've turned off that this results in opening the door. Hitting it or the Master Lock would lock the door. :smile.gif:
I wont try it out tonight as im done with minecraft until a bit later haha, i definately will though :smile.gif:
Thanks.
EDIT: Of course it would, if you want the desired effect of B input overriding any input given by A input.
As stated earlier, the output of each gate should be true false false false (open only when both A and B are off).
I'm planning an Alcatraz style prison section of my castle and ofc want hidden wiring. Must... Experiment... With... Redstone...
If we used OR gates, we'd get a door that's open if either lock is turned on, and only closed if neither is on. Since we want the opposite effect, we invert the gate.
Mind you, if you reversed the door, then you ARE looking for true-false-false-false. In that case, OR gates will work. However, I prefer working with NOR gates, especially since they're Minecraft's most basic gate (basically, a multiple-input NOT gate) especially since one of the working OR gates for redstone is actually a NOR gate with a NOT gate attached to the end :wink.gif:
Every door can be opened/closed with a separate switch when master switch is set to close
If a door has its separate switch set to open, that door is always open, even if master switch is toggled (this can be perceived as a fault in the system)
Current logic:
Door switch 0 + Master 0 = Closed
Door switch 1 + Master 0 = Open
Door switch 1 + Master 1 = Open
Door switch 0 + Master 1 = Open
Meaning that powering either switch will open the door. Is there any possibility to build up a system where unpowering master will close all open doors, even if that door has its door switch open?
I am currently considering using an RS NOR flipflop to introduce a "Lockdown switch" to the system, where the output of the NOR gates to each door leads to S input on flipflop and the Lockdown switch goes to R. (Incidentally, one could also place a redstone torch at inverted output for the flipflop this giving a signal when lockdown is in effect.
Also, a little complication is introduced since I want all wiring hidden... :smile.gif:
-
If you use a NOR gate connecting Door Lock and Master Lock, then the door will only be powered (open) if neither the Door Lock nor the Master Lock are powered. That's the -definition- of a NOR gate!
My schematic above should work correctly since I tested it in the Redstone simulator. With the Master Lock enabled, the other switches don't do anything. Otherwise, they will open/close the door.
Keep in mind that the logic in this case is reversed: the doors in the diagram are LOCKED when powered instead of the usual way. Which means you have to use different logic, since you want the door powered in 3/4 cases instead of in 1/4 cases.
with regards to the lockdown switch and the RS NOR latch, I suspect that this would give the undesired effect of having to use the lockdown switch every time I want to close a door.
Any other suggestions for a lockdown switch that would override the standard switches?
Basically, you'll need two things: the switch itself, and then a button that you can press to say "make all of the doors the state the switch is in when I'm on".
Then, you'll probably want the door-opening/closing mechanisms to be buttons as well, to avoid state mixups with toggle-style levers.
Each door will have to have its own SR latch; it would be set/reset only the moment any of the buttons are pressed. That makes space a slight bit trickier, but still doable if you have basement room. I'll think on it and post a schematic in a bit :3