An ultrasonic guide instrument with temperature compensation circuit has been designed. How to realize and design hardware and software of the circuit has been illustrated. The effect from temperature compensation on the instruments ranging accuracy has been verified, Results show that the instrument can operate steadily under a great temperature difference. This is a practical method.