I单位代码:005分类号:TN延安大学西安创新学院本科毕业论文(设计)题目:基于ZigBee技术的无线遥控小车的设计专业:电子信息工程姓名:张乐学号:0903024145指导教师:马惠铖职称:讲师毕业时间:二零一三年六月II基于zigbee技术的无线遥控小车设计摘要:近年来,无线通信的发展蒸蒸日上,在此过程中也出现了各种无线网络数据传输标准,WirelessUSB、Bluetooth、WIFI、ZigBee等。在当今无线通信领域中,各种无线通信网络各具特色。WirelessUSB主要适用于音频、视频等媒体数据的传输,WIFI主要使用于大量数据的传输,而Zigbee则以其传输距离远、低速率、低功耗、低成本等优良性能使其成为无线通信领域中的一颗耀眼之星。随着电子行业的发展,无线控制、无线数据传输等必将是今后的电子行业的发展趋势,无人驾驶的遥控小车也必将进入一个实用型的阶段。人们可以远程通过PC机及具备嵌入式系统的高速单片机对小车下达控制命令,其可应用于科学勘探、车载智能系统等领域,其价值不言而喻。本设计主要基于AVR(Atmega16)单片机及Zigbee(CC2530)无线通信模块,设计PC机远程无线遥控小车及监控终端,其具备完善的软硬件系统,很好的实现了小车的前后行进,转向以及辅助灯光指示,该设计中,硬件系统电路结构简单、安全可靠、响应速度快;PC机操作界面简洁,数据传输稳定,易于操控。关键词:无线遥控小车;Atmega16;ZigbeeIITheDesignofwirelessremotecontrolcarBasedonzigbeeAbstract:inrecentyears,Wirelesscommunicationdevelopmentprogressesdaybyday,intheprocess,alsoappearedavarietyofWirelessnetworkdatatransmissionstandards,WirelessUSB,Bluetooth,WIFI,ZigBee,etc.Allkindsofwirelesscommunicationnetworkhasmoreperfectwirelessnetworkdatatransmissionstandards.Intoday'swirelesscommunicationdomain,eachofthemhasitsowncharacteristics.WirelessUSBismainlysuitableforaudio,videoandothermediadatatransmission,theWIFIismainlyusedinlargeamountsofdatatransmission,andZigbeeismainlyusedforlongdistance,lowtransmissionrate,lowpowerconsumption,lowcost,etc.Withthedevelopmentoftheelectronicsindustry,thepopularityofintelligentfieldwillbemoreandmorewide,itwillbethefuturetrendofthedevelopmentofelectronicindustry.Unmannedremotecontrolcarwillenterapracticalapplicationfield.PeoplecanremotethroughthePCandembeddedsystemofcarcontrolorders,itcanbeappliedtoscientificexploration,vehicleintelligentsystemsandotherfields,itsvalueisself-evident.ThispapermainlyintroducesthebasedonAVRMCU(Atmega16)andZigbee(CC2530)wirelesscommunicationmoduledesignofthewirelessremotecontrolcar,thedesignisbasedontheactualapplicationandestablished.Hasperfectsoftwareandhardwaresystem,theverygoodimplementation,beforeandafterthecarsteeringandspecificpathautomatically,thewholesystemcircuitissimpleinstructure,safeandreliable,thetestmeettherequirements.Keywords:Wirelessremotecontrolcar;Atmega16;Zigbee.III目录1.引言...............................................................................................................................................................12.方案论证......................................................................................................................................................12.1车体主控单片机的选用...........................................................................................................................12.2电机驱动芯片的选择...............................................................................................................................22.3无线显示终端电路...................................................................................................................................32.4供电模块...................................................................................................................................................33.系统简述......................................................................................................................................................34.本系统核心器件简介..............................................................................................................................44.1ATMEGA16单片机.....................................................................................................................................44.2ZIGBEE模块:CC2530..............................................................................................................................64.3LCD12864显示器.....................................................................................................................................74.4直流减速电机...........................................................................................................................................95.硬件电路设计............................................................................................................................................95.1电源电路...................................................................................................................................................95.2整体电路原理设计..................................................................................................................................106.系统设计思路..........................................................................................................................................116.1上位机程序流程图..................................................................................................................................126.2下位机(小车端)程序流程图.............................................................................................................126.3下位机(12864)程序流程图...............................................................................................................137.调试及性能分析.....................................................................................................................................147.1硬件调试.......