摘要
介绍了基于单片机STC15的温湿度计的软硬件设计。通过热敏电阻及STC15内部自带的ADC实现对温度的测量,湿敏电容HS1101与555组成了湿度测量电路。在软件设计上,重点说明了主程序设计,温度计算及湿度计算方法。本设计结果显示,与传统温湿度计相比,该温湿度计具有测量范围广、操作方便简单、成本低等优点。
The paper presents a design for hygrometer based on STC15 single-chip microcomputer.The temperature coefficient thermistor and ADC in STC realize the measurement of temperature.The design uses humicapHS1101 and 555 chip as humidity measuring circuit.In software design,main program design,calculation method of temperature and humidity are introduced.The experimental result shows that compared with traditional hygrometer,the design has a wide range of measurement,the operation is convenient and simple and with low cost.
作者
吕小兵
Lv Xiaobing(Xiamen Ziguang Zhanrui Technology Co.,Ltd.,Xiamen Fujian 361000,China)
出处
《山西电子技术》
2020年第6期14-16,28,共4页
Shanxi Electronic Technology
关键词
单片机
热敏电阻
HS1101
温度
湿度
single-chip microcompute
temperature coefficient thermi stor
HS1101
temperature
humidity