毕业论文

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

51单片机的汽车超声波测距仪设计+电路图+程序

时间:2024-01-08 23:09来源:毕业论文
51单片机的汽车超声波测距仪设计。通过把STC89C52单片机作为主要芯片,应用超声波测距原理对距离进行检测,测出到阻碍物之间的距离,由数码管显示具体数值,单片机内部将这些数值

摘要:在单片机的STC系列里使用最普遍的是STC89C52这款的,凭借其通用性和易用性得到大多数的电子设计爱好者的喜爱。该设计通过STC89C52微控制器和超声波传感器来完成距离测量任务。通过把STC89C52单片机作为主要芯片,应用超声波测距原理对距离进行检测,测出到阻碍物之间的距离,由数码管显示具体数值,单片机内部将这些数值和预设值进行对比。如果低于预设值,蜂鸣器由于接收到STC89C52单片机内部发出的指令,便会发出报警。系统电路设计合理、性能良好、检测速度快、而且容易做到实时控制,在工业实用方面已经达到了测量精度的要求而且硬件的开销也不大。92776

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

Abstract:The most common use of the STC in the STC series is the stc89c52, with its versatility and ease of use to get most of the electronic design lovers。 The design is accomplished by stc89c52 microcontroller and ultrasonic sensor。 By using the stc89c52 microcontroller as the main chip, the distance is detected by ultrasonic ranging principle, and the distance between hamper is measured, and the specific value is displayed by the digital tube, which compares these values and the defaults。 If the preset value is lower than the preset value, the buzzer will give an alarm because of the instruction issued within the MCU stc89c52。 The system circuit design reasonable, good performance, rapid detection speed, and easy to achieve real-time control, in industrial practice has reached the requirements of measurement accuracy and the cost of hardware is not large。

Key word: stc89c52, ultrasonic, rangefinder

目录

1  绪论 3

2  总体设计 4

2。1  设计思路 4

2。2  设计方案 4

3  超声波的简介 5

3。1  超声波传感器的介绍 5

3。2  超声波测距原理 6

4  系统主要硬件设计 7

4。1  电路原理图 7

4。2  最小系统 7

4。3  时钟电路的设计 8

4。4  复位电路的设计 9

4。5  超声波测试模块 9

4。6  声音报警电路的设计 10

4。7  显示模块 11

软件设计 12

5。1  主程序工作流程图 12

5。2  HC-SR04测距源F于K优B尔C论V文N网WwW.youeRw.com 原文+QQ752^018766 流程图 13

6  实物仿真 13

6。1  Keil软件 13

6。2  Proteus软件 14

6。3  载入程序 15

6。4  仿真图 16

7  实验测试结果及分析 17

总结 20

参考文献 21

致谢 22

附录A  原理图 51单片机的汽车超声波测距仪设计+电路图+程序:http://www.youerw.com/zidonghua/lunwen_200504.html

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