西华大学毕业设计说明书大棚温湿度自动控制系统设计摘要:本设计是基于STC89C52RC单片机的大棚温湿度自动控制系统,采用SHT10作为温湿度传感器,LCD1602液晶屏进行显示。SHT10使用类似于I2C总线的时序与单片机进行通信,由于它高度集成,已经包括A/D转换电路,所以使用方便,而且准确、耐用。LCD1602能够分两行显示数据,第一行显示温度,第二行显示湿度。这个控制系统能西华大学毕业设计说明书够测量温室大棚中的温度和湿度,将其显示在液晶屏LCD1602上,同时将其与设定值进行对比,如果超出上下限,将进行报警并启动温湿度调节设备。此外,还可以通过独立式键盘对设定的温湿度进行修改。通过设计系统原理图、用Proteus软件进行仿真,证明了该系统的可行性。关键词:STC89C52RC,SHT10,I2C总线,独立式键盘,温湿度自动控制Abstract:Thisdesignisanautomatictemperatureandhumiditycontrollerforgreenhouses,西华大学毕业设计说明书withtheSTC89C52RCMCUbeingitsmaincontroller.ItusestheSHT10asthetemperatureandhumiditysensor,andtheLCD1602todisplaythemessages.TheSHT10usesatimingsequencemuchliketheI2Ctocommunicatewiththemicro-controller.Becauseit’sahighlyintegratedchip,italreadyincludesananalogtodigitalconverter.Therefore,it’squiteconvenienttouse,andalsoaccurateanddurable.TheLCD1602candisplaytwolinesofmessages,withthefirstlinefortemperatureandthesecondlineforhumidity.Thedesigncanmeasurethetemperatureandhumidityinagreenhouse,andthendisplayitonaLCD1602.Meanwhile,itcomparesthedatawiththesetlimit.Ifthelimitisexceeded,thenthesystem西华大学毕业设计说明书willsendoutawarningusingabuzzerandactivatethetemperatureandhumiditycontrollingequipment.Besides,thesetlimitcanbemodifiedwiththeindependentkeyboard.ThroughschematicdesignandProteussimulation,thefeasibilityofthisdesignhasbeenproved.Keywords:STC89C52RC,SHT10,I2Cbus,independentkeyboard,temperatureandhumiditycontrol目录1前言.............................................................................................................................1西华大学毕业设计说明书2总体方案设计...................................................................................................32.1温湿度控制系统的设计指标要求........................................................32.2系统设计的原则....................................................................................32.2.1可靠性..........................................................................................32.2.2性价比..........................................................................................32.3方案比较................................................................................................42.3.1方案一..........................................................................................4西华大学毕业设计说明书2.3.2方案二..........................................................................................42.4方案论证................................................................................................52.5方案选择................................................................................................53单元模块设计...................................................................................................63.1各单元模块功能介绍及电路设计........................................................63.1.1单片机最小系统..........................................................................63.1.2液晶显示模块..............................................................................8西华大学毕业设...