设计简介:
项目名:基于单片机的蓝牙循迹避障小车设计、基于单片机的蓝牙遥控小车设计、基于单片机的红外循迹小车设计、基于单片机的超声波避障小车设计
单片机:STC89C52
功能简介:
1、通过红外寻迹管进行寻迹,寻迹时,通过超声波检测前方障碍物,遇到障碍物进行停止
2、通过蓝牙进行远程遥控,遥控时,通过手机APP控制前后左右、加速向前、减速向前、加速向后、减速向后、并可切换蓝牙遥控和寻迹模式,通过超声波检测前方障碍物,遇到障碍物进行左转避障
总字数:9666
摘要
随着智能交通的发展,私家车的数量与日俱增,但同时也伴随着道路拥挤和交通事故频繁,严重影响人们的生命安全,为了避免或减少交通事故的发生,本文采用传感器技术研究智能智能避障小车系统。此次设计一款智能循迹避障小车,该避障小车通过选择单片机STC89C52单片机作为此次设计的主控芯片,通过通过红外寻迹管进行寻迹。与此同时,为了解决远程非接触问题,手机通过蓝牙和单片机进行通信,用户可以通过手机下达不同的指令,通过单片机来产生不同的波形,去控制小车运行的速度,也可以通过红外对管检测小车在路面行驶的轨迹及其障碍物进行检测,并将检测的数据传输到单片机进行处理,通过单片机处理输出的信号控制小车的转向及其转速,从而使得小车可以自动避开障碍物从而达到正常行驶的目的,所以该设计能够有效降低交通事故的发生。
关键词 小车;自动循迹;自动避障;蓝牙模块
Abstract
With the development of intelligent transportation, the number of private cars is increasing, but also accompanied by road congestion and frequent traffic accidents, seriously affecting people’s life safety, in order to avoid or reduce the occurrence of traffic accidents, this paper uses sensor technology to study intelligent obstacle avoidance car system. The design of an intelligent tracking obstacle avoidance car, the obstacle avoidance car through the selection of single chip microcomputer STC89C52 as the design of the main control chip, through the infrared tracking tube for tracking. At the same time, in order to solve the problem of remote non-contact, the mobile phone communicates with the single chip microcomputer through Bluetooth. The user can give different commands through the mobile phone and generate different waveforms through the single chip microcomputer to control the running speed of the car, and can also detect the track of the car on the road and its obstacles through the infrared detection tube. And the detected data is transmitted to the MCU for processing, through the MCU processing output signal control car steering and speed, so that the car can automatically avoid obstacles to achieve the purpose of normal driving, so the design can effectively reduce the occurrence of traffic accidents.
Key words car; automatic tracking; automatic obstacle avoidance; bluetooth module
目录
1 绪论 5
1.1选题背景及实际意义 5
1.2国内外发展历程 5
1.3本文的组织结构和功能 6
2 系统设计方案 8
2.1整体设计方案 8
2.2 主要模块方案旋转 8
2.1.1主控芯片方案选择 8
2.1.2 避障模块方案选择 8
2.1.3无线传输方式方案选择 9
3 硬件设计 10
3.1主控模块电路 10
3.2避障检测模块电路 10
3.3红外循迹模块电路 11
3.4 蓝牙模块电路 11
3.5 直流电机驱动模块电路 11
4 系统程序设计 13
4.1 编程软件介绍 13
4.2 主程序流程设计 14
4.3 处理函数流程设计 15
4.4 超声波检测模块子流程 16
4.5 直流电机-MX1508驱动模块子流程 16
5 仿真测试 18
5.1整体仿真测试 18
5.2蓝牙模块仿真测试 18
5.3小车循迹仿真测试 19
5.4小车障碍物避障仿真测试 20
6 实物测试 21
6.1实物总体设计 21
6.2蓝牙模块实物测试 21
6.3小车循迹实物测试 22
6.4小车障碍物避障实物测试 22
结 论 23
参考文献 24
致 谢 25
附录 26
附录1:原理图 26
附录2:PCB 27
附录3:主程序 28