自动泊车系统的设计

更新时间:2023-10-30 17:18:01 阅读量: 综合文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

内蒙古科技大学毕业设计说明书(毕业论文)

内蒙古科技大学

本科生毕业设计说明书(毕业论文)

题 目:自动泊车系统的设计 学生姓名:xxx 学 号:1167118xxx 专 业:电子信息工程 班 级:2011-2班 指导教师:xxx

内蒙古科技大学毕业设计说明书(毕业论文)

自动泊车系统 摘 要

随着车辆的普及度、保有量越来越高,街道、小区、公路、停车场等拥挤不堪,人们对车辆的可操作性和智能性也提出了更多的要求,所以智能的自动泊车的研发迫在眉睫。本设计以蓝牙模块与单片机最小系统通过串口相连接,并与电脑端蓝牙连接实现下位机与上位机之间的通信过程,从而实现自动泊车的功能。

本设计由上位机、蓝牙模块、STC15F2K61S2单片机最小系统、GY-26电子指南针模块、光电避障模块、超声波模块、电机驱动模块、舵机组成系统。主要包括以下几个方面:第一,硬件电路设计,硬件电路通过Altium Designer软件进行硬件电路设计,主要包括包括电源系统和单片机最小系统,第二,STC15F2K61S2单片机最小系统设计,最小系统可以实现超声波数据、光电避障模块数据、电子指南针模块数据的接受,由上位机端发送命名实现对小车的相应控制。第三,上位机软件设计,上位机由C Sharp语言在Visual Studio 2010平台编写,主要实现对由下位机说发送的数据进行处理并实时显示出来的,并且对自动泊车系统进行整体控制,通过蓝牙向单片机最小系统发送数据,单片机接收到数据后控制小车完成侧位泊车或倒车入库动作。

关键词:上位机;单片机最小系统;自动泊车

I

内蒙古科技大学毕业设计说明书(毕业论文)

Automatic parking system

Abstract

With the popularization of vehicle, retains the quantity is more and more high, streets, communities, roads, parking lots and other crowded. People of the vehicle can also put forward more requirements for the operation and intelligent, so the research and development of intelligent automatic parking is imminent. This design takes the Bluetooth module and the microcontroller smallest system through the serial port, and realizes the communication process between the lower computer and the upper computer with the Bluetooth connection of the computer terminal.

The design of the PC and Bluetooth module, STC15F2K61S2 MCU minimum system, GY-26 electronic compass module, photoelectric obstacle avoidance module, ultrasonic module, motor drive module, servo system. Mainly includes the following aspects: first, hardware circuit design, hardware circuit through Altium designer software were hardware circuit design, including including power supply system and the smallest single-chip system. Second, STC15F2K61S2 smallest single-chip system design, the minimum system can realize ultrasonic data, photoelectric obstacle avoidance module data, electronic compass module data received, sent by the host computer end named the corresponding control of the car.Third, PC software design and PC by C sharp language on the platform of Visual Studio 2010 prepared, mainly to achieve by the slave computer said transmitted data for processing and real-time display, and the automatic parking system integrated control, via Bluetooth to send data to the MCU minimum system, MCU receives the data control the car lateral parking or reversing storage action.

Key words: PC, minimum single-chip microcomputer, automatic parking

II

内蒙古科技大学毕业设计说明书(毕业论文)

目 录

摘 要 ................................................................................................................................. I Abstract .............................................................................................................................. II 第一章 绪论 ...................................................................................................................... 1

1.1 课题的目的和意义 ............................................................................................. 1 1.2 课题的国内外研究现状 .................................................................................... 2 第二章 原理和技术 .......................................................................................................... 5

2.1 Altium Designer软件的应用 .............................................................................. 5 2.2 STC15F2K61S2单片机最小系统的应用 .......................................................... 5 2.3 超声波原理的使用 ............................................................................................. 6 2.4 C Sharp语言与Microsoft Visual Studio 2010开发平台 ......................... 8 2.5 蓝牙模块 ............................................................................................................. 9 第三章 系统的硬件设计 .................................................................................................11

3.1 系统总体设计 ....................................................................................................11 3.2 系统的硬件设计 ............................................................................................... 12 3.3 系统的软件设计 ............................................................................................... 12 第四章 系统的软件设计 ................................................................................................ 14

4.1 下位机硬件设计 ............................................................................................... 14

4.1.1 电机驱动电路 ........................................................................................ 14 4.1.2 舵机 ........................................................................................................ 15

III

内蒙古科技大学毕业设计说明书(毕业论文)

4.1.3 超声波测距模块 .................................................................................... 16 4.2 下位机程序编写 ............................................................................................... 17

4.2.1 电子指南针模块数据接收与校准程序实现 ........................................ 18 4.2.2 串口发送接收与处理功能程序实现 .................................................... 19 4.2.3 小车控制程序实现 ................................................................................ 20 4.3 上位机界面设计 ............................................................................................... 23

4.3.1 系统时间显示部分 ................................................................................ 24 4.3.2 串口设置部分 ........................................................................................ 24 4.3.3 自动泊车状态显示部分 ........................................................................ 25 4.3.4 数据监测显示部分 ................................................................................ 25 4.3.5 指南针控制部分 .................................................................................... 26 4.3.6 自动泊车控制部分 ................................................................................ 26 4.4 上位机程序设计 ............................................................................................... 26

4.4.1 定时器组件timer的使用及程序编写 .................................................. 27 4.4.2 串口组件serialPort的使用 ................................................................... 28 4.4.3 串口触发事件函数comm_DataReceived ............................................. 28 4.4.4 指南针控制部分程序实现 .................................................................... 29 4.4.5 指南针控制部分程序实现 .................................................................... 30

第五章 总结与发展趋势 ................................................................................................ 31 参考文献 .......................................................................................................................... 32 附录 .................................................................................................................................. 34 致谢 .................................................................................................................................. 46

IV

本文来源:https://www.bwwdw.com/article/qfi2.html

Top