目 录
1 绪论.................................................................................................................................................................................1
1.1 课题研究的背景.....................................................................................................................................1
1.2 课题研究的意义.....................................................................................................................................1
2 超声波测距原理................................................................................................................................................1
2.1 超声波简介 .................................................................................................................................................1
2.2 超声波测距原理.....................................................................................................................................1
3 方案论证....................................................................................................................................................................2
3.1 设计思路........................................................................................................................................................2
3.2 系统结构设计...........................................................................................................................................3
4 主要元件介绍 ......................................................................................................................................................3
4.1 单片机 STC89C51 ...................................................................................................................................3
4.2 超声波传感器...........................................................................................................................................5
4.3 1602 显示器..............................................................................................................................................5
5 硬件电路设计.....................................................................................................................................................6
5.1 STC89C51 最小系统............................................................................................................................6
5.2 超声波模块 .................................................................................................................................................7
5.3 显示电路........................................................................................................................................................7
6 软件设计....................................................................................................................................................................8
6.1 主程序流程 .................................................................................................................................................8
6.2 误差及特性分析.....................................................................................................................................9