毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

STC89C51单片机超声波测距系统设计+电路图+C程序

时间:2024-01-27 10:51来源:毕业论文
STC89C51单片机超声波测距系统设计+电路图+C程序。基于STC89C51单片机,配合超声波传感器,控制发射脉冲的开始时间,计算发射到接收的往返时间差并且控制显示电路,LCD显示通过动态扫

摘  要:现在科技越来越发达,生活水平越来越丰富,为了可以有效避免测距人员与危险环境的近距离接触,以便能够很好地满足测距的现实需求,所以超声波测距作为一种便捷的无线测距手段应运而生。本设计基于STC89C51单片机,配合超声波传感器,控制发射脉冲的开始时间,计算发射到接收的往返时间差并且控制显示电路,LCD显示通过动态扫描实现。软件设计是由主程序、中断服务程序、显示距离子程序和延时子程序组成,然后经过软硬件调试实现测距。超声波测距能够在各种场合发挥测量的作用,现实生活中可以应用于倒车雷达,危险施工现场的测距等。93399

毕业论文关键词:超声波,测距,STC89C51

Abstract:Nowadays, science and technology are in a rapid development, living standards has greatly improved。 As a convenient means of wireless Ranging, ultrasonic distance measurement can avoid the close contact between workers and dangerous environment so that current needs can be meted well。 This design is based on STC89C51 microcontroller, by using of the following hardware: ultrasonic launching and receiving circuit, power supply circuit, display circuit, reset circuit system, crystal oscillation circuit and so on。 Designs of software consist of main program, interrupt service routine, display subroutine, and delayed subroutine。 At last, Proteus software simulates combining hardware and software to realize the function of every module。 ultrasonic ranging can play a role on various situations of measuring parameter, which involves a lot of fields, such as reversing radar and the risk of the construction site of the distance

Key words: ultrasonic, distance measurement, STC89C51

目 录

1 绪论 2

1。1 超声波测距设计的背景及意义 2

1。2 超声波测距设计的现状 2

1。3 论文结构 3

2 系统的方案设计与论证 3

2。1 超声测距系统整体方案的设计 3

2。2 超声测距系统整体方案的论证 4

3 系统的硬件结构设计 5

3。1 51系列单片机的功能特点 5

3。2 单片机复位电路 7

3。3 单片机的晶振电路 7

3。4 显示电路 8

3。5 蜂鸣器报警 9

3。6  单片机实现测距原理 10

3。7 HC-SR04 超声波模块原理 10

3。7。1 超声波发射电路 11

3。7。2 超声波检测接收电路 11

3。8温度检测电路 12

3。8。1 温度检测方案的分析 12

3。8。2 数字温度传感器DS18B20简介 12

4 系统的软件设计 13

4。1 超声波测距的算法设计 13

4。2 Keil3的简介 14

4。3 主程序流程图 15

5 系统的软硬件的调试 16

结 论 18

致 谢 STC89C51单片机超声波测距系统设计+电路图+C程序:http://www.youerw.com/zidonghua/lunwen_201224.html

------分隔线----------------------------
推荐内容