The utility model relates to a distance measuring device for a pulley, which is a measuring device capable of converting the number of turns of a pulley into a straight line distance. It is suitable for real-time measurement of pile driving depth, real-time measurement of filling depth of filling operation. The measured moving parts are one-way movement or reciprocating movement, and the equipment can accurately measure the distance of movement.