基于51单片机的遥控汽车设计
基于51单片机的遥控汽车设计 学号 专业名称电子信息工程年级班别 XXXXXX姓 名XXX指导 教师XXXXXXX 2013年5月 河南师范大学新联学院本科毕业论文 摘 要遥控小汽车按照人们对其需求的不同,设计的方案也不同。 有的需要近距离遥控,比如十米以内的儿童玩具,其要求结构简单、易于 控制、外观显示信息丰富,价格适宜;有的则需要远距离控制,语音识别、 避障、轨迹检测等,比如让遥控小汽车成为取代人的自动化劳动工具,让 它从事一些需要劳动力大、威胁性大的工作,如从事考古、机器人、医疗 器械等方面的工作,为人门带来很大的方便。而本设计是将遥控小汽车用 于儿童玩具。 本设计以AT89C51单片机为核心,采用芯片L298N控制两个直流永磁 式电动机运转,两个直流永磁式电动机为别用为后轮驱动和前轮转向,用 红外遥控芯片HT6221和红外一体化接收头1838控制遥控小汽车的前进、 后退、左转弯、右转弯、停止、自动等功能。而且采用4位LED8段数码 显示管显示遥控小汽车的运行时间,采用发光LED显示管的不同颜色显示 遥控小汽车前进、停止、左转弯、右转弯。这样就使得遥控小汽车的遥控 范围在十米左右,而且结构简单,易于操作,价格适宜,更重要的是前进、 停止、左转弯、右转弯指示灯的显示颜色丰富,尤其在夜晚显示时很漂亮, 能增加儿童和家长对此款遥控小汽车的喜爱和乐趣。 关键词红外遥控;单片机;小汽车 I 河南师范大学新联学院本科毕业论文 Based on 51 single chip microcomputer remote control car design Abstrct Remote control cars according to the people of their different needs, design programs. Some need to close remote, such as toys for children less than ten meter, and its simple structure, easy to control the appearance of the display ination-rich, affordable; others require remote control, voice recognition, obstacle avoidance, trajectory detection, such as remote control cars to replace automation instruments of labor, it engaged in some of the needed labor, threatening, such as in archeology, robotics, medical equipment and other aspects of the work, and his door to bring great convenience. The design is the remote control cars for children39;s toys. Designed to AT89C51 microcontroller chip L298N to control two DC permanent magnet motor running, two DC permanent magnet motors do not use rear-wheel drive and front wheel steering, using the infrared remote control chip HT6221, and infrared integration receiver received the first 1838 control of a remote control car forward, backward, turn left, turn right, stop, auto and other functions. And 4 LED8 segment digital display tubes display remote control cars running time, using different colors of light-emitting LED display tube remote control car forward, stop, turn left, turn right. This makes the remote control car remote control range of ten meters, and a simple structure, easy to operate, affordable and, more importantly, forward, stop, left turn, right turn indicator light to display color, especially in the night show beautiful children and parents to increase the love and fun remote control cars of this section. Keywords Infrared remote control; SCM; Cars II 河南师范大学新联学院木科毕业论文 目录 摘要I 1前言1 1.1课题背景 1 1.2设计方案1 13技术关键2 1.4木章小结2 2系统总体设计3 2.1系统实现功能和技术要求3 2.2系统原理框图3 2.1.1微处理器模块设计的比较3 2.2.2电源模块设计的比较4 2.2.3遥控模块设计的比较4 2.2.4键盘模块的比较4 2.2.5显示模块设计的比较5 2.2.6电机驱动模块设计的比较5 2.3木章小结6 3系统硬件设计7 3.1红外遥控模块的设计7 3.1.1红外发射模块7 3.1.2红外接收模块10 3.2 显示模块11 3.2.1时间显示 11 3.3微处理器的选择16 3.4 电机驱动模块16 3.5 电源模块18 3.6 本章小结20 4系统流程图21 4.1主流程图,解码流程图,显示流程图 21 4.2 本章小结21 结论23 参考文献24 致谢30 III 河南师范大学新联学院本科毕业论文 』1 1刖 1.1课题背景 随着汽车工业的迅速发展,关与汽车的研究也就越来越受人关注。全 国电子大赛和省内电子大赛儿乎每次都有遥控小汽车这方面的题目,全国 各高校也都很重视该题目的研究。而且遥控小汽车在儿童玩具中应用多种 多样,备受儿童,家长青睐。本设计就是在这样的背景下提出的,同时遥