资源描述:
《基于单片机的双向防盗器设计》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、双向防盗器设计【摘要】随着人们生活水平的提高,汽车已逐步进入家庭,对汽车防盗的要求越来越高,并且无线技术的不断发展,使得防盗系统的设计更加灵活、安全、方便、可靠。本文主要介绍基于LPC930单片机和TDA5255无线收发模块设计的双向汽车防盗系统,分遥控器和主机设计两部分。遥控器和主机进行半双工的通信,遥控器控制主机的状态,包括设防、解除、寻车、开尾门等,还具有与主机同步报警的功能;主机能够检测多个触发源自动报警并且同步通知遥控器,能根据遥控器的设定执行相应的功能,还具有自动上下锁、中控锁自动化、自动恢复、紧急解除等功能。自定义无线通信协议,协
2、议数据采用PWM编码,使用FSK调制和解调方式。软件实现采用C语言编程和Keil编译环境。【关键词】LPC930、TDA5255、PWM、FSK调制和解调【Abstract】Withtheimprovementofpeople’slivingstandard,privatecarshavegraduallysteppedintomoreandmorecommonfamilies,andasaresult,peoplehavebeenmoreandmoreconcernedwitheffectivevehicleguarding-against-
3、theftsystems;andatthesametime,withthecontinuousdevelopmentofwirelesstechnology,thiskindofsystemshavebecomemuchmoreflexible,convenient,reliableandsafer.Thisarticleintroducesadesignofabi-directionalvehicleguarding-against-theftsystem,whichisbaseduponMCULPC930andradiotransmissi
4、onandreceptionmoduleTDA5255,andthedesignismadeupoftwomainparts:theremotecontrollerandthemainframe.Thecommunicationbetweentheremotecontrollerandthemainframeisbymeansofhalf-duplexdatatransmission,andthestatesofthemainframecontrolledbythecontrollerincludesettingupandreleasefrom
5、defense,seekingcars,openingthebackdoorofcarsanditalsocangiveanalarmsimultaneouswiththemainframe;andthemainframecandetectcouplesoftriggeredsources,giveanalarmandinformthecontrollersimultaneously,andalso,itcancarryoutcorrespondingactionssetbythecontroller;besides,itcanautomati
6、callylockandunlock,reverttotheoriginalstate,central-controllinglockandreleasefromdefensewheninemergency.ThesystemhasaPWM-codingbasedself-definingcommunicationprotocol,anditusesFSKmodulationanddemodulation.TheprogrammingisbasedonprogramminglanguageCwithKeilasthecompilerenviro
7、nment.【Keywords】LPC930、TDA5255、PWM、FSKModulateandDemodulate目录第1章引言6第2章防盗器系统要求82.1防盗器主机指标要求82.1.1主机基本要求82.1.2主机扩展功能要求102.2遥控器指标要求102.2.1遥控器基本要求10第3章系统方案选择133.1核心控件—MCU133.2无线通信模块143.3通信协议143.3.1PWM编码格式153.3.2字节的发送格式173.3.3数据帧格式173.3.4帧的发送接收时间计算19第4章无线通信模块设计204.1TDA5255芯片介绍204
8、.1.1总体描述204.1.2功能模块介绍214.1.3FSK调制234.1.4FSK解调234.1.5节电控制254.1.6信号检测和低电压检测25