Abstract: A Hall-type travel limit deviation self-resetting encoder for a garage door machine, including a nylon worm gear and a driving motor for driving the nylon worm gear to rotate, a motor rotation counting limit mechanism for performing rotation counting limit on a rotor shaft of the driving motor, and a worm gear counting calibration mechanism for calibrating the travel limit deviation of the driving motor; the worm gear counting calibration mechanism includes a worm gear magnet-mounted on the nylon worm gear and a worm gear position Hall element adapted to the worm gear magnet. The encoder is compact in structure and can effectively limit the travel limit deviation of a garage door.