Early detection of abnormal geological targets during drilling can enhance the safety of petroleum drilling. An impact source equipped with the advantage of long detection distances can recognize lithological interfaces. However, coda waves in the vibration waveform are significant to reflected waves, which are difficult to recognize in the time domain. This paper presents the design of an impact source that includes a hammer, impacted metal, Teflon, and a metal base. With the length and diameter of Teflon kept constant, the effect of the hammer, impacted metal, and metal base on the coda waves was experimentally investigated. According to the preferred metal materials, the effect of the length and diameter of Teflon on coda waves was also experimentally studied. A distance measurement experiment was implemented on 1.2 m sandstone on the basis of the preferred impact source design. The experimental results show that the coda waves are significantly attenuated by the preferred impact source. Moreover, the reflected waves are clearly identified in the time domain. Therefore, the preferred impact source can be used effectively in lithological interface detection.