(完整版)基于单片机的智能循迹小车毕业论文设计 下载本文

内容发布更新时间 : 2024/5/12 7:08:48星期一 下面是文章的全部内容请认真阅读。

优秀论文 审核通过 未经允许 切勿外传

沈阳理工大学

毕业设计(论文)

题 目: 基于单片机的智能循迹小车

院 系: 信息与控制学院

专 业: 自动化 班级学号: 学生姓名: 于海 指导教师: 刘义杰 成 绩:

年 月 日

摘 要

本文论述了基于单片机的智能循迹小车的控制过程。智能循迹是基于自动引导机器人系统,用以实现小车自动识别路线,以及选择正确的路线。智能循迹小车是一个运用传感器、单片机、电机驱动及自动控制等技术来实现按照预先设定的模式下,不受人为管理时能够自动实现循迹导航的高新科技。该技术已经应用于无人驾驶机动车,无人工厂,仓库,服务机器人等多种领域。

本设计采用STC89C52单片机作为小车的控制核心;采用TCRT5000红外反射式开关传感器作为小车的循迹模块来识别白色路面中央的黑色引导线,采集信号并将信号转换为能被单片机识别的数字信号;采用驱动芯片L298N构成双H桥控制直流电机,其中软件系统采用C程序,本设计的电路结构简单,容易实现,可靠性高。

关键词:单片机;自动循迹;驱动电路

Abstract

This paper discusses the intelligent tracing electric trolley control process. Automatic tracing is used to make the car indentify route automatically , and choosing the right route, based on the automatic guide robot system. Intelligent tracing electric trolley is an advanced technology to realize automatic tracing navigation. It is out of management but under the designed mode that use of the use of a transducer, single chip, motor drive and automatic control .This

technology applied in unmanned vehicle, unmanned factory, warehouse, service robot and many other fields.

During the design of Intelligent tracing electric trolley, STC89C52 single clip is used as the control core; at the same time with TCRT5000 reflective infrared transducer switch to identify the black guide line at the central of the white road, which used as the car tracing module, it can gather the signal and transfer it into digital signal that can be recognized by single chip. And the driving chip L298N constitute the double H bridge constitute of driving chip L298N can control direct current motor. Among

which the software system is using C program. In a nutshell, the design of the circuit , and )将这些部分组合在一起。掌握这一软件的使用对于使用51系列单片机的学者来说是十分必要的,如果使用C语言编程,那么Keil几乎就是不二之选,即使不使用C语言而仅用汇编语言编程,其方便易用的集成环境、强大的软件仿真调试工具也会事半功倍。

Keil C51软件提供丰富的库函数和功能强大的集成开发调试工具,全Windows界面。另外重要的一点,只要看一下编译后生成的汇编代码,就能体会到Keil C51生成的目标代码效率非常之高,多数语句生成的汇编代码很紧凑,容易理解。在开发大型软件时更能体现高级语言的优势[8]。

4.2 本系统的编译器

Keil编译器软件

Keil C51单片机软件开发系统可用于编辑C或汇编源文件。然后分别由C51编译器编译生成目标文件(.OBJ)。目标文件与库文件一起经LIB51连接定位生成绝对目标文件(.ABS)。ABS文件由OH51转换成标准的Hex文件,由仿真器使用直接对目标板进行调试,也可以直接写入程序存贮器如EPROM 中。

打开Keil软件后,出现如图4.1所示界面。

图4.1 Keil 软件主界面

点击Project--New Project。可以新建一个工程,如图4.2所示。

图4.2 Keil软件新建工程界面

点击会出现的对话框中选择工程存在路径(如图4.3所示),单击“保存”后,出现界面。在此界面上选择电路板上所用的单片机型号(如图4.4所示),单击“确定”。