A multi-stage adaptive temperature control method for stirling cryocooler

By employing a multi-stage adaptive temperature control method, the Stirling refrigerator uses PWM drive signals and residual BP-PID technology to solve the problems of overcooling in the rapid cooling stage and temperature fluctuation in the stable temperature control stage, achieving high-precision and fast-response temperature control.

CN123154472APending Publication Date: 2026-11-24KUNMING UNIV OF SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611318689.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing temperature control methods for Stirling refrigerators suffer from several drawbacks: the rapid cooling phase is prone to overcooling, the deceleration is not smooth when approaching the target temperature, the fixed PID parameters lack adaptability, and the temperature fluctuates significantly during the stable temperature control phase, resulting in insufficient temperature control accuracy and response speed.

Method used

A multi-stage adaptive temperature control method is adopted, which generates a PWM drive signal through cold end temperature feedback, divides the temperature control into rapid cooling, transition deceleration and stable temperature control stages, and uses dual time constant filtering, residual BP-PID and virtual target temperature to perform PWM increment correction. Combined with amplitude limiting, speed limiting and anti-saturation processing, fine adjustment is achieved.

Benefits of technology

It improves the temperature control accuracy and response speed of the Stirling refrigerator, while balancing rapid cooling and stable temperature control. It also enhances the smoothness and adaptability of the temperature control process, thereby improving the safety and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123154472A_ABST
    Figure CN123154472A_ABST
Patent Text Reader

Abstract

This invention relates to a multi-stage adaptive temperature control method for Stirling refrigerators, belonging to the field of Stirling refrigerator control technology. The invention calculates temperature error and rate of change based on rapid filtering temperature calculation; according to the deceleration distance dynamically adjusted with the cooling rate, the temperature control process is divided into rapid cooling, transition deceleration, and stable temperature control stages. When switching between the transition deceleration and stable temperature control stages, error alignment reset and PWM smooth transition are performed. In the transition deceleration stage, a first-order convergent virtual target temperature is used, and the PWM incremental correction is output through residual BP-PID, which is superimposed on the deceleration correction to jointly adjust the PWM control quantity. In the stable temperature control stage, fine adjustment is achieved based on the target temperature through residual BP-PID. The PWM control quantity is subjected to amplitude limiting, speed limiting, and anti-saturation processing, and a graded protection mechanism is provided. This invention balances cooling efficiency and overcooling suppression, reduces stage switching impact, and improves temperature control accuracy and operational reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a multi-stage adaptive temperature control method for Stirling refrigerators, belonging to the field of Stirling refrigerator control technology. Background Technology

[0002] Stirling refrigeration systems are highly efficient, compact, and reliable, and are widely used in fields such as infrared detection and cryogenic sensing. The cold junction temperature needs to be stably controlled at a preset low-temperature operating point, and the temperature control accuracy and response speed directly affect the performance of the terminal system.

[0003] Existing Stirling chillers mostly use fixed-parameter PID or segmented PID temperature control. Due to the thermal inertia of the chiller and the load, they generally have three shortcomings: First, it is difficult to balance rapid cooling and overcooling suppression. Full-power cooling is prone to overcooling due to inertia, while reducing power in advance prolongs the cooling time. Second, the control parameters and switching thresholds are mostly preset fixed values, which cannot adapt to changes in operating conditions under different ambient temperatures and thermal loads, and are prone to deceleration lag, PWM jumps, temperature overshoot, and steady-state oscillations. Third, there is a contradiction between temperature sampling noise and control real-time performance. Strong filtering will reduce the response speed of temperature change rate, while weak filtering will easily cause PWM output jitter.

[0004] Therefore, a multi-stage adaptive temperature control method for Stirling refrigerators needs to be proposed, which can maintain high cooling efficiency during the rapid cooling stage, actively decelerate according to the cooling rate when approaching the target temperature, and achieve smooth and fine PWM incremental adjustment during the stable temperature control stage, thereby improving temperature control accuracy and operational reliability. Summary of the Invention

[0005] This invention provides a multi-stage adaptive temperature control method for Stirling refrigerators to solve the problems of excessive cooling during the rapid cooling stage, uneven deceleration when approaching the target temperature, insufficient adaptability of fixed PID parameters, and large temperature fluctuations during the stable temperature control stage in existing Stirling refrigerator temperature control methods.

[0006] The technical solution of this invention is: a multi-stage adaptive temperature control method for a Stirling refrigerator, which firstly controls the operation of the Stirling refrigerator by generating a PWM drive signal based on cold junction temperature feedback, characterized in that: the method includes:

[0007] The real-time temperature of the cold junction is collected and filtered by dual time constants to obtain fast and slow filtered temperatures.

[0008] Temperature error and rate of change are calculated based on rapid filtering temperature; the temperature control process is divided into rapid cooling, transitional deceleration and stable temperature control stages according to the deceleration distance dynamically adjusted with the cooling rate.

[0009] When switching to the transition deceleration phase or the stable temperature control phase, error alignment reset and PWM smooth transition are performed;

[0010] During the transition deceleration phase, a first-order convergent virtual target temperature is used. The incremental correction amount of PWM is output through residual BP-PID, and the deceleration correction amount is superimposed to jointly adjust the PWM control amount.

[0011] During the stable temperature control phase, fine adjustment is achieved based on the target temperature using residual BP-PID; amplitude limiting, speed limiting, and anti-saturation processing are implemented for the PWM control quantity, and a graded protection mechanism is provided.

[0012] Furthermore, the method specifically includes the following processing:

[0013] The real-time temperature of the cold end of the Stirling refrigerator is collected, and the real-time temperature is filtered by dual time constants to obtain the fast-filtered temperature and the slow-filtered temperature.

[0014] The temperature error and temperature change rate are calculated based on the fast filtered temperature, and the current cooling rate is determined based on the temperature change rate.

[0015] Based on the temperature error, temperature change rate, and dynamic deceleration distance calculated by combining the current cooling rate with the equivalent deceleration time and safety margin and obtained by limiting the upper and lower limits, the temperature control process is divided into a rapid cooling stage, a transition deceleration stage, and a stable temperature control stage.

[0016] When the temperature error is greater than the dynamic deceleration distance, it is determined to be in the rapid cooling stage; when the temperature error is less than or equal to the dynamic deceleration distance and the stable temperature control entry condition is not met, it is determined to be in the transition deceleration stage; when the temperature error based on the rapid filtering temperature, the temperature change rate, and the temperature deviation based on the slow filtering temperature continuously meet the preset steady-state threshold condition, it is determined to be in the stable temperature control stage.

[0017] When the system switches to the transition deceleration stage or the stable temperature control stage, the control error of the current stage is calculated based on the control setpoint of the temperature control stage after the switch. The control error of the previous control cycle and the control error of the previous two control cycles corresponding to the incremental PID are both reset to the control error of the current stage. The last actual PWM output control quantity before the switch is used as the basis for PWM incremental synthesis of the first control cycle after the switch.

[0018] During the rapid cooling phase, a preset high-value PWM control quantity is output to enable the Stirling refrigerator to operate at the preset cooling power.

[0019] During the transition deceleration phase, a virtual target temperature is generated, which is initially set at the current fast-filtering temperature, smoothly converges to the target temperature along a first-order convergence trajectory, and is constrained by the leading distance. This virtual target temperature is then used as the control setpoint. The residual BP-PID module outputs the PWM incremental correction. In the residual BP-PID module, the residual correction of the PID parameters output by the BP neural network is superimposed with the basic PID parameters to obtain the real-time PID parameters. The incremental PID outputs the PWM incremental correction based on the real-time parameters. Simultaneously, the allowable cooling rate is determined based on the temperature error, and a deceleration correction is generated based on the current cooling rate and the allowable cooling rate. Based on the actual PWM output control quantity of the previous control cycle, the PWM incremental correction and the deceleration correction are superimposed to generate the target PWM control quantity for the current control cycle.

[0020] During the stable temperature control phase, the target temperature is used as the control setpoint, and the residual BP-PID module outputs the PWM incremental correction amount. Based on the actual PWM output control amount of the previous control cycle, the PWM incremental correction amount is added to generate the target PWM control amount of the current control cycle.

[0021] The target PWM control quantity is subjected to amplitude limiting, speed limiting, and anti-saturation processing to obtain the actual PWM output control quantity. The actual PWM output control quantity is then written into the PWM generation module to generate a PWM drive signal with the corresponding duty cycle and output to the Stirling refrigerator drive circuit.

[0022] Furthermore, the dual-time-constant filtering process is a first-order low-pass filter, and the filter coefficient for generating the fast-filtered temperature is greater than the filter coefficient for generating the slow-filtered temperature.

[0023] The fast filtered temperature is used for temperature error calculation, temperature change rate calculation, temperature control stage switching, virtual target temperature tracking, and control error calculation of the residual BP-PID module.

[0024] The slow-speed filtered temperature is used to determine the entry conditions for the stable temperature control phase and to confirm the steady-state operating condition.

[0025] Furthermore, within each control cycle, a dynamic deceleration distance is calculated based on the current cooling rate, equivalent deceleration time, and safety margin. The dynamic deceleration distance is used to characterize the deceleration trigger distance formed by the expected inertial cooling amount determined by the current cooling rate and the safety margin, and is used to determine the switching timing between the rapid cooling stage and the transition deceleration stage.

[0026] The current cooling rate satisfies:

[0027] In the formula, The cooling rate for the current control cycle. The rate of temperature change during the current control cycle;

[0028] The dynamic deceleration distance satisfies:

[0029]

[0030] In the formula, This represents the dynamic deceleration distance for the current control cycle. For equivalent deceleration time, For safety margin, Minimum deceleration distance, For maximum deceleration distance, This is a limiting function;

[0031] When the temperature error of the current control cycle is greater than the dynamic deceleration distance of the current control cycle, the system executes the rapid cooling phase;

[0032] When the temperature error of the current control cycle is less than or equal to the dynamic deceleration distance of the current control cycle, and the conditions for entering the stable temperature control stage have not yet been met, the system executes the transition deceleration stage.

[0033] Furthermore, when the absolute value of the temperature error in the current control cycle is less than or equal to the preset steady-state error threshold, the absolute value of the temperature change rate in the current control cycle is less than or equal to the preset steady-state change rate threshold, and the absolute value of the difference between the slow-filtered temperature and the target temperature in the current control cycle is less than or equal to the preset slow steady-state confirmation threshold, and the above conditions are continuously satisfied for the preset steady-state confirmation time, the system enters the stable temperature control stage.

[0034] The conditions for entering the stable temperature control phase are met:

[0035] Furthermore, the duration of the above conditions is not less than the preset steady-state confirmation time. ;

[0036] In the formula, The temperature error for the current control cycle. The rate of temperature change during the current control cycle. The slow-filtering temperature for the current control cycle. For the target temperature, To preset the steady-state error threshold, To preset the steady-state rate of change threshold, To preset the slow steady-state confirmation threshold, This is the preset steady-state confirmation time.

[0037] Furthermore, at the initial moment of entering the transition deceleration phase, the virtual target temperature is initialized to the current fast filtering temperature;

[0038] During the transitional deceleration phase, the virtual target temperature approaches the target temperature along a first-order convergent trajectory, satisfying:

[0039]

[0040]

[0041] In the formula, The rate at which the virtual target temperature decreases. For virtual target trajectory coefficients, For virtual target temperature, For the target temperature, To control the cycle;

[0042] When the virtual target temperature is lower than the target temperature, it is corrected to the target temperature.

[0043] Furthermore, the virtual target temperature Satisfy the lead distance constraint:

[0044]

[0045] When the virtual target temperature is lower than the temperature value corresponding to the leading distance constraint, the virtual target temperature is corrected to:

[0046]

[0047] In the formula, This represents the maximum allowable lead temperature difference between the virtual target temperature and the fast-filtered temperature.

[0048] Furthermore, the BP neural network in the residual BP-PID module outputs the PID parameter residual correction amount. , , The real-time PID parameters for the current control cycle are obtained by superimposing them with the basic PID parameters.

[0049] In the formula, , , Use the base PID parameters.

[0050] Furthermore, during the transition deceleration phase and the stable temperature control phase, the BP neural network constructs a learning objective function based on the temperature control error and uses a gradient descent method to update the network weights and biases online to achieve PID parameter residual correction. Different learning rates are used during the transition deceleration phase and the stable temperature control phase, with the learning rate during the stable temperature control phase being less than that during the transition deceleration phase. During the rapid cooling phase, under the overcooling protection state, under the abnormal cooling state, or under the abnormal stall state, the online learning process of the BP neural network is frozen.

[0051] Furthermore, during the transition deceleration phase, the allowable cooling rate is determined based on the temperature error;

[0052] The allowable cooling rate satisfies:

[0053]

[0054] In the formula, The allowable cooling rate for the current control cycle. The phase plane velocity boundary coefficient, The temperature error for the current control cycle. , The limit value for the allowable cooling rate;

[0055] When the current cooling rate is greater than the allowable cooling rate, the deceleration correction amount is generated;

[0056] The deceleration correction amount satisfies:

[0057]

[0058] In the formula, This is the deceleration correction amount for the current control cycle. This is the deceleration gain coefficient. This represents the maximum deceleration correction amount per cycle.

[0059] When the current cooling rate is not greater than the allowable cooling rate, the deceleration correction is zero.

[0060] The beneficial effects of this invention are:

[0061] First, the present invention divides the temperature control process of the Stirling refrigerator into a rapid cooling stage, a transition deceleration stage, and a stable temperature control stage, and adopts different PWM generation strategies in different stages, which can take into account rapid cooling, smooth deceleration and stable temperature control.

[0062] Second, the present invention determines the dynamic deceleration distance based on the current cooling rate, and introduces a virtual target temperature and deceleration correction during the transition deceleration phase, so that the system can reduce the cooling power in advance when approaching the target temperature, reduce the risk of overcooling caused by thermal inertia, and improve the smoothness of the deceleration process.

[0063] Third, the present invention uses residual BP-PID to output PWM incremental correction amount, and superimposes it on the actual PWM output control amount of the previous control cycle, which is beneficial to improve the continuity of PWM control amount, reduce stage switching impact, and enhance temperature control adaptability under different operating conditions.

[0064] Fourth, the present invention sets up overcooling protection, refrigeration abnormality judgment and stall abnormality judgment, and adopts a reduced recovery PWM control quantity and speed limit recovery strategy after exiting the overcooling protection state, which can improve the safety and reliability of the temperature control process of Stirling refrigerator. Attached Figure Description

[0065] Figure 1 This is a flowchart illustrating the overall process of a multi-stage adaptive temperature control method for a Stirling refrigerator according to the present invention.

[0066] Figure 2 This is a flowchart of the temperature acquisition, filtering, and temperature change rate calculation processes of this invention.

[0067] Figure 3 This is a flowchart of the dynamic deceleration distance calculation and stage judgment process of the present invention;

[0068] Figure 4 This is a flowchart illustrating the virtual target temperature generation process during the transition deceleration phase of this invention.

[0069] Figure 5 This is a flowchart of PWM synthesis during the transition deceleration stage of the present invention;

[0070] Figure 6 This is a flowchart of PWM synthesis during the stable temperature control stage of this invention;

[0071] Figure 7 This is a flowchart for judging overcooling protection, refrigeration abnormality, and stall abnormality in this invention.

[0072] Figure 8 This is a comparison chart of the PWM output control quantities of the traditional PID control method and the multi-stage adaptive temperature control method described in this invention;

[0073] Figure 9 This is a comparison chart of the cold junction temperature response between the traditional PID control method and the multi-stage adaptive temperature control method described in this invention;

[0074] Figure 10 This is a magnified view of the cold end temperature near the target temperature, comparing the traditional PID control method with the multi-stage adaptive temperature control method described in this invention. Detailed Implementation

[0075] The present invention will be further described below with reference to the accompanying drawings and specific embodiments. It should be understood that the following embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the present invention. All equivalent substitutions, modifications, or improvements made based on the technical concept of the present invention should be included within the scope of protection of the present invention.

[0076] Example 1: As Figures 1-10 As shown, a multi-stage adaptive temperature control method for a Stirling refrigerator includes:

[0077] The real-time temperature of the cold end of the Stirling refrigerator is collected, and the real-time temperature is filtered by dual time constants to obtain a fast-filtered temperature with a faster response speed and a slow-filtered temperature with higher smoothness.

[0078] The temperature error and temperature change rate are calculated based on the fast filtered temperature, and the current cooling rate is determined based on the temperature change rate.

[0079] Based on the temperature error, temperature change rate, and dynamic deceleration distance calculated by combining the current cooling rate with the equivalent deceleration time and safety margin and obtained by limiting the upper and lower limits, the temperature control process is divided into a rapid cooling stage, a transition deceleration stage, and a stable temperature control stage.

[0080] When the temperature error is greater than the dynamic deceleration distance, it is determined to be in the rapid cooling stage; when the temperature error is less than or equal to the dynamic deceleration distance and the stable temperature control entry condition is not met, it is determined to be in the transition deceleration stage; when the temperature error based on the rapid filtering temperature, the temperature change rate, and the temperature deviation based on the slow filtering temperature continuously meet the preset steady-state threshold condition, it is determined to be in the stable temperature control stage.

[0081] When the system switches to the transition deceleration stage or the stable temperature control stage, the control error of the current stage is calculated based on the control setpoint of the temperature control stage after the switch. The control error of the previous control cycle and the control error of the previous two control cycles corresponding to the incremental PID are both reset to the control error of the current stage. The last actual PWM output control quantity before the switch is used as the basis for PWM incremental synthesis of the first control cycle after the switch.

[0082] During the rapid cooling phase, a preset high-value PWM control quantity is output to enable the Stirling refrigerator to operate at the preset cooling power.

[0083] During the transition deceleration phase, a virtual target temperature is generated, which is initially set at the current fast-filtering temperature, smoothly converges to the target temperature along a first-order convergence trajectory, and is constrained by the leading distance. This virtual target temperature is then used as the control setpoint. The residual BP-PID module outputs the PWM incremental correction. In the residual BP-PID module, the residual correction of the PID parameters output by the BP neural network is superimposed with the basic PID parameters to obtain the real-time PID parameters. The incremental PID outputs the PWM incremental correction based on the real-time parameters. Simultaneously, the allowable cooling rate is determined based on the temperature error, and a deceleration correction is generated based on the current cooling rate and the allowable cooling rate. Based on the actual PWM output control quantity of the previous control cycle, the PWM incremental correction and the deceleration correction are superimposed to generate the target PWM control quantity for the current control cycle.

[0084] During the stable temperature control phase, the target temperature is used as the control setpoint, and the residual BP-PID module outputs the PWM incremental correction amount. Based on the actual PWM output control amount of the previous control cycle, the PWM incremental correction amount is added to generate the target PWM control amount of the current control cycle.

[0085] The target PWM control quantity is subjected to amplitude limiting, speed limiting, and anti-saturation processing to obtain the actual PWM output control quantity. The actual PWM output control quantity is then written into the PWM generation module to generate a PWM drive signal with the corresponding duty cycle and output to the Stirling refrigerator drive circuit.

[0086] Furthermore, the dual-time-constant filtering process is a first-order low-pass filter, and the filter coefficient for generating the fast-filtered temperature is greater than the filter coefficient for generating the slow-filtered temperature.

[0087] The fast filtered temperature is used for temperature error calculation, temperature change rate calculation, temperature control stage switching, virtual target temperature tracking, and control error calculation of the residual BP-PID module.

[0088] The slow-speed filtered temperature is used to determine the entry conditions for the stable temperature control phase and to confirm the steady-state operating condition.

[0089] Furthermore, the temperature error is calculated based on the fast-filtered temperature and the target temperature:

[0090]

[0091] In the formula, The temperature error for the current control cycle. The fast-filtered temperature for the current control cycle. The target temperature.

[0092] The temperature change rate is calculated based on the change in temperature during adjacent control cycles after fast filtering, and satisfies:

[0093]

[0094] In the formula, The rate of temperature change during the current control cycle. This is the fast-filtered temperature from the previous control cycle. To control the cycle.

[0095] Furthermore, within each control cycle, a dynamic deceleration distance is calculated based on the current cooling rate, equivalent deceleration time, and safety margin. The dynamic deceleration distance is used to characterize the deceleration trigger distance formed by the expected inertial cooling amount determined by the current cooling rate and the safety margin, and is used to determine the switching timing between the rapid cooling stage and the transition deceleration stage.

[0096] The current cooling rate satisfies:

[0097] In the formula, The cooling rate for the current control cycle. The rate of temperature change during the current control cycle;

[0098] The dynamic deceleration distance satisfies:

[0099]

[0100] In the formula, This represents the dynamic deceleration distance for the current control cycle. For equivalent deceleration time, For safety margin, Minimum deceleration distance, For maximum deceleration distance, This is a limiting function;

[0101] When the temperature error of the current control cycle is greater than the dynamic deceleration distance of the current control cycle, the system executes the rapid cooling phase;

[0102] When the temperature error of the current control cycle is less than or equal to the dynamic deceleration distance of the current control cycle, and the conditions for entering the stable temperature control stage have not yet been met, the system executes the transition deceleration stage.

[0103] Furthermore, when the absolute value of the temperature error in the current control cycle is less than or equal to the preset steady-state error threshold, the absolute value of the temperature change rate in the current control cycle is less than or equal to the preset steady-state change rate threshold, and the absolute value of the difference between the slow-filtered temperature and the target temperature in the current control cycle is less than or equal to the preset slow steady-state confirmation threshold, and the above conditions are continuously satisfied for the preset steady-state confirmation time, the system enters the stable temperature control stage.

[0104] The conditions for entering the stable temperature control phase are met:

[0105] Furthermore, the duration of the above conditions is not less than the preset steady-state confirmation time. ;

[0106] In the formula, The temperature error for the current control cycle. The rate of temperature change during the current control cycle. The slow-filtering temperature for the current control cycle. For the target temperature, To preset the steady-state error threshold, To preset the steady-state rate of change threshold, To preset the slow steady-state confirmation threshold, This is the preset steady-state confirmation time.

[0107] Furthermore, at the initial moment of entering the transition deceleration phase, the virtual target temperature is initialized to the current fast filtering temperature;

[0108] During the transitional deceleration phase, the virtual target temperature approaches the target temperature along a first-order convergent trajectory, satisfying:

[0109]

[0110]

[0111] In the formula, The rate at which the virtual target temperature decreases. For virtual target trajectory coefficients, For virtual target temperature, For the target temperature, To control the cycle;

[0112] When the virtual target temperature is lower than the target temperature, it is corrected to the target temperature.

[0113] Furthermore, the virtual target temperature Satisfy the lead distance constraint:

[0114]

[0115] When the virtual target temperature is lower than the temperature value corresponding to the leading distance constraint, the virtual target temperature is corrected to:

[0116]

[0117] In the formula, This represents the maximum allowable lead temperature difference between the virtual target temperature and the fast-filtered temperature.

[0118] Furthermore, during the transition deceleration phase, the control error of the residual BP-PID is the deviation between the fast-filtered temperature and the virtual target temperature;

[0119] During the stable temperature control phase, the control error of the residual BP-PID is the deviation between the fast-filtered temperature and the target temperature.

[0120] The residual BP-PID outputs the PWM increment correction amount for the current control cycle.

[0121] Furthermore, the BP neural network in the residual BP-PID outputs the PID parameter residual correction amount. , , The real-time PID parameters for the current control cycle are obtained by superimposing them with the basic PID parameters.

[0122] In the formula, , , Use the base PID parameters.

[0123] Furthermore, during the transition deceleration phase and the stable temperature control phase, the BP neural network constructs a learning objective function based on the temperature control error and uses a gradient descent method to update the network weights and biases online to achieve PID parameter residual correction. Different learning rates are used during the transition deceleration phase and the stable temperature control phase, with the learning rate during the stable temperature control phase being less than that during the transition deceleration phase. During the rapid cooling phase, under the overcooling protection state, under the abnormal cooling state, or under the abnormal stall state, the online learning process of the BP neural network is frozen.

[0124] Furthermore, during the transition deceleration phase, the allowable cooling rate is determined based on the temperature error;

[0125] The allowable cooling rate satisfies:

[0126]

[0127] In the formula, The allowable cooling rate for the current control cycle. The phase plane velocity boundary coefficient, The temperature error for the current control cycle. , The limit value for the allowable cooling rate;

[0128] When the current cooling rate is greater than the allowable cooling rate, the deceleration correction amount is generated.

[0129] Furthermore, the deceleration correction amount satisfies:

[0130]

[0131] In the formula, This is the deceleration correction amount for the current control cycle. This is the deceleration gain coefficient. This represents the maximum deceleration correction amount per cycle.

[0132] When the current cooling rate is not greater than the allowable cooling rate, the deceleration correction is zero.

[0133] Furthermore, during the transition deceleration phase and the stable temperature control phase, the PWM increment correction of the residual BP-PID output is limited respectively;

[0134] The PWM increment correction limit during the stable temperature control phase is smaller than the PWM increment correction limit during the transition deceleration phase.

[0135] Furthermore, the target PWM control quantity in the current control cycle is subjected to amplitude limiting, speed limiting, and anti-saturation processing;

[0136] The limiting process is used to limit the target PWM control quantity between a preset minimum value and a preset maximum value;

[0137] The speed limiting process is used to limit the change in the target PWM control quantity between adjacent control cycles, and different single-cycle maximum change step sizes are used in the transition deceleration phase and the stable temperature control phase.

[0138] The anti-saturation processing includes: freezing positive increment accumulation when the target PWM control quantity reaches the preset upper limit and the residual BP-PID still outputs positive PWM increment correction; freezing negative increment accumulation when the target PWM control quantity reaches the preset lower limit and the residual BP-PID still outputs negative PWM increment correction.

[0139] Furthermore, during the temperature control process, when the rapid filtering temperature is lower than the target temperature preset overcooling margin, and the temperature change rate is continuously less than the preset negative change rate threshold and exceeds the preset overcooling judgment time, the overcooling protection state is entered.

[0140] After entering the overcooling protection state, the actual PWM output control quantity is set to zero, the normal temperature control algorithm is paused, the PWM increment correction of the residual BP-PID is no longer calculated, the update of the previous cycle PWM reference value used for incremental PWM synthesis is stopped, and the online learning process of the BP neural network is frozen.

[0141] Furthermore, when the rapid filtering temperature rises above the overcooling exit threshold, and the temperature change rate continues to be greater than or equal to the preset rise change rate threshold and meets the preset exit confirmation time, the overcooling protection state is exited.

[0142] After exiting the overcooling protection state, the recovery PWM control quantity is determined based on the last actual PWM output control quantity before entering the overcooling protection state, the safety reduction quantity, and the recovery limit range:

[0143]

[0144] In the formula, To restore the PWM control quantity, This is the last actual PWM output control quantity before entering the overcooling protection state. To preset the safe reduction amount, , To restore the upper and lower limits of the PWM control quantity;

[0145] After exiting the overcooling protection state, the recovered PWM control quantity is used as the target recovery value, and the actual PWM output control quantity at the time of exiting the protection is used as the recovery starting value. The actual PWM output control quantity is gradually made to approach the recovered PWM control quantity according to the preset maximum change step size per single cycle. During the recovery process, the reference value of the previous cycle used for incremental PWM synthesis is updated with the actual PWM output control quantity of each control cycle. The control error of the previous control cycle and the control error of the previous two control cycles are aligned and reset according to the current control error, and the online learning process of the BP neural network is resumed.

[0146] Furthermore, when the system is in the rapid cooling phase or the transition deceleration phase, and the actual PWM output control quantity is greater than or equal to the preset power threshold, if the cumulative decrease in the rapid filtering temperature within the preset fault judgment time is less than the preset effective decrease threshold after the preset start-up shielding time, it is judged as a cooling abnormality.

[0147] The cumulative decrease is the difference between the fast-filtered temperature at the start of the preset fault determination time and the current fast-filtered temperature; after entering the cooling abnormal state, the PWM output is turned off and the cooling fault status is output.

[0148] Furthermore, the real-time speed feedback signal of the Stirling chiller is collected; when the actual PWM output control quantity reaches the preset drive threshold, after the preset start-up shielding time, if the speed of the Stirling chiller is continuously less than or equal to the preset speed threshold and exceeds the stall judgment time, it is judged as a stall abnormality.

[0149] After entering the stalled rotor abnormal state, the PWM output is turned off and the stalled rotor fault status is output.

[0150] Example 2, as follows Figure 1 As shown, this embodiment provides a multi-stage adaptive temperature control method for Stirling refrigerators, applied to the cold-end temperature control of Stirling refrigerators. The system operates according to a preset control cycle. The system periodically performs temperature acquisition, filtering, temperature error calculation, temperature change rate calculation, dynamic deceleration distance calculation, stage judgment, target PWM control quantity synthesis, PWM control quantity amplitude and speed limiting and anti-saturation processing, as well as protection and fault monitoring. The control cycle is described in the figure. The time can be set from 10 ms to 100 ms; this embodiment uses 100 ms.

[0151] In this embodiment, the system internally sets state variables for the current temperature control stage, which include rapid cooling stage, transition deceleration stage, stable temperature control stage, and protection or fault status. Within each control cycle, the system updates the temperature control stage state variables based on the current temperature error, temperature change rate, and dynamic deceleration distance, and selects the corresponding PWM generation method based on the updated temperature control stage state variables.

[0152] The temperature control process of this invention includes a rapid cooling stage, a transition deceleration stage, and a stable temperature control stage. The rapid cooling stage is used to quickly bring the cold end temperature close to the target temperature. The preset high-value PWM control quantity can be set to 80% to 100% of the maximum PWM control quantity. In this embodiment, 3599 is used, corresponding to a 100% duty cycle. The transition deceleration stage is used to reduce the cooling rate when approaching the target temperature to prevent overcooling. The stable temperature control stage is used to perform small-amplitude PWM increment adjustments near the target temperature.

[0153] In this embodiment, the PWM control quantity is represented by a digital counter value, which ranges from 0 to... The PWM control quantity is written to the compare register of the PWM generator module to control the duty cycle of the PWM drive signal output by the PWM generator module. The PWM duty cycle of the current control cycle... With the actual PWM output control quantity There is a preset mapping relationship between them, satisfying:

[0154]

[0155] In the formula, This refers to the actual PWM output control quantity after amplitude limiting, speed limiting, anti-saturation, and protection or fault handling. This is the maximum control value for PWM. In this embodiment, Therefore, when the actual PWM output control quantity is 0, it corresponds to a 0% duty cycle, and when the actual PWM output control quantity is 3599, it corresponds to a 100% duty cycle.

[0156] For ease of explanation, the PWM control quantity obtained by incremental PWM synthesis that has not yet undergone amplitude limiting, speed limiting, anti-saturation, and protection or fault handling is called the target PWM control quantity; the PWM control quantity that is actually written into the PWM generation module after amplitude limiting, speed limiting, and anti-saturation is called the actual PWM output control quantity; and the pulse signal output by the PWM generation module according to the actual PWM output control quantity is called the PWM drive signal.

[0157] like Figure 2 As shown, during the k-th control cycle, the system collects the initial temperature of the cold end of the Stirling refrigerator, denoted as . To reduce the impact of sampling noise and transient disturbances on the temperature control process, the system can first perform abnormal sampling rejection and amplitude limiting on the original temperature.

[0158] The system collects real-time temperature data. Perform filtering to generate a fast filtered temperature. and slow filtering temperature Fast filtering temperature satisfy:

[0159]

[0160] In the formula, This is the filtered temperature value for the current control cycle. For fast filter coefficients, The original sampling temperature for the current control cycle. This is the filtered temperature value from the previous control cycle. The fast filter coefficient... It can be set to 0.10 to 0.50; in this embodiment, 0.30 is used.

[0161] Slow filtering temperature meets:

[0162]

[0163] In the formula, This is the filtered temperature value for the current control cycle. These are the slow filter coefficients. This is the filtered temperature value from the previous control cycle. and All are preset filter coefficients, and satisfy the following:

[0164]

[0165] The slow filter coefficient It can be set to 0.01 to 0.10, and this embodiment uses 0.05.

[0166] Fast filtering temperature It has a fast response time and is used for temperature error calculation, temperature change rate calculation, dynamic deceleration distance calculation, temperature control stage switching, virtual target temperature tracking, and control error calculation for residual BP-PID modules. Slow-speed temperature filtering. The changes are relatively smooth, which is used to determine the conditions for entering the stable temperature control stage and to confirm the steady-state operating condition, so as to avoid the system entering the stable temperature control stage too early due to short-term noise or instantaneous fluctuations.

[0167] In the Within each control cycle, the system adjusts the temperature based on the fast filter. and target temperature Calculate temperature error ,satisfy:

[0168]

[0169] The target temperature The setting can be set from 60 K to 120 K depending on the operating temperature requirements of the object being cooled; this embodiment uses 77 K. When When the temperature is >0, it indicates that the current cold junction temperature is higher than the target temperature, and cooling needs to continue; when... When the temperature is less than 0, it indicates that the current cold junction temperature is lower than the target temperature, and there is a risk of overcooling.

[0170] The system calculates the rate of temperature change v(k) based on the fast-filtered temperature of the current control cycle and the previous control cycle, satisfying:

[0171]

[0172] In the formula, To control the cycle. When When <0, it indicates that the cold junction temperature is decreasing; when A value greater than 0 indicates that the cold junction temperature is rising.

[0173] like Figure 3 As shown, in the k-th control cycle, the system calculates the current cooling rate based on the temperature change rate v(k). .when When <0, the system takes - As the current cooling rate; when When the value is ≥0, it indicates that the cold junction temperature has not decreased or is rising, and the system sets the current cooling rate to zero. The current cooling rate satisfies:

[0174]

[0175] The system adjusts according to the current cooling rate. Equivalent deceleration time and safety margin Calculate the dynamic deceleration distance for the current control cycle. And limit it to a preset minimum deceleration distance. and preset maximum deceleration distance between:

[0176]

[0177] In the formula, clip(x,L,U) represents a clipping function that restricts the variable x to a range between the lower limit L and the upper limit U. The equivalent deceleration time... The time can be set from 1 s to 30 s; this embodiment uses 10 s; safety margin. The value can be set from 0.2 K to 5 K; this embodiment uses 2 K; minimum deceleration distance The value can be set from 0.2 K to 5 K; this embodiment uses 1 K; maximum deceleration distance The values ​​can be set from 5 K to 30 K; this embodiment uses 15 K. These parameters can be calibrated based on the Stirling refrigerator's thermal inertia, cold-end heat load, target temperature, and temperature control accuracy requirements.

[0178] The system calculates the dynamic deceleration distance for the current control cycle. Then, based on the temperature error of the current control cycle Dynamic deceleration distance relative to the current control cycle Perform a phased assessment. When > At that time, the system executes the rapid cooling phase; when ≤ Furthermore, if the conditions for entering the stable temperature control phase are not yet met, the system will execute a transitional deceleration phase. Because... The cooling rate changes dynamically, so when the cooling rate is high, the system can enter the transition deceleration phase earlier, and when the cooling rate is low, it avoids reducing the cooling power too early.

[0179] When all of the following conditions are met simultaneously and the duration is not less than the preset steady-state confirmation time At this time, the system switches to a stable temperature control phase:

[0180]

[0181] In the formula, the steady-state error threshold is... The threshold value can be set from 0.05 K to 0.50 K; this embodiment uses 0.50 K. Steady-state rate of change threshold The threshold can be set from 0.001 K / s to 0.05 K / s; this embodiment uses 0.05 K / s. (Slow steady-state confirmation threshold) The steady-state confirmation time can be set from 0.05 K to 0.50 K; this embodiment uses 0.30 K. The timeout can be set from 1 s to 30 s; this embodiment uses 5 s. Therefore, the system not only determines whether it is close to steady state based on the temperature error and temperature change rate corresponding to the fast-filtered temperature, but also confirms the long-term temperature trend based on the deviation between the slow-filtered temperature and the target temperature, avoiding premature entry into the stable temperature control stage due to short-term noise or instantaneous fluctuations.

[0182] In one implementation, when the system switches to a transition deceleration phase or a stable temperature control phase, a temperature control phase switching smoothing process is performed. This smoothing process includes: recalculating the current control error based on the control setpoint corresponding to the temperature control phase after the switch; resetting the control error of the previous control cycle and the control error of the two previous control cycles corresponding to the residual BP-PID to the current control error; simultaneously, initializing the previous cycle reference value used for incremental PWM synthesis to the actual PWM output control quantity after the last time it underwent amplitude limiting, speed limiting, anti-saturation, and protection or fault handling before the switch; and making the target PWM control quantity of the first control cycle after the switch incrementally change based on the aforementioned actual PWM output control quantity, thereby reducing the PWM control quantity impact when entering the transition deceleration phase or the stable temperature control phase.

[0183] Specifically, when switching into the transition deceleration phase, the control setpoint is the initialized or updated virtual target temperature; when switching into the stable temperature control phase, the control setpoint is the target temperature. When switching into the rapid cooling phase, the system directly uses a preset high-value PWM control quantity and does not perform the aforementioned control error alignment and PWM synthesis reference reset processing.

[0184] like Figure 4 As shown, during the transition deceleration phase, the system will simulate the target temperature. Initialize to the current fast filter temperature:

[0185]

[0186] In the formula, This is the initial control cycle for entering the transition deceleration phase. This initialization action is only performed during the initial control cycle of entering the transition deceleration phase; in subsequent control cycles of the transition deceleration phase, the system reads the virtual target temperature saved in the previous control cycle. The virtual target's temperature decrease rate is calculated based on preset trajectory coefficients.

[0187] During the transition deceleration phase, the virtual target temperature converges towards the target temperature according to a first-order convergent trajectory. Approaching. The virtual target's temperature decrease rate satisfies:

[0188]

[0189] The virtual target temperature satisfies:

[0190]

[0191] In the formula, The virtual target temperature for the current control cycle. The virtual target temperature from the previous control cycle. The rate at which the virtual target temperature decreases. These are the trajectory coefficients of the virtual target. The time can be set from 0.01 s⁻¹ to 0.50 s⁻¹, and this embodiment uses 0.05 s⁻¹. When the virtual target temperature is lower than the target temperature, the virtual target temperature is corrected to the target temperature.

[0192] To avoid the virtual target temperature from leading the actual temperature excessively, this invention sets a virtual target temperature lead distance constraint:

[0193]

[0194] When the virtual target temperature is lower than the above constraint value, to ensure that the virtual target is always within a reasonable range ahead of the actual temperature, the virtual target temperature is corrected as follows:

[0195]

[0196] In the formula, This is the maximum allowable lead temperature difference between the virtual target temperature and the fast-filtered temperature. The maximum lead temperature difference... It can be set from 0.2 K to 5 K, and this embodiment uses 1 K.

[0197] like Figure 5 As shown, during the transition deceleration phase, the residual BP-PID uses the virtual target temperature as the control setpoint, and its control error is:

[0198]

[0199] The residual BP-PID outputs the PWM increment correction amount based on the control error. .

[0200] In one implementation, the residual BP-PID consists of a BP neural network and an incremental PID. The BP neural network outputs a PID parameter residual correction based on the current temperature control status and operating condition information, and then superimposes this PID parameter residual correction with the offline-tuned basic PID parameters to obtain the real-time PID parameters for the current control cycle. The incremental PID outputs a PWM incremental correction based on the real-time PID parameters and the current control error. The BP neural network does not directly output the total PWM control quantity, but instead participates in the PWM incremental calculation by performing residual correction on the PID parameters.

[0201] The BP neural network comprises an input layer, at least one hidden layer, and an output layer, with adjacent layers fully connected. The input layer receives current temperature control status information and operating condition information. The hidden layer extracts the nonlinear features between the temperature control status and operating condition changes. The output layer outputs the PID parameter residual correction. Each input variable is normalized before being input into the BP neural network to reduce the impact of orders of magnitude differences between different input variables on the network's calculation results.

[0202] In this embodiment, the BP neural network adopts a 6-8-8-3 structure, including 6 input layer nodes, two hidden layers each with 8 nodes, and 3 output layer nodes. The input quantities of the BP neural network include the current control error. First-order difference of control error Second-order difference of control error Actual PWM output control quantity in the previous control cycle Current temperature control stage indicator and ambient temperature .

[0203] The ambient temperature is obtained through an external parameter input interface, which can be a human-computer interaction interface, a communication interface, or a parameter configuration interface. In this embodiment, the ambient temperature is input through the human-computer interaction interface.

[0204] The backpropagation (BP) neural network employs ReLU nonlinear activation functions in both hidden layers and a linear activation function in the output layer. The BP neural network performs forward propagation based on the normalized input, and the weights and biases of each layer jointly determine the output of the output layer. These outputs are the residual correction values ​​for the scaling parameters. Integral parameter residual correction amount and differential parameter residual correction amount .

[0205] The system superimposes the PID parameter residual correction amount with the offline tuned basic PID parameters to obtain the real-time PID parameters for the current control cycle:

[0206]

[0207] In the formula, , , These are the basic PID parameters for offline tuning; , and These are the real-time proportional parameters, real-time integral parameters, and real-time derivative parameters for the current control cycle.

[0208] The BP neural network takes minimizing temperature control error as its learning objective, and the objective function is:

[0209]

[0210] The BP neural network uses gradient descent to update the weights and biases of each layer online. The update of the weights of each layer satisfies the following:

[0211]

[0212] The updates of biases at each layer satisfy the following:

[0213]

[0214] In the formula, and The first Layered networks in the first layer Weights and biases for each control cycle, The learning rate is determined based on the current temperature control phase.

[0215] During the transition deceleration phase, the learning rate adopted is the transition phase learning rate. During the stable temperature control phase, the learning rate adopted is the stable phase learning rate. ,and:

[0216]

[0217] The learning rate for the transition phase can be set to 0.0005 to 0.01, and in this embodiment, it is 0.002; the learning rate for the stable phase can be set to 0.0001 to 0.002, and in this embodiment, it is 0.0005.

[0218] A larger learning rate is used during the transition deceleration phase to improve the network's adaptability to changes in the chiller's thermal inertia, thermal load, and environmental conditions; a smaller learning rate is used during the stable temperature control phase to reduce the disturbance of network parameter updates to the steady-state temperature and reduce PWM control fluctuations.

[0219] During the rapid cooling phase, the system uses a preset high-value PWM control quantity and does not execute the online learning of the BP neural network; when the system enters the overcooling protection state, the cooling abnormal state, or the stall abnormal state, the online learning process of the BP neural network is frozen.

[0220] The basic proportional parameters The value can be set from 10 to 80; this embodiment uses 40. The basic integral parameter... It can be set to 0.01 to 1.00; this embodiment uses 0.20; the basic differential parameter The value can be set from 1 to 30; this embodiment uses 10. The basic PID parameters can be tuned offline using the trial-and-error method, the critical proportional method, or by combining the heat load characteristics of the Stirling refrigerator.

[0221] In one implementation, the incremental PID calculates the PWM incremental correction based on the current control error, the control error of the previous control cycle, and the control errors of the two previous control cycles:

[0222] [ ] [ ]

[0223] In the formula, This represents the control error corresponding to the current stage. During the transition deceleration phase, = During the stable temperature control phase, = Therefore, the transition deceleration stage and the steady-state temperature control stage can share the residual BP-PID, but use different control setpoints.

[0224] During the transition deceleration phase, the system also considers temperature error. Calculate the allowable cooling rate The allowed cooling rate must meet the following requirements:

[0225]

[0226] In the formula, The phase plane velocity boundary coefficient, , These are the lower and upper limits of the permissible cooling rate, respectively. It can be set to 0.01 s⁻¹ to 0.20 s⁻¹, and this embodiment uses 0.05 s⁻¹; It can be set from 0.005 K / s to 0.10 K / s; this embodiment uses 0.01 K / s. It can be set from 0.05 K / s to 1.00 K / s; this embodiment uses 0.20 K / s.

[0227] At the current cooling rate greater than the allowable cooling rate At that time, the system generates a deceleration correction amount. ,satisfy:

[0228]

[0229] In the formula, This is the deceleration gain coefficient. This represents the maximum deceleration correction amount per single cycle. The deceleration gain coefficient K_D can be set from 100 to 3000 (PWM control quantity) s / K; this embodiment uses 1000 (PWM control quantity) s / K. The maximum deceleration correction amount per single cycle... The value can be set from 10 to 500; this embodiment uses 100. When the current cooling rate is not greater than the allowable cooling rate, the deceleration correction is zero. Therefore, the deceleration correction is a negative or zero-valued PWM correction, and its function is to reduce the target PWM control quantity when the cooling rate is too high.

[0230] During the transition deceleration phase, the system uses the actual PWM output control quantity saved from the previous control cycle. Based on this, the PWM incremental correction amount of the residual BP-PID output is superimposed. and deceleration correction amount The target PWM control quantity for the transition deceleration phase is:

[0231]

[0232] In the formula, This represents the target PWM control quantity for the current control cycle.

[0233] like Figure 6 As shown, during the stable temperature control phase, the system maintains the target temperature. As the control setpoint, the control error of the residual BP-PID is:

[0234]

[0235] Residual BP-PID controls error based on steady-state phase Output PWM increment correction amount .

[0236] During the stable temperature control phase, the system no longer adds deceleration correction, but instead uses the actual PWM output control quantity saved from the previous control cycle. Based on this, the PWM increment correction amount from the residual BP-PID output is superimposed to synthesize the target PWM control quantity for the stable temperature control stage:

[0237]

[0238] This incremental PWM synthesis method avoids sudden changes in PWM control during the steady-state phase, allowing the cold junction temperature to be smoothly regulated around the target temperature.

[0239] During the transition deceleration phase and the temperature stabilization phase, the PWM increment correction of the residual BP-PID output is limited. The PWM increment correction limit for the transition deceleration phase can be set from 10 to 300, and 100 is used in this embodiment; the PWM increment correction limit for the temperature stabilization phase can be set from 1 to 100, and 20 is used in this embodiment. The PWM increment correction limit for the temperature stabilization phase is smaller than that for the transition deceleration phase to avoid excessive correction during the stabilization phase, which could lead to temperature fluctuations.

[0240] The system performs uniform amplitude limiting, speed limiting, and anti-saturation processing on the target PWM control quantity synthesized in the current control cycle. In this embodiment, the digital count range of the PWM control quantity is 0 to 3599, where 0 corresponds to 0% duty cycle and 3599 corresponds to 100% duty cycle. The amplitude limiting is used to restrict the target PWM control quantity between a preset minimum value and a preset maximum value. In this embodiment, the preset minimum value for amplitude limiting is 0, and the preset maximum value is 3599. The speed limiting is used to limit the maximum change in PWM control quantity between adjacent control cycles. The maximum PWM change step size per cycle during the transition deceleration phase can be set to 10 to 300, and 100 is used in this embodiment; the maximum PWM change step size per cycle during the stable temperature control phase can be set to 1 to 100, and 20 is used in this embodiment. The anti-saturation processing is used to freeze the PWM increment accumulation in the corresponding direction when the target PWM control quantity reaches the upper or lower limit.

[0241] In one implementation, when the target PWM control quantity reaches its upper limit and the residual BP-PID still outputs a positive PWM increment correction, the system freezes the positive increment accumulation; when the target PWM control quantity reaches its lower limit and the residual BP-PID still outputs a negative PWM increment correction, the system freezes the negative increment accumulation. After amplitude limiting, speed limiting, and anti-saturation processing, the system obtains the actual PWM output control quantity. The actual PWM output control quantity is written into the PWM comparison register of the timer module, and the timer module generates a PWM drive signal with a corresponding duty cycle based on the actual PWM output control quantity, and outputs it to the Stirling refrigerator drive circuit. In this embodiment, the timer module is the timer PWM output channel of the GD32 microcontroller.

[0242] like Figure 7 As shown, during temperature control, the system performs protection and fault monitoring in each control cycle. The protection and fault monitoring includes overcooling protection, cooling anomaly detection, and stall anomaly detection. When a protection or fault condition is triggered, the system overrides the normal temperature control output according to a preset priority: when overcooling protection is triggered, the overcooling protection output overrides the normal temperature control output, the actual PWM output control quantity is set to zero, and the normal temperature control algorithm is paused; when cooling anomaly or stall anomaly is triggered, the PWM output is shut down and the system enters a fault state.

[0243] The priority of protection and fault monitoring is as follows: stalled rotor abnormality is higher than cooling abnormality, cooling abnormality is higher than overcooling protection, and overcooling protection is higher than normal temperature control.

[0244] In one implementation, overcooling protection can be performed during the rapid cooling phase, the transition deceleration phase, and the stable temperature control phase, and is particularly suitable for the latter part of the transition deceleration phase and the initial stage of the stable temperature control phase. When the rapid filtering temperature is lower than the target temperature preset overcooling margin, and the temperature change rate is continuously less than the preset negative change rate threshold and exceeds the preset overcooling judgment time, the system enters the overcooling protection state.

[0245]

[0246] and:

[0247]

[0248] and the duration is greater than .

[0249] In the formula, the undercooling margin The value can be set from 0.5 K to 5 K. This embodiment uses 2 K, meaning that when the target temperature is 77 K, the supercooling entry temperature is 75 K; negative rate of change threshold. The value can be set from -0.10 K / s to -0.001 K / s; this embodiment uses -0.01 K / s. Supercooling determination time. The time can be set from 0.5 s to 10 s; this embodiment uses 2 s.

[0250] After entering the overcooling protection state, the system saves the last actual PWM output control value before entering the protection state, denoted as . Simultaneously, the current actual PWM output control quantity is set to zero. At this time, the normal temperature control output is overridden by the overcooling protection output, the system stops the PWM increment calculation of the residual BP-PID and the incremental PWM accumulation, and freezes the online learning process of the BP neural network to avoid the continued accumulation of cooling control quantity during the overcooling protection period.

[0251] When the fast-filtered temperature rises above the overcooling exit threshold, and the temperature change rate remains greater than or equal to the preset rise rate threshold and meets the preset exit confirmation time, the system exits the overcooling protection state. After exiting the overcooling protection state, the recovery PWM control quantity is determined based on the last actual PWM output control quantity, the safety reduction quantity, and the recovery limit range before entering the overcooling protection state.

[0252]

[0253] In the formula, To restore the PWM control quantity, This is the last actual PWM output control quantity before entering the overcooling protection state. To preset the safe reduction amount, , To restore the upper and lower limits of the PWM control quantity. Safety reduction amount. The value can be set from 50 to 1000; this embodiment uses 300. (Restore the lower limit of PWM control quantity.) The value can be set from 0 to 1500; this embodiment uses 800. This restores the upper limit of the PWM control quantity. The value can be set to 1000–2400; this embodiment uses 2000. The overcooling exit threshold... Can be set to ~ +5 K, 79 K is used in this embodiment; rate of change threshold It can be set from 0 to 0.10 K / s; this embodiment uses 0.01 K / s; Exit confirmation time The time can be set from 1 s to 30 s; this embodiment uses 3 s.

[0254] To avoid triggering overcooling protection again due to a sudden increase in PWM control quantity after exiting overcooling protection, the actual PWM output control quantity at the time of protection exit is used as the recovery starting value, and the recovered PWM control quantity is used as the target recovery value, gradually approaching it according to a preset single-cycle maximum change step size. During the recovery process, the reference value of the previous cycle used for incremental PWM synthesis is updated with the actual PWM output control quantity of each control cycle. The control errors of the previous control cycle and the two previous control cycles are aligned and reset according to the current control error, and the PWM increment calculation of the residual BP-PID and the online learning of the BP neural network are restored. After the recovery is completed, the temperature control stage judgment process is returned, and the current temperature control stage is re-determined based on the current temperature error, temperature change rate, dynamic deceleration distance, and the conditions for entering the stable temperature control stage.

[0255] When the system is in the rapid cooling phase or the transitional deceleration phase, and the actual PWM output control quantity reaches the preset power threshold. At that time, after the preset start-up blocking time Then, the system begins to perform a cooling anomaly detection.

[0256] The cumulative decrease is the difference between the fast filter temperature at the start of the preset fault determination time and the current fast filter temperature, satisfying:

[0257]

[0258] in:

[0259]

[0260] In the formula, This represents the cumulative decrease corresponding to the current control period. The number of control cycles corresponding to the preset fault determination time. The fast-filtered temperature is set at the preset fault determination start time. The current fast filtering temperature, The preset fault determination time is set.

[0261] When the cumulative decrease is less than the preset effective decrease threshold, it is determined to be a cooling abnormality, enters the cooling abnormality state, shuts down the PWM output, and outputs the cooling fault status.

[0262] The preset power threshold It can be set to 50% to 100% of the maximum value of the PWM control quantity; this embodiment uses 2500; start-up masking time The time can be set from 1 s to 30 s; this embodiment uses 5 s. (Fault determination time) The timeout can be set from 5 s to 120 s; this embodiment uses 20 s. The control cycle in this embodiment is 100 ms, therefore the number of control cycles corresponding to the preset fault determination time is 200 control cycles. The preset effective decline threshold can be set from 0.2 K to 3 K; this embodiment uses 1 K.

[0263] In one implementation, the stall anomaly detection is based on the Stirling chiller speed feedback signal. The drive board is equipped with a speed feedback output terminal, and the controller obtains the current Stirling chiller speed by reading the speed feedback signal output by the drive board.

[0264] When the actual PWM output control quantity reaches the preset drive threshold If, after a preset start-up shielding time, the Stirling chiller speed remains less than or equal to a preset speed threshold... And exceeded the time limit for determining congestion. If this condition is not met, it is determined to be a stalled abnormality and enters a fault state. The drive threshold... It can be set to 10% to 50% of the maximum value of the actual PWM output control quantity; this embodiment uses 800; speed threshold. The time can be set from 0 rps to 3 rps; this embodiment uses 0 rps; stall detection time The timeout can be set from 0.2 s to 5 s; this embodiment uses 1 s. After entering the fault state, the PWM output is turned off, and a stall fault status is output.

[0265] The parameter ranges and values ​​used in this embodiment are used to illustrate one feasible parameter configuration of the present invention. In other embodiments, the above parameters can be reset according to the Stirling refrigerator model, cold-end heat load, target temperature, PWM counting range, and temperature control accuracy requirements. The above parameter ranges do not constitute a limitation on the scope of protection of the present invention.

[0266] To verify the control effect of the multi-stage adaptive temperature control method for Stirling refrigerators described in this invention, comparative experiments were conducted using both the traditional fixed-parameter PID control method and the multi-stage adaptive temperature control method described in this invention, under the same Stirling refrigerator and environmental conditions. The target temperature for both sets of experiments was 77 K, the control period was 100 ms, and the PWM control range was 0–3599. The initial cold junction temperatures corresponding to the traditional PID control method and the method of this invention were approximately 291.28 K and 291.25 K, respectively. The PWM output control quantity, the overall cold junction temperature response, and the local response near the target temperature for the two control methods are shown below. Figure 8 , Figure 9 and Figure 10 As shown. Using the initial drop in cold-end temperature to 77.3 K as the criterion for entering the target temperature neighborhood, in this comparative experiment, the time corresponding to the method of this invention was approximately 291.67 s, which is about 15.5% shorter than the 345.07 s of the traditional PID control method; the lowest cold-end temperature of the method of this invention was 75.76 K, and the maximum subcooling was 1.24 K, which is about 37.7% lower than the 1.99 K of the traditional PID control method. (The criterion for entering the target temperature neighborhood is...) The criterion for entering the stable temperature zone is that the temperature range of K is maintained continuously for at least 30 seconds. The criterion for the first drop to 77.3 K and the entry into the stable temperature zone are also mentioned. The criterion of K being within a range and continuously maintained for 30 s is only used for a unified evaluation of the experimental performance of the two control methods and is not used as a switching condition for the internal temperature control stage of the system. The start times corresponding to the method of this invention and the traditional PID control method are approximately 526.90 s and 602.65 s, respectively. Statistical analysis of the cold junction temperature sampling data from 1000 s to 1675 s shows that the temperature standard deviation of the method of this invention is 0.034 K and the peak-to-peak temperature is 0.166 K, both of which are less than the 0.098 K and 0.420 K of the traditional PID control method. The above results indicate that under the experimental conditions of this embodiment, the method of this invention can balance rapid cooling, overcooling suppression, and stable temperature control accuracy.

[0267] The main experimental results of the two control methods are shown in Table 1.

[0268] Table 1 shows the performance comparison results of the two temperature control methods.

[0269]

[0270] The specific embodiments of the present invention have been described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Within the scope of knowledge possessed by those skilled in the art, various changes can be made without departing from the spirit of the present invention.

Claims

1. A multi-stage adaptive temperature control method for a Stirling refrigerator, which generates a PWM drive signal based on cold junction temperature feedback to control the operation of the Stirling refrigerator, characterized in that: The method includes: The real-time temperature of the cold junction is collected and filtered by dual time constants to obtain fast and slow filtered temperatures. Temperature error and rate of change are calculated based on rapid filtering temperature; the temperature control process is divided into rapid cooling, transitional deceleration and stable temperature control stages according to the deceleration distance dynamically adjusted with the cooling rate. When switching to the transition deceleration phase or the stable temperature control phase, error alignment reset and PWM smooth transition are performed; During the transition deceleration phase, a first-order convergent virtual target temperature is used. The incremental correction amount of PWM is output through residual BP-PID, and the deceleration correction amount is superimposed to jointly adjust the PWM control amount. During the stable temperature control phase, fine adjustment is achieved based on the target temperature using residual BP-PID; amplitude limiting, speed limiting, and anti-saturation processing are implemented for the PWM control quantity, and a graded protection mechanism is provided.

2. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 1, characterized in that: The method specifically includes the following processing: The real-time temperature of the cold end of the Stirling refrigerator is collected, and the real-time temperature is filtered by dual time constants to obtain the fast-filtered temperature and the slow-filtered temperature. The temperature error and temperature change rate are calculated based on the fast filtered temperature, and the current cooling rate is determined based on the temperature change rate. Based on the temperature error, temperature change rate, and dynamic deceleration distance calculated by combining the current cooling rate with the equivalent deceleration time and safety margin and obtained by limiting the upper and lower limits, the temperature control process is divided into a rapid cooling stage, a transition deceleration stage, and a stable temperature control stage. When the temperature error is greater than the dynamic deceleration distance, it is determined to be in the rapid cooling stage; when the temperature error is less than or equal to the dynamic deceleration distance and the stable temperature control entry condition is not met, it is determined to be in the transition deceleration stage; when the temperature error based on the rapid filtering temperature, the temperature change rate, and the temperature deviation based on the slow filtering temperature continuously meet the preset steady-state threshold condition, it is determined to be in the stable temperature control stage. When the system switches to the transition deceleration stage or the stable temperature control stage, the control error of the current stage is calculated based on the control setpoint of the temperature control stage after the switch. The control error of the previous control cycle and the control error of the previous two control cycles corresponding to the incremental PID are both reset to the control error of the current stage. The last actual PWM output control quantity before the switch is used as the basis for PWM incremental synthesis of the first control cycle after the switch. During the rapid cooling phase, a preset high-value PWM control quantity is output to enable the Stirling refrigerator to operate at the preset cooling power. During the transition deceleration phase, a virtual target temperature is generated, which is initially set at the current fast-filtering temperature, smoothly converges to the target temperature along a first-order convergence trajectory, and is constrained by the leading distance. This virtual target temperature is then used as the control setpoint. The residual BP-PID module outputs the PWM incremental correction. In the residual BP-PID module, the residual correction of the PID parameters output by the BP neural network is superimposed with the basic PID parameters to obtain the real-time PID parameters. The incremental PID outputs the PWM incremental correction based on the real-time parameters. Simultaneously, the allowable cooling rate is determined based on the temperature error, and a deceleration correction is generated based on the current cooling rate and the allowable cooling rate. Based on the actual PWM output control quantity of the previous control cycle, the PWM incremental correction and the deceleration correction are superimposed to generate the target PWM control quantity for the current control cycle. During the stable temperature control phase, the target temperature is used as the control setpoint, and the residual BP-PID module outputs the PWM incremental correction amount. Based on the actual PWM output control amount of the previous control cycle, the PWM incremental correction amount is added to generate the target PWM control amount of the current control cycle. The target PWM control quantity is subjected to amplitude limiting, speed limiting, and anti-saturation processing to obtain the actual PWM output control quantity. The actual PWM output control quantity is then written into the PWM generation module to generate a PWM drive signal with the corresponding duty cycle and output to the Stirling refrigerator drive circuit.

3. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: The dual time constant filtering process is a first-order low-pass filter, and the filter coefficient for generating the fast-filtered temperature is greater than the filter coefficient for generating the slow-filtered temperature. The fast filtered temperature is used for temperature error calculation, temperature change rate calculation, temperature control stage switching, virtual target temperature tracking, and control error calculation of the residual BP-PID module. The slow-speed filtered temperature is used to determine the entry conditions for the stable temperature control phase and to confirm the steady-state operating condition.

4. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: Within each control cycle, the dynamic deceleration distance is calculated based on the current cooling rate, equivalent deceleration time, and safety margin. The dynamic deceleration distance is used to characterize the deceleration trigger distance formed by the expected inertial cooling amount determined by the current cooling rate and the safety margin, and is used to determine the switching timing between the rapid cooling stage and the transition deceleration stage. The current cooling rate satisfies: In the formula, The cooling rate for the current control cycle. The rate of temperature change during the current control cycle; The dynamic deceleration distance satisfies: ; In the formula, This represents the dynamic deceleration distance for the current control cycle. For equivalent deceleration time, For safety margin, Minimum deceleration distance, For maximum deceleration distance, This is a limiting function; When the temperature error of the current control cycle is greater than the dynamic deceleration distance of the current control cycle, the system executes the rapid cooling phase; When the temperature error of the current control cycle is less than or equal to the dynamic deceleration distance of the current control cycle, and the conditions for entering the stable temperature control stage have not yet been met, the system executes the transition deceleration stage.

5. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: When the absolute value of the temperature error in the current control cycle is less than or equal to the preset steady-state error threshold, the absolute value of the temperature change rate in the current control cycle is less than or equal to the preset steady-state change rate threshold, and the absolute value of the difference between the slow-filtered temperature and the target temperature in the current control cycle is less than or equal to the preset slow steady-state confirmation threshold, and the above conditions are continuously satisfied for the preset steady-state confirmation time, the system enters the stable temperature control stage. The conditions for entering the stable temperature control phase are met: Furthermore, the duration of the above conditions is not less than the preset steady-state confirmation time. ; In the formula, The temperature error for the current control cycle. The rate of temperature change during the current control cycle. The slow-filtering temperature for the current control cycle. For the target temperature, To preset the steady-state error threshold, To preset the steady-state rate of change threshold, To preset the slow steady-state confirmation threshold, This is the preset steady-state confirmation time.

6. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: At the initial moment of entering the transition deceleration phase, the virtual target temperature is initialized to the current fast filtering temperature; During the transitional deceleration phase, the virtual target temperature approaches the target temperature along a first-order convergent trajectory, satisfying: ; ; In the formula, The rate at which the virtual target temperature decreases. For virtual target trajectory coefficients, For virtual target temperature, For the target temperature, To control the cycle; When the virtual target temperature is lower than the target temperature, it is corrected to the target temperature.

7. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 6, characterized in that: The virtual target temperature Satisfy the lead distance constraint: ; When the virtual target temperature is lower than the temperature value corresponding to the leading distance constraint, the virtual target temperature is corrected to: ; In the formula, This represents the maximum allowable lead temperature difference between the virtual target temperature and the fast-filtered temperature.

8. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: The BP neural network in the residual BP-PID module outputs the residual correction amount of the PID parameters. , , The real-time PID parameters for the current control cycle are obtained by superimposing them with the basic PID parameters. In the formula, , , Use the base PID parameters.

9. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 8, characterized in that: The BP neural network constructs a learning objective function based on the temperature control error during the transition deceleration phase and the stable temperature control phase, and uses the gradient descent method to update the network weights and biases online to achieve PID parameter residual correction. Different learning rates are used in the transition deceleration phase and the stable temperature control phase, and the learning rate in the stable temperature control phase is less than that in the transition deceleration phase. During the rapid cooling phase, under the overcooling protection state, under the abnormal cooling state, or under the abnormal stall state, the online learning process of the BP neural network is frozen.

10. The multi-stage adaptive temperature control method for Stirling refrigerators according to claim 2, characterized in that: During the transition deceleration phase, the allowable cooling rate is determined based on the temperature error; The allowable cooling rate satisfies: ; In the formula, The allowable cooling rate for the current control cycle. The phase plane velocity boundary coefficient, The temperature error for the current control cycle. , The limit value for the allowable cooling rate; When the current cooling rate is greater than the allowable cooling rate, the deceleration correction amount is generated; The deceleration correction amount satisfies: ; In the formula, This is the deceleration correction amount for the current control cycle. This is the deceleration gain coefficient. This represents the maximum deceleration correction amount per cycle. When the current cooling rate is not greater than the allowable cooling rate, the deceleration correction is zero.