1、 目目 录录 目 录 I 智能寻迹小车设计与实现 . I Smart Car Design and Implementation of Tracting . II 第 1 章 绪 论 1 第 2 章 系统的硬件及设计原理 3 2.1 STC89C52 单片机 . 3 2.1.1 STC89C52 管脚功能 . 3 2.1.2 复位 8 2.2 光电电路概况 9 2.2.1 防撞 9 2.2.2 寻迹 9 2.3 显示电路 9 2.3.1 数码管 9 2.3.2 发光二极管 . 10 2.4 电机控制电路 . 10 2.4.1 电机的选择方案 . 10 2.5 声控 . 12 2.6 串口通信
2、. 12 第 3 章 系统软件设计 . 13 3.1 总体设计方案和框图 . 13 第 4 章安装调试 21 4.1 焊接 . 21 4.2 调试(常见问题) . 21 第 5 章 总结心得 . 23 智能寻迹小车设计与实现智能寻迹小车设计与实现 摘要摘要本设计是以 STC89C52 为主控核心的简易智能小车系统,实现了小车沿黑 带寻迹,编程跑,光开关跑等功能并对其动作相应显示。驱动电机采用 L9110 直流 电机控制芯片。小车软件设计采用分块编程,每个模块实现一个功能,然后通过按 键控制小车每个状态切换。小车采用按键控制,当接通电源后,小车显示部分会显 示已经准备好了,然后按开关键,进入寻迹
3、过程。寻白线时,外部环境光线的强弱 对小车的运动会产生很大的影响, 基于此原因, 本实验中的寻迹是指在白色地板上 寻黑线。寻迹是指通过红外发射管和接收管识别路径。 关键词关键词 STC89C52 直流电机 黑带寻迹 智能寻迹小车 红外发射管 Smart Car Design and Implementation of Tracting AbstractAbstract :This design is the core of STC89C52 as the controller simple intelligent car system, realize the car along the bl
4、ack belt tracing, programming run, light switch function such as run and the corresponding action shows. The motor drive L9110 dc motor control chip. The car software design using block programming, each module implements a function, and then through the button control car every state switch. The co
5、ntrol car keys, when switching power supply, the car shows partial will display is ready, and then press enter a key, tracing process. Find the white line, and the external environment of the strength of the light car will produce significant, based on the reason for this, the experiments of tracing
6、 is to point to in white floor found the black line. Tracing is through the infrared tubes and receive the recognition path. KeyKeyw wordords s :STC89C52 Dc motor Black belt tracing Intelligent tracing the car Infrared tubes 共 26 页 第 1 页 第第 1 章章 绪绪 论论 单片机益智系列智能寻迹机器人是由益芯科技有限公司为科教方便而研 发设计。 根据现代学校对嵌入式系统开发的需求。 依据提高学生实际动手操作能力 和思考能力, 以加强学生对现实生活中嵌入式系统的应用为参照。 智能寻迹机器人 全新的设计模式,良好的电路设计,一体化的机电组合,智趣的系统开发,更是成 为加强学生学习兴趣的总动源。 EXKJ-ZN02 功能的组合多样,使得学生可以充分发挥自主能力,制作出不同 的机器人。 它为学校进