基于51单片机的大棚温湿度检测系统的设计与实现 .pdf
基于51单片机的大棚温湿度检测系统的设计与实现
基于51单片机的大棚温湿度监测系统的设计与实现
摘要:随着经济的快速发展,我国的农业产业结构发生了很大的变化,其中较为突出的是温室
大棚种植业。鉴于大棚种植业在不同的季节都有较大的产量,所以越来越多的农民采用温室大棚
种植蔬菜。温度、湿度和光照度的控制是温室大棚得到高产量的关键要素。若要测量温湿度和
光照度,对于大量的大棚而言,仅靠温度测量计来实现,需要更多的人力和物力。随着农业的产
业范围不断发展与扩大,采用这种传统测量大棚温湿度的方法,具有很大的局限性和不足之处.
如今,自动监测棚内温湿度的装置被越来越多的用户采用。
本文设计了基于STC89C52RC单片机的温室大棚温湿度监测系统,主要包括电路设计和软件
设计等.该系统以单片机为核心通过数字温湿度传感器DTH11和光照传感器BH1750对大棚的温
湿度和光照度进行数据采集。传感器将采集的数据传输给单片机,单片机根据收到的数据做出
相应的分析和处理,其结果显示在LCD1602液晶显示屏上。如果超出预先设定的温湿度和光照
度限制范围,单片机控制开启指示灯,同时控制对应的继电器驱动打开设备工作,使大棚温湿
度值达到适宜的范围值。
关键字:STC89C52RC单片机;数字温湿度传感器DTH11;光照传感器BH1750FVI;LCD1602液晶
显示屏
基于51单片机的大棚温湿度检测系统的设计与实现
Designandimplementationofthegreenhousetemperatureand
humiditydetectionsystembasedon51singlechipmicrocomputer
Abstract:Withthedevelopmentofeconomy,greatchangeshavetakenplaceinthe
agriculturalindustryinourcountry,oneofthemoreprominentchangesisthe
greenhouseplanting.Indifferentseasons,thegreenhouseplantinghasagreat
production,moreandmorefarmersusegreenhousestogrowvegetables。Controlling
oftemperature,humidityandilluminationarethekeyfactorsofhighproductionin
greenhouse.Ifweneedtomeasurethetemperatureandillumination,itwillneedmore
man-powerandmaterialresourcesforalargenumberofgreenhouses。Withthedevelopment
andexpansionofagriculturalindustry,thetraditionalmethodsofmeasuringthe
temperatureandhumiditywillhasmanylimitationsandshortcomings。Now,theautomatic
monitoringdeviceoftemperatureandhumidityisadoptedbymoreandmorefarmerin
theshed。
Inthispaper,thetemperatureandhumiditymonitoringsystemofgreenhousebased
onSTC89C52RCMCUaredesigned,mainlyincludingcircuitdesignandsoftwaredesign。
Thesystemusesthesingle-chipmicrocomputerasthecorethroughthedigital
temperatu