您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 其它相关文档 > 基于单片机的智能水塔水位控制系统设计
*袁新娣(, 341000) :为了克服传统的浮子系统控制水塔水位的不足,本论文设计了一种实时无线水位智能监测系统,该系统以AT89S52单片机为核心,通过安装在水塔上的超声波传感器测量出水位后,单片机与设定的水位上下限进行比较决定是否接通或断开抽水机电路,同时该单片机通过无线发射器把数据发至中控室的单片机以显示水塔水位.论文从硬件设计与软件设计两方面进行了阐述.实践表明:该系统简单可靠,实用性较强.:水位;单片机;超声波传感器;无线发射器:TP212.11 :A :1004-8332(2010)06-0052-031 ,,,,.,,,,,.,,,,,,,,,“”,;,.,.2 2.1 系统框图图1 系统总体框图1.,,.1(a),(b).(a),NRF24L01(b)NRF24L01.LCD1602.,125,,,.2.2 系统主要模块硬件设计2.2.1 单片机控制器的介绍,,,.AtmelAT89S52,、CMOS8,,80C51.AT89S52:8kFlash,2010 №.6 JournalofGannanNormalUniversity Dec.2010*:2010-09-15 :2010-10-19 :(1974-),,,,.256RAM,32I/O(P0,P1,P2,P3),,2,16/,62,,,[1].2.2.2 超声波收发器模块的设计.,,[2].2,P2.440KHZ,,74LS4069T,T,.R1R2:;T,.3,RCX20106A,CX20106A38KHZ,40KHZ,,.,CX20106A,,.图2 超声波发射电路 图3 超声波接收电路 图4 nRf24l01与AT89S52连接电路,P2.440KHZT,,R,P3.2,X,H(),h=H-X.2.2.3 NRF24L01无线发送器与无线接收模块设计,,,,.NRF24L01,2.4~2.5GHz、ISM,、、,,[3].NRF24L01,SPI,SPII/O,AT89S52SPINRF24L01.NRF24L014,3.3V.2.2.4 抽水机模块设计,P1.5P1.6,.5.图5 抽水机控制电路,,,,,.SW2,,,SW1,.SW2,,,,536 ,SW1.2.2.5 测量范围设置模块及显示模块的设计,,,P1.0~P1.3,,. 图6 系统软件主流程图LCD1602,LCD1602(CGROM)160,:、、、.,.LCD1602LCD1602,,P0.0~P0.716027~14,P2.5~P2.716024~5,5.3 C,,;,6.P2.48,T0.0,(INT0),.,T0,1,;,;,90%,,10%,,10%90%,.30MS,,,,.,.()4 ,,“”“”.,,,,.:[1] ,,.ATMELAT89S52[M].:,2006.[2] ,.[J].,2006(7):131-132.[3] ,,.nRF24L01[J].,2007,23(3):38-40.DesignaboutWaterTower'sWaterLevelControlSystemBasedonSingle-chipComputerYUANXin-di(SchoolofPhysicsandElectronicalInformation,Gannannormaluniversity,Ganzhou341000,China)Abstract:Inordertoovercometheshortcomingofthetraditionalwatertower'swaterlevelcontrolsystem,anintelligentandreal-timewaterlevelcontrolsystemisintroducedinthispaper.Thissystemismanagedbytwosingle-chipcomputersAT89S52.Aftertheultrasonicsensormeasuresthewaterlevel,theAT89S52analyzesthedataanddeterminestheworkingstateofthepumpbasedonthesetwaterlevel.Atthesametime,thedataaboutwaterlevelistransmittedthroughwirelesstransmittertoanotherAT89S52anddis-playsinthecontrolroom.Thehardwareandsoftwareaboutthecontrolsystemaredescribedinthepaper.Experimentshowedthatthesystemissimpleandreliable.Keywords:waterlevel,single-chipcomputer,ultrasonicsensors,wirelesstransmitter54 2010
本文标题:基于单片机的智能水塔水位控制系统设计
链接地址:https://www.777doc.com/doc-5522277 .html