I remember in the Saw Videogame the guy just kept spinning the gear on the side of the trap and he somehow solved it like that.