
基于单片机的红外避障小车毕业设计论文.doc
43页毕业设计(论文)题题 目目: : 基于单片机的红外避障小车 学学 院院: : 浦江学院 专专 业业: : 电子信息工程 2013 年 06 月I摘要 随着科学技术的进步,智能化和自动化技术越来越普及,各种高科技技术也广泛应用于智能小车河机器人玩具制造领域,使智能机器人越来越多样化智能小车是一个多种高新技术的集成体,融合了机械,计算机硬件,软件,电子,人工智能等多种科学技术的知识,可以涉及到当今许多前言领域的技术本设计主要由单片机控制系统模块、电机驱动模块、红外避障模块、声控模块组成,系统以 STC89C52RC 单片机为核心,通过避障模块和声控模块接受到的信息来控制电机运行系统通过7节1.5V 干电池通过降压电路降成5V 稳定直流电对单片机和发动机进行供电本文介绍了红外避障的原理、系统整体设计及相关软件的介绍软件部分采用模块化设计思路,整个程序包括主程序,电机驱动程序,信号检测程序,通过小车运行时检测到的运行信息来调用左转、直行或停止函数来控制小车。
测试结果表明,本文的各项功能基本正常,除发动机转速不匹配外能实现本设计的所有要求关键字:STC89C52RC 小车 避障 单片机IIAbstract With the progress of science and technology, intelligent and automation technology is more and more popular,High-tech technology is also widely used in intelligent car river robot toy manufacturing, intelligent robot is more and more diversified. Intelligent car is a variety of high and new technology integration, integration of mechanical, computer hardware, software, electronics, artificial intelligence and so on the many kinds of knowledge, science and technology can be involved in many of today's introduction in the field of technology.This design is mainly composed of single-chip microcomputer control system module, motor drive module, the infrared obstacle avoidance module, voice control module, system with STC89C52RC single-chip microcomputer as the core, through the obstacle avoidance module and voice control module receives information to control the motor running. System by 7 1.5 V dry cell by step-down circuit down into a stable dc 5 V for single chip microcomputer and engine power. This paper introduces the principle of infrared obstacle avoidance, the introduction of overall system design and related software. Software part adopts the modular design thinking, the process includes the main program, motor driver, signal detection procedures, through the car runs the operation of the detected information call to turn left, go straight, or stop function to control the car.Test results show that the various functions of the basic normal, in addition to the engine speed does not match to achieve all the requirements of the design.Key words: obstacle avoidance SCM STC89C52RC carsIIIIV目录摘要 ........................................................................IAbstract ...................................................................II第一章 绪论................................................................................................................11.1 课题背景............................................................................................................................11.2 课题研究的目的和意义.....................................................................................................11.3 本设计的内容及结构.........................................................................................................21.3.1 本设计的内容............................................................................................................21.3.1 本设计的结构............................................................................................................2第二章 系统硬件选择..................................................................................................12.1 车体结构............................................................................................................................12.2 红外避障传感器原则.........................................................................................................22.3 STC89C52 单片机介绍......................................................................................................2第三章 系统硬件设计..................................................................................................13.1 系统设计框图....................................................................................................................13.2 系统电路设计.....................................................................................................................23.3 供电电路............................................................................................................................23.4 声音检测电路....................................................................................................................23.5 红外避障基本原理............................................................................................................23.6 电机驱动电路....................................................................................................................23.7 单片机最小系统................................................................................................................2第四章 程序设计.........................................................................................................14.1 软件调试平台....................................................................................................................14.2 程序逻辑流程图.................................................................................................................24.3 系统软件程序..........................................................。












