基于 51 单片机的粮仓温湿度检测系统[摘要]粮仓温度湿度监测控制系统是基于 STC12C52A60S2 的数据采集、对比、控制的系统。以 STC12C52A60S2 单片机为控制器,对温度传感器 DS18B20 传送的数字量信号和对湿度传感器 HR202 传送的模拟量信号进行采集和处理,当前值和设定温度上限值进行对比,进而执行控制作用,通过对继电器的控制进而控制设备的启停,对粮仓温度湿度进行调节,使其维持在适当范围,维护粮仓正常运行。[关键词] 单片机、温湿度、检测、控制Abstract:The granary’s temperature and humidity control and detect system is based on the micro control unit of STC12C5A60S2,the system is used for date acquisition,comparison,and control.In this system,STC12C5A60S2 is the controller,the controller is designed to deal with temperature and humidity signal from the temperature sensor and humidity sensor.Then compare these data with limits the value of temperature and humidity.If the date is out of limits,then the controller send a control signal to warn people,besides,the controller will make the fan running to make the temperature and humidity lower.In this way,the granary can be working at usual status. Key words: MCU、temperature and humidity、control目录第一章 绪论.................................................................11.2 相关领域国内外应用的现状及进展趋势....................................11.3 粮仓温湿度检测控制系统原理...........................................21.4 本章小结..............................................................2第二章:系统分析、设计要求及模块选择..........................................32.1 设计要求.............................................................32.2 单片机型号的选择.....................................................32.21 采纳 STC89C52 单片机.............................................32.22 采纳 STC12C5A60S2 单片机.........................................32.3 显示系统模块的选择..............................................