摘要:本文介绍了基于STC89C52单片机设计的超声波测距仪。通过控制定时器,计算超声波自发射到接收的往返时间,从而算出实测距离,并且在1602液晶上将测得的距离显示出来。本设计以单片机最小系统为核心,结合超声波测距模块、电源电路模块,显示电路模块,声光报警电路模块等部分。在此基础上设计了系统的总体方案,最后通过硬件和软件实现了各个功能模块。相关部分附有系统框图,硬件电路图、程序流程图等。此系统具有成本低廉、易控制、工作可靠、测距准确度高、可读性强和流程清晰等优点。实现后的作品可用于需要测量距离参数的各种应用场合。66633

毕业论文关键词:超声波,测距,单片机,HC-SR04

Abstract:This paper introduces the design of ultrasonic range finder based on STC89C52 single-chip microcomputer. By controlling the timer, calculate ultrasonic since launch to receive round-trip time, so as to calculate the measured distance, and in 1602 the LCD will be measured distance is displayed. This design is based on the minimum system of the MCU as the core, combining the ultrasonic ranging module, power supply circuit module, a display circuit module, sound light alarm circuit module and so on. On the basis of the overall system design, and finally through the hardware and software realization of each function module. With the relevant parts of the system block diagram, the hardware circuit diagram, the program flow chart etc.. This system has the advantages of low cost, easy control, reliable operation, high accuracy location, readability is strong and clear flow etc.. After the realization of the works can be used for various application occasions the need to measure the distance parameter.

Key words: ultrasonic wave , ranging , MCU , HC-SR04

目 录

1 绪论 5

2 测距仪现状及意义 5

2.1 国内外现状 5

2.1.1 国内现状 5

2.1.2 国外现状 5

2.2 本课题研究意义 6

2.3 主要内容及思路 6

3 超声波测距原理 6

3.1 超声波简介 6

3.1.1 什么是超声波 6

3.1.2 超声波的特点 6

3.1.3 超声波对声场产生的作用  7

3.2 超声波传感器介绍 7

3.2.1 超声波测距原理及结构 8

3.2.2 超声波测距的方法 9

4 系统硬件电路设计 9

4.1 总体设计 9

4.1.1 总体设计要求 9

4.2.2 方案选择 10

4.2 整体方案设计 10

4.2.1 系统概述 10

4.2.2 系统框图 10

4.3 单片机最小系统电路 10

4.3.1 单片机介绍 10

4.3.2 单片机最小系统 12

4.4 HC-SR04模块 14

4.4.1 HC-SR04模块使用器件 14

4.4.2 超声波发射电路

上一篇:AT89C51单片机实验开发板设计+电路图+程序
下一篇:LABVIEW的虚拟示波器设计

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

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

STC89C52单片机盲人用时钟的设计+电路图+程序

粉料称重装置的单片机控...

STM32单片机的无刷直流电机控制系统设计

AT89S52单片机车内空气检测系统设计+源代码

LABVIEW+AT89C51单片机智能药箱系统设计+源代码

PCI+PID算法直流力矩电机速...

小型通用机器人控制系统设计任务书

大规模MIMO系统的发展研究现状

《水浒传》中血腥暴力研...

提高小學语文課堂朗读教...

MNL模型历史城区居民活动...

遥感土地用变化监测国内外研究现状

高效课堂教师问卷调查表

浅析施工企业保理融资成...

从企业eHR建设谈管理信息...