Jump to content

9-10 minute Redstone pulse lengthener possible?


Juicebags

Recommended Posts

I am trying to find a way to have a setup where a short redstone pulse, like one second, can keep a signal sent for about 9 minutes. I know you can do the lengthener with the Rednet controller, but 12 seconds is not near long enough. Is there a way to get this accomplished with Computercraft?

To clarify, I want the signal from a pressure plate (short burst) to keep a sticky piston engaged for about 9 minutes before turning off. Any help would be hugely appreciated :)

Link to comment
Share on other sites

Try something like:


while true do

 os.pullEvent("redstone")

 if(rs.getInput("front") then

  rs.setOutput("back",true)

  os.sleep(60*9)

  rs.setOutput("back",false)

 end

end

Assuming your input is through the front and output back. Change those as necessary.

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...