设计简介:

项目名:基于单片机的超声波测距控制系统设计-标准版、基于单片机的倒车报警装置系统设计-标准版、基于单片机的倒车测距控制系统设计-标准版
单片机:STC89C52
功能简介:
1、通过DS18B20测量当前环境温度,进行声波的温度补偿;
2、通过HC-SR04超声波测量当前距离值,当距离值在最小距离值的2/1~1之间,声光报警频率为300ms,当距离值小于距离最小值的1/2时,声光报警频率为100ms;
3、通过按键设置距离最小值
4、通过LCD1602显示温度值、距离值、距离最小值

总字数:17482

摘要

超声波测距作为一种无接触的测距方式,能够在多种环境状况下进行精准测距。随着生活水平的提高,出行的人数日益增多,造成严重的交通拥堵,不仅影响人们的出行体验感,还可能造成交通事故的发生,为了有效降低交通事故的发生频率,设计一款智能超声波测距系统意义重大。

本文基于STC89C52单片机,设计一款精确实用的超声波测距系统,采用DS18B20传感器对监测范围内的温度进行实时监测,并对测距系统进行温度补偿,使距离的测量精度大大增加;采用HC-SR04传感器对监测范围内的实际距离值进行监测;采用独立按键对设置距离最小值进行设置和修改;采用显示屏对距离值、温度值、设置距离阈值进行实时显示;当监测到的实际距离值在最小距离值的2/1-1之间,声光报警频率为300ms,当实际距离值小于距离最小值的1/2时,声光报警频率为100ms,通过相关测试,该系统基本能实现系统的预设功能,能够对距离进行实时监测。在超声波测距的过程中,由于超声波测距的方向性极强,使回波的监测和识别效率大大增加,因此,采用超声波测距的方法被广泛应用于智能机器人、交通等行业。

关键字:STC89C52;超声波;测距 ;显示屏

Abstract

As a non-contact ranging method, ultrasonic ranging can be accurately ranging in a variety of environmental conditions. With the improvement of living standards, the number of travel is increasing, causing serious traffic congestion, not only affect people’s travel experience, but also may cause traffic accidents, in order to effectively reduce the frequency of traffic accidents, the design of an intelligent ultrasonic ranging system is of great significance.

Based on STC89C52 microcontroller, this paper designs an accurate and practical ultrasonic ranging system. DS18B20 sensor is used to monitor the temperature in the monitoring range in real time, and temperature compensation is made to the ranging system, so that the measuring accuracy of distance is greatly increased. HC-SR04 sensor was used to monitor the actual distance in the monitoring range. Independent keys are used to set and modify the minimum distance. The display screen is used to display the distance value, temperature value and distance threshold in real time. When the actual monitored distance value is between 2/1-1 of the minimum distance value, the audible and optical alarm frequency is 300ms; when the actual distance value is less than 1/2 of the minimum distance value, the audible and optical alarm frequency is 100ms. Through relevant tests, the system can basically realize the preset function of the system and can monitor the distance in real time. In the process of ultrasonic ranging, due to the strong directivity of ultrasonic ranging, the efficiency of echo monitoring and identification is greatly increased, therefore, the method of ultrasonic ranging is widely used in intelligent robot, transportation and other industries.

Key words:STC89C52; Ultrasonic wave; Ranging; Display screen

目  录

摘要 I

Abstract II

第1章 绪论

1.1 选题背景与研究意义 6

1.2 国内外研究现状 6

1.3研究的主要内容与章节结构 8

1.4 研究方法和可行性分析 9

1.4.1研究方法 9

1.4.2 可行性分析 10

1.5经济性分析和社会影响 10

1.5.1经济性分析 10

1.5.2社会影响 10

第2章 超声波测距系统的原理和设计方案 12

2.1 超声波发生器及测距原理 12

2.1.1超声波发生器 12

2.1.2压电式超声波发生器原理 12

2.1.3超声波测距原理 13

2.2方案的设计 13

2.3超声波测距误差的分析 14

2.3.1时间误差 14

2.3.2超声波传播速度误差 15

2.3.3实验数据分析 15

2.4主控模块方案选择 16

2.4.1主控模块方案选择 16

2.4.2显示模块方案选择 16

2.4.3 温度检测模块方案选择 17

2.4.4 测距模块方案选择 17

第3章 系统硬件设计 19

3.1系统控制及外围模块简介 19

3.1.1 最小系统原理 19

3.1.2 DS18B20温度传感器 20

3.2超声波模块电路 20

3.2.1模块特点 20

3.2.2 超声波模块基本工作原理 21

3.3 LCD1602显示电路 21

3.4 声光报警提醒模块电路 21

3.5 独立按键电路模块 22

3.6 整体电路图 22

第4章 系统软件程序设计 24

4.1 编程软件介绍 24

4.2 主程序流程设计 24

4.3 按键函数流程设计 25

4.4 显示函数流程设计 26

4.5 处理函数流程设计 27

第5章 仿真测试 29

5.1 仿真总体设计 29

5.2 测距仿真测试 29

5.3 温度监测仿真测试 30

第6章 实物测试 32

6.1元件的焊接与组装 32

6.2 实物总体设计 32

6.3 测距实物测试 33

6.4 温度监测仿真测试 34

结论 35

参考文献 37

致谢 39

附录A  原理图 40

附录B  PCB图 41

附录C  实物图 42

附录D  程序 43

……………..本设计说明书是配套实物或仿真来写的,完整的设计参考书请购买后下载,购买过程遇到任何问题请联系客服进行咨询。本资料是一次性商品,不支持退货,感谢您对单片机俱乐部的支持……………..

发表评论

后才能评论

本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。

最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。 若排除这种情况,可在对应资源底部留言,或联络我们。

对于会员专享、整站源码、程序插件、网站模板、网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。

如果您已经成功付款但是网站没有弹出成功提示,请联系站长提供付款信息为您处理

源码素材属于虚拟商品,具有可复制性,可传播性,一旦授予,不接受任何形式的退款、换货要求。请您在购买获取之前确认好 是您所需要的资源