introduction
At present, the measurement range, measurement method and measurement accuracy of most temperature acquisition cards on the market are fixed at the factory. The measurement method is single, the measurement range is fixed, and the sensing method can only adapt to certain occasions. Therefore, it is not very suitable for some occasions with multiple measurement methods and measurement ranges. Moreover, their measurement procedures and table lookup databases are fixed, which cannot be applied to some occasions with special requirements. This system uses field programmable gate arrays (FPGAEP1K30QC208-3) to process data. Its program can be modified online, so it has strong plasticity. The program and table lookup database can be improved and updated in a timely manner, which can upgrade the performance of the system. Thus, the system can meet the needs of different occasions.
1. Hardware Design of Temperature Acquisition System
Since different
sensors
have different outputs, they all need to be converted into voltage values of 0 to 10V in order to meet the conversion requirements of the A/D
converter
. Therefore, each sensor requires a different conversion and amplification circuit. The converted voltage is sent to the same A/D converter for conversion through multiple
analog
switches. Then the data is processed and displayed by FPGA. The whole machine block diagram is shown in Figure 1.
1.1 PN junction temperature measurement principle
Since the PN junction generates a voltage signal as the temperature changes, the forward voltage drop of the PN junction decreases by 1 mV for every 1°C increase in temperature. However, at 0°C,
the output voltage
is required
to be 0 V, so the PN junction must be connected into a single-arm unbalanced
直流电\'); companyAdEvent.show(this,\'companyAdDiv\',[5,18])">
DC
bridge. The output voltage is amplified to a range of 0 to 10 V and sent to the A/D conversion circuit. The circuit schematic is shown in Figure (2):
1.2 PT100 thermal resistance temperature measurement principle hardware circuit
Since the PT100 thermal resistor generates a resistance signal as the temperature changes, the resistance value increases when the temperature rises. Therefore, the thermal resistor must be connected into a single-arm DC bridge to convert its resistance change into a voltage change signal. Then this voltage signal is amplified to the range of 0 to 10 V and sent to the A/D conversion circuit. The circuit diagram is omitted.
1.3 热电偶\'); companyAdEvent.show(this,\'companyAdDiv\',[5,18])"> Thermocouple Temperature measurement principle hardware circuit
The output of the thermocouple is a voltage signal that changes with temperature. It must be added with a cold-end compensation circuit to work properly, and its output must also be converted to a range of 0 to 10 V and sent to the A/D conversion circuit. The circuit diagram is shown in Figure 3:
2. Temperature Acquisition System Software Design
The temperature acquisition system software is divided into single-chip microcomputer program design and FPGA program design. The single-chip microcomputer program is written in assembly language to realize the control of peripheral circuits. The FPGA is written in VHDL language to realize data processing and display output of the measured temperature. [page]
2.1 MCU control
The single-chip microcomputer is used to control the multi-channel analog switch and FPGA, and to display the measurement mode. The P1 port is connected to a digital tube (indicating the output measurement mode code, 1 represents the PN junction measurement mode, 2 represents the thermocouple measurement mode, and 3 represents the thermal resistor measurement mode). The P2 port is connected to the output analog switch control word, the memory chip select signal, and the FPGA program switching control signal. The program flow chart is shown in Figure 4.
2.2 FPGA Data Processing
FPGA processes data according to different measurement methods. When the PN junction measurement method is selected, the FPGA calculates the data according to the temperature-voltage change function of the PN junction to obtain the corresponding temperature value; when the thermocouple or thermal resistor measurement method is selected, the FPGA sequentially searches for the data of the corresponding scale and compares and calculates with the A/D converted data to finally obtain the temperature value. It can be seen that the data processing of the thermocouple or thermal resistor measurement method is the same, but the scale is different.
2.2.1 PN junction data processing
PN junction measurement method: FPGA calculates the data based on the temperature-voltage change function of the PN junction (for every 1°C increase in temperature, the forward conduction voltage drop of the PN junction decreases by 1 mV) to obtain the corresponding temperature value.
2.2.2 Thermocouple and thermal resistor data processing
In the thermocouple or thermal resistor measurement mode, FPGA searches for the data of the corresponding scale table and compares and calculates the data converted by A/D in turn, and finally obtains the temperature value. The program flow chart is shown in Figure 5.
3. Installation and debugging of temperature acquisition system
Installation and debugging is the most critical and most prone to problems in a system. Some problems encountered during the installation and debugging of this system and the final solutions are as follows: (1) Thermocouples must have a cold-end compensation circuit to work properly. When testing the cold-end compensation circuit, its bridge resistance parameters are difficult to determine. Because different types of thermocouples have different bridge arm resistances and current limiting resistors, the parameters of each bridge arm were determined after multiple adjustments. (2) Each amplifier circuit used a single-stage voltage amplification at the beginning, which resulted in poor anti-interference ability and unstable amplification. In order to improve the anti-interference ability and stabilize the voltage amplification factor, a two-stage amplification was later adopted. The first stage used a low-amplification differential discharge circuit to eliminate common-mode interference. The second stage used voltage amplification to achieve interference-free stable amplification. (3) The display was cleared during software debugging, and it was finally found that the AD conversion data was not latched. The software latch method solved this problem.
4 Conclusion
The temperature acquisition system can realize temperature measurement in three ways: PN junction (20~100℃), thermal resistor (PT100) (0~800℃), and thermocouple (nickel-silicon K type) (0~1 000℃). It can meet the needs of different measurement ranges, different measurement accuracy and different occasions. This design uses EDA as a development tool and is matched with single-chip microcomputer control. The whole design has a newer design concept. The use of 12 ADC 模数转换\'); companyAdEvent.show(this,\'companyAdDiv\',[5,18])"> analog-to-digital converter greatly improves the measurement accuracy. The data processing uses field programmable gate array FPGA (EP1K30QC208-3), and its extremely high program execution speed makes the system respond faster and more accurately.
Previous article:Research and design of access network interface based on μC/OS-II
Next article:Real-time systems based on bare metal programming
Recommended ReadingLatest update time:2024-11-16 16:55
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Voltage feedback, common indicators, good or bad judgment...
- TI Simplelink platform next generation wireless product solutions Q&A
- MOS tube
- You can take a look at some of the sentences I saw in the book.
- Improving the efficiency of microcontroller code execution
- Correctly understand the amplification region, saturation region, and cutoff region of the transistor
- [Analog Electronics Course Selection Test] + Operational Amplifier Type Application
- Detailed schematic of LTC2380-24 (preferably single-ended input to differential)
- What is the power-off mode? Generally, to save power, you just need to put it in standby mode. To exit the power-off mode, you can only do a hardware reset...
- CircuitPython 5.4.0 Beta 0 released