Design of Temperature Controller Based on Intel 8051 Microcontroller
Abstract: With the rapid development of electronic technology, more and more electronic products require precise temperature control to ensure the quality of products and realize the best working performance. This paper introduces the design of a temperature control system using Intel 8051 microcontroller. The design process is divided into two parts. The hardware circuit design and the software program. In the hardware design part, the key components of the system are introduced in detail, such as the sampling circuit and the power driving circuit. In the software part, the software program is designed according to the working principle of the temperature control system, and several subroutines are designed to finish the temperature calculation, control value setting and output port configuration. The system has a good comprehensive performance, which can be applied to computer peripheral temperature control or other temperature control fields.
【Keywords】 Intel 8051 microcontroller; temperature control; sampling circuit; power driving circuit
1 Introduction
With the rapid development of the 21st century science and technology and the increasingly improved level of information, peoples requirements for product quality, performance, stability and output accuracy have also become higher and higher, which requires precise and closed-loop control of temperature. Now, the temperature control systems involved are mainly based on digital circuits and microprocessors. Among them, microcontrollers have the advantages of being low cost, low power consumption, high performance and small size. At present, Intel 8051 series MCU are the most popular, and most temperature control systems use this MCU for temperature control.
2.Design Concept of System
The temperature controller designed in this paper is mainly used for computer peripheral temperature control. The design of the temperature control system is mainly composed of hardware circuit design and software program design. The hardware circuit mainly includes temperature sensing, display processing, control drive circuit, power amplifier and output circuit. The software program mainly includes temperature sampling, display processing, parameter setting, PID calculation and drive control.
3.HARDWARE CIRCUIT DESIGN
3.1 Temperature sampling circuit
Figure 1 shows the temperature sampling circuit. It mainly includes the LM35 temperature sensor, the A/D conversion chip, the analog signal amplification and conditioning circuit and the digital circuit. LM35 is a high accuracy temperature sensor produced by National Semiconductor Corporation of the United States. The output signal of the sensor is an analog voltage. The voltage signal is transmitted to the A/D conversion chip after being amplified and conditioned. Finally, the signal is converted to a digital value and output to the microcontroller.
3.2 Control driver circuit
Figure 2 shows the control driver circuit. It mainly includes the display processing and control drive circuit, the power amplifier and the output circuit. The display processing and control drive circuit is mainly composed of 74HC573 chip and 8-bit I/O port chip. All the signals come from the microcontroller port. In addition, it receives various switch signals. The power amplifier is composed of OP37G power amplifier. It can drive relays, motors, electromagnets, solenoids and other types of loads. The output circuit mainly includes a photoelectric isolated triode and a voltage-controlled silicon controlled thyristor.
4.Software Design
The software design is mainly divided into two parts, the initialization routine and the subroutine. The initialization routine is mainly to initialize the interrupt, port and so on. The subroutine mainly includes the temperature sampling routine, the display processing routine, the parameter setting routine, the PID calculation routine, the driver control routine and the like.
5.Conclusion
This paper introduced the design of temperature controller based on Intel 8051 microcontroller. In the hardware design part, the temperature sensor and the drive circuit were introduced in detail, while in the software part, the software program was designed according to the working principle of the temperature control system. The system has a good comprehensive performance, which can be applied to computer peripheral temperature control or other temperature control fields.