摘 要采纳单片机对温度、湿度等环境参数进行监测是一个工业生产中常常遇到的监测问题,采纳单片机不仅具有监测方便、操作简单等优点,而且可以在节约成本的同时大幅度的提高监测质量。本文设计了单片机构成的环境温度、湿度参数实时监测装置,本装置以单片机 AT89C52 为控制核心,采纳独特的单总线数字式温度传感器 DS18B20 进行温度采集,采纳湿敏电容 HS1101 对湿度参数进行采集。LCD 液晶显示屏对于当前的温度值和湿度值进行实时的显示,可以方便用户直观的了解所测得的温度、湿度环境参数值。用户可使用按键根据自身要求设定温湿度上下限,同时,报警装置可依据用户的设定针对温湿度超限情况进行报警。关键词:温湿度监测;超限报警;LCD 显示AbstractMCU is always used in industry measurement as temperature and humidity measurement. With MCU, it can be more convenient and simple to complete the measurement efficiently. The paper designs a real-time temperature and humidity measurement device based on MCU. The device adopts AT89C52 as the control. The device also make use of DS18B20 to obtain the digital temperature signal and HS1101 to gain the analogue humidity signal. In the design, LCD is used to display the consumers the real-time temperature and humidity clearly. The consumer can use the buttons to change the upper and lower limits of the temperature and humidity. And the alert in the design should work based on the limits set up by the consumers. Keywords:temperature and humidity measurement; alert over-limit; LCD 前言本课题讨论的主要目的是设计一个能够提供环境的温度、湿度并具有对温度、湿度超限报警功能的装置。人类的生存和社会中各项活动的展开与温度、湿度参数值密切相关,随着科学技术的进展,人类在不同应用领域对温度、湿度的测量提出了越来越高的要求。日常生活中,工厂、商场、银行、医院以及各类科研场所都需要符合操作规定的温、湿度环境条件。居民家庭中更离不开对温度、湿度的监测,室内湿度一般控制在 45%至 65%RH 之间,人体感觉比较舒适。而冬季供暖期的室内湿度通常仅为 10%—15%RH,在干燥...