基于单片机的智能倒车系统的设计

 2023-02-03 10:02

论文总字数:16646字

摘 要

随着科学日新月异的高度发展,人们平均生活水平也正不断提高。人们不仅仅只追求精神生活的高品质,物质生活质量的提高也日益受到重视。家用汽车的使用越来越普及,行车安全成了不可忽视的重要问题。新手司机由于倒车技术不太娴熟,在倒车时无法做到瞻前顾后、既保证前方视野内路况安全,又关注着后方路况动态,智能倒车系统应运而生。智能倒车系统不仅能提示司机车后与障碍物之间的距离,当距离缩短到一定程度时,会触发灯闪与蜂鸣;且距离越短,灯闪与蜂鸣的频率越高,以达到提醒与警示司机的目的。

本文设计了基于STC89C52单片机的智能倒车系统,利用超声波测距原理测量系统到障碍物的距离,并通过LCD显示屏显示出实时距离,当显示距离大于设定值时,继续显示距离值;当显示距离小于设定值时,触发声光报警电路。本系统通过软硬件相结合的电路搭建构想,最终完成智能倒车系统的设计以及各模块间的功能实现。本文主要介绍了实现智能倒车系统的理论基础、超声波测距的工作原理、软件语言的编写以及电路搭建的具体实现步骤。

本系统结构合理、原理简单、成本低廉、操作方便,具备良好的生产使用价值。

关键词:智能倒车系统;超声波测距;STC89C52

Design of Intelligent Car Reversing System Based Microcontroller

Abstract

With the quiet development of science,the average standard of people’s living is rising constantly at the moment.People not only run the high quality of spiritual life,but also the material life is.More and more families driving car takes a question about safe which can’t be ignored.New drivers can’t ensure the security of in front of the car and watch the situation behind the car meanwhile cause of they’re unskilled.So the intelligent car reversing system emerge as the times require.The intelligent car reversing system would show the distance between the car and the obstacle to prompt the driver,the led flashing and buzzer ringing would be triggered when the distance is cut to a number.With the distance comes shorter,the frequency of the led flashing and buzzer ringing comes higher.

This paper designs an intelligent car reversing system based on Microcontroller STC89C52 which makes use of ultrasonic to detect the range between the system to obstacles,and the real-time distance is displayed on the LCD screen.When the display distance is greater than the set value, continue to display the distance ,and the circuit of the acoustooptic alarm system is triggered when the distance displayed on the screen is less than the set value.The system is mainly composed of power supply circuit, ultrasonic ranging circuit, display circuit, sound-light alarm circuit and other modules,with a combination between software and hardware,finally completes the function realization of each module and the design of intelligent reversing system.This paper mainly introduces the theoretical basis of intelligent reversing system, the working principle of ultrasonic ranging, the preparation of software language and the specific steps of circuit construction.

The system has reasonable structure, simple principle, low cost, convenient operation,with a good and useful production value.

Keywords: intelligent reversing system; Ultrasonic ranging; STC89C52

目录

摘要 I

Abstract II

第一章 绪论 1

1.1课题研究背景及意义 1

1.2国内外现状 1

1.2.1国外现状 1

1.2.2国内现状 2

1.3本课题研究内容及指导思想 2

第二章 设计方案论证 3

2.1 整体电路设计 3

2.2各模块电路功能 3

2.2.1单片机最小系统 3

2.2.2按键模块 3

2.2.3超声波模块 4

2.2.4显示模块 4

2.2.5声光报警电路 4

2.3 方案选择 4

2.3.1系统控制器选择 4

2.3.2超声波模块选择 4

2.3.3超声波测距原理选择 5

第三章 系统硬件电路设计 6

3.1单片机最小系统 6

3.2超声波模块 7

3.2.1超声波测距原理 8

3.2.2超声波模块电路 8

3.3显示模块 9

3.3.1LCD1602介绍 9

3.3.2显示模块电路 9

3.4按键模块 10

3.5声光报警模块 10

3.5.1 LED灯闪报警电路 10

3.5.2蜂鸣器报警电路 11

3.6硬件电路原理图 11

第四章 系统软件程序设计 13

4.1程序语言及环境开发 13

4.2程序流程图 13

4.2.1整体流程图 13

4.2.2 1602液晶显示程序设计 14

4.2.3超声波模块HC-SR04程序流程图设计 15

4.3中断处理程序设计 16

4.4距离算法程序设计 16

4.5程序主函数 17

第五章 系统调试与分析 18

5.1元器件的选择与焊接注意事项 18

5.2元件的焊接与组装 18

5.3 硬件电路调试 18

5.3.1 调试方法 19

5.3.2 调试步骤 19

5.3.3调试结果 20

5.4软件电路调试 20

5.4.1调试结果 20

第六章 结论 22

6.1课题总结 22

6.2未来展望 22

致谢 23

参考文献 24

  1. 绪论

随着现代工业的发展,人民生活水平的提高,越来越多的人使用更加快捷方便的交通工具来代替原始的出行方式。汽车成了较为普遍的交通工具,行车安全是人们一贯的追求指标。汽车数量的增多,新手司机的技术不娴熟……许许多多的因素增加了交通事故的频率。一般的倒车方式,司机只能依靠自我感觉判断后方路况,目测与障碍物之间的距离,这对司机技术要求比较严苛,新手司机因经验欠缺无法准确快速判断作出应急反应而易导致事故发生。基于单片机的智能倒车系统,可以直观的在显示屏上显示出车辆距离障碍物的距离,同时伴以灯光和声音双重提醒,能有效地提高司机对车后盲区的判断的准确性,同时单片机系统集成度高,体积小,成本低,易扩展,指令丰富,低功耗……被汽车电子生产商争相改革完善并生产应用于实际汽车中,大大降低了司机的倒车难度,提高了司机判断路况准确性,有效减少了交通事故的发生。

1.1课题研究背景及意义

剩余内容已隐藏,请支付后下载全文,论文总字数:16646字

您需要先支付 80元 才能查看全部内容!立即支付

该课题毕业论文、开题报告、外文翻译、程序设计、图纸设计等资料可联系客服协助查找;