摘要
基于STC8G1K17单片机进行系统设计,采用SHT30温湿度传感器获取温湿度数据,通过LCD1602液晶屏实时显示当前温度、湿度以及工作状态。该系统由硬件和软件两部分组成,硬件部分包括STC8G1K17单片机、SHT30、LCD1602等硬件电路,软件部分主要包括单片机嵌入式程序设计。单片机通过温湿度传感器获取数据,液晶屏通过外部按键操作实现数据显示及工作状态的设置,系统可以实现温湿度的自动控制。
This paper designs temperature and humidity system based on STC8G1K17 microcontroller.SHT30 is used to obtain temperature and humidity data,and the current temperature,humidity and working state are displayed in real time through LCD1602 screen.The designed system consists of hardware system and software system,the hardware being STC8G1K17 MCU,SHT30,LCD1602 and other hardware circuits,and the software mainly being MCU embedded program design.The single-chip microcomputer obtains data through the temperature and humidity sensor,and the LCD and external keys display the data and set the working state.The system can realize the automatic control of temperature and humidity.
作者
杨阳
杨文健
郭晓凤
YANG Yang;YANG Wenjian;GUO Xiaofeng(Blue Island Maker Space,Nanjing Vocational Institute of Mechatronic Technology,Nanjing 211306,China;School of Electronic Engineering,Nanjing Vocational Institute of Mechatronic Technology,Nanjing 211306,China;Nanjing Smart Vision Electronics Co.,Ltd.,Nanjing 210031,China)
出处
《机械制造与自动化》
2024年第3期234-238,共5页
Machine Building & Automation
基金
2021年江苏省高等教育教改研究课题项目(2021JSJG634)
2022年江苏省高校哲学社会科学研究项目(2022SJYB0882)。