Gin, in Mechanics, a machine for driving piles, fitted with a windlass and winches at each end, at which eight or nine men heave the rope from the barrel or windlass, passing over the wheel at the top.