介绍一种以ATmega8单片机为控制核心的超声波测距仪。首先介绍超声波的测距原理,重点阐述了整个超声波测距仪的硬件电路以及软件的实现方法,由于温度对超声波波速的影响,增加了温度补偿电路来消除误差。对该系统进行的实验,验证了提出的方法的正确性和有效性,并能够达到较高的测量精度。 Development of Intelligent Ultrasonic Meter Based on ATmega8 LIU Cheng-an,SUN Tao (Information Engineering College,Southwest University of Science and Technology,Mianyang 621010,China) Abstract:Introduced a ultrasonic distance measurement device based on single chip processor ATmega8,first described the principium of the ultrasonic distance measurement,then mainly described its hardware circuit and software design .This design solved the temperature offset problem effect with temperature sensor IN4001. Then gave the project software and hardware methods. The test results demonstrate the validity of all the methods proposed in this dissertation,and the test show that this intelligent ultrasonic meter has high accuracy. Key words:ATmega8;ultrasonic;measuring distance