摘 要伴随着人们生活水平的不断提高,人们对生活环境的要求也越来越高,而温度和湿度是影响人们生活环境的重要因素,因此对于室温度和湿度的检测在日常生活中就显得尤为重要。室温湿度检测系统的出现给人们的生产生活带来了极大的方便,本文主要阐述了温湿度检测系统的硬件设计和软件设计。该系统采纳温湿度传感器和单片机技术。可以以数字形式直接显示温度值和湿度值,该系统使用方便、读数直观。文章主要讨论了一种基于 YX-HT-300U 温湿度模块的系统设计。文章从硬件和软件两方面展开了论述,硬件部分首先谈到了系统整体设计,然后从单片机芯片 AT89C52 的硬件接口电路做出分析和论述,同时增设键盘接口模块,LED 显示模块,蜂鸣器报警模块,YX-HT-300U 能同时测量相对湿度与温度,文中又论述了 YX-HT-300U 的性能、结构、工作原理、命令格式与功能,保证了系统设计的高性能;软件系统的设计主要给出了针对各个应用模块的设计思路和设计框架,并对各部分程序进行解释说明。最后,文章对本次设计做出了总结,并对于设计过程中出现的问题做出了详细的讲解。关键词:单片机;YX-HT-300U温湿度传感器;显示;报警AbstractAs the people’s living standard is enhancing , the people’s living conditions' request are getting higher and higher . The temperature and humidity is the important factor which affects people's living environment. Therefore, the indoor temperature and humidity testing has become particularly important in the daily life. The indoor temperature and humidity detection system gives the appearance of the production and living convenience brought about tremendous. The system has used the humiture sensor and the monolithic integrated circuit technology. It may demonstrate the temperature and the humidity value directly by the digital. The system operates very easy, and the reading is direct-viewing. The article mainly discussed the system which based on the YX-HT-300U humiture module . The article mainly elaborates overall the system's design from the hardware part and the software part. The hardwar...