成都理工大学工程技术学院毕业论文基于单片机的汽车防盗报警系统设计作者姓名:何超专业名称:电子信息科学与技术指导教师:李兰英讲师基于单片机的汽车防盗报警系统设计I摘要人们生活水平不断提高,对私有财产的保护意识在不断的增强,因而对防盗措施提出了新的要求。本设计就是为了满足预防盗窃等意外事件的需要而设计的汽车防盗报警系统。目前市面上主要有压力触发式防盗报警器、开关电子防盗报警器和压力遮光触发式防盗报警器等各种报警器,但这几种比较常见的报警器都存在一些缺点。本系统采用了热释电红外传感器,它的制作简单、成本低,安装比较方便,而且防盗性能比较稳定,抗干扰能力强、灵敏度高、安全可靠。这种防盗器安装隐蔽,不易被盗贼发现。同时它的信号经过单片机系统处理后方便和PC机通信,便于多用户统一管理。本设计主要包括硬件和软件设计两个部分。硬件部分包括单片机控制电路、红外探头电路、驱动执行报警电路、LED控制电路等部分组成。处理器采用52系列单片机AT89C52。整个系统是在系统软件控制下工作的。软件部分可以划分为以下几个模块:数据采集、键盘控制、报警和显示等子函数。关键词:单片机红外传感器数据采集报警电路基于单片机的汽车防盗报警系统设计IIAbstractWiththepeople'slivingstandardcontinuouslyimproved,theawarenessoftheprotectionofprivatepropertycontinuouslyenhanced,andthusthesecuritymeasuresputforwardnewdemands.Thispaperisdesignedinordertomeettheneedsofthepreventionoftheft,accidentsandvehicleanti-theftalarmsystem.Currentlyonthemarketpressuretriggertheburglaralarmswitchelectronicanti-theftalarmandpressureshadingtriggerburglaralarm,suchasavarietyofalarm,butthatseveralofthemorecommonalarmtherearesomedrawbacks.Thesystemusesapyroelectricinfraredsensor,theproductionofsimple,lowcost,moreconvenienttoinstall,andanti-theftperformanceisrelativelystable,stronginterferencecapability,highsensitivity,safeandreliable.Thisanti-theftdeviceinstalledhiddenanddifficulttobediscoveredbythieves.It’ssignalthroughaconvenienttreatmentoftheSCMsystemandPCcommunications,tofacilitatetheunifiedmanagementofthemulti-user.Thedesignincludestwopartsofthehardwareandsoftwaredesign.ThehardwarepartsincludeoftheMCUcontrolcircuit,infraredsensorcircuit,drivetheimplementationofthealarmcircuit,LEDcontrolcircuitcomponents.Theprocessoruses52seriesmicrocontrollertheAT89C52.Theentiresystemisunderthecontrolofthesystemsoftware.Thesoftwarepartcanbedividedintothefollowingmodules:datacollection,keyboardcontrol,alarmanddisplaysubroutines.Keywords:microcontroller,infraredsensors,dataacquisition,alarmcircuit.基于单片机的汽车防盗报警系统设计III目录摘要................................................................................................................IAbstract.......................................................................................................II目录..............................................................................................................III前言................................................................................................................11概述............................................................................................................31.1课题研究背景...................................................................................31.1.1汽车防盗报警系统的研究现状..............................................31.1.2汽车防盗报警系统设计的必要性..........................................41.2设计方案选择....................................................................................51.2.1设计要求..................................................................................51.2.2方案设计论证与选择..............................................................52总体方案设计............................................................................................82.1系统概述...........................................................................................82.2各功能模块的设计...........................................................................92.2.1单片机电路............................................................................102.2.2红外热释电报警传感器电路................................................122.2.3温湿度传感器及检测电路....................................................172.2.4DS1302实时时钟电路...........................................................202.2.5LCD显示电路........................................................................232.2.6EEPROM存储器电路............................................................282.2.7键盘电路................................................................................302.3软件的程序实现..............................................................................312.3.1主程序流程图........................................................................312.3.2主程序见附录1.....................................................................313pcb画图及实物制作...............................................................................32基于单片机的汽车防盗报警系统设计IV3.1制作过程及理论实践概述.............................................................323.2设计原理图.....................................................................................323.3设计PCB图....................................................................................353.4最终实物图.....................................................................................36总结..............................................................................................................37致谢..............................................................................................................39参考文献......................................................................................................40附录1主程序..............................................................................................41基于单片机的汽车防盗报警系统设计1前言随着社会的发展,科学技术的进步和安全防范意识的增强,人们越来越注重自身所处的环境是否安全同时,汽