摘要
设计了一款基于STC12C5A60S2单片机和AM2301B温湿度传感器的温度和湿度自动控制系统,该系统可实时采集温度和湿度。通过按键对温、湿度分别进行上、下限设置,并实时显示。当温湿度不在设定范围时,启动相应的加热、加湿、降温和除湿继电器开关,同时LED和蜂鸣器发出报警,对被测环境的实际温、湿度自动调节。并给出了系统框图、硬件电路和软件设计方法,通过实验验证了系统方案的正确性和可行性。
An automatic temperature and humidity control system based on STC12C5A60S2 and AMS2301B temperature and humidity sensor is designed.The system can collect the temperature and humidity in real time,and can set up the upper and lower limits of the temperature and humidity respectively by pressing a key,and display them in real time.When the temperature and humidity is not within the set range,start the corresponding heating,humidifying,cooling and dehumidifying relay switch.At the same time,LED and buzzer will send out alarm and automatically adjust the actual temperature and humidity of the tested environment.The system block diagram,hardware circuit and software design method are given.The correctness and feasibility of the system scheme are verified by experiments.
作者
王宾
Wang Bin(School of Electronic Engineering,Anhui Vocational College of Electronics and Information Technology,Bengbu 233000,China)
出处
《安徽电子信息职业技术学院学报》
2022年第4期1-4,10,共5页
Journal of Anhui Vocational College of Electronics & Information Technology
基金
2020年安徽省教育厅质量工程线上课程项目“单片机应用技术”(2020mooc034)
2020年安徽省教育厅质量工程线下课程项目“C语言程序设计”(2020kfkc066)。