Design and Implementation of Intelligent Temperature-Regulating Fan System Based on STC89C52
Shenyao Liu *
School of Mechanical Engineering, North China University of Water Resources and Electric Power, Zhengzhou 450045, China.
*Author to whom correspondence should be addressed.
Abstract
This paper presents the design and implementation of an intelligent temperature-regulating fan system based on the STC89C52 single-chip microcomputer. While high-performance solutions exist, they often incur substantial costs, making them unsuitable for simple applications. To address this, a cost-effective approach using the STC89C52 microcontroller is adopted. The system uses the DS18B20 digital temperature sensor for real-time ambient temperature acquisition and employs the microcontroller to process data and generate PWM signals for controlling the fan motor drive circuit, thereby achieving temperature feedback-based closed-loop control. Key functionalities include configurable temperature limits, three-speed automatic fan adjustment, real-time temperature display, and interactive user controls. Experimental results indicate that the system achieves a temperature measurement error of less than ±0.5℃ and a response time of under one second for fan state transitions. The system effectively maintains the ambient temperature within the set range, demonstrating notable stability, practicality, and energy efficiency. This work provides a viable low-cost solution for intelligent temperature control in settings such as residential and office environments.
Keywords: STC89C52, intelligent temperature control system, fan control, PWM speed regulation, embedded system