1摘要随着大棚技术的普及,温室大棚数量不断增多,对于蔬菜大棚来说,最重要的一个管理因素是温湿度控制。温湿度太低,蔬菜就会被冻死或则停止生长,所以要将温湿度始终控制在适合蔬菜生长的范围内。传统的温度控制是在温室大棚内部悬挂温度计,工人依据读取的温度值来调节大棚内的温度。如果仅靠人工控制既耗人力,又容易发生差错。现在,随着农业产业规模的提高,对于数量较多的大棚,传统的温度控制措施就显现出很大的局性。为此,在现代化的蔬菜大棚管理中通常有温湿度自动控制系统,以控制蔬菜大棚温度,适应生产需要。本论文主要阐述了基于AT89C51单片机的西红柿大棚温湿度控制系统设计原理,主要电路设计及软件设计等。该系统采用AT89C51单片机作为控制器,SHT10作为温湿度数据采集系统,可对执行机构发出指令实现大棚温湿度参数调节,具有上下位机直接设置温湿度范围,温湿度实时显示等功能。上位机采用Delphi软件进行编写,用户界面友好,操作简单,可以根据大棚西红柿生长情况绘制成简明直观的作物生长走势图,从而容易得出最适合作物生长的温湿度值。关键词:AT89C51;SHT10;蔬菜大棚;温湿度;控制系统;传感器2AbstractWiththepopularizationoftrellistechnology,greenhousetrellisanever-growingnumber,forvegetableshedspeaking,oneofthemostimportantmanagementfactoristhetemperatureandhumiditycontrol.Temperatureistoolow,thevegetableswillfreezetodeathorstopgrowing,sowillalwayscontroltemperatureandhumidityinasuitablevegetablegrowthrange.Traditionaltemperaturecontrolisingreenhousetrellisinternalhangingathermometer,workersaccordingtoregulatethetemperaturereadingthetemperatureinsidetheshelter.Ifonlybyartificialcontrolbothconsumptionmanpower,andeasytoplaceregularorders.Now,withtheimprovementofagriculturalindustryscale,forlargerquantityoftrellis,traditionaltemperaturecontrolmeasureswillshowgreatbureausex.Therefore,inmodernvegetableshedmanagementzhongtongoftentemperatureandhumidityautomaticcontrolsystem,inordertocontrolthetemperature,adapttothetrellisvegetableproductionneeds.ThisthesismainlyelaboratedbasedonAT89C51tomatoescanopytemperatureandhumiditycontrolsystemdesignprinciple,maincircuitdesignandsoftwaredesign,etc.ThissystemUSESAT89C51singlechipmicrocomputerascontroller,SHT10astemperatureandhumiditydataacquisitionsystem,maytotheactuatordirectivesrealizetrellistemperatureandhumidityparametersadjustment,hastheupperandlowerlevelcomputerdirectlysettemperaturerange,temperatureandhumidityreal-timedisplay,andotherfunctions.PCusingDelphisoftwaretocompile,userfriendlyinterface,easyoperation,canaccordingtoshedtomatogrowthsituationblazonedwithsimple,directsimulationsofcropgrowth,thuseasytodrawthemostsuitableforcropgrowthoftemperatureandhumidityvalue.3Keywords:AT89C51;SHT10;vegetableshed;Temperatureandhumidity;ControlSystem;sensor目录第1章绪论..........................................................................................................................................11.1系统设计背景...............................................................................................................................11.2系统功能、优势及特点...............................................................................................................1第2章设计内容..................................................................................................................................42.1总体方案的设计...........................................................................................................................42.1.1设计思想...............................................................................................................................42.1.2系统组成及框图...................................................................................................................42.2系统主要电路的设计...................................................................................................................52.2.1主要芯片89C51的功能及引脚图.......................................................................................52.2.2温湿度检测电路的设计.......................................................................................................72.2.3复位电路的设计.................................................................................................................122.2.4温湿度调节系统的设计.....................................................................................................122.2.5SHT10数据采集程序.........................................................................................................13第3章系统软件的设计....................................................................................................................153.1上位机软件设计.........................................................................................................................153.2通信模块软硬件设计.................................................................................................................163.2.1通信硬件设计....................................................................................................................163.2.2通信软件设计.....................................................................................................................173.3系统主程序.................................................................................................................................17结束语....................................................................................................................................................19参考文献................................................................................................................................................204蔬菜大棚温湿度控制系统设计1第1章绪论1.1系统设计背景植物的生长都是在一定的环境中进行的,其在生长过程中受到环境中各种因素的影响,其中对植物生长影响最大的是环境中的温度和湿度。环境中昼夜的温度和湿度变化大,其对植物生长极为不利。因此必须对环