Temperature collection system and experimental research of solar water heater

Publisher:玉立风华Latest update time:2011-07-18 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
Solar water heaters are gradually accepted by urban and rural residents for their safety, economy, applicability and pollution-free characteristics, and their temperature acquisition system is the key to the design. Commonly used temperature sensors include: thermocouples, thermistors, integrated temperature sensors, thermal resistors, etc. Since the physical and chemical properties of platinum resistors are extremely stable in oxidizing media and high temperatures, and the solar water heaters are placed outdoors in a harsh working environment, this design uses platinum resistors as temperature sensors for solar water heaters.

1 System Working Principle
Due to the working environment restrictions of solar water heaters, the lower computer (PIC16F877) is placed at the heat collection site, mainly to realize the temperature acquisition function and the temperature difference circulation control function, that is, to control the start and stop of the circulation pump, water supply valve, auxiliary electric heater, and heating belt, and to communicate with the upper computer (PIC16F877) via 485, and send the collected temperature and water level information to the upper computer for display. The
overall block diagram of the system is shown in Figure 1.

a.JPG



2 Hardware circuit design
The main function of the temperature acquisition processing circuit is to convert the temperature signal collected by the platinum resistance sensor into a voltage signal through a bridge signal detection circuit, and then perform two-stage amplification and nonlinear A/D conversion through the weak signal instrument amplifier MCP602, and convert it into a recognizable digital quantity, which is temporarily stored in the memory of the single-chip computer.
2.1 Temperature acquisition circuit design
The temperature acquisition circuit connects RA2, RA3, and RA4 of the single-chip computer to the address bits A, B, and C ports of the multi-channel selection chip CD4051. The single-chip computer sets which channel of temperature information to collect, and sets RA0 as the analog channel.
2.2 Calculation of amplification factor
The amplifier circuit of this design uses MCP602 as the amplifier, and the amplifier circuit diagram composed of it is shown in Figure 2. Among them: VREF=0 V, R1=300 kΩ, R2=10 kΩ, this is a simple two-stage amplifier circuit, and its amplification factor can be changed by adjusting the variable resistor RG, which is convenient for future debugging. The output voltage VOUT after two-stage amplification:
b.JPG

c.JPG


The signal collected by the bridge circuit is relatively weak and needs to be properly amplified to be converted into a 0 V to 5 V signal that can be recognized by the microcontroller. To this end, the value of the variable resistor RG should be reasonably set to select the appropriate magnification. The selection process is as follows:
When RG = 20 kΩ, the magnification is about 61 times. At temperature T = 99 ° C, the resistance value of PT1000 is R = 1381.26Ω, and VOUT = 2.806 V is obtained. Although VOUT is within the limit of 0 ~ 5 V, the sensitivity is small, so RG is adjusted to 10 kΩ. [page]

Solar water heaters are gradually accepted by urban and rural residents for their safety, economy, applicability and pollution-free characteristics, and their temperature acquisition system is the key to the design. Commonly used temperature sensors include: thermocouples, thermistors, integrated temperature sensors, thermal resistors, etc. Since the physical and chemical properties of platinum resistors are extremely stable in oxidizing media and high temperatures, and the solar water heaters are placed outdoors in a harsh working environment, this design uses platinum resistors as temperature sensors for solar water heaters.

1 System Working Principle
Due to the working environment restrictions of solar water heaters, the lower computer (PIC16F877) is placed at the heat collection site, mainly to realize the temperature acquisition function and the temperature difference circulation control function, that is, to control the start and stop of the circulation pump, water supply valve, auxiliary electric heater, and heating belt, and to communicate with the upper computer (PIC16F877) via 485, and send the collected temperature and water level information to the upper computer for display. The
overall block diagram of the system is shown in Figure 1.

a.JPG



2 Hardware circuit design
The main function of the temperature acquisition processing circuit is to convert the temperature signal collected by the platinum resistance sensor into a voltage signal through a bridge signal detection circuit, and then perform two-stage amplification and nonlinear A/D conversion through the weak signal instrument amplifier MCP602, and convert it into a recognizable digital quantity, which is temporarily stored in the memory of the single-chip computer.
2.1 Temperature acquisition circuit design
The temperature acquisition circuit connects RA2, RA3, and RA4 of the single-chip computer to the address bits A, B, and C ports of the multi-channel selection chip CD4051. The single-chip computer sets which channel of temperature information to collect, and sets RA0 as the analog channel.
2.2 Calculation of amplification factor
The amplifier circuit of this design uses MCP602 as the amplifier, and the amplifier circuit diagram composed of it is shown in Figure 2. Among them: VREF=0 V, R1=300 kΩ, R2=10 kΩ, this is a simple two-stage amplifier circuit, and its amplification factor can be changed by adjusting the variable resistor RG, which is convenient for future debugging. The output voltage VOUT after two-stage amplification:
b.JPG

c.JPG


The signal collected by the bridge circuit is relatively weak and needs to be properly amplified to be converted into a 0 V to 5 V signal that can be recognized by the microcontroller. To this end, the value of the variable resistor RG should be reasonably set to select the appropriate magnification. The selection process is as follows:
When RG = 20 kΩ, the magnification is about 61 times. At temperature T = 99 ° C, the resistance value of PT1000 is R = 1381.26Ω, and VOUT = 2.806 V is obtained. Although VOUT is within the limit of 0 ~ 5 V, the sensitivity is small, so RG is adjusted to 10 kΩ.

[page]

i.JPG


Then the output voltage △U is equal to:
j.JPG
3) Lead resistance of platinum resistor
Because the temperature measurement circuit is an unbalanced bridge. The platinum resistor is a bridge arm resistor of the bridge, and its connecting wire (from the platinum resistor to the control unit) is also a part of the bridge arm resistor. This part of the resistance is unknown and changes with the ambient temperature, causing measurement errors. However, since the resistance of the platinum resistor PT1000 is large, this factor can be ignored.
4) The influence of the temperature measurement circuit itself
Due to the jitter of the power supply voltage, external interference, mutual interference of the AD channel, etc., the uncertainty of temperature measurement will be caused. Therefore, reasonable circuit design must be used to eliminate the influence of these factors.
Considering the nonlinearity of the platinum resistor resistance and temperature and the nonlinearity of the bridge circuit itself, this paper proposes two solutions, which are introduced below.
Solution 1: Table lookup method
The resistance value Ri corresponding to each degree is found from the resistance-temperature graduation table of the platinum resistor. Substituting it into formula (3) can obtain the output voltage △U(i) corresponding to the bridge, and then according to formula (4) can obtain the corresponding A/D conversion value AD(i).
k.JPG
In the formula, K is the amplification factor of MCP602. This article chooses 91. UREF is the reference voltage of the A/D conversion inside the microcontroller, which is equal to 5 V.
The calculated A/D conversion value is stored in the memory of the microcontroller in a table according to the temperature. When measuring the temperature, first read the A/D conversion value, and then use the binary search algorithm to compare the A/D conversion result AD(t) of the microcontroller with the table value AD(i) stored in the EEPROM. Each time, the middle value AD(m) of the table is taken. If AD(t)>AD(m), the middle value of the second half of the table is taken for comparison in the next comparison. If AD(t) Solution 2: Least Squares Method
Due to the nonlinearity of the platinum resistance and temperature and the nonlinearity of the bridge circuit itself, the relationship between temperature and bridge output voltage becomes very complicated, and there is no corresponding function to describe the relationship between them. The least squares method is introduced below, and the mathematical model of the temperature sensor is established using the least squares parameter estimation theory.
The temperature of the water tank of the solar water heater is measured at the calibration point (a standard resistance box or potentiometer can be used to simulate the actual measurement of the platinum resistance at each calibration point), and several sets of data are obtained, namely (V1, T1), ... (Vi, Ti), ... (Vn, Tn). The input is the bridge output voltage Vi, and the output is the temperature Ti. Suppose
there is an m-order polynomial:
l.JPG
According to the principle of least squares method, at all given calibration points, the sum of squares of the deviations between the value of the polynomial T(Vi) and the measured output value Ti reaches the minimum, that is,
m.JPG
Thus, m+1 equations can be established to solve the unknown quantities a0, a1, …, am, and determine the expression of the polynomial T(Vi).

[page]

Solve the equations using matrix analysis method, and get the parameter vector as
o.JPG
The solution is solved by computer recursion method. First, set m=1, and bring the measured value into the matrix formula to calculate A. Calculate the error △i=Ti-T(Vi) point by point to see if it is out of tolerance. If it is out of tolerance, increase the order and set m=2, and recalculate A until it is not out of tolerance. At this time, the polynomial model is the sensor mathematical model.
The advantage of this method is that it can achieve the overall optimization of the established mathematical model and is suitable for the establishment of sensor models with large nonlinearity. However, when applied to this article, it is necessary to fit a high-order mathematical model, and the amount of calculation is large. In addition, the calculation speed is slow (multiple addition and multiplication operations) on a single-chip microcomputer with a main frequency of 4MHz, so this article adopts solution 1.

3 System software implementation
The software flow of temperature acquisition processing is shown in Figure 5, which includes starting the temperature circuit, register configuration, conversion data reading, and temperature search. First, perform A/D initialization settings, use the power supply voltage VCC as the comparison voltage, set RA0 as the analog input channel, open the water inlet temperature sampling channel, and start A/D conversion. When the A/D conversion enable bit GO/DONE = 1, the obtained sample value is sent to the binary search program to obtain the integer part M(t) of the temperature, thereby calculating the value of the temperature t. Return after the calculation is completed.

q.JPG



4 Experimental results and discussion
A standard resistance box is used to simulate a platinum resistance temperature sensor. Each resistance value corresponds to a temperature, forming the bridge arm of the temperature measurement bridge, and the differential voltage is obtained and measured by a multimeter. After being amplified by MCP602, it is sent to the microcontroller for A/D conversion. Since the A/D conversion inside the microcontroller is ten-bit, it is stored in registers ADRSEH and ADRSEL respectively, and then the corresponding temperature value is displayed on the touch screen in advance through the binary lookup table method. The comparison between the collected temperature and the actual temperature is shown in Table 1.

r.JPG


It can be seen from the table that within the temperature range of 10-80℃, the maximum error of temperature measurement is ±1℃. It can meet the heating and bathing requirements of solar water heaters.

5 Conclusion
This design uses platinum resistance as the temperature sensor of solar water heaters. The actual research results show that compared with previous similar sensors, this sensor has the advantages of high temperature control accuracy, easy use and stable performance, which improves the control level of solar energy application in China.

Reference address:Temperature collection system and experimental research of solar water heater

Previous article:Design and implementation of intelligent transmitter based on FPGA
Next article:Design of indoor temperature detection and control system

Latest Test Measurement Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号