摘要
根据声波反射原理,应用单片机(AT89S52)技术和UCM40T超声波传感器设计了一种超声波测距仪。硬件部分主要由控制模块、超声波发射模块、超声波接收模块和显示模块构成。软件部分采用单片机C语言编程,主要由键盘扫描、定时器/计数器初始化、超声波发射子程序、中断服务子程序和LED动态显示子程序构成。此系统测距范围为0.06 m^1.00 m,精度达到1 cm,具有易控制、工作可靠、测距准确度高等优点。
The Range Finder is according to the reflection principles of ultrasonic in the air. It was designed based on single-chip computer technology and the UCM40 ultrasound sensor. The hardware is primarily composed by the controller module, the ultrasonic launch module, the ultrasound receiving module and the display modular. The software is composed by keyboard scan, timer or counter initialization, sending ultrasonic subprogram, interrupt service routine and dynamic display subprogram. The system will complete the range finder and the digital display of the distance. It can measure the range from 0.06 m to 1.00 m with the accuracy of lcm. This system is easy to control, reliable and high accuracy.
出处
《电子器件》
CAS
2009年第2期476-478,共3页
Chinese Journal of Electron Devices
基金
湖北省教育厅项目资助“多传感器信息融合的虚拟仪器网络集成测控实验体系研究”(D20081504)