This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
alfie107's profile picture

Use redstone to turn on a computer?

Started by alfie107, 17 June 2014 - 08:59 PM
alfie107 #1
Posted 17 June 2014 - 10:59 PM
is there a way where I could use redstone to turn on a computer?
Lyqyd #2
Posted 17 June 2014 - 11:15 PM
I split this from a tutorial post.
alfie107 #3
Posted 17 June 2014 - 11:20 PM
but is there a way to do it?
Link149 #4
Posted 17 June 2014 - 11:26 PM
is there a way where I could use redstone to turn on a computer?

Well, if I remember correctly, a computer can be used as a peripheral by another computer. You could setup a computer that waits for a redstone event then turn the other computer on.



--# Assuming the other computer is to the right
local hComputer = peripheral.wrap("right")

while true do
  local tResults = { os.pullEvent("redstone") }

  hComputer.turnOn()
end
Edited on 17 June 2014 - 09:31 PM
Cranium #5
Posted 17 June 2014 - 11:40 PM
Computers cannot turn on by redstone signal alone, but can only be turned on either with another computer with the example above, or with the player clicking on it.

What are you trying to accomplish? there may be a better way to do it, with less complication.
alfie107 #6
Posted 18 June 2014 - 12:00 AM
well my buddies and I are making a factory with a sign using the monitor from computercraft and we want to control it from the main floor.
Bomb Bloke #7
Posted 18 June 2014 - 02:34 AM
You could do this by using wired modems to connect your systems, instead of redstone.
alfie107 #8
Posted 18 June 2014 - 02:46 AM
You could do this by using wired modems to connect your systems, instead of redstone.
Ya thats what I am thinking i might have to do
RoD #9
Posted 18 June 2014 - 05:55 PM
And just a quick info: if you have a startup file in your computer, it will turn on when the server/world loads