摘要:在单片机的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  原理图

上一篇:STC89C51单片机的八路无线抢答器设计
下一篇:AT89C51单片机的校园自动售货机的设计+电路图

热环境对磁记忆信号的影响ANSYS有限元分析

单片机数字红外测距系统设计+电路图+程序

连续-离散型状态观测器设...

基于Kinect手势识别的遥操...

冷库GPRS的无线数据采集系统设计

基于51单片机自动门智能控制系统设计

STC89C52单片机智能温度监测系统设计

机械安全标准国内外研究现状

内河智能航运信息服务(...

流动人员人事档案信息化...

80C51单片机水箱液位控制系...

反转课堂在小学数学教学...

超声波自动测量物体液位系统设计任务书

城镇化进程国内外研究现状

浅析地籍档案的信息化管理【2143字】

ARM新生儿水床控制系统设计硬件设计+源代码

第三方支付风险防范文献综述和参考文献