摘要
以AT89S52单片机为核心,设计了一种带温度补偿的超声波测距系统。系统包括单片机、超声波发射及接收模块、温度补偿模块、信息显示模块。温度补偿模块采用温度传感器DSl8B20采集环境温度,根据超声波速度与温度值的对应关系及时修正波速,以纠正温度的变化引起超声波测距系统产生的误差。测试结果表明:该系统能够有效地避免温度的变化对测距系统造成误差,其测量相对误差可小于1%,测量范围为0.1~5m。
A kind of ultrasonic ranging system with the temperature compensation is designed,which takes AT89S52 MCU as the core. The system hardware consists of MCU,temperature compensation module,ultrasonic transmitting and receiving module,information display module. The temperature compensation module using the temperature sensor DSl8B20 to gather the real-time temperature data,then the microcontroller corrects the ultrasonic velocity according to the environmental temperature to correct the error of the ultrasonic ranging system caused by the the change in temperature. The actual test results show that the system can effectively avoid the error caused by the change in temperature,the measuring relative error is less than 1%,the measuring range is 0. 1 ~ 5 m.
出处
《郑州铁路职业技术学院学报》
2015年第4期24-27,共4页
Journal of Zhengzhou Railway Vocational and Technical College
关键词
MCU
超声波测距
温度补偿
MCU
ultrasonic ranging
temperature compensation