欢迎来到天天文库
浏览记录
ID:55569281
大小:1.22 MB
页数:44页
时间:2020-05-18
《基于单片机C51智能车.doc》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、摘要本设计采用AT89S52单片机作为核心控制器和数据处理中心。为了简化电路,减少小车负担,用软件编程发给伺服电机的高、低电平信号,来控制电机的转向、转速。设计分为五个模块:单片机最小系统、电机驱动电源、伺服电机驱动电路、胡须导航、红外线导航。来实现小车走个“日”字、胡须避障和红外线避障功能。整个系统的电路结构简单、可靠性能高,为工厂的智能控制化做好铺垫。关键字:单片机,智能车,避障,伺服电机AbstractThisdesignusesAT89S52microcontrollerasthecorecontroller,andasthe
2、dataprocessingcenter.Tosimplifythecircuit,reducingtheburdenofthecar,thesoftwareprogramdistributedbythehighservomotor,low-levelsignalstocontrolthesteeringmotor,rotationalspeed.Designisdividedintofivemodules:SCMminimumsystem,motordrivepowersupply,servomotordrivecircuit,be
3、ardnavigation,infrarednavigation.Cartogotoachievea"Day",whichbeardobstacleavoidanceandinfraredobstacleavoidancecapabilities.Simplecircuitstructureofthesystemreliabilitycanbehigh,theintelligentcontrolofthefactorypavetheway.Keywords:Microcontroller,smartcars,obstacleavoid
4、ance,servomotor目录1绪论--------------------------------------------------------------------------------------12硬件设计------------------------------------------------------------------------12.1总体设计方案--------------------------------------------------12.2电源模块------------------
5、------------------------------------22.3伺服电机驱动模块----------------------------------------------22.4胡须导航模块--------------------------------------------------42.5红外线导航模块------------------------------------------------62.6单片机最小系统设计--------------------------------------------
6、83软件设计-----------------------------------------------------------------------143.1程序流程图--------------------------------------------------------------------------------------------------143.2安装软件----------------------------------------------------------------------------
7、------------------------163.3编制Uart.h头文件---------------------------------------------------------------------------------------203.4编制胡须避障程序----------------------------------------------------------------------------------------263.5编制红外线避障程序----------------------------
8、---------------------------------------------------------303.6智能车走“日”字程序--------------------------------------
此文档下载收益归作者所有