1摘要随着我国科学技术正在发生着日新月异的变化,同时,我国的人很多,因此对于农作物的需求量也很大。而我这次所选的课题便是基于单片机的温室检测及提醒系统设计开发,研究温室里的温湿度对作物的生长有着不可或缺的价值,并且温湿度同时也是对温室植物的生长影响因素中最大的两个因素。如果白天与晚上的温度差和湿度差变化比较大,这样的话,将不利于温室植物的生长。因此为了提高温室植物的产量以及质量,就要将温度和湿度控制在温室植物适宜生长的范围之内。本次设计为对温室的温度及湿度进行监测并调控,为了实现这两个要求,设计了基于STC89C52单片机、温湿度传感器DHT11和LCD1602液晶显示的相结合的方式,制作了智能化温湿度控制器。使用按键键盘来设定温度与湿度,并且通过DHT11温湿度传感器来采集温度以及湿度,采集的数据通过LED1602液晶显示屏显示,进而精确的显示出采集的温度与湿度。当所需温度高于当前记录的温度时,使用继电器外接负载加热薄膜进行升温;当所需温度低于当前记录的温度时,使用继电器外接负载风扇进行降温;当所需湿度高于于当前记录的湿度时,使用继电器外接负载加湿器进行增湿;当所需湿度低于当前记录的湿度时,使用继电器外接负载风扇进行降湿,这样就基本实现了对温室进行智能化的控制。关键词:单片机STC89C52;温湿度DHT11;控制;LCD1602显示2AbstractAsChina'sscienceandtechnologyisundergoingrapidchanges,atthesametime,Chinaisalsoalargepopulation,sothedemandforcropsisalsogreat.AndIselectedthetopicisbasedonthesingle-chipgreenhousedetectionandremindersystemdesignanddevelopment,researchgreenhousetemperatureandhumidityoncropgrowthhasanindispensablerole,andtemperatureandhumidityisalsothegrowthofgreenhouseplantfactorsThetwomostimportantfactors.Ifthedaytimeandnighttemperaturedifferenceandhumiditydifferenceisrelativelylarge,sothatwillbedetrimentaltothegrowthofgreenhouseplants.Therefore,inordertoimprovetheyieldandqualityofgreenhouseplants,itisnecessarytocontrolthetemperatureandhumiditywithinthegreenhouseplantsuitablegrowthrange.Thisdesignistomonitorandcontrolthetemperatureandhumidityofthegreenhouse.Inordertorealizethesetworequirements,acombinationofSTC89C52singlechipmicrocomputerandtemperatureandhumiditysensorDHT11andLCD1602liquidcrystaldisplayisdesignedtoproduceintelligenttemperatureandhumiditycontroller.Usethekeypadtosetthetemperatureandhumidity,andthroughtheDHT11temperatureandhumiditysensortocollecttemperatureandhumidity,thecollecteddatathroughtheLED1602LCDdisplay,andthusaccuratelyshowthecollectedtemperatureandhumidity.Whenthedesiredtemperatureislowerthanthecurrentrecordedtemperature,usetherelayexternalloadfantocooldown;whentherequiredhumidityishigherthanthecurrentrecord,whentherequiredtemperatureishigherthanthecurrentrecordedtemperature,usetherelayexternalloadheatingfilmtoheatup;,Theuseofrelayexternalloadhumidifierforhumidification;whentherequiredhumidityislowerthanthecurrentrecordofhumidity,theuseofexternalexternalloadrelayfan,sothatthebasicrealizationofthegreenhouseforintelligentcontrol.3Keywords:singlechipmicrocomputer;temperatureandhumidityDHT11;control;LCD1602display目录1绪论_______________________________________________________________41.1课题的背景_____________________________________________________________41.2课题的发展状况_________________________________________________________41.3课题研究的主要内容_____________________________________________________52系统总体方案设计__________________________________________________52.1设计要求____________________________________________________________52.2方案选择______________________...