河南科技大学毕业设计(论文)II蔬菜大棚温湿度测控系统设计摘要温室大棚是设施农业的重要组成部分,大棚测控系统是实现大棚自动化、科学化的基本保证。通过对监测数据的分析,结合作物生长规律,控制环境条件,使作物达到优质、高产、高效的栽培目的。计算机应用技术的发展,也使得用计算机控制的方面也涉及到各个领域,其中在大棚内用单片机控制温度、湿度是应用于实践的主要方面之一。对于蔬菜大棚来说,最重要的一个管理因素是温度和湿度等控制。本设计是一个专门为温室大棚温湿度测量控制而设计的系统。通过对系统的硬件部分和软件部分设计来达到监控要求。硬件部分实现了对温湿度传感器模块、显示模块、控制模块的设计;软件部分主要根据系统的设计思想设计出了主程序和子程序流程图,并通过程序实现。在系统设计过程中充分考虑到性价比,选用价格低、性能稳定的元器件。通过实践证明,系统具有性能好、操作方便等优点,能实现对温湿度等的显示、调节和控制。系统在其它领域还具有一定的推广价值。关键词:大棚,温度,湿度,传感器河南科技大学毕业设计(论文)IIITHEDESIGNOFGREENHOUSSETEMPERATUERANDHUMIDITYCONTROLSYSTEMABSTRACTGreenhouseisanimportantcomponentofprotectedagriculture.Measuringandcontrollingsystenisthebasisofthemanagementautomationinthegreenhouse.Withthegrowthrulesanalyzingmeasurementdataandcontrollingcircumstancecondition.Itmakesgreenhousebetter,andmoreproductiveandhighquality.Withthedevelopmentofcomputerapplicationtechnology,thecomputer-controlledareasarealsoinvolved,theplastictemperatureusingSCMandhumidityisoneofthemainaspectsusedinpractice.Forvegetableshedspeaking,oneofthemostimportantmanagementfactoristhetemperatureandhumiditycontrol.Thethesisisaboutanintelligentsystemdesignedforcontrollingthetemperatureandhumidityofagreenhouse.Itcanmeetthedemandofmonitoringthroughthedesignofhardwareandthatofsoftwareindetails.Theformerismoreimportantinthisdissertation,includingtheintroductionofsensorofmeasuringtemperatureandhumidity,demonstratingmodeofdata,themodeofcontrolandtheconnectingpartofthechangingcolumn.Andaccordingtothedesignthoughtsthelattershowstheflowchartofthemainprogramandthesubprogram,realizedbyprogram.Thisthesischoosethedecicesasfullconsiderationoftherationbetweenprformanceandcostaspossible.Thesystemadoptsquiteanewintegratedcircuit,whichmakesitfunctionbetterandrunmoreconvenientlywhenputintopractice.Furthermore,notonlycanitachievethegoalsofmanifestingandregulatingthetemperature,butalsoitcanbecontrolled.Andithasmuchofvaluetoapplyandpopularizeinotherfields.KEYWORDS:Vegetable,Temperature,Humidity,Sensor河南科技大学毕业设计(论文)V目录前言..................................................................................................1第一章设计方案论证.......................................................................2§1.1设计要求及框图.................................................................2§1.1.1要求...........................................................................2§1.1.2任务...........................................................................2§1.1.3功能...........................................................................2§1.2元器件的选择.....................................................................3§1.2.1单片机的选择...........................................................3§1.2.2温度传感器的选择...................................................3§1.2.3湿度传感器的选择...................................................4§1.2.4显示模块的选择.......................................................4§1.2.5系统设计方案的确定................................................5第2章系统的硬件设计...................................................................6§2.1系统硬件的简述.................................................................6§2.2单片机模块的设计.............................................................6§2.2.1单片机的功能特性描述............................................6§2.2.2单片机的最小系统...................................................8§2.3温湿度采集系统的设计.....................................................9§2.3.1温湿度传感器的概述................................................9§2.3.2传感器的接口说明.................................................10§2.3.3硬件连接.................................................................11§2.4显示模块的设计...............................................................11§2.4.1LCD12864的概述...................................................11§2.4.2LCD12864引脚说明................................................12§2.4.3LCD12864的主要技术参数....................................14§2.5报警电路的设计...............................................................14§2.6功能键的设计...................................................................15第3章软件系统设计.....................................................................16河南科技大学毕业设计(论文)VI§3.1软件设计的整体思想.......................................................16§3.2程序流程图设计...............................................................16§3.3DHT90软件系统设计.......................................................17§3.3.1DHT90测量流程图.................................................17§3.3.2传感器的电气特性.................................................18§3.3.3启动传感器指令.....................................................19§3.3.4发送命令.................................................................19§3.3.5测量时序.................................................................20§3.3.6通讯复位时序..........................................................20§3.4DHT90的温湿度补偿及转换............................................21§3.4.1相对湿度.................................................................21§3.4.2温度转换.................................................................21§3.5LCD12864软件系统设计..................................................21§3.5.1LCD12864显示流程图...............