摘要
采用压电式超声波换能器,使用AT89C52单片机作为控制器,完成了超声波测距仪的软硬件设计。采用C语言和汇编语言混合编程的方法,实现了测量结果的温度补偿和显示。经系统调试可看出,LED数码显示清晰稳定,测量结果稳定可靠,测距仪最大误差不超过1cm。
With piezoelectric transducer, and AT89C52 one-chip computer as controller, design of software and hardware for ultrosonic telemeter is finished. By hybrid programming with C language and assemble language, temperature compensation and display of the measured results is applicable. System test shows that LED digital display is clear and stable, the result is reliable, and the max. error is not larger than 1cm.
出处
《农业装备与车辆工程》
2005年第12期23-25,共3页
Agricultural Equipment & Vehicle Engineering
关键词
超声波测距仪
单片机
实时测量
Ultrosonic telemeter
One-chip computer
Real-time measurement