摘 要:本装置是儿童时代对动画片里四驱兄弟的人工智能控制简易自动行走汽车的情怀结合大学期间的单片机知识而设计“我行我素”版的简易自动行走汽车,主要通过51单片机作为主要控制核心结合c语言编程技术对蓝牙模块HC_06、超声波模块HCSR_04、红外线检测模块、液晶1602模块以及按键设定模块等相关外围器件组合搭配调试,最终实现简易自动行走汽车的多功能模式控制,如智能躲避墙体障碍、自动寻黑色轨迹以及可通过安卓手机APP进行遥控和重力感应等相关模式的操作,这不仅促进本人对大学器件专业知识的深入理解并且提高自身动手能力,更是对儿时玩具的深深情怀上加入雏形的物联网和人工智能方向的控制,以跟上时代科技的脚步。
关键词:51单片机;蓝牙模块HC_06;超声波模块HCSR_04;红外线检测模块;液晶1602模块
Summary: this device was designed as an intelligent car of "go your own way" in childhood with the love of the artificial intelligence control car of the four-drive brothers in the cartoon combined with the knowledge of the single-chip computer during the college period.Mainly through 51 single chip microcomputer as the main control core and c language programming technology, the Bluetooth module HCS06, the ultrasonic module HCSR04, the infrared detection module, the liquid crystal 1602 module and the key setting module and other related peripheral devices are combined and debugged.Finally, the multi-function mode control of the car can be realized, such as the intelligent avoidance of wall barrier, the automatic tracing of black track and the remote control and gravity through the APP of Android phone. The operation of related modes, such as induction, not only promotes my deep understanding of the professional knowledge of university devices and improves my own hands-on ability, but also controls the embryonic Internet of things and the direction of artificial intelligence for the deep feelings of childhood toys.In order to keep up with the pace of technology of the times.
Key words: single chip microcomputer: 51; Bluetooth module HCS06; ultrasonic module HCSRS04; infrared detection module; liquid crystal 1602 module
目 录
1 绪论 1
1.1研究的背景与意义 1
1.2 主要研究内容 1
1.3 设计技术指标 1
2 装置总体方案论证 2
2.1系统总体框架 2
2.2主控芯片的方案论证 2
2.3蓝牙模块的方案论证 3
2.4寻迹功能方案论证 3
2.5避障功能方案论证 3
3 硬件设计 4
3.1主控芯片 4
3.2 最小系统 5
3.3蓝牙模块通信电路 5
3.3寻迹模块通信电路 6
3.4超声波模块通信电路 7
3.5按键设定电路 8
3.6液晶显示电路 8
3.7电机驱动和系统电源设计 9
4 装置软件设计 10
4.1主函数流程图 10
4.2超声波避障模式流程图 12
4.3红外寻迹模式流程图 14
4.4蓝牙遥控模式流程图 15
4.5手机APP终端设置 16
4.6液晶显示程序 17
5 实物制作及调试 18
5.1实物制作遇到的问题以及调试 18
6 结论 19
6.1本文的主要工作 19
6.2改进 19
致谢 20
参考文献 20
附录A 总电路图 21
附录B PCB图 22
附录C 元件清单 23