CN118259711A - Atomic gas room temperature control device and method based on Kalman filtering - Google Patents

Atomic gas room temperature control device and method based on Kalman filtering Download PDF

Info

Publication number
CN118259711A
CN118259711A CN202410352067.5A CN202410352067A CN118259711A CN 118259711 A CN118259711 A CN 118259711A CN 202410352067 A CN202410352067 A CN 202410352067A CN 118259711 A CN118259711 A CN 118259711A
Authority
CN
China
Prior art keywords
temperature
digital
heating
analog
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410352067.5A
Other languages
Chinese (zh)
Inventor
谈高波
黄启莹
李飞
盖津铭
林强
胡正珲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN202410352067.5A priority Critical patent/CN118259711A/en
Publication of CN118259711A publication Critical patent/CN118259711A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D23/00Control of temperature
    • G05D23/19Control of temperature characterised by the use of electric means
    • G05D23/20Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature
    • G05D23/22Control of temperature characterised by the use of electric means with sensing elements having variation of electric or magnetic properties with change of temperature the sensing element being a thermocouple

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Feedback Control In General (AREA)

Abstract

一种基于卡尔曼滤波的原子气室温控装置及方法,其装置包括:原子气室、加热测温电路模块、信号放大电路、模数/数模转换模块、功率放大电路模块、高频逆变电路模块、主控模块;通过测温传感器采集原子气室在当前时刻的温度信号,并信号放大、模数转换转换为数字信号,通过扩展卡尔曼滤波器分析得到最优温度估计值,与预设要达到的原子气室目标温度值做差值,输入PID控制器,经过PI控制输出系统控制值信号,再通过数模转换转换为模拟信号看,经过高频逆变电路转换为高频交流电,做功率放大后输出至加热电阻条,调节加热功率,控制气室温度。本发明通过结合扩展卡尔曼滤波与PID控制器,解决了热电偶因阻值与温度非线性关系导致的测量误差。

A Kalman filter-based atomic gas temperature control device and method, the device includes: an atomic gas chamber, a heating temperature measurement circuit module, a signal amplification circuit, an analog-to-digital/digital-to-analog conversion module, a power amplification circuit module, a high-frequency inverter circuit module, and a main control module; the temperature signal of the atomic gas chamber at the current moment is collected by a temperature measurement sensor, and the signal is amplified and converted into a digital signal by analog-to-digital conversion, and the optimal temperature estimation value is obtained by extended Kalman filter analysis, and the difference is made with the preset atomic gas chamber target temperature value to be achieved, and the optimal temperature estimation value is input into a PID controller, and the system control value signal is output through PI control, and then converted into an analog signal through digital-to-analog conversion, and converted into a high-frequency alternating current through a high-frequency inverter circuit, and then output to a heating resistor strip after power amplification, so as to adjust the heating power and control the gas chamber temperature. The present invention solves the measurement error caused by the nonlinear relationship between resistance and temperature of thermocouples by combining extended Kalman filtering and PID controller.

Description

基于卡尔曼滤波的原子气室温控装置及方法Atomic gas room temperature control device and method based on Kalman filtering

技术领域Technical Field

本发明涉及SERF磁力仪的铷原子气室的加热与温控技术领域,尤其是基于微处理器的PID反馈控制器,基于扩展卡尔曼滤波处理,精准控制加热功率,调节气室温度的装置和方法。The present invention relates to the technical field of heating and temperature control of a rubidium atom gas chamber of a SERF magnetometer, in particular to a device and method for accurately controlling heating power and regulating the gas chamber temperature based on a microprocessor-based PID feedback controller and an extended Kalman filter process.

背景技术Background technique

SERF磁力仪在测量生物磁场的有着广泛的应用,比如小鼠、果蝇,到人体大脑与心脏磁场。其优点在,生产成本远低于SQUID,且更加轻便,厘米级的体积使其在空间上具有很强的可移动能力。同时,SERF磁力仪的另一个优点在于能实现矢量测量,在解决脑神经相关疾病的溯源问题上潜力极大。SERF magnetometers are widely used in measuring biological magnetic fields, such as mice, fruit flies, and the magnetic fields of the human brain and heart. Its advantages are that the production cost is much lower than that of SQUID, and it is lighter and its centimeter-level volume makes it highly mobile in space. At the same time, another advantage of SERF magnetometers is that they can achieve vector measurement, which has great potential in solving the problem of tracing the source of brain and nerve-related diseases.

碱原子气室是SERF磁力仪的重要组成部件,而通过加热碱原子气室至特定温度,并达到热平衡,来获得高密度的碱金属蒸汽。此时原子间的自旋交换碰撞频率远高于自身拉莫尔进动频率,在该条件下,原子由基态进入激发态,外场总自旋进动表现为平均拉莫尔频率,自旋交换弛豫被彻底消除。因此,原子气室的温度变化直接影响碱金属原子的状态,从而影响磁力仪的灵敏度。SERF磁力仪的开发工程通常对气室的加热方式和温度控制有着严格的要求。The alkali atom gas cell is an important component of the SERF magnetometer. By heating the alkali atom gas cell to a specific temperature and reaching thermal equilibrium, high-density alkali metal vapor can be obtained. At this time, the spin exchange collision frequency between atoms is much higher than their own Larmor precession frequency. Under this condition, the atoms enter the excited state from the ground state, and the total spin precession of the external field is manifested as the average Larmor frequency, and the spin exchange relaxation is completely eliminated. Therefore, the temperature change of the atomic gas cell directly affects the state of the alkali metal atoms, thereby affecting the sensitivity of the magnetometer. The development engineering of the SERF magnetometer usually has strict requirements on the heating method and temperature control of the gas cell.

常规磁力仪气室的加热方式通常是在气室外壁缠绕加热线圈,温度传感器采集气室表面温度,并反馈至主控模块。PID控制器根据算法,将测量温度与目标温度的差值作为输入值计算输出值,实时反馈至加热信号产生模块,调整加热信号的幅值、频率、相位等参数,并最终通过加热线圈产生热量加热气室。但常规加热方式通常存在着气室加热不均匀,导致原子数密度分布不均匀,以及PID反馈控制滞后等问题,影响了磁力仪灵敏度,限制了SERF磁力仪在飞特(fT)量级的生物磁场的测量,比如测量人体大脑磁场。The heating method of the conventional magnetometer air chamber is usually to wrap a heating coil around the outer wall of the air chamber, and the temperature sensor collects the surface temperature of the air chamber and feeds it back to the main control module. According to the algorithm, the PID controller uses the difference between the measured temperature and the target temperature as the input value to calculate the output value, and feeds it back to the heating signal generation module in real time to adjust the amplitude, frequency, phase and other parameters of the heating signal, and finally generates heat through the heating coil to heat the air chamber. However, conventional heating methods usually have problems such as uneven heating of the air chamber, resulting in uneven distribution of atomic number density, and PID feedback control lag, which affects the sensitivity of the magnetometer and limits the SERF magnetometer's measurement of biomagnetic fields at the femtosecond (fT) level, such as measuring the magnetic field of the human brain.

发明内容Summary of the invention

为了克服上述现有技术存在的不足,针对碱金属气室加热不均匀的问题,以及考虑到SERF磁力仪的小型化和集成化,本发明提供基于卡尔曼滤波的原子气室加热测温装置及温控方法。In order to overcome the above-mentioned deficiencies in the prior art, aiming at the problem of uneven heating of the alkali metal gas chamber and taking into account the miniaturization and integration of the SERF magnetometer, the present invention provides an atomic gas chamber heating and temperature measuring device and a temperature control method based on Kalman filtering.

本发明是一种原子气室加热测温及其驱动电路和PID温度控制系统的集成化设计方案;在硬件模块基础上,基于扩展卡尔曼滤波算法控制加热功率的实现方法,克服传统的PID反馈控温技术存在剩余误差和控制滞后的问题。The present invention is an integrated design scheme for atomic gas chamber heating temperature measurement and its driving circuit and PID temperature control system; based on the hardware module, an implementation method for controlling heating power based on an extended Kalman filter algorithm overcomes the problems of residual error and control lag in traditional PID feedback temperature control technology.

为了达到上述的目的,本发明采用了以下的技术方案:In order to achieve the above-mentioned purpose, the present invention adopts the following technical solutions:

一种基于卡尔曼滤波的原子气室温控装置,其中硬件模块包括:原子气室1、加热测温电路模块2、信号放大电路3、模数/数模转换模块4、功率放大电路模块5、高频逆变电路模块6、主控模块7;An atomic gas room temperature control device based on Kalman filtering, wherein the hardware module comprises: an atomic gas chamber 1, a heating temperature measurement circuit module 2, a signal amplification circuit 3, an analog-to-digital/digital-to-analog conversion module 4, a power amplification circuit module 5, a high-frequency inverter circuit module 6, and a main control module 7;

所述原子气室1,与加热测温电路模块2相连,原子气室1内填充有一定密度的铷原子气体和作为淬火气体的氮气;The atomic gas chamber 1 is connected to the heating and temperature measuring circuit module 2, and the atomic gas chamber 1 is filled with rubidium atomic gas of a certain density and nitrogen as quenching gas;

所述原子气室1与加热测温电路模块2连接,加热测温电路模块2的加热电阻条通电后产生电流热加热原子气室1,原子气室1的温度发生变化使得加热测温电路模块2的贴片式热电偶冷端和热端间产生电势差,通过测量电势差测定原子气室1温度;The atomic gas chamber 1 is connected to the heating and temperature measuring circuit module 2. When the heating resistor strip of the heating and temperature measuring circuit module 2 is energized, an electric current is generated to heat the atomic gas chamber 1. The temperature of the atomic gas chamber 1 changes, so that a potential difference is generated between the cold end and the hot end of the patch type thermocouple of the heating and temperature measuring circuit module 2. The temperature of the atomic gas chamber 1 is measured by measuring the potential difference.

所述加热测温电路模块2与信号放大电路3连接,贴片式热电偶冷端和热端间产生电势差作为输入的模拟电压信号传输至信号放大电路3,信号放大电路3放大模拟电压信号,输出温度电压;The heating temperature measurement circuit module 2 is connected to the signal amplifying circuit 3, and the potential difference between the cold end and the hot end of the SMD thermocouple is used as an input analog voltage signal transmitted to the signal amplifying circuit 3, and the signal amplifying circuit 3 amplifies the analog voltage signal and outputs a temperature voltage;

所述信号放大电路3与模数/数模转换模块4相连,信号放大电路3输出温度电压至模数/数模转换模块4,通过模数转换将温度电压转换为数字信号输出;The signal amplifying circuit 3 is connected to the analog-to-digital/digital-to-analog conversion module 4. The signal amplifying circuit 3 outputs the temperature voltage to the analog-to-digital/digital-to-analog conversion module 4, and converts the temperature voltage into a digital signal output through analog-to-digital conversion.

所述模数/数模转换模块4与主控模块7相连,所述模数/数模转换模将数字信号输送至主控模块7,作为主控模块7的输入信号;所述主控模块7接收输入信号,经分析处理后,输出系统控制量至模数/数模转换模块4;The analog-to-digital/digital-to-analog conversion module 4 is connected to the main control module 7, and the analog-to-digital/digital-to-analog conversion module transmits the digital signal to the main control module 7 as the input signal of the main control module 7; the main control module 7 receives the input signal, and after analysis and processing, outputs the system control quantity to the analog-to-digital/digital-to-analog conversion module 4;

主控模块7的分析处理包括:The analysis and processing of the main control module 7 includes:

步骤1:将输入的温度电压数值,根据热电偶电动势计算公式计算出测量温度值Zk,测量温度值Zk为保留3位小数的浮点型数据格式;Step 1: Calculate the input temperature and voltage values according to the thermocouple electromotive force calculation formula to obtain the measured temperature value Z k . The measured temperature value Z k is in a floating point data format with 3 decimal places reserved.

步骤2:将测量温度值Zk输入扩展卡尔曼滤波器8,计算出后验估计温度值计算所述后验估计温度值与参考温度值Tref的差值ToffStep 2: Input the measured temperature value Z k into the extended Kalman filter 8 to calculate the posterior estimated temperature value Calculate the a posteriori estimated temperature value The difference T off from the reference temperature value T ref ;

步骤3:将上述差值Toff作为PID控制器9的输入,通过PI算法计算出系统控制量Uk,作为PID控制器9的输出值;Step 3: Using the difference T off as the input of the PID controller 9, the system control variable U k is calculated by the PI algorithm as the output value of the PID controller 9;

步骤4:将输出值Uk通过SPI串口电路传输至模数/数模转换模块4,将输出值Uk通过数模转换输出低压直流电信号;Step 4: Transmit the output value U k to the analog-to-digital/digital-to-analog conversion module 4 through the SPI serial port circuit, and output the output value U k as a low-voltage direct current signal through digital-to-analog conversion;

所述模数/数模转换模块4还与高频逆变电路模块6相连,模数/数模转换模块4输出低压直流电信号至高频逆变电路模块6,所述高频逆变电路模块6将低压直流电信号转换为高频低压交流电信号;The analog-to-digital/digital-to-analog conversion module 4 is also connected to the high-frequency inverter circuit module 6. The analog-to-digital/digital-to-analog conversion module 4 outputs a low-voltage DC signal to the high-frequency inverter circuit module 6. The high-frequency inverter circuit module 6 converts the low-voltage DC signal into a high-frequency low-voltage AC signal.

所述高频逆变电路模块6与功率放大电路模块5相连,所述功率放大电路模块5接收高频逆变电路模块6输出的高频低压交流电信号,并对其进行功率放大后,输出加热信号;The high-frequency inverter circuit module 6 is connected to the power amplifier circuit module 5. The power amplifier circuit module 5 receives the high-frequency low-voltage AC signal output by the high-frequency inverter circuit module 6, amplifies the power thereof, and outputs a heating signal.

所述功率放大电路模块5与加热测温电路模块2相连,所述加热测温电路模块2接收功率放大电路模块5的加热信号,加热测温电路2模块控制加热线圈加热或降温。The power amplifier circuit module 5 is connected to the heating and temperature measuring circuit module 2. The heating and temperature measuring circuit module 2 receives the heating signal of the power amplifier circuit module 5. The heating and temperature measuring circuit module 2 controls the heating coil to heat or cool down.

本发明的第二个方面涉及基于卡尔曼滤波的原子气室温控方法,包括如下步骤:A second aspect of the present invention relates to an atomic gas temperature control method based on Kalman filtering, comprising the following steps:

步骤S1:首先设置参考温度值Tref=140℃,再通过测得k时刻的电压值数据,换算得到测量温度值Zk;确定温控扩展卡尔曼滤波器8的预测模型的非线性表达式为:Step S1: first set the reference temperature value T ref = 140°C, then convert the measured temperature value Z k by measuring the voltage value data at time k; determine the nonlinear expression of the prediction model of the temperature control extended Kalman filter 8 as:

Tk=f(Tk-1,Uk-1,Wk-1) (1)T k =f(T k-1 ,U k-1, W k-1 ) (1)

Zk=h(Tk,Vk) (2)Z k =h(T k ,V k ) (2)

其中,(1)式为k时刻原子气室1的温度与输入电流的非线性表达式,(2)式为k时刻原子气室1的温度的测量公式;Tk为k时刻原子气室1的温度的预测真实值,Zk为k时刻原子气室1的温度的测量真实值;Uk-1为k-1时刻的控制向量,Wk-1为k-1时刻的过程噪声,Vk为k时刻的测量噪声,两者都符合一元高斯分布:Among them, formula (1) is the nonlinear expression of the temperature of atomic gas chamber 1 at time k and the input current, formula (2) is the measurement formula of the temperature of atomic gas chamber 1 at time k; T k is the predicted true value of the temperature of atomic gas chamber 1 at time k, Z k is the measured true value of the temperature of atomic gas chamber 1 at time k; U k-1 is the control vector at time k-1, W k-1 is the process noise at time k-1, and V k is the measurement noise at time k, both of which conform to the univariate Gaussian distribution:

P(W)~N(0,Q),P(V)~N(0,R)P(W)~N(0,Q), P(V)~N(0,R)

上述过程噪声和测量噪声在实际工作中,期望都为0,符合正态分布;Q为估计的过程噪声的协方差矩阵,R为测量的高斯噪声的协方差矩阵,其值通过加热测温电路模块2的噪声具体决定;In actual work, the above process noise and measurement noise are expected to be 0, which conforms to the normal distribution; Q is the covariance matrix of the estimated process noise, and R is the covariance matrix of the measured Gaussian noise, and its value is specifically determined by the noise of the heating temperature measurement circuit module 2;

步骤S2:确定温控扩展卡尔曼滤波器8预测模型的先验估计温度值和测量温度值公式为:Step S2: Determine the a priori estimated temperature value and the measured temperature value formula of the temperature control extended Kalman filter 8 prediction model as follows:

其中是k时刻原子气室1的温度的先验估计温度值,为k时刻先验测量值;in is the a priori estimated temperature value of the temperature of atomic gas chamber 1 at time k, is the prior measurement value at time k;

步骤S3:更新预测模型的先验状态误差协方差矩阵其更新公式为:Step S3: Update the prior state error covariance matrix of the prediction model The update formula is:

其中,A为雅可比矩阵。Where A is the Jacobian matrix.

步骤S4:更新温控扩展卡尔曼滤波器8的卡尔曼增益Kk,其更新公式为:Step S4: Update the Kalman gain K k of the temperature-controlled extended Kalman filter 8 , and the update formula is:

其中,H为转换矩阵;Where H is the transformation matrix;

步骤S5:通过信息融合的方法,校正最优的后验估计温度值后验校正公式为:Step S5: Correct the optimal a posteriori estimated temperature value by information fusion method The posterior correction formula is:

步骤S6:更新后验状态误差协方差矩阵预测值Pk,更新公式为:Step S6: Update the predicted value P k of the posterior state error covariance matrix. The update formula is:

步骤S7:设置上述最优的后验估计温度值作为k时刻的气室外部温度,计算与上述参考温度值Tref的温度偏移量作为PID控制器9的输入量;一般PID控制的计算方程为:Step S7: Setting the above optimal a posteriori estimated temperature value As the external temperature of the air chamber at time k, calculate the temperature offset from the reference temperature value T ref As the input of PID controller 9; the calculation equation of general PID control is:

其中,Kp为PID控制器9的比例系数,Ti为PID控制器9的积分时间,Td为PID控制器9的微分时间,u(t)为输入Toff经过PID控制器9进行线性组合构成的系统控制量;上述公式无法通过编程在FPGA内编程实现,对其进行离散化处理,将积分部分换算为求和公式,公式为:Among them, Kp is the proportional coefficient of PID controller 9, Ti is the integral time of PID controller 9, Td is the differential time of PID controller 9, and u(t) is the system control quantity formed by linear combination of input Toff through PID controller 9; the above formula cannot be implemented by programming in FPGA, so it is discretized and the integral part is converted into a summation formula, which is:

上述Ki、Kd分别为积分和微分控制系数,Uk为离散化的系统控制量,比例控制Kp可以快速响应系统误差,减少稳态误差,若Kp过大,系统会不稳定;积分控制Ki是温度偏移量进行不断叠加,用以消除稳态误差,若Ki过大,会使系统超调,导致系统震荡;微分控制Kd用以减小系统超调量,克服系统震荡,但微分项对高频噪音非常敏感,所以在本发明中不启用微分控制,Kd=0;The above Ki and Kd are integral and differential control coefficients respectively, Uk is the discretized system control quantity, the proportional control Kp can quickly respond to the system error and reduce the steady-state error. If Kp is too large, the system will be unstable; the integral control Ki is the temperature offset that is continuously superimposed to eliminate the steady-state error. If Ki is too large, the system will overshoot and cause system oscillation; the differential control Kd is used to reduce the system overshoot and overcome the system oscillation, but the differential term is very sensitive to high-frequency noise, so the differential control is not enabled in the present invention, Kd = 0;

步骤S8:通过编程实现系统控制量Uk的从主控模块数字化输出,经数模转换、高频逆变、功率放大后转变为加热信号至加热测温模块,改变加热功率实现气室内温度变化,再经过温度测量后更新k+1时刻的测量温度值Zk+1,重复扩展卡尔曼滤波和PID控制,直至原子气室1温度到达参考温度值并稳定。Step S8: The system control quantity U k is digitally output from the main control module through programming, and is converted into a heating signal to the heating temperature measurement module after digital-to-analog conversion, high-frequency inversion, and power amplification. The heating power is changed to achieve temperature changes in the gas chamber, and the measured temperature value Z k+1 at time k+1 is updated after temperature measurement. The extended Kalman filter and PID control are repeated until the temperature of the atomic gas chamber 1 reaches the reference temperature value and stabilizes.

进一步,在完成一次完整的原子气室的温控加热后,获得新的数学模型,对扩展卡尔曼滤波器8的预测模型进行更新。Furthermore, after completing a complete temperature-controlled heating of the atomic gas chamber, a new mathematical model is obtained and the prediction model of the extended Kalman filter 8 is updated.

本发明的工作原理:通过测温传感器采集原子气室在当前时刻的温度信号,并信号放大、模数转换转换为数字信号,通过扩展卡尔曼滤波器分析得到最优温度估计值,与预设要达到的原子气室目标温度值做差值,输入PID控制器,经过PI控制输出系统控制值信号,再通过数模转换转换为模拟信号看,经过高频逆变电路转换为高频交流电,做功率放大后输出至加热电阻条,调节加热功率,进一步控制气室温度。The working principle of the present invention is as follows: the temperature signal of the atomic gas chamber at the current moment is collected by a temperature measuring sensor, and the signal is amplified and converted into a digital signal through analog-to-digital conversion. The optimal temperature estimation value is obtained through extended Kalman filter analysis, and the difference is made with the preset target temperature value of the atomic gas chamber to be achieved, and the value is input into a PID controller. After PI control, the system control value signal is output, which is then converted into an analog signal through digital-to-analog conversion, converted into high-frequency alternating current through a high-frequency inverter circuit, and output to a heating resistor strip after power amplification to adjust the heating power and further control the gas chamber temperature.

本发明的优点是:本发明结构简明,经济实用,克服了以往原子气室加热不均,PID温度控制存在不稳定,存在剩余误差和控制滞后的问题,通过结合扩展卡尔曼滤波与PID控制器,解决了热电偶因阻值与温度非线性关系导致的测量误差。The advantages of the present invention are: the present invention has a simple structure, is economical and practical, overcomes the problems of uneven heating of the atomic gas chamber, instability of PID temperature control, residual error and control lag in the past, and solves the measurement error caused by the nonlinear relationship between resistance and temperature of the thermocouple by combining the extended Kalman filter and the PID controller.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1为发明提供的用于原子气室的加热温控系统结构示意图;FIG1 is a schematic diagram of the structure of a heating and temperature control system for an atomic gas chamber provided by the invention;

图2是本发明的加热测温电路模块2的矩形双层线圈结构;FIG2 is a rectangular double-layer coil structure of a heating and temperature measuring circuit module 2 of the present invention;

图3为发明提供的扩展卡尔曼滤波器的实现方法框图;FIG3 is a block diagram of an implementation method of the extended Kalman filter provided by the invention;

图4为发明提供的基于扩展卡尔曼滤波的PID控制算法流程图;FIG4 is a flow chart of a PID control algorithm based on extended Kalman filtering provided by the invention;

具体实施方式Detailed ways

下面将结合附图对本发明专利的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

在本发明的描述中,需要说明的是,如出现术语“中心”、“上”、“下”、“左”、“右”、“竖直”、“水平”、“内”、“外”等指示的方位或位置关系为基于附图所示的方位或位置关系,仅是为了便于描述本发明和简化描述,而不是指示或暗示所指的装置或元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。此外,如出现术语“第一”、“第二”、“第三”仅用于描述目的,而不能理解为指示或暗示相对重要性。In the description of the present invention, it should be noted that the orientations or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the orientations or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.

在本发明的描述中,需要说明的是,除非另有明确的规定和限定,如出现术语“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本发明中的具体含义。In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

实施例一Embodiment 1

参见图1,本实施例涉及一种基于卡尔曼滤波的原子气室温控装置,其中硬件模块包括:原子气室1、加热测温电路模块2、信号放大电路3、模数/数模转换模块4、功率放大电路模块5、高频逆变电路模块6、主控模块7;Referring to FIG1 , this embodiment relates to an atomic gas room temperature control device based on Kalman filtering, wherein the hardware modules include: an atomic gas chamber 1, a heating and temperature measurement circuit module 2, a signal amplification circuit 3, an analog-to-digital/digital-to-analog conversion module 4, a power amplification circuit module 5, a high-frequency inverter circuit module 6, and a main control module 7;

所述加热测温电路模块2与原子气室1的表面连接。优选的,将加热测温电路模块2通过导热硅胶固定于原子气室1的外表面;The heating and temperature measuring circuit module 2 is connected to the surface of the atomic gas chamber 1. Preferably, the heating and temperature measuring circuit module 2 is fixed to the outer surface of the atomic gas chamber 1 by thermally conductive silicone;

所述加热测温电路模块2的加热电阻条选用纯铜材质,测温传感器选用T型贴片式热电偶,热电偶热端通过环氧树脂粘接剂固定于FPC软板上;The heating resistor strip of the heating and temperature measuring circuit module 2 is made of pure copper, the temperature measuring sensor is a T-type patch thermocouple, and the hot end of the thermocouple is fixed on the FPC soft board by epoxy resin adhesive;

参见图2,所述加热测温电路模块2为矩形双层线圈结构,热测温电路模块包括加热电阻条和贴片式热电偶;加热电阻条通过MEMS技术打印在柔性印刷电路板(FPC)柔性存底基片上,双层线圈上下层导线之间通过的电流平行反向,产生磁场相互抵消,进一步抑制线圈加热引入的三维空间磁场;Referring to FIG. 2 , the heating and temperature measurement circuit module 2 is a rectangular double-layer coil structure, and the thermal temperature measurement circuit module includes a heating resistor bar and a patch-type thermocouple; the heating resistor bar is printed on a flexible printed circuit board (FPC) flexible storage substrate by MEMS technology, and the current passing between the upper and lower layers of the double-layer coil is parallel and reverse, and the magnetic fields generated are offset from each other, further suppressing the three-dimensional magnetic field introduced by the coil heating;

上述T型贴片式热电偶的输出电压与温度的在0℃至200℃区间内的塞贝克系数为38.74μV/℃,在实际工作中需要对电压/温度的斜率进行测量标定;The Seebeck coefficient of the output voltage and temperature of the T-type patch thermocouple in the range of 0°C to 200°C is 38.74μV/°C. In actual work, the slope of voltage/temperature needs to be measured and calibrated.

所述T型贴片式热电偶的输出电压通过信号放大电路3进行放大,放大倍率可通过有缘器件调节;The output voltage of the T-type patch thermocouple is amplified by the signal amplification circuit 3, and the amplification factor can be adjusted by the active device;

所述模数/数模转换模块4设置采样频率为1samples/s,一个采样周期为1秒,将数据存储在EEPROM中,每个周期结束后将所有数据发送至主控模块7处理;优选的,所述模数/数模转换模块4的AD转换芯片为AD7606;The analog-to-digital/digital-to-analog conversion module 4 sets the sampling frequency to 1 sample/s, a sampling cycle to 1 second, stores the data in the EEPROM, and sends all the data to the main control module 7 for processing after each cycle; preferably, the AD conversion chip of the analog-to-digital/digital-to-analog conversion module 4 is AD7606;

所述主控模块7包括主控芯片以及其电源电路、晶振电路、复位电路、PCIe接口电路、SPI串口电路;所述主控芯片为FPGA芯片XC7A100T;The main control module 7 includes a main control chip and its power supply circuit, crystal oscillator circuit, reset circuit, PCIe interface circuit, and SPI serial port circuit; the main control chip is an FPGA chip XC7A100T;

所述高频逆变电路模块6的作用是将模数/数模转换模块4输出的低压直流电转换为高频交流电,降低加热线圈带来的磁场,保证原子气室1内的拉莫尔进动不受磁场的干扰;The function of the high-frequency inverter circuit module 6 is to convert the low-voltage direct current output by the analog-to-digital/digital-to-analog conversion module 4 into high-frequency alternating current, thereby reducing the magnetic field brought by the heating coil and ensuring that the Larmor precession in the atomic gas chamber 1 is not disturbed by the magnetic field;

所述的扩展卡尔曼滤波器8和PID控制器9,算法程序都通过在主控模块7的芯片里通过编程实现;The algorithm programs of the extended Kalman filter 8 and the PID controller 9 are implemented by programming in the chip of the main control module 7;

实施例二Embodiment 2

本实施例涉及使用实施例一的基于卡尔曼滤波的原子气室温控装置的基于卡尔曼滤波的原子气室温控方法,参见图3,扩展卡尔曼滤波器8对原子气室1温度进行最优估计,改进PID控制器9,包括以下步骤:This embodiment relates to an atomic gas room temperature control method based on Kalman filtering using the atomic gas room temperature control device based on Kalman filtering of the first embodiment. Referring to FIG. 3 , an extended Kalman filter 8 performs optimal estimation on the temperature of the atomic gas chamber 1 and an improved PID controller 9, including the following steps:

步骤S1:首先设置参考温度值Tref=140℃,再通过测得k时刻的电压值数据,换算得到测量温度值Zk;确定温控扩展卡尔曼滤波器8的预测模型的非线性表达式为:Step S1: first set the reference temperature value T ref = 140°C, then convert the measured temperature value Z k by measuring the voltage value data at time k; determine the nonlinear expression of the prediction model of the temperature control extended Kalman filter 8 as:

Tk=f(Tk-1,Uk-1,Wk-1) (1)T k =f(T k-1 ,U k-1 ,W k-1 ) (1)

Zk=h(Tk,Vk) (2)Z k =h(T k ,V k ) (2)

其中,(1)式为k时刻原子气室1的温度与输入电流的非线性表达式,(2)式为k时刻原子气室1的温度的测量公式;Tk为k时刻原子气室1的温度的预测真实值,Zk为k时刻原子气室1的温度的测量真实值;Uk-1为k-1时刻的控制向量,Wk-1为k-1时刻的过程噪声,Vk为k时刻的测量噪声,两者都符合一元高斯分布:Among them, formula (1) is the nonlinear expression of the temperature of atomic gas chamber 1 at time k and the input current, formula (2) is the measurement formula of the temperature of atomic gas chamber 1 at time k; T k is the predicted true value of the temperature of atomic gas chamber 1 at time k, Z k is the measured true value of the temperature of atomic gas chamber 1 at time k; U k-1 is the control vector at time k-1, W k-1 is the process noise at time k-1, and V k is the measurement noise at time k, both of which conform to the univariate Gaussian distribution:

P(W)~N(0,Q),P(V)~N(0,R)P(W)~N(0,Q), P(V)~N(0,R)

上述过程噪声和测量噪声在实际工作中,期望都为0,符合正态分布;Q为估计的过程噪声的协方差矩阵,R为测量的高斯噪声的协方差矩阵,其值通过加热测温电路模块2的噪声具体决定;In actual work, the above process noise and measurement noise are expected to be 0, which conforms to the normal distribution; Q is the covariance matrix of the estimated process noise, and R is the covariance matrix of the measured Gaussian noise, and its value is specifically determined by the noise of the heating temperature measurement circuit module 2;

步骤S2:确定温控扩展卡尔曼滤波器8预测模型的先验估计温度值和测量温度值公式为:Step S2: Determine the a priori estimated temperature value and the measured temperature value formula of the temperature control extended Kalman filter 8 prediction model as follows:

其中是k时刻原子气室1的温度的先验估计温度值,为k时刻先验测量值;in is the a priori estimated temperature value of the temperature of atomic gas chamber 1 at time k, is the prior measurement value at time k;

步骤S3:更新预测模型的先验状态误差协方差矩阵其更新公式为:Step S3: Update the prior state error covariance matrix of the prediction model The update formula is:

其中,A为雅可比矩阵。Where A is the Jacobian matrix.

步骤S4:更新温控扩展卡尔曼滤波器8的卡尔曼增益Kk,其更新公式为:Step S4: Update the Kalman gain K k of the temperature-controlled extended Kalman filter 8. The update formula is:

其中,H为转换矩阵;Where H is the transformation matrix;

步骤S5:通过信息融合的方法,校正最优的后验估计温度值Step S5: Correct the optimal a posteriori estimated temperature value by information fusion method

后验校正公式为: The posterior correction formula is:

步骤S6:更新后验状态误差协方差矩阵预测值Pk,更新公式为:Step S6: Update the predicted value P k of the posterior state error covariance matrix. The update formula is:

步骤S7:参见图4,设置上述最优的后验估计温度值作为k时刻的气室外部温度,计算与上述参考温度值Tref的温度偏移量作为PID控制器9的输入量;一般PID控制的计算方程为:Step S7: Referring to FIG. 4 , the optimal a posteriori estimated temperature value is set. As the external temperature of the air chamber at time k, calculate the temperature offset from the reference temperature value T ref As the input of PID controller 9; the calculation equation of general PID control is:

其中,Kp为PID控制器9的比例系数,Ti为PID控制器9的积分时间,Td为PID控制器9的微分时间,u(t)为输入Toff经过PID控制器9进行线性组合构成的系统控制量;上述公式无法通过编程在FPGA内编程实现,对其进行离散化处理,将积分部分换算为求和公式,公式为:Among them, Kp is the proportional coefficient of PID controller 9, Ti is the integral time of PID controller 9, Td is the differential time of PID controller 9, and u(t) is the system control quantity formed by linear combination of input Toff through PID controller 9; the above formula cannot be implemented by programming in FPGA, so it is discretized and the integral part is converted into a summation formula, which is:

上述Ki、Kd分别为积分和微分控制系数,Uk为离散化的系统控制量,比例控制Kp可以快速响应系统误差,减少稳态误差,若Kp过大,系统会不稳定;积分控制Ki是温度偏移量进行不断叠加,用以消除稳态误差,若Ki过大,会使系统超调,导致系统震荡;微分控制Kd用以减小系统超调量,克服系统震荡,但微分项对高频噪音非常敏感,所以在本发明中不启用微分控制,Kd=0;The above Ki and Kd are integral and differential control coefficients respectively, Uk is the discretized system control quantity, the proportional control Kp can quickly respond to the system error and reduce the steady-state error. If Kp is too large, the system will be unstable; the integral control Ki is the temperature offset that is continuously superimposed to eliminate the steady-state error. If Ki is too large, the system will overshoot and cause system oscillation; the differential control Kd is used to reduce the system overshoot and overcome the system oscillation, but the differential term is very sensitive to high-frequency noise, so the differential control is not enabled in the present invention, Kd = 0;

步骤S8:通过编程实现系统控制量Uk的从主控模块数字化输出,经数模转换、高频逆变、功率放大后转变为加热信号至加热测温模块,改变加热功率实现气室内温度变化,再经过温度测量后更新k+1时刻的测量温度值Zk+1,重复扩展卡尔曼滤波和PID控制,直至原子气室1温度到达参考温度值并稳定;Step S8: The system control quantity U k is digitally output from the main control module through programming, and is converted into a heating signal to the heating temperature measurement module after digital-to-analog conversion, high-frequency inversion, and power amplification, and the heating power is changed to achieve the temperature change in the gas chamber, and then the measured temperature value Z k+ 1 at time k+1 is updated after temperature measurement, and the extended Kalman filter and PID control are repeated until the temperature of the atomic gas chamber 1 reaches the reference temperature value and stabilizes;

进一步,在完成一次完整的原子气室的温控加热后,获得新的数学模型,对扩展卡尔曼滤波器8的预测模型进行更新;Furthermore, after completing a complete temperature control heating of the atomic gas chamber, a new mathematical model is obtained to update the prediction model of the extended Kalman filter 8;

本说明书实施例所述的内容仅仅是对发明构思的实现形式的列举,本发明的保护范围不应当被视为仅限于实施例所陈述的具体形式,本发明的保护范围也及于本领域技术人员根据本发明构思所能够想到的等同技术手段。The contents described in the embodiments of this specification are merely an enumeration of the implementation forms of the inventive concept. The protection scope of the present invention should not be regarded as limited to the specific forms described in the embodiments. The protection scope of the present invention also extends to equivalent technical means that can be conceived by those skilled in the art based on the inventive concept.

Claims (4)

1.一种基于卡尔曼滤波的原子气室温控装置,其特征在于:包括:原子气室(1)、加热测温电路模块(2)、信号放大电路(3)、模数/数模转换模块(4)、功率放大电路模块(5)、高频逆变电路模块(6)、主控模块(7);1. An atomic gas room temperature control device based on Kalman filtering, characterized in that it comprises: an atomic gas chamber (1), a heating and temperature measurement circuit module (2), a signal amplification circuit (3), an analog-to-digital/digital-to-analog conversion module (4), a power amplification circuit module (5), a high-frequency inverter circuit module (6), and a main control module (7); 原子气室(1)与加热测温电路模块(2)相连,原子气室(1)内填充有铷原子气体和作为淬火气体的氮气;The atomic gas chamber (1) is connected to the heating and temperature measuring circuit module (2), and the atomic gas chamber (1) is filled with rubidium atomic gas and nitrogen gas serving as quenching gas; 加热测温电路模块(2)的加热电阻条通电后产生电流热加热原子气室(1),原子气室(1)的温度发生变化使得加热测温电路模块(2)的贴片式热电偶冷端和热端间产生电势差,通过测量电势差测定原子气室(1)温度;When the heating resistor strip of the heating and temperature measuring circuit module (2) is energized, an electric current is generated to heat the atomic gas chamber (1), and the temperature of the atomic gas chamber (1) changes, so that a potential difference is generated between the cold end and the hot end of the patch type thermocouple of the heating and temperature measuring circuit module (2), and the temperature of the atomic gas chamber (1) is determined by measuring the potential difference; 加热测温电路模块(2)与信号放大电路(3)连接,贴片式热电偶冷端和热端间产生电势差作为输入的模拟电压信号传输至信号放大电路(3),信号放大电路(3)放大模拟电压信号,输出温度电压;The heating temperature measurement circuit module (2) is connected to the signal amplifying circuit (3), and the potential difference generated between the cold end and the hot end of the patch type thermocouple is transmitted as an input analog voltage signal to the signal amplifying circuit (3), and the signal amplifying circuit (3) amplifies the analog voltage signal and outputs a temperature voltage; 信号放大电路(3)与模数/数模转换模块(4)相连,信号放大电路(3)输出温度电压至模数/数模转换模块(4)通过模数转换将温度电压转换为数字信号输出;The signal amplifying circuit (3) is connected to the analog-to-digital/digital-to-analog conversion module (4), and the signal amplifying circuit (3) outputs a temperature voltage to the analog-to-digital/digital-to-analog conversion module (4), which converts the temperature voltage into a digital signal output through analog-to-digital conversion; 模数/数模转换模块(4)与主控模块(7)相连,模数/数模转换模快(4)将数字信号输送至主控模块(7),主控模块(7)接收输入信号,经分析处理后,输出系统控制量至模数/数模转换模块(4);The analog-to-digital/digital-to-analog conversion module (4) is connected to the main control module (7). The analog-to-digital/digital-to-analog conversion module (4) transmits the digital signal to the main control module (7). The main control module (7) receives the input signal, and after analysis and processing, outputs the system control quantity to the analog-to-digital/digital-to-analog conversion module (4). 模数/数模转换模块(4)还与高频逆变电路模块(6)相连,模数/数模转换模块(4)输出低压直流电信号至高频逆变电路模块(6),所述高频逆变电路模块(6)将低压直流电信号转换为高频低压交流电信号;The analog-to-digital/digital-to-analog conversion module (4) is also connected to the high-frequency inverter circuit module (6), and the analog-to-digital/digital-to-analog conversion module (4) outputs a low-voltage direct current signal to the high-frequency inverter circuit module (6), and the high-frequency inverter circuit module (6) converts the low-voltage direct current signal into a high-frequency low-voltage alternating current signal; 高频逆变电路模块(6)与功率放大电路模块(5)相连,所述功率放大电路模块(5)接收高频逆变电路模块(6)输出的高频低压交流电信号,并对其进行功率放大后,输出加热信号;The high-frequency inverter circuit module (6) is connected to the power amplifier circuit module (5), and the power amplifier circuit module (5) receives the high-frequency low-voltage alternating current signal output by the high-frequency inverter circuit module (6), performs power amplification on the signal, and then outputs a heating signal; 功率放大电路模块(5)与加热测温电路模块(2)相连,所述加热测温电路模块(2)接收功率放大电路模块(5)的加热信号,加热测温电路模块(2)控制加热线圈加热或降温。The power amplifier circuit module (5) is connected to the heating and temperature measuring circuit module (2), the heating and temperature measuring circuit module (2) receives the heating signal of the power amplifier circuit module (5), and the heating and temperature measuring circuit module (2) controls the heating coil to heat or cool. 2.如权利要求1所述的一种基于卡尔曼滤波的原子气室温控装置,其特征在于:主控模块(7)包括扩展卡尔曼滤波器(8)、PID控制器(9),主控模块(7)做如下信息处理:2. The atomic gas room temperature control device based on Kalman filtering according to claim 1, characterized in that: the main control module (7) includes an extended Kalman filter (8) and a PID controller (9), and the main control module (7) performs the following information processing: 步骤1:将输入的温度电压数值,根据热电偶电动势计算公式计算出测量温度值Zk,测量温度值Zk为保留3位小数的浮点型数据格式;Step 1: Calculate the measured temperature value Z k according to the thermocouple electromotive force calculation formula using the input temperature and voltage values. The measured temperature value Z k is in a floating point data format with 3 decimal places reserved. 步骤2:将测量温度值Zk输入扩展卡尔曼滤波器(8),计算出后验估计温度值计算所述后验估计温度值与参考温度值Tref的差值ToffStep 2: Input the measured temperature value Zk into the extended Kalman filter (8) to calculate the posterior estimated temperature value Calculate the a posteriori estimated temperature value The difference T off from the reference temperature value T ref ; 步骤3:将上述差值Toff作为PID控制器(9)的输入,通过PI算法计算出系统控制量Uk,作为PID控制器(9)的输出值;Step 3: The difference T off is used as the input of the PID controller (9), and the system control variable U k is calculated by the PI algorithm as the output value of the PID controller (9); 步骤4:将输出值Uk通过SPI串口电路传输至模数/数模转换模块(4),将输出值Uk通过数模转换输出低压直流电信号。Step 4: The output value U k is transmitted to the analog-to-digital/digital-to-analog conversion module (4) through the SPI serial port circuit, and the output value U k is output as a low-voltage direct current signal through digital-to-analog conversion. 3.使用如权利要求1所述的一种基于卡尔曼滤波的原子气室温控装置的基于卡尔曼滤波的原子气室温控方法,包括如下步骤:3. An atomic gas room temperature control method based on Kalman filtering using the atomic gas room temperature control device based on Kalman filtering as claimed in claim 1, comprising the following steps: 步骤S1:首先设置参考温度值Tref=140℃,再通过测得k时刻的电压值数据,换算得到测量温度值Zk;确定温控扩展卡尔曼滤波器(8)的预测模型的非线性表达式为:Step S1: First, set the reference temperature value T ref = 140°C, and then convert the measured temperature value Z k by measuring the voltage value data at time k; determine the nonlinear expression of the prediction model of the temperature control extended Kalman filter (8) as: Tk=f(Tk-1,Uk-1,Wk-1) (1)T k =f(T k-1 ,U k-1 ,W k-1 ) (1) Zk=h(Tk,Vk) (2)Z k =h(T k ,V k ) (2) 其中,式(1)为k时刻原子气室1的温度与输入电流的非线性表达式,式(2)为k时刻原子气室1的温度的测量公式;Tk为k时刻原子气室1的温度的预测真实值,Zk为k时刻原子气室1的温度的测量真实值;Uk-1为k-1时刻的控制向量,Wk-1为k-1时刻的过程噪声,Vk为k时刻的测量噪声,两者都符合一元高斯分布:Wherein, formula (1) is the nonlinear expression of the temperature of atomic gas chamber 1 and input current at time k, formula (2) is the measurement formula of the temperature of atomic gas chamber 1 at time k; T k is the predicted true value of the temperature of atomic gas chamber 1 at time k, Z k is the measured true value of the temperature of atomic gas chamber 1 at time k; U k-1 is the control vector at time k-1, W k-1 is the process noise at time k-1, and V k is the measurement noise at time k, both of which conform to the univariate Gaussian distribution: P(W)~N(0,Q),P(V)~N(0,R)P(W)~N(0,Q), P(V)~N(0,R) 上述过程噪声和测量噪声在实际工作中,期望都为0,符合正态分布;Q为估计的过程噪声的协方差矩阵,R为测量的高斯噪声的协方差矩阵,其值通过加热测温电路模块(2)的噪声具体决定;In actual work, the above process noise and measurement noise are expected to be 0, which conforms to the normal distribution; Q is the covariance matrix of the estimated process noise, and R is the covariance matrix of the measured Gaussian noise, and its value is specifically determined by the noise of the heating temperature measurement circuit module (2); 步骤S2:确定温控扩展卡尔曼滤波器(8)预测模型的先验估计温度值和测量温度值公式为:Step S2: Determine the a priori estimated temperature value and measured temperature value formula of the temperature control extended Kalman filter (8) prediction model as follows: 其中是k时刻原子气室1的温度的先验估计温度值,为k时刻先验测量值;in is the a priori estimated temperature value of the temperature of atomic gas chamber 1 at time k, is the prior measurement value at time k; 步骤S3:更新预测模型的先验状态误差协方差矩阵其更新公式为:Step S3: Update the prior state error covariance matrix of the prediction model The update formula is: 其中,A为雅可比矩阵。Where A is the Jacobian matrix. 步骤S4:更新温控扩展卡尔曼滤波器(8)的卡尔曼增益Kk,其更新公式为:Step S4: Update the Kalman gain K k of the temperature-controlled extended Kalman filter (8), and the update formula is: 其中,H为转换矩阵;Where H is the transformation matrix; 步骤S5:通过信息融合的方法,校正最优的后验估计温度值后验校正公式为:Step S5: Correct the optimal a posteriori estimated temperature value by information fusion method The posterior correction formula is: 步骤S6:更新后验状态误差协方差矩阵预测值Pk,更新公式为:Step S6: Update the predicted value P k of the posterior state error covariance matrix. The update formula is: 步骤S7:设置上述最优的后验估计温度值作为k时刻的气室外部温度,计算与上述参考温度值Tref的温度偏移量作为PID控制器(9)的输入量;一般PID控制的计算方程为:Step S7: Setting the above optimal a posteriori estimated temperature value As the external temperature of the air chamber at time k, calculate the temperature offset from the reference temperature value T ref As the input of PID controller (9); the general PID control calculation equation is: 其中,Kp为PID控制器(9)的比例系数,Ti为PID控制器(9)的积分时间,Td为PID控制器(9)的微分时间,u(t)为输入Toff经过PID控制器(9)进行线性组合构成的系统控制量;上述公式无法通过编程在FPGA内编程实现,对其进行离散化处理,将积分部分换算为求和公式,公式为:Wherein, Kp is the proportional coefficient of the PID controller (9), Ti is the integral time of the PID controller (9), Td is the differential time of the PID controller (9), and u(t) is the system control quantity formed by the linear combination of the input Toff through the PID controller (9); the above formula cannot be implemented by programming in the FPGA, so it is discretized and the integral part is converted into a summation formula, which is: 上述Ki、Kd分别为积分和微分控制系数,Uk为离散化的系统控制量,比例控制Kp可以快速响应系统误差,减少稳态误差,若Kp过大,系统会不稳定;积分控制Ki是温度偏移量进行不断叠加,用以消除稳态误差,若Ki过大,会使系统超调,导致系统震荡;微分控制Kd用以减小系统超调量,克服系统震荡,但微分项对高频噪音非常敏感,所以在本发明中不启用微分控制,Kd=0;The above Ki and Kd are integral and differential control coefficients respectively, Uk is the discretized system control quantity, the proportional control Kp can quickly respond to the system error and reduce the steady-state error. If Kp is too large, the system will be unstable; the integral control Ki is the temperature offset that is continuously superimposed to eliminate the steady-state error. If Ki is too large, the system will overshoot and cause system oscillation; the differential control Kd is used to reduce the system overshoot and overcome the system oscillation, but the differential term is very sensitive to high-frequency noise, so the differential control is not enabled in the present invention, Kd = 0; 步骤S8:通过编程实现系统控制量Uk的从主控模块数字化输出,经数模转换、高频逆变、功率放大后转变为加热信号至加热测温模块,改变加热功率实现气室内温度变化,再经过温度测量后更新k+1时刻的测量温度值Zk+1,重复扩展卡尔曼滤波和PID控制,直至原子气室1温度到达参考温度值并稳定。Step S8: The system control quantity U k is digitally output from the main control module through programming, and is converted into a heating signal to the heating temperature measurement module after digital-to-analog conversion, high-frequency inversion, and power amplification. The heating power is changed to achieve temperature changes in the gas chamber, and the measured temperature value Z k+1 at time k+1 is updated after temperature measurement. The extended Kalman filter and PID control are repeated until the temperature of the atomic gas chamber 1 reaches the reference temperature value and stabilizes. 4.如权利要求1所述的方法,其特征在于,在完成一次完整的原子气室的温控加热后,获得新的数学模型,对扩展卡尔曼滤波器(8)的预测模型进行更新。4. The method according to claim 1 is characterized in that after completing a complete temperature-controlled heating of the atomic gas chamber, a new mathematical model is obtained to update the prediction model of the extended Kalman filter (8).
CN202410352067.5A 2024-03-26 2024-03-26 Atomic gas room temperature control device and method based on Kalman filtering Pending CN118259711A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410352067.5A CN118259711A (en) 2024-03-26 2024-03-26 Atomic gas room temperature control device and method based on Kalman filtering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410352067.5A CN118259711A (en) 2024-03-26 2024-03-26 Atomic gas room temperature control device and method based on Kalman filtering

Publications (1)

Publication Number Publication Date
CN118259711A true CN118259711A (en) 2024-06-28

Family

ID=91612431

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410352067.5A Pending CN118259711A (en) 2024-03-26 2024-03-26 Atomic gas room temperature control device and method based on Kalman filtering

Country Status (1)

Country Link
CN (1) CN118259711A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118625878A (en) * 2024-08-14 2024-09-10 山东科技大学 Laser temperature control system based on dynamic Kalman and PID control
CN119356438A (en) * 2024-09-27 2025-01-24 中国科学院微小卫星创新研究院 A global MK-level precision temperature control method based on thermocouple and Kalman filter

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104001849A (en) * 2014-06-04 2014-08-27 温州奔龙自动化科技有限公司 Automatic riveting device of circuit breaker
KR101582675B1 (en) * 2014-06-27 2016-01-05 남부대학교산학협력단 temperature control apparatus of heating and cooling mold using extended kalman filter
CN107203234A (en) * 2017-06-15 2017-09-26 北京航空航天大学 A kind of integrated magnetic resonance gyroscope temperature closed loop numerical control system
CN107395083A (en) * 2017-08-10 2017-11-24 中国计量大学 PMLSM servo-control system Position And Velocity methods of estimation and device
CN109559921A (en) * 2019-01-16 2019-04-02 宁波友信电器有限公司 A kind of temperature detect switch (TDS) assembles riveting machine automatically
CN109916387A (en) * 2019-01-31 2019-06-21 北京航天控制仪器研究所 It is a kind of for SERF atomic air chamber without magnetic temperature control system and method
CN110788269A (en) * 2019-12-10 2020-02-14 奔龙自动化科技有限公司 Automatic nail-penetrating equipment for circuit breaker
CN112383976A (en) * 2020-11-27 2021-02-19 之江实验室 High-frequency thermostat for heating alkali metal atom air chamber
CN112846041A (en) * 2021-01-05 2021-05-28 奔龙自动化科技有限公司 Automatic nail-penetrating equipment of rotary disc type circuit breaker
CN113064339A (en) * 2021-03-05 2021-07-02 温州激光与光电子协同创新中心 High-stability atomic clock based on Kalman filtering optimal state estimation and implementation method
CN114089193A (en) * 2021-10-19 2022-02-25 清华大学 On-line estimation method, device and computer equipment for battery temperature and negative electrode potential
CN115932591A (en) * 2022-08-30 2023-04-07 上海玫克生储能科技有限公司 Lithium battery SOC estimation method, system, medium and electronic equipment based on PID-EKF
CN220019846U (en) * 2023-04-18 2023-11-14 浙江工业大学 A non-magnetic temperature control system and SERF atomic magnetometer

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104001849A (en) * 2014-06-04 2014-08-27 温州奔龙自动化科技有限公司 Automatic riveting device of circuit breaker
KR101582675B1 (en) * 2014-06-27 2016-01-05 남부대학교산학협력단 temperature control apparatus of heating and cooling mold using extended kalman filter
CN107203234A (en) * 2017-06-15 2017-09-26 北京航空航天大学 A kind of integrated magnetic resonance gyroscope temperature closed loop numerical control system
CN107395083A (en) * 2017-08-10 2017-11-24 中国计量大学 PMLSM servo-control system Position And Velocity methods of estimation and device
CN109559921A (en) * 2019-01-16 2019-04-02 宁波友信电器有限公司 A kind of temperature detect switch (TDS) assembles riveting machine automatically
CN109916387A (en) * 2019-01-31 2019-06-21 北京航天控制仪器研究所 It is a kind of for SERF atomic air chamber without magnetic temperature control system and method
CN110788269A (en) * 2019-12-10 2020-02-14 奔龙自动化科技有限公司 Automatic nail-penetrating equipment for circuit breaker
CN112383976A (en) * 2020-11-27 2021-02-19 之江实验室 High-frequency thermostat for heating alkali metal atom air chamber
CN112846041A (en) * 2021-01-05 2021-05-28 奔龙自动化科技有限公司 Automatic nail-penetrating equipment of rotary disc type circuit breaker
CN113064339A (en) * 2021-03-05 2021-07-02 温州激光与光电子协同创新中心 High-stability atomic clock based on Kalman filtering optimal state estimation and implementation method
CN114089193A (en) * 2021-10-19 2022-02-25 清华大学 On-line estimation method, device and computer equipment for battery temperature and negative electrode potential
CN115932591A (en) * 2022-08-30 2023-04-07 上海玫克生储能科技有限公司 Lithium battery SOC estimation method, system, medium and electronic equipment based on PID-EKF
CN220019846U (en) * 2023-04-18 2023-11-14 浙江工业大学 A non-magnetic temperature control system and SERF atomic magnetometer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曾敏等: "基于EKF的热压焊温度控制方法建模与仿真", 华南理工大学学报(自然科学版), vol. 51, no. 09, 30 September 2023 (2023-09-30), pages 11 - 18 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118625878A (en) * 2024-08-14 2024-09-10 山东科技大学 Laser temperature control system based on dynamic Kalman and PID control
CN119356438A (en) * 2024-09-27 2025-01-24 中国科学院微小卫星创新研究院 A global MK-level precision temperature control method based on thermocouple and Kalman filter
CN119356438B (en) * 2024-09-27 2025-10-24 中国科学院微小卫星创新研究院 A global MK-level precision temperature control method based on thermocouple and Kalman filter

Similar Documents

Publication Publication Date Title
CN118259711A (en) Atomic gas room temperature control device and method based on Kalman filtering
Yin et al. Front-end monitoring of the mutual inductance and load resistance in a series–series compensated wireless power transfer system
CN102201787B (en) Constant-temperature piezoelectric oscillator and method of manufacturing the same
CN106301224B (en) A kind of crystal oscillator automatic temperature compensation system
JP5114122B2 (en) Control circuit of thermostat in crystal oscillator with thermostat
CN106679842B (en) A kind of temp measuring method and temperature measurement circuit using reference voltage compensation technology
CN113189528A (en) Reading method, device, equipment and medium applied to miniaturized atomic magnetometer
JP2005165630A (en) Temperature control circuit and homeothermal chamber type piezoelectric oscillator
CN113568449A (en) Semiconductor vacuum deep refrigeration full-bridge control circuit of large target surface detector
CN116545382B (en) MEMS oscillator
CN110673670A (en) Atomic gas chamber temperature closed-loop control method and device
CN115857588A (en) A SERF atomic magnetometer gas chamber temperature control system and method, equipment and medium
Barrettino et al. A smart single-chip micro-hotplate-based chemical sensor system in CMOS-technology
Lawton et al. A high-stability air temperature control system
CN120222137A (en) A double-layer temperature control system for semiconductor lasers
CN108007596A (en) A kind of Thermocouple Temperature Signal modulate circuit
Mustafazade et al. Compact high-precision analog temperature controller for MEMS inertial sensors
EP3348969B1 (en) Measurement of a fluid parameter and sensor device therefore
CN116204017B (en) A Precision Temperature Measurement and Control Device Based on Front-end AC Bridge
CN110426960B (en) Laser control system and design method of internal model controller with interference observer
CN107065689B (en) A new electric vehicle power supply device
Liu et al. Design of PID Temperature Control System for RNA Virus Detection
CN114785310A (en) Silicon MEMS resonator and self-compensation method for realizing frequency drift by body piezoresistance heat thereof
Arunachalam et al. Embedded temperature monitoring and control unit
Fu et al. Research on non-magnetic temperature control system applied to alkali vapor cells

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20240628