摘 要:本文采用以低成本、高精度的AT89C52单片机为控制芯片加上微型化数码管数字显示超声波测距仪的硬件电路和软件设计方法。整个电路采用模块化设计,发射超声波模块,接收超声波模块,显示距离模块组成。发射模块主要发射超声波,接收模块主要接收发射装置遇到障碍物反射的回波,单片机计算距离,数码管显示测量结果。各探头的信号经单片机综合分析处理,实现超声波测距仪的各种功能。在此基础上设计了系统的总体方案,最后通过硬件和软件实现了各个功能模块。本设计的优点在于超声波明显特征是方向性好,穿透性强,尤其在民用上有很好的发展前景。65437

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

Abstract:  The design of this project using AT89C52 microcontroller low-cost, high-precision control chip and miniaturization of digital tube digital display ultrasonic range finder hardware and software design methods. The entire circuit is modular in design,  transmitting ultrasonic module receives the ultrasonic module, the display from the module. Transmitter module transmitter ultrasonic receiver module main receiver transmitter device encounters an obstacle reflected echo microcontroller calculates the distance, the digital display measurement results. Probe signal the SCM comprehensive analysis of processing, the various functions of the ultrasonic range finder. The system is designed on the basis of the overall program, through hardware and software to achieve the various functional modules.The advantage of this design is that the distinctive feature of ultrasonic directional, penetrating, especially in civilian good prospects for development.

Key word: AT89C52, ultrasound, ranging

目  录

1  前言 4

1.1  设计目的 4

1.2  设计的主要内容 4

1.3  应解决的关键问题 4

2  总体方案设计 5

2.1  超声波测距离原理 5

2.2  超声波传感器特性 6

3  硬件电路设计 7

3.1  单片机AT89C52介绍 7

3.2  超声波发射电路 12

3.3  超声波检测接收电路 12

3.4  超声波显示电路 13

3.5  报警电路 14

3.6  电源电路设计 15

4  系统程序的设计 15

4.1  超声波测距器的算法设计 16

4.2  总体设计方案 17

4.3  超声波发生子程序和超声波接收中断程序 17

4.4  主程序 18

5  电路调试及误差分析 19

5.1  系统干扰因素 19

5.2  电路的调试 20

5.3  声速引起的误差 21

5.4  环境对测量的影响 21

5.5  系统功能 22

结论 24

上一篇:AT89C51单片机数控式高精度简易直流电源的设计+电路图
下一篇:AT89C51单片机的家用电器远程控制系统设计+PCB电路图+程序

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

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

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

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

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

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

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

辩护律师的作证义务和保...

浅谈新形势下妇产科护理...

《醉青春》导演作品阐述

国内外无刷直流电动机研究现状

谷度酒庄消费者回访调查问卷表

高校网球场馆运营管理初探【1805字】

拉力采集上位机软件开发任务书

多元化刑事简易程序构建探讨【9365字】

中国古代秘书擅权的发展和恶变

浅谈传统人文精神茬大學...