This paper designs a device for measuring the penetration depth of pile driving on construction sites in response to problems such as high subjectivity and ineffective recording in traditional penetration depth detection. The device uses a laser ranging sensor for non-contact measurement of the pile body, filters the vibration signal through a microprocessor, extracts the effective penetration depth, displays it on the human-computer interaction interface, records the penetration depth data via an SD card, and sends the data to a server via WiFi. This device replaces manual measurement, enabling more scientific and standardized measurement of penetration depth, timely notifying workers to stop hammering when the penetration depth meets the stopping criteria. Field experiments show that the accuracy of the device's hammeringstop prompt is 96.90%, and its detection has high standardization and meets user needs, improving construction efficiency.