39-Thermistor temperature measurement design based on 51 single chip microcomputer

Specific realization function

The system is composed of STC89C52 single-chip microcomputer + thermistor + TLC2543AD module + LCD1602 display module + alarm module + power supply.

Specific functions:

1. LCD1602 displays the measured temperature value and the set temperature range

2. The button can set the temperature range;

3. If the temperature exceeds the set temperature range, an alarm will start;

There are 3 buttons: set, add, and subtract.

design background

In the human living environment, temperature plays an extremely important role. No matter where you live or what work you do, you are always dealing with temperature all the time. Since the industrial revolution in the 18th century, industrial development has an absolute relationship with whether we can control temperature. In the metallurgy, steel, petrochemical, cement, glass, pharmaceutical and other industries, it can be said that almost 80% of the industrial sectors have to consider the temperature factor. Temperature is so important to industry, which promotes the development of temperature sensors.

    After entering the 21st century, temperature sensors are developing rapidly in the direction of high-tech, such as high-precision, multi-function, bus standardization, high reliability and safety, the development of virtual sensors and network sensors, and the development of single-chip temperature measurement systems. In industrial and agricultural production, temperature detection and control occupies a pivotal position. With the rapid development of modern information technology and the gradual realization of traditional industrial transformation, temperature detection and display systems that can work independently have been used in many fields. To achieve higher measurement accuracy, it is necessary to well solve the problems of lead error compensation, multi-point measurement switching error and amplifier circuit zero drift error, which complicates temperature detection. In the process of long-distance transmission of analog signals, anti-electromagnetic interference is a problem for designers. For multi-point temperature detection, the lead distance between each detected point and the monitoring device is often different. In addition, the parameters of various sensitive components are inconsistent. , These are the reasons for the error, and it is difficult to completely remove. 

With its strong functions, small size, high reliability, low cost and short development cycle, single-chip microcomputers have become indispensable and widely used devices in automation and various measurement and control fields, especially in daily life. effect. The use of a single-chip microcomputer to control the temperature acquisition not only has the advantages of convenient control, simple configuration and great flexibility, but also can greatly improve the technical indicators of the controlled data, thereby greatly improving the quality and quantity of the product.

hardware design

The overall hardware design is very simple, including the MCU control part, the liquid crystal display part, the A/D converter part, the sound and light alarm part and the thermistor part.

software design

The overall program is divided into three parts, namely the key processing part, the temperature data processing part and the display part.

The button part is mainly used to operate the upper and lower limits of the temperature. There is a logic in the button design, that is, the upper limit of the temperature cannot be lower than the lower limit of the temperature, and the lower limit of the temperature cannot be higher than the upper limit of the temperature. Limit.

 

Schematic diagram

The system schematic design adopts Altium Designer19, as shown in the figure.

program

This design uses KEIL5 software to realize the program design, as shown in the figure.

Simulation implementation

This design uses protues8.7 software to realize the simulation design, as shown in the figure.

All information

All materials include programs (notes), AD schematics, PCB source files, protues simulation, reference papers, program explanations, simulation explanations, simulation videos, schematic explanations, introductions to the use of materials, etc., the most complete network!

For information, please follow the WeChat public account "Electronic Engineer Growth Diary", and reply the key word: "Information"!

Guess you like

Origin blog.csdn.net/weixin_41017942/article/details/115032934