Jump to content

Help: how to switch off a redstone signal


teh_fox

Recommended Posts

You could use a redpower AND gate. If you leave the lever on, when your temperature monitor sends a signal to the AND gate, it will output redstone. If you turn the lever off, it won't.

You'll need to enable only 2 sides - the lever side, and the monitor side. This should be possible in the menu opened by right-clicking it.

Link to comment
Share on other sites

i recommend using a (link->) computer to do this

computers allow you to code the most complex redstone circuits into the one block, saving space :D

use this code:


print("redstone node activated!")

while true do

local input="front"

local output="back" --change these to whatever sides you need, these redefine the string values for the sides to make it easier to code in

local rsout=rs.setOutput --i have just redefined the name of a function for easier coding

if rs.getInput(input) then --checks to see if there is a redstone signal from input side

rsout(output,false)

sleep(0.1) --small sleeps prevents lag and also prevents too long without yielding error which is caused by infinite loops with no breaks

elseif not rs.getInput(input) then

rsout(output,true)

sleep(0.1)

end

end

code tested, this is just a one way inverter, which from your description fits the bill of requirements

if you need any help with the code, or need it changed let me know :D

you can create the file for the code ingame using "edit <programname>" (no <>)

then press ctrl then press enter on [save] then press ctrl again and use the arrows to change to [exit]

before creating the program you may want to use "label set <comp name>"

why? because when you move and place your computer without a label, it reassignes to a new comp ID, first Comp in the level starts with ID 0

to find the id use "id"

then, in windows 7 go to start, type %appdata%

then navigate to .techniclauncher/tekkit/saves/<worldname>/<compID>

open the program you created in notepad

then copy and paste the code from above into the file and save, then type in the name of the program, i suggest setting the name of the program to startup, anything else and it wont start next time you load your level

we both know just how dangerous a reactor can be unattended ;) we don't want that, so use "edit startup" when you go to create the program

then come back ingame and use either "startup" or "reboot" and the program will start auto

Link to comment
Share on other sites

It's a nice solution, but I can't use computercraft on this map, beacuse the guy who asked me to make it doesn't want (I don't know why, maybe server issues). So i have to do the circuit using only gates and redpower. lol

Thanks anyway :)

EDIT: NOR gate does not works. I need something like this.

TEMP MONITOR ---> CABLE1 --->ALARM ---> CABLE 2---> WIRELESS TRANSMITTER

I just need something (a gate or other stuff) that can "break" the CABLE 2 when i push a lever, so the input from the temp monitor will only activate an alarm, without switching off the reactor.

Link to comment
Share on other sites

I think NAND is actually more what you are looking for, if I understand correctly you want the thermal monitor to turn on the alarm and then turn on the automatic shutdown via the wireless transmitter, and then you want a lever to be able to turn the automatic shutdown off but leave the alarm intact, if i'm right in that then yeah you need a NAND gate in a configuration like this;

One input is from the thermal monitor, the other is from a lever, and the last one is from a redstone torch to keep that input always on, this screenshot is when the thermal monitor is activated but the lever is not (output remains on)

20130216121315.png

Then this one, you turn the lever on and the output will go off

20130216121329.png

Is that what you are looking for?

Link to comment
Share on other sites

For this, the AND and NAND gate should work almost exactly the same - the only difference being the NAND gate stops the redstone when the lever is on, and the AND gate stops it when the lever is off. Just do whichever one suits you best, because it should make very little difference.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...