1摘要随着大棚技术的普及,温室大棚数量不断增多,对于蔬菜大棚来说,最重要的一个管理因素是温湿度控制。温湿度太低,蔬菜就会被冻死或则停止生长,所以要将温湿度始终控制在适合蔬菜生长的范围内。传统的温度控制是在温室大棚内部悬挂温度计,工人依据读取的温度值来调节大棚内的温度。如果仅靠人工控制既耗人力,又容易发生差错。现在,随着农业产业规模的提高,对于数量较多的大棚,传统的温度控制措施就显现出很大的局性。为此,在现代化的蔬菜大棚管理中通常有温湿度自动控制系统,以控制蔬菜大棚温度,适应生产需要。本论文主要阐述了基于AT89C52单片机的西红柿大棚温湿度控制系统设计原理。该系统主要由单片机、数字温湿度传感器DHT11、无线通信模块APC220、液晶显示LCD1602、键盘等组成。采用温湿度传感器DHT11来测量温湿度,它的精确度高,而且DHT11直接是输出数字信号,可直接与单片机相连。通过无线传感器APC220来进行信号传送,这样能够降低布线的麻烦。显示部分使用的是LCD1602来显示温湿度。本系统还有附带键盘,能够对大棚所需要的温湿度上下限值直接设定和修改。本系统的核心是单片机AT89C52,接收传感器所测的数据并处理,然后执行各种操作,如喷水,吹风等。关键词:单片机数字温湿度传感器DHT11无线通信模块APC220显示模块LCD1602;温湿度;控制系统;传感器AbstractWiththepopularizationoftrellistechnology,greenhousetrellisan2ever-growingnumber,forvegetableshedspeaking,oneofthemostimportantmanagementfactoristhetemperatureandhumiditycontrol.Temperatureistoolow,thevegetableswillfreezetodeathorstopgrowing,sowillalwayscontroltemperatureandhumidityinasuitablevegetablegrowthrange.Traditionaltemperaturecontrolisingreenhousetrellisinternalhangingathermometer,workersaccordingtoregulatethetemperaturereadingthetemperatureinsidetheshelter.Ifonlybyartificialcontrolbothconsumptionmanpower,andeasytoplaceregularorders.Now,withtheimprovementofagriculturalindustryscale,forlargerquantityoftrellis,traditionaltemperaturecontrolmeasureswillshowgreatbureausex.Therefore,inmodernvegetableshedmanagementzhongtongoftentemperatureandhumidityautomaticcontrolsystem,inordertocontrolthetemperature,adapttothetrellisvegetableproductionneeds.ThisthesismainlyelaboratedbasedonAT89C52tomatoescanopytemperatureandhumiditycontrolsystemdesignprinciple,maincircuitdesignandsoftwaredesign,etc.Thesystemconsistofthemicrocontroller,digitaltemperatureandhumiditysensorDHT11,wirelesssensorAPC220,LCD1602,keyboardandothercomponents.TemperatureandhumiditysensorDHT11isusedformeasuringtemperatureandhumidity,itshighprecision,andDHT11candirectlyoutputdigitalsignal,whichcanbedirectlyconnectedwiththemicrocontroller.ThiscanreducethetroubleofwiringforsignaltransmissionthroughwirelesssensorAPC220.ThedisplayselectionisLCD1602whichisusedfordisplayingthetemperatureandhumidity.Thesystemalsocomeswithakeyboard,cansetandmodifytheupperandlowerlimitsonthegreenhousetemperatureandhumidityneeded.ThecoreofthissystemisthemicrocontrollerAT89C52,receivingsensormeasuredthedataandprocessing,andthencarryoutvariousoperation,suchaswaterspray,warming,coolingandect.Keywords:AT89C52;SHT10;vegetableshed;Temperatureandhumidity;ControlSystem;sensorTemperatureandhumidity;ControlSystem;sensor目录3第1章绪论........................................................................................................................................61.1系统设计背景.............................................................................................................................61.2系统功能、优势及特点.............................................................................................................6第2章设计内容................................................................................................................................92.1总体方案的设计............................................................................................错误!未定义书签。2.1.1设计思想................................................................................................错误!未定义书签。2.1.2系统组成及框图....................................................................................错误!未定义书签。2.2系统主要电路的设计....................................................................................错误!未定义书签。2.2.1主要芯片89C51的功能及引脚图........................................................错误!未定义书签。2.2.2温湿度检测电路的设计.................................................................................................222.2.3复位电路的设计....................................................................................错误!未定义书签。2.2.4温湿度调节系统的设计........................................................................错误!未定义书签。2.2.5SHT10数据采集程序............................................................................错误!未定义书签。第3章系统软件的设计................................................................................................................283.1上位机软件设计............................................................................................错误!未定义书签。3.2通信模块软硬件设计....................................................................................错误!未定义书签。3.2.1通信硬件设计.......................................................................................错误!未定义书签。3.2.2通信软件设计........................................................................................错误!未定义书签。3.3系统主程序.............................................................................................................................34结束语.......................................................................................................................错误!未定义书签。参考文献...................................................................................................................错误!未定义书签。前言在现代的大棚种植技术中,温度、湿度是大棚蔬菜能否茁壮成长的重要因素。现在我国大棚生产规模虽然空前巨大,但是大棚的设备比较陈旧,温度采集方式落后,广大农村采用煤油温度计的温度采集方式,不仅温度采集较为老套,并且费时费力,