文档介绍:精品资料
基于单片机的超声波测距系统实现
【摘要】:基于传统的方法在很多特殊场合:如带腐蚀的液体,强电磁干扰,有毒等恶劣条件下,测量距离存在不可克服的缺陷,超声波测距能很好的解决此类的问题。本论文主要对单片机超声波测距系统的原理,单片机的应用等进行了分析;对超声波的发生电路和接收电路,DS18B20温度采集电路,LCD显示电路,硬件制作和软件设计;对系统进行误差分析。
【关键词】:超声波测距,单片机,DS18B20温度补偿,LCD显示,软件设计,误差分析。
Abstract: In many special occasions, traditional methods based on the existence of insurmountable distance measuring defects, such as the measurement of corrosion in the liquid with strong ic interference, toxic and other adverse conditions, the ultrasonic range can be a very good solution to the problem of such . In this paper, focused on single-chip puter-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 pensation ,software design and production were discussed.
Key words: ultrasonic ranging, single-chip, DS18B20 the pensation, LCD display, software design, error analysis.
目录
第一章引言…………………………….……………………....................... 5
单片机应用系统概述…………….………………….........................5
超声波测距系统概述…………….…………………..........….......... 6
本设计任务主要内容…………….…………………..........….......... 6
第二章超声波测距的原理…………………….……………........…........... 7
超声波的基本理论…………………….…………….........…........... 7
超声波测距系统原理…………………………………....................10
第三章系统主要硬件设计……………………………………......……….12
方案论证与比较………………………………………....................12
单片机主机系统电路…………………………………....................15
单片机电路…………………………………….........................15
复位电路………………………………..............……………...16
时钟电路…………………………………..............…………...16
按键电路…………………………………..............…………...17
蜂鸣器电路…………………………………..............…….......17
超声波发送电路…………………………………..........……...…...18
超声波接收电路……………………………………..........………..18
温度采集DS18B20电路…………………………..........………....20
LCD显示电路……………………………………...........……......20
电源电路…………………………………