Redstone pulse via turtle?

  • Please make sure you are posting in the correct place. Server ads go here and modpack bugs go here
  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

Someguy

New Member
Jul 29, 2019
121
0
1
So I'm trying to use a turtle to do a simple (?) redstone pulse. Is this do-able?

Shouldn't it be as simple as, say:

redstone.setOutput("left", true)
sleep(0.2)
redstone.setOutput("left", false)

and loop?

It turns stuff on, but doesn't turn it off... what am I missing?
 

Whovian

New Member
Jul 29, 2019
1,181
0
1
Don't know too much about turtles, but apparently redstone.setOutput("left", false) doesn't turn it off? Try getting it to emit a chirp ... or give some easy-to-notice indication every loop right after it turns the RS signal on, then you can tell if it's going into the next loop in the first place.
 

Sidiuos

New Member
Jul 29, 2019
5
0
0
it does turn it off but as soon as it turns itself off, it is turning back on. You need to put in a sleep command after redstone.setOutput("left", false).

So something like

while true do
redstone.setOutput("left", true)
sleep(0.2)
redstone.setOutput("left", false)
sleep(0.8)
end

would give you a 20% duty cycle