1、 1 基于单片机的超声波测距系统实现基于单片机的超声波测距系统实现 【摘要】 :【摘要】 :基于传统的方法在很多特殊场合:如带腐蚀的液体,强电磁干扰,有毒 等恶劣条件下, 测量距离存在不可克服的缺陷, 超声波测距能很好的解决此类的问题。 本论文主要对单片机超声波测距系统的原理,单片机的应用等进行了分析;对超声波 的发生电路和接收电路,DS18B20 温度采集电路,LCD 显示电路,硬件制作和软件 设计;对系统进行误差分析。 【关键词】【关键词】:超声波测距,单片机,DS18B20 温度补偿,LCD 显示,软件设计,误 差分析。 Abstract: In many special occasio
2、ns, traditional methods based on the existence of insurmountable distance measuring defects, such as the measurement of corrosion in the liquid with strong electromagnetic interference, toxic and other adverse conditions, the ultrasonic range can be a very good solution to the problem of such . In t
3、his paper, focused on single-chip microcomputer-based ultrasonic ranging system, namely the principle of ultrasonic distance measurement, the occurrence of ultrasonic circuit, echo receiver, data acquisition, LCD data show the principle of single-chip applications, system hardware, DS18B20 the tempe
4、rature compensation , software design and production were discussed. Key words: ultrasonic ranging, single-chip, DS18B20 the temperature compensation, LCD display, software design, error analysis. 2 目录目录 第一章第一章 引言. 5 1.1 单片机应用系统概述.5 1.2 超声波测距系统概述. 6 1.3 本设计任务主要内容. 6 第二章第二章 超声波测距的原理. 7 2.1 超声波的基本理论. 7 2.2 超声波测距系统原理10 第三章第三章 系统主要硬件设计.12 3.1 方案论证与比较12 3.2 单片机主机系统电路