循迹小车课程设计报告(共19页).doc





《循迹小车课程设计报告(共19页).doc》由会员分享,可在线阅读,更多相关《循迹小车课程设计报告(共19页).doc(19页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上 南京工程学院 工程基础实验与训练中心 本科课程设计说明书(论文)题 目: 自动循迹小车 专 业: 班 级: 学 号: 学生姓名: 指导教师: 起迄日期: 2012.6.112012.7.6 设计地点: 工程中心 B208 专心-专注-专业 目录 课程设计说明书(论文)中文摘要摘要:硬件设计:自动循迹小车控制器采用STC89C52单片机,采用LCD1602液晶显示屏显示当前小车速度和里程等数据;电机正反转采用L298N集成电路模块来驱动,也可以直接采用三极管组成桥式驱动电路来控制。里程检测传感器采用霍尔传感器或光电发射接收对管。跑道标志线采用光电发射接收对管检测并使用
2、软件整形消抖措施,电源采用4节7号充电电池供电(在条件允许情况下单片机与电机可使用独立稳压电源供电)。软件设计:主程序主要任务一方面扫描光电发射接收对管检测到的信号,然后判断小车转向;另一方面主程序还需要完成速度里程显示任务。采用外部中断0来实现小车速度检测,通过光电接收对管或霍尔传感器检测小车转速,小车每转动一周将会使传感器发出一中断申请信号;采用外部中断1来实现金属块检测,传感器选用接近开关,检测到金属后,接近开关将申请中断。关键词:单片机 液晶显示 桥式驱动电路 主程序课程设计说明书(论文)英文摘要Title Automatic follow trace the car Abstract
3、Hardware design: automatic followed by single chip microcomputer controller STC89C52 tracing the car, the LCD1602 LCD display the current vehicle speed and mileage etc data; Motor and reversing the L298N integrated circuit module to drive, also can use of transistor bridge type drive circuit to cont
4、rol. Mileage detection sensor with a hall sensors or photoelectric launch to the reception. The runway mark line adopts photoelectric launch to the detection and use receive software plastic away shaking measures, power adopt section 4 7 recharging the battery power supply (in conditions allow cases
5、 microcontroller and motor can be use independent power supply voltage).The software design: the main program main task on one hand scanning to the test launch photoelectric receive the signal, and then judge the car turned to; On the other hand the main program also completed speed mileage display
6、task. The external interruption 0 to achieve vehicle speed detection, through the photoelectric tube or to receive hall-effect sensor detection car speed, the car every week will turn out a break for sensor signal; The external interruption to realize the metal piece of detection 1, sensor choose cl
7、ose to switch, detect metal, close to the switch will request a break.Keywords Single-chip microcomputer Liquid crystal display Bridge type driving circuit The main program 一、系统方案1、课设要求:1.1、完成基本设计功能 : 1)、车辆从起跑线出发开始计时(出发前,车体不得超出起跑线),能到达终点线并且停止在终点线。全程行驶时间应力求最短(从合上小车电源开关开始计时)。 2)、到达终点线小车停止后,停车位置离终点线偏差应
8、最小(以小车中心点与终点线之间距离作为偏差的测量值)。 3)、在行驶过程中小车检测到加速线后开始加速并发出声光报警信号,检测到减速线后开始减速并发出声光报警信号。1.2、发挥部分 1)、从起跑线开始计时,自动记录、时时显示全程行驶时间(记录显示装置要求安装在小车上),误差尽可能小。 2)、从起跑线开始,自动记录、时时显示行驶距离X3(记录显示装置要求安装在车上),误差尽可能小。 3)、从起跑线开始,自动记录、显示加速线1、减速线2离起跑线的距离X1,X2,误差尽可能小。 4)、其它特色与创新。2、总体设计对设计要求就行分析,设计主要有以下几个模块组成:1)、信息采集模块:信息采集部分是光电检测
9、,光电检测有寻迹检测和测速检测两个部分。将检测到的信号送给单片机处理,其核心部分是几个光电传感器。2)、控制处理模块:控制处理模块是一一片stc89c52单片机为核心,单片机将从采集到的信息进行判断后,按照预定的算法处理,把处理的结果送交电机驱动和液晶显示模块,使之做出相应的动作。3)、执行模块:执行模块是由液晶显示、电机驱动及电机、蜂鸣器三部分组成。液晶主要是将单片机处理的结果进行实时显示,方便及时用户了解系统当前的状态,电机驱动根据单片机的指令对两个电机进行动作,使之能够根据需要作出相应的加速、减速、转弯、停车等的动作,以达到预期的目的。蜂鸣器主要是根据要求在特定的位置作出出响应来报告位置
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 小车 课程设计 报告 19

限制150内