文档介绍:基于单片机的低频超声测距系统设计与实现
摘要
随着科技的发展人们生活水平的提高城市发展建设加快人们对生活和生
产的要求同步上升。为了适应现代人们的生活以及生产要求一种无接触的生产测
距方式应运而生它就是超声波测距。超声波测距是一种性能良好的测距方式主
要应用于箱涵排污疏通、倒车雷达、工地以及一些工业现场。
本文设计了一种以AT89S51单片机为核心的低成本、高精度、微型化LED显
示的超声波测距仪。整个设计采用了硬件电路加软件设计的方法硬件部分主要由
AT89S51单片机、超声波发射电路、超声波接收电路、以及LED显示电路构成
软件部分主要由主程序、发射子程序、接收子程序、显示子程序等模块组成。由
AT89S51单片机控制超声波发射、接收并测得传送时间经过芯片的分析处理测
得待测距离实现超声波测距。
经实验证明超声波具有方向性好穿透性强的特征使本系统具有操作简单
安全性高抗干扰能力强工作可靠准确度高等优点。能有效的解决城市箱涵排
污疏通、汽车倒车、及建筑施工等问题有很好的发展前景。
关键词AT89S51超声波测距
本页完 Low-Frequency Ultrasonic System Design And Realization Based
On SCM Abstract
With the development of science and technology, the improvement of people's
standard of living, speeding up the development and construction of the city, people for
life and production requirements of synchronous rise .in order to adapt to the modern
people's life and production requirements, a non-contact production ranging way is
invented。It is a silent wave measuring distance. A silent wave measure distance is a
good performance range finder way, it mainly used in box culverts sewage dredge,
backing up radar, site and some industrial field.
This paper introduces a design AT89S51 as the core with low cost and high precision,
miniaturization led display ultrasonic rangefinder。The whole design uses a hardware
circuit design method with software design, hardware are mainly by AT89S51,
ultrasound circuit, ultrasonic receiving circuit, and led display circuit constitutes, the
software are mainly by main program, part launch subroutines, receiving subroutines,
display subroutines etc module. By AT89S51 control ultrasonic transmitting and
receiving, and measuring the transmission time, after the analysis by chip, to be
measured distance, realize ultrasonic ranging.
Proving by the experiment, ultrasonic has good direction and deep rability, it
makes this system is characterized by simple operation, high safety, str