摘要
本文详述了SHT11温湿度传感器的工作原理,并在基于STM32单片机控制基础上,给出了SHT11和单片机通讯的程序代码;将SHT11插接在M3主控模块开发板上,通过STM32F103VET6单片机对温湿度数据进行采集处理。最后通过串口调试助手输出显示了SHT11测量得到的温湿度数据,验证了程序设计的正确性。
This paper described the working principle of SHT11 temperature and humidity sensor.And on the basis of STM32 MCU control,the program code of SHT11 and MCU communication was given.Then the SHT11 was plugedd into M3 main control module development board,and the temperature and humidity data was collected and processed by STM32 F103 VET6 microcontroller.The temperature and humidity data measured by SHT11 was displayed through the serial debugging assistant,which verified the correctness of the program design.
作者
任静
REN Jing(Lanzhou Petrochemical University,Lanzhou 730060,China)
出处
《智能物联技术》
2021年第4期16-21,39,共7页
Technology of Io T& AI