Abstract:In order to provide convenience for people's lives, save energy sources, economical utilization of electric power, design of a control system of energy saving drinking machine based on STC89C52 microcontroller. The hot water and warm water temperature data collected from two temperature probe DS18B20 real-time sent to STC89C52 microcontroller, and display current hot water temperature, warm water temperature, upper and lower warm water temperature limit using LCD1602. When the water is boiling, the system could automatically close heater through relay and language warning people that hot water can be drunk. When the warm water temperature is suitable, the system could automatically close the electromagnetic valve between warm water pool and hot water pool, and could automatically close the electromagnetic valve of warm water pool through relay and language warning people that warm water can be drunk, avoid the hot water is heated repeatedly, the warm water temperature data error in 0.3℃, meet various requirements of users. The drinking machine is energy saving, the operation is secure and convenient and low cost. The system not only can provide hot water, warm water, and pure water, but also have the function of water temperature setting of warm water, etc.