基于单片机的水位检测控制系统设计学院:专业:姓名:指导老师:信息学院自动化刘翔学号:职称:090104021046盛珣华曹宇教授助理工程师中国·珠海二○一三年五月北京理工大学珠海学院2013届本科生毕业设计诚信承诺书本人郑重承诺:本人承诺呈交的毕业设计《基于单片机的水位检测控制系统设计》是在指导教师的指导下,独立开展研究取得的成果,文中引用他人的观点和材料,均在文后按顺序列出其参考文献,设计使用的数据真实可靠。本人签名:日期:年月日北京理工大学珠海学院2013届本科生毕业设计基于单片机的水位检测控制系统设计摘要随着社会和科技的进步,以及人们的生活标准水平逐步的提高与发展,方便的全自动控制系统生活的开始逐步进入到我们的生活,单芯片微型计算机发展是其中的一个重要分支,具有高可靠性,高性能价格比,低电压,低功耗等优点,以单片机为核心的自动化控制系统已经赢得了广泛的应用范围。本设计是基于单片机的水位检测控制系统设计。设计系统的目的在于应用单片机的自动运行技术,使得水塔中的水位始终保持在一定范围内,以保证连续正常的供水。本设计是以AT89C51单片机为核心部件的水塔水位检测控制仿真系统设计的,用以检测水位并进行控制、处理以及报警功能,并在Proteus仿真软件环境中仿真测试。结果表明,设计的系统具有良好的检测和控制功能,方便移植性和可扩展性。关键词:水位控制单片机报警北京理工大学珠海学院2013届本科生毕业设计BasedSCMthewaterleveldetectioncontrolsystemdesignAbstracWiththesocialandtechnologicalprogress,aswellasthelevelofpeople'sstandardoflivinggraduallyimprovewiththeexhibition,andtheconvenienceofautomaticcontrolsystemforthebeginningoflifegraduallyintoourlives,single-chipmicrocomputerdevelopmentisanimportantbranch,theadvantagesofhighreliability,highperformanceandlowcost,low-voltage,low-powermicrocontrollerasthecoreoftheautomationcontrolsystemhaswonawiderangeofapplications.Thetitleofthegraduatedesignmicrocontroller-basedwaterleveldetectionandcontrolsystemdesign,threemetalrodsintothewaterusedtodetectthesignal,theconductivityofthewater,canseethatthewaterlevelchanges.Undernormalcircumstances,thewaterlevelshouldbekeptwithinacertainrangechanges,thewaterleveldoesnotexceedthestipulatedupperandlowerlimits,intheeventofasystemfailure,shouldbepromptlycutoffelectricalpower,andthereshouldbesoundandaudiblealarmsignalsofthelight-emittingdiode.DesignSystemaimedtheapplicationmicrocontrollerrunautomatically,sothatthewaterlevelinthewatertoweralwaysmaintainedwithinacertainrangeinordertoensurethecontinuousnormalwater.ThedesignisbasedonAT89C51microcontrollerasthecorecomponentsofthewatertowerwaterleveldetectionandcontrolsimulationsystemdesignedtodetectwaterlevelcontrol,processing,andalarmfunctions,andProteussimulationsoftwareenvironmentsimulationtesting.Experimentalresultsshowthatthedesignofthesystemhasagooddetectionandcontrolfunctions,portabilityandscalability.Keywords:Levelcontrolmicrocontrolleralarm北京理工大学珠海学院2013届本科生毕业设计目录1前言....................................................................................................................................11.1.本设计在国内发展概况.........................................................................................11.2国外发展概况.........................................................................................................11.3设计目的.................................................................................................................21.4设计意义.................................................................................................................22总设计................................................................................................................................22.1设计的技术要求.....................................................................................................22.2应解决的主要问题.................................................................................................32.3设计原理.................................................................................................................32.4方案选择.................................................................................................................32.5给定参数.................................................................................................................52.6整体方案设计.........................................................................................................52.7优点和特色.............................................................................................................62.8创新点.....................................................................................................................72.9系统运行过程可能存在的问题.............................................................................72.9.1现场数据经过DTU发送后在远程监控室接收不到................................73硬件介绍............................................................................................................................73.1光电耦合器4N25...................................................................................................73.1.1工作原理......................................................................................................73.1.2主要性能......................................................................................................83.1.3引脚图和引脚名称......................................................................................83.1.4极限参数......................................................................................................83.2单片机芯片STC90C516RD+................................................................................93.2.1芯片简介绍..................................................................................................93.2.2芯片STC90C516RD+引脚.........................................................................93.2.3主要性能.....................................................