1、 I 摘 要 温度和湿度是两个最基本的环境参数,与人们的生活息息相关。在工农业生 产、气象、环保、国防、科研等部门,经常需要对环境温度和湿度进行测量和控 制。准确测量温湿度在生物制药、食品加工、造纸等行业更是至关重要。因此研 究温湿度的测量和控制方法具有重要的意义。 本设计实现的是单片机温湿度测量和控制系统, 通过 LCD 显示所测量的温湿 度。系统采用集温湿度传感器与 A/D 转换器于一体的 SHT11 芯片,通过单片机进 行处理显示,其它模块包括了实时时钟/日期产生电路和超限报警处理电路,对 测量的值进行实时显示和报警处理。 文章介绍了基于 ATMEL 公司的 AT89C51 系列 单片机
2、的温湿度实时测量与控制系统和显示系统的设计, 包括介绍了硬件结构原 理,并分析了相应的软件的设计及其要点,包括软件设计流程及其程序的实现。 系统结构简单、实用,提高了测量精度和效率。 关键词:AT89C51、SHT11、LCD、DS1302、温湿度控制 II ABSTRACT Temperature and humidity are two basic environmental parameters which are closely related to peoples lives. In the industrial and agriculture production, meteoro
3、logy, environmental protection, national defense, scientific research and other departments, we often need to measure and control the temperature and humidity of the environment. Accurate measurement of temperature and humidity in the pharmaceutical, food processing, paper making and other sectors i
4、s essential. So the method of temperature and humidity control and measurement is of great significance. The design implementation of measurement and control temperature and humidity is MCU system, through which the temperature and humidity measurement LCD. System adopts set temperature and humidity sensor and A/D converter for SHT11 chip microcontroller processing, through that other modules including real-time display and alarm. The paper introduces the ATMEL company based on AT89C51 single-c