基于STM32的智能安防系统的设计学生专业:电子信息科学与技术学生姓名:王正辉指导教师:康辉I摘要随着社会的发展,人们的生活质量越来越高,家用电器和厨房设施也随之增多,家庭存在的安全隐患相应增加,同时整个社会正处于转型期,家庭的安全问题也引起了人们的关注。传统的安全防范措施已无法适应现代化社会的需求。因此,将智能化引入住宅小区已成为一种趋势,并且在智能化住宅的家庭智能管理系统中,安防报警已经成为民用建筑领域,向信息化和网络化发展的一个重要组成部分。基于将最新的通信技术融合到传统产业中的考虑,本文综合了单片机、无线数据通信、数据采集等技术,研究并设计了以STM32单片机基于GSM短信模块作为信息传输的家庭安防系统。此系统由主控制器、显示模块、信息传输模块和防盗模块,防火模块,声光报警模块等组成,可解决传统安防系统存在的隐患,让家庭防盗更及时、使用更方便。它不再依赖有线电话执行报警,而是借助最可靠、最成熟的GSM移动网络,以最直观的中文短消息形式,直接把报警情况反映到用户的手机屏幕上,并发出声音报警,可以防范一定的险情,用户可以通过无线遥控对该系统进行布防和解防。该系统具有用户投资小,运营费用少的优点,并且操作简单。关键词安防系统;防火;STM32;GSMIIAbstractWiththedevelopmentofthesociety,ThequalityofpeoplelifebecomemoreAndmoregood,Accordingly,ThenumberofhouseholdelectricalappliancesAndkitchenfacilitiesalsobecomemore,Sothesafehiddentroubleinsecurityfamilyisincreasing,atthesametimethewholesocietyisintransitionperiod,thefamilysecurityproblemhascausedtheattentionofpeople.Traditionalsecuritymeasureshavebeenunabletomeettheneedsofmodernsociety.Therefore,ithasbecomeatrendtotheintroductionoftheintelligentresidentialdistrict,AndSecurityalarmhasbecomeanimportantpartofthefieldandcivilconstruction,theinformationAndnetworkdevelopment.Inconsiderationofbasedonthelatestcommunicationstechnologyintegratedintotraditionalindustries,thisarticlecombinationtheknowledgeofthemicro-controller,wirelessdatacommunication,dataacquisitiontechnology.Thenresearchanddesignthehomesecuritysystem,basedonGSMmoduleastheinformationtransmissionandSTM32micro-controller.Thissystemconsistsofmaincontroller,displaymodule,informationtransmissionmoduleandalarmmodule,fireprotectionmodule,soundalarmmodule.Thesecuritysystemcansolvethehiddendangerexistedinthetraditionalsecuritysystem,makethefamilysecuritymorequickly,moreconveniently.Itisnolongerdependonthecabletelephone,butwiththehelpofthemostreliableandmostmatureGSMmobilenetwork,usethemostintuitiveformofChinesemessage,thealarmsituationreflectstotheuser.Thissystemcanpreventsomedangeroussituations;userscancontrolthesystemforprotectionorreconciliationbythewirelessremote.Thesystemhasadvantagesthattheuserhasasmallcostandoperatingexpenses.KeywordsSecuritysystem;Fireprevention;STM32;GSMIII目录摘要..........................................................................................................................IAbstract..................................................................................................................II第1章绪论...........................................................................................................11.1课题背景和意义..........................................................................................11.2国内发展现状..............................................................................................11.3智能安防系统的发展前景..........................................................................3第2章系统方案设计...........................................................................................42.1设计任务与要求..........................................................................................42.2方案的比较..................................................................................................42.3系统总体设计思路......................................................................................62.4本章小结......................................................................................................7第3章系统硬件设计...........................................................................................83.1主控模块的设计..........................................................................................83.1.1STM32最小系统...................................................................................83.1.2SD卡电路的设计................................................................................103.1.3字库Flash接口电路..........................................................................113.2防火监控的设计........................................................................................113.2.1烟雾传感器的电路设计.....................................................................123.2.2天然气体浓度监测的电路设计.........................................................123.2.3电流传感器的工作原理和电路设计.................................................133.2.4火焰传感器的电路设计.....................................................................143.3防盗监控的设计........................................................................................153.4环境监控模块............................................................................................163.4.1温湿度传感器的电路设计.................................................................163.4.2CO传感器的工作原理和电路设计....................................................173.5报警模块的设计........................................................................................183.5.1声音报警.............................................................................................183.5.2GSM模块短信报警............................................................................19IV3.6人机交互显示模块的设计........................................................................223.7电源模块...................................................................