目 录
引言.............................................................................................................................................1
1 汽车倒车防撞测距报警系统方案设计...............................................................................1
1.1 系统设计方案分析..............................................................................................................1
1.2 系统硬件结构框图..............................................................................................................2
2 系统硬件电路设计...............................................................................................................2
2.1 STC89C52 单片机 ...............................................................................................................2
2.1.1 STC89C52 模块的设计 ....................................................................................................2
2.2 超声波传感器介绍..............................................................................................................4
2.3 复位电路..............................................................................................................................6
2.3.1 晶振电路............................................................................................................................6
2.4 驱动显示电路及报警电路..................................................................................................7
2.4.11602 液晶屏显示电路........................................................................................................7
2.4.2 蜂鸣器和 LED 报警.........................................................................................................8
2.5 HC-RS04 超声波测距原理..................................................................................................9
2.6 按键设置电路......................................................................................................................9
2.7 总体电路............................................................................................................................10
3 系统程序的设计.................................................................................................................10
3.1 主程序................................................................................................................................10
3.2 显示数据子程序................................................................................................................11
3.3 报警子程序........................................................................................................................11
3.4 按键子程序........................................................................................................................12
4 系统调试及实物图展示.....................................................................................................12
4.1 系统调试制作....................................................................................................................12
4.1.1 实物的完成.....................................................................................................................12
4.1.2 系统调试.........................................................................................................................13
4.1.3 功能测试.........................................................................................................................14
5 总结.......................................................................................................................................14