摘要布锥机器人是能够适用于多种场合的智能机器人,通过自带的两个单片机建立通信并分别控制小车与机械手以实现小车的运行及机械手的布锥工作。从而能够解决一些实际问题。
小车采用的是单片机来控制系统,可循迹小车配合机械手完成布锥任务。实验环境下的小车循迹功能主要依靠红外传感器来完成,而三个舵机控制的机械手同时也需完成路锥的抓取、放置动作。本课题需要最终能够使小车与机械手协调动作,因此,单片机间的通信必不可少。49488
根据实际需求,选择了两个单片机的异步通信。以控制小车的单片机为主机,则控制机械手的为从机,故采用了主从式双机通信。但就两个单片机而言是无法直接通信的,单片机之间的通信需要握手信号才能够实现。设置握手信号及通信的方式是本文研究的重点。
毕业论文关键词:红外传感器;智能机器人;单片机
Abstract Layout of the road cone robot is capable of intelligent robot that applies a variety of occasions, Through the own two single chip SCM establish communication to control the car and manipulator respectively to achieve the operation of the car and the layout road cones work of the manipulator . Thus able to solve some practical problems.
The car uses a SCM to control the system, it can track the car with the mechanical hand to complete the task of the cloth cone. Car tracking function under the experimental environment mainly rely on infrared sensors to finish. And three steering gear control of the manipulator also complete road cones to grab, placed action. This topic that need to finally be able to make the car and the manipulator coordinate action. Therefore, communication between the SCM is essential.
Based on actual demand, choosing two SCM asynchronous communication. SCM to control the car as the master, then SCM to control the manipulator as the slave. Therefore, using the master-slave dual-machine communication. But just the two SCM can not communicate directly. The communication needs handshake signal between the microcontroller can be achieved. Set of handshake signal and communications is the key point in this paper
Keywords: Infrared sensor; Intelligent robot; Single-chip microcomputer
目录
第一章 绪论 1
1.1 课题背景 1
1.2 课题研究意义 1
1.3 国外研究现状 2
1.4 国内研究现状 3
1.5 本文主要内容 5
第2章 单片机控制的各个模块 6
2.1 小车的总体介绍 6
2.2 小车本体设计 6
2.2.1 中央处理单元简介 6
2.2.2 单片机控制的电源模块 8
2.2.3 单片机控制的驱动模块 8
2.2.4 单片机控制的循迹模块 9
2.2.5 机械手的控制 11
2.3 两个单片机间的协调控制 13
2.3.1 单片机通信基础 13
2.3.2 单向并行通信接口的实现 15
2.3.3 主从并行通信接口的实现 15
2.3.4 无主从双向并行通信接口的实现 17
第3章 软硬件的开发环境