您好,欢迎访问三七文档
xxxxxxxxx2015届本科毕业论文(设计)I摘要自动控制节水灌溉技术的高低代表着农业现代化的发展状况,灌溉系统自动化水平较低是制约我国高效农业发展的主要原因。本文就此问题研究了单片机控制的节水灌溉系统,该系统可对不同土壤的湿度进行检测,并按照作物对土壤湿度的要求进行适时、适量灌水。本作品是以STC12C5A60S2单片机为设计核心,主要由土壤湿度传感器,数据处理电路,显示电路,输出控制电路,故障报警电路等组成,软件选用C语言编程。单片机可将土壤湿度传感器检测到的土壤湿度模拟量转换成数字量,并显示于LCD显示屏上,根据设定值判断,若需灌水,则单片机系统启动鸣音报警,发出灌水信号,开启电磁阀进行灌水。该设计灵活性强,易于操作,可靠性高,具有方便、快捷和经济等特点,可根据土壤湿度及时灌溉。关键词:单片机STC12C5A60S2、节水灌溉、自动控制xxxxxxxxx2015届本科毕业论文(设计)IIAbstractThelevelofauto-controlwater-savingirrigationtechnologyreflectsthedevelopmentconditionofagriculturemodernization.Thelowautomaticlevelofirrigationsystemisthemainreasonthatpreventedouragriculture’sdevelopment.Water-savingirrigationinthispaper,theresearchontheissueofsingle-chipmicrocomputercontrolsystem,thesystemcouldbeusedfordifferentsoilhumiditytesting,andtimelyinaccordancewiththerequirementsofthecropsonsoilmoisture,adequatewater.ThisworkisbasedonSTC12C5A60S2micro-controllerdesigncore.Thebottomhardwaresystemmainlyconsistsofsoilmoisturesensor,signaltransfercircuit,monitordisplaycircuit,ourportcontrolcircuit,malfunctiondisplaycircuitandtheprocedureprogrammedwithCassemblelanguage.Singlechipmicrocomputercanchangethehumidityofthesoilmoisturesensortoconverttheamountofsoilmoisturetoadigitalquantity,anddisplayedontheLCDdisplay.Accordingtosetvaluejudgment,ifneedtoinfusewater,thensinglechipmicrocomputersystemstartsingingsoundalarm,signaltoinfusewater,openwaterelectromagneticvalve.Thehighdesignflexibility,easyoperation,highreliability,hasthecharacteristicsofconvenient,quickandeconomic,toirrigationintimeaccordingtothesoilmoisture.Keywords:STC12C5A60S2wireless,water-savingirrigation,auto-controlxxxxxxxxx2015届本科毕业论文(设计)1目录1绪论....................................................................11.1引言..............................................................11.2课题背景及研究的目的与意义........................................11.2.1课题背景....................................................11.2.2课题研究的目的与意义........................................21.3节水灌溉控制系统国内外的研究现状..................................31.4课题研究内容......................................................32系统总体设计方案........................................................42.1系统工作原理......................................................42.2系统方框图设计....................................................42.3系统结构..........................................................52.3.1湿度检测模块................................................52.3.2单片机模块..................................................52.3.3显示模块....................................................52.3.4输出控制模块................................................52.3.5报警模块....................................................52.4主要器件的选取....................................................52.4.1单片机的选取................................................52.4.2土壤湿度传感器的选取........................................92.4.3显示器的选取...............................................102.4.4电磁阀的选取...............................................102.4.5软件语言的选取.............................................113系统主要硬件电路设计...................................................133.1单片机主机系统电路...............................................133.1.1时钟电路...................................................133.1.2复位电路...................................................143.2数据采集处理电路.................................................153.2.1湿度采集...................................................153.2.2A/D转换部分................................................17xxxxxxxxx2015届本科毕业论文(设计)23.3LCD显示电路......................................................183.3.11602LCD基本参数...........................................193.3.21602LCD引脚功能说明.......................................193.3.3指令说明及时序.............................................203.3.41602LCD硬件原理图.........................................203.4输出控制电路.....................................................213.5报警电路.........................................................223.6按键电路.........................................................234系统软件设计...........................................................254.1软件架构设计.....................................................254.2系统主程序设计...................................................254.3初始化程序设计...................................................284.3.1A/D转换初始化..............................................294.3.2液晶初始化.................................................294.3.3定时器中断系统初始化.......................................304.4子程序设计.......................................................314.4.1湿度采集子程序.............................................314.4.2显示子程序.................................................324.4.3按键扫描程序...............................................334.4.4按键消抖程序...............................................344.4.5数据处理程序...............................................354.4.6延时程序...................................................365系统的安装与调试.......................................................375.1设计流程.........................................................375.2电路图的设计..........................................
本文标题:参考论文56
链接地址:https://www.777doc.com/doc-2564269 .html