自动往返电动小汽车(附源代码).docxVIP

  • 62
  • 0
  • 约1.67万字
  • 约 70页
  • 2020-04-02 发布于江西
  • 举报
《自动往返电动小汽车》论文 学校: 华侨大学 学院: 信息科学与工程学院 组别:  自控 06 组 组员:  *** ** *** 1 目  录 摘要.............................................................................................3 第一章 总体设计方案……………………………………...…4 1.1 系统方案选 择………………………………………………….4 车体的选择……………………………………………………….4 方向控制的选择…………………………………………………...4 路程测量方案的选择……………………………………..……….5 1.2、总体方案框图……………………………………………….5 第二章 硬件设计……………………………………………...5 2.1 黑线识别探测器……………………………………………...5 2.2、直流电机驱动电路.................................................................6 2.3 测速模块………………………………………………………6 第三章 软件设计……………………………………………...7 3.1 小车车体调整的程序设计……………………………………7 3.2 寻黑线的程序设 计…………………………………………….7 3.3 系统整体流程图……………………………………………...8 第四章 系统测试……………………………………………...9 4.1.测试方法:……………………………………………………9 第五章 总结与体会…………………………………………...9 2 摘要 单片机技术已经十分普及,在实时检测和自动控制的单片机应用 系统中,单片机往往是作为核心部件来使用。 我们本次设计的自动往返电动小汽车,是以 STC89C52 单片机为 控制核心,辅以传感器、控制电路、显示电路等外围器件,构成了 一个车载控制系统。电动小汽车能够根据题目要求在规定的轨道上 完成调速、停车、调头返回等运动形式;这辆小车还可以自动记录、 显示一次往返时间、行驶距离及检测到的黑线条数,当检测到黑线 时蜂鸣器发出报警,并用 PWM 脉宽调制技术实现降速的功能。 关键字:自动往返 STC89C52 单片机 PWM 脉宽调制 Abstract SCM technology has become very popular, in real-time detection and automatic control of the SCM application system, the microcontroller is often as a core component to use. We present the design of the automatic motor-driven car, is STC89C52 SCM as the control core, supplemented by the sensor, the control circuit, display circuit and other peripheral devices, consisting of a vehicle control system. Electric cars will according to the requirement of the question in terms of the orbit speed, stop, turn round and go back to complete the form of motion; the car can 3 automatically record, display a round trip time, distance and the detected line number, when the detected line buzzer alarm, and use PWM technology to realize speed reduction function. 第一章 总体设计方案 1.1 系统方案选择: 1. 车体的选择 方案一: 用玩具车改造。成本较低,且省去很多制作上的麻烦,但是由于其是已经 设计好的产品,扩展性差,许多方面很难达到我们需要的要求。 方案二: 自己做车体。这样可以制作出完全符合我们要求的小车车体,各部分可以 进行专门的设计,但是制作方面费时费力,在整个题目中将占据较多的时间和 精力,成本较高。 综上考虑,采用方案二,由于这只是练习,我们有多余的时间来自己设计一

文档评论(0)

1亿VIP精品文档

相关文档