摘要
基于PIC单片机的温湿度感测系统,以PIC单片机为核心,由温湿度传感器SHT11、162液晶显示等模块组成。首先SHT11对环境的温度和相对湿度进行检测,通过二线串行接口将数字温湿度信号送至PIC微控制器,最后利用微控制器完成相对湿度的非线性补偿和温度补偿,并将实际温度和相对湿度值送液晶显示器显示,从而实现对环境温湿度的测控。结果表明,系统温度测量误差为0.5℃,湿度测量误差为4%RH,同时显示直观方便,满足实际应用要求。
Temperature humidity sense and measuring system based on single-chip microcomputer,which regards PIC single chip as the core,and is composed of temperature humidity sensor called SHT11,162 character LCD module.SHT11 firstly measures the environmental temperature and relative humidity.Then,through two-line serial interface the digital signal is transmitted to PIC microcontroller.At last,the controller realizes the non-linearity and temperature compensation of the relative humidity,and transmits real temperature and relative humidity values to LCD.Accordingly,the measure and control of the environmental temperature and humidity are realized.The predicted indexes of the whole system,i.e.,measurement error of temperature is better than 0.5℃,measurement error of humidity is better than 4%RH,meanwhile,the display is visual and convenient,it meets the requirement of practical application.
出处
《电子设计工程》
2011年第12期95-98,101,共5页
Electronic Design Engineering