Movatterモバイル変換


[0]ホーム

URL:


CN118838464A - Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product - Google Patents

Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product
Download PDF

Info

Publication number
CN118838464A
CN118838464ACN202410807490.XACN202410807490ACN118838464ACN 118838464 ACN118838464 ACN 118838464ACN 202410807490 ACN202410807490 ACN 202410807490ACN 118838464 ACN118838464 ACN 118838464A
Authority
CN
China
Prior art keywords
power supply
output voltage
signal
analog
digital
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
CN202410807490.XA
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.)
Shenzhen Silicon Technology Co ltd
Original Assignee
Shenzhen Silicon Technology Co ltd
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 Shenzhen Silicon Technology Co ltdfiledCriticalShenzhen Silicon Technology Co ltd
Priority to CN202410807490.XApriorityCriticalpatent/CN118838464A/en
Publication of CN118838464ApublicationCriticalpatent/CN118838464A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法及装置、计算设备、计算机程序产品,包括:通过模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;根据温度补偿算法对模数转换器ADC和数模转换器DAC读数进行调整并转换得到数字信号,比较生成误差信号;将误差信号输入模糊自适应PID控制算法生成控制信号;根据模拟电压信号调整电源输出电压,直至实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。本发明采用模糊自适应PID控制算法对误差信号进行处理,实现对输出电压的快速控制。对控制信号传输过程中的噪声和干扰进行抑制,进一步保证电源输出电压的控制精度。

The present invention discloses a power controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment, and computer program product, including: collecting the output voltage signal of the power supply in real time through an analog-to-digital converter ADC and converting it into a digital signal; adjusting the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC according to a temperature compensation algorithm and converting them to obtain a digital signal, and comparing and generating an error signal; inputting the error signal into a fuzzy adaptive PID control algorithm to generate a control signal; adjusting the power supply output voltage according to the analog voltage signal until the error between the actual output voltage and the preset reference voltage value reaches a preset threshold range. The present invention uses a fuzzy adaptive PID control algorithm to process the error signal to achieve rapid control of the output voltage. Noise and interference in the control signal transmission process are suppressed to further ensure the control accuracy of the power supply output voltage.

Description

Translated fromChinese
一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法及装置、计算设备、计算机程序产品A power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment, and computer program product

技术领域Technical Field

本发明涉及电源控制技术领域,具体涉及一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法及装置、计算设备、计算机程序产品。The present invention relates to the field of power supply control technology, and in particular to a power supply controller output voltage control method and device based on a high-precision ADC and a negative feedback closed loop, a computing device, and a computer program product.

背景技术Background Art

现有的电源控制器输出电压控制方法,通常采用传统的PID控制算法对电源输出电压进行调节。传统的PID控制算法依赖于固定的控制参数,无法根据电源的实际运行状态进行自适应调整,导致控制精度受限。尤其是在电源电压波动较大或环境温度变化明显的情况下,控制的精度会大幅下降。此外,电源控制器内部的模数转换器(ADC)和数模转换器(DAC)的读数容易受到环境温度的影响,导致采集到的电压信号与实际输出电压之间存在偏差,进一步影响PID控制算法的效果,降低了电源输出电压的控制精度。The existing power supply controller output voltage control method usually uses the traditional PID control algorithm to adjust the power supply output voltage. The traditional PID control algorithm relies on fixed control parameters and cannot be adaptively adjusted according to the actual operating status of the power supply, resulting in limited control accuracy. Especially when the power supply voltage fluctuates greatly or the ambient temperature changes significantly, the control accuracy will drop significantly. In addition, the readings of the analog-to-digital converter (ADC) and digital-to-analog converter (DAC) inside the power supply controller are easily affected by the ambient temperature, resulting in a deviation between the collected voltage signal and the actual output voltage, further affecting the effect of the PID control algorithm and reducing the control accuracy of the power supply output voltage.

针对上述问题,本发明提出一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法,通过引入高精度ADC和DAC、温度补偿算法、模糊自适应PID控制算法以及滤波器等技术手段,有效提高了电源输出电压的控制精度和稳定性。In view of the above problems, the present invention proposes a power supply controller output voltage control method based on high-precision ADC and negative feedback closed loop, which effectively improves the control accuracy and stability of the power supply output voltage by introducing high-precision ADC and DAC, temperature compensation algorithm, fuzzy adaptive PID control algorithm and filter and other technical means.

发明内容Summary of the invention

鉴于上述问题,提出了本发明以便提供一种克服上述输出电压的控制精度和稳定性较低问题的基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法及装置、计算设备、计算机程序产品。In view of the above problems, the present invention is proposed to provide a power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment, and computer program product to overcome the above-mentioned problems of low output voltage control accuracy and stability.

根据本发明的一个方面,提供了一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法,包括:According to one aspect of the present invention, a method for controlling an output voltage of a power supply controller based on a high-precision ADC and a negative feedback closed loop is provided, comprising:

通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;The output voltage signal of the power supply is collected in real time by at least one analog-to-digital converter ADC and converted into a digital signal;

根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;Adjusting the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC according to the temperature compensation algorithm; converting the temperature-compensated analog-to-digital converter ADC to obtain a digital signal, and comparing the digital signal with a preset reference voltage value to generate an error signal;

将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;The error signal is input into a fuzzy adaptive PID control algorithm for processing to generate a control signal; a filter is used on a power line and a signal line to transmit the control signal; and a digital-to-analog converter DAC is used to output an analog voltage signal to a power controller according to the control signal;

所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。The power controller adjusts the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range.

在一种可选的方式中,所述模数转换器ADC的精度超过24位。In an optional embodiment, the accuracy of the analog-to-digital converter ADC exceeds 24 bits.

在一种可选的方式中,所述模糊自适应PID控制算法包括模糊控制器和PID控制器;In an optional manner, the fuzzy adaptive PID control algorithm includes a fuzzy controller and a PID controller;

所述模糊控制器根据误差信号和误差变化率,通过模糊规则库输出PID控制器的参数调整量;The fuzzy controller outputs the parameter adjustment amount of the PID controller through the fuzzy rule base according to the error signal and the error change rate;

所述PID控制器根据模糊控制器输出的参数调整量,实时调整其比例、积分和微分系数,生成适应于当前电源控制状态的控制信号。The PID controller adjusts its proportional, integral and differential coefficients in real time according to the parameter adjustment amount output by the fuzzy controller, and generates a control signal adapted to the current power supply control state.

在一种可选的方式中,所述PID控制器的公式为:In an optional manner, the formula of the PID controller is:

其中,u(k)为第k个采样时刻的控制信号输出;Kp(k)为第k个采样时刻的比例系数;e(k)为第k个采样时刻的误差信号,即实际输出与参考输出之间的差值;Ki(k)为第k个采样时刻的积分系数;为从第1个采样时刻到第k个采样时刻的误差累积;Kd(k)为第k个采样时刻的微分系数;为误差的变化率,用于计算微分项;T为采样周期,即两次采样之间的时间间隔。Among them, u(k) is the control signal output at the kth sampling moment; Kp(k) is the proportional coefficient at the kth sampling moment; e(k) is the error signal at the kth sampling moment, that is, the difference between the actual output and the reference output; Ki(k) is the integral coefficient at the kth sampling moment; is the error accumulation from the 1st sampling moment to the kth sampling moment; Kd(k) is the differential coefficient at the kth sampling moment; is the rate of change of the error, which is used to calculate the differential term; T is the sampling period, that is, the time interval between two samples.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

引入积分限幅值和微分限幅值,以限制积分项和微分项的大小;Introduce integral limit value and differential limit value to limit the size of integral term and differential term;

其中,所述积分项为:Among them, the integral term is:

所述微分项为:The differential term is:

所述PID控制器的公式为:The formula for the PID controller is:

其中,Kilimit为积分限幅,Kdlimit为微分限幅值。Among them, Kilimit is the integral limit and Kdlimit is the differential limit.

在一种可选的方式中,所述滤波器包括低通滤波器和带阻滤波器;In an optional manner, the filter includes a low-pass filter and a band-stop filter;

所述低通滤波器用于滤除电源线上的高频噪声,确保控制信号的纯净性;The low-pass filter is used to filter out high-frequency noise on the power line to ensure the purity of the control signal;

所述带阻滤波器用于滤除信号线上的特定频率干扰,保护控制信号免受外界干扰的影响。The band-stop filter is used to filter out specific frequency interference on the signal line and protect the control signal from external interference.

在一种可选的方式中,所述电源控制器还包括过压保护和欠压保护功能;In an optional manner, the power controller also includes overvoltage protection and undervoltage protection functions;

其中,当电源输出电压超过预设的过压阈值或低于预设的欠压阈值时,所述电源控制器将自动切断输出。When the power supply output voltage exceeds a preset overvoltage threshold or is lower than a preset undervoltage threshold, the power supply controller will automatically cut off the output.

根据本发明的另一方面,提供了一种基于高精度ADC与负反馈闭环的电源控制器输出电压控制装置,包括:According to another aspect of the present invention, there is provided a power supply controller output voltage control device based on a high-precision ADC and a negative feedback closed loop, comprising:

ADC数据采集模块,用于通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;An ADC data acquisition module, used to acquire the output voltage signal of the power supply in real time through at least one analog-to-digital converter ADC and convert it into a digital signal;

温度补偿与误差生成模块,用于根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;The temperature compensation and error generation module is used to adjust the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC according to the temperature compensation algorithm; convert the temperature-compensated analog-to-digital converter ADC to obtain a digital signal, and compare the digital signal with a preset reference voltage value to generate an error signal;

模糊自适应PID控制模块,用于将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;A fuzzy adaptive PID control module is used to input the error signal into a fuzzy adaptive PID control algorithm for processing to generate a control signal; use filters on the power line and the signal line to transmit the control signal; use the digital-to-analog converter DAC to output an analog voltage signal to the power controller according to the control signal;

DAC输出与电源控制模块,用于所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。The DAC output and power supply control module is used for the power supply controller to adjust the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range.

根据本发明的又一方面,提供了一种计算设备,包括:处理器、存储器、通信接口和通信总线,所述处理器、所述存储器和所述通信接口通过所述通信总线完成相互间的通信;According to another aspect of the present invention, there is provided a computing device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

根据本发明的再一方面,提供了一种计算机程序产品,包括至少一可执行指令,所述可执行指令使所述处理器执行上述基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法对应的操作。According to another aspect of the present invention, a computer program product is provided, comprising at least one executable instruction, wherein the executable instruction enables the processor to perform operations corresponding to the above-mentioned power supply controller output voltage control method based on high-precision ADC and negative feedback closed loop.

根据本发明提供的方案,通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。本发明通过高精度模数转换器(ADC)实时采集电源的输出电压信号,并将其转换为数字信号,大幅提升了电压监测的精度。配合高精度数模转换器(DAC)进行输出调整,实现对电源输出电压的精准控制。引入了温度补偿算法根据不同环境温度对ADC和DAC的读数进行调整,有效降低了温度对电压测量和控制精度的影响,提高了系统的稳定性和可靠性。采用模糊自适应PID控制算法对误差信号进行处理,能够自适应调整控制参数,实现对电源输出电压的快速、准确控制。在电源线和信号线上使用滤波器,对控制信号进行传输过程中的噪声和干扰进行抑制,提高了信号的纯净度和传输质量,进一步保证了电源输出电压的控制精度。采用负反馈闭环控制结构,根据比较结果生成控制信号,调整电源的输出电压,直至实际输出电压与预设参考电压值之间的误差达到预设阈值范围内,具有更高的稳定性和响应速度。According to the scheme provided by the present invention, at least one analog-to-digital converter ADC is used to collect the output voltage signal of the power supply in real time and convert it into a digital signal; the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC are adjusted according to the temperature compensation algorithm; the temperature-compensated analog-to-digital converter ADC is converted to obtain a digital signal, and the digital signal is compared with a preset reference voltage value to generate an error signal; the error signal is input into a fuzzy adaptive PID control algorithm for processing to generate a control signal; a filter is used on the power line and the signal line to transmit the control signal; the digital-to-analog converter DAC is used to output an analog voltage signal to a power supply controller according to the control signal; the power supply controller adjusts the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range. The present invention collects the output voltage signal of the power supply in real time through a high-precision analog-to-digital converter (ADC) and converts it into a digital signal, which greatly improves the accuracy of voltage monitoring. The output is adjusted in conjunction with a high-precision digital-to-analog converter (DAC) to achieve precise control of the output voltage of the power supply. The temperature compensation algorithm is introduced to adjust the readings of ADC and DAC according to different ambient temperatures, which effectively reduces the impact of temperature on voltage measurement and control accuracy, and improves the stability and reliability of the system. The fuzzy adaptive PID control algorithm is used to process the error signal, which can adaptively adjust the control parameters to achieve fast and accurate control of the power supply output voltage. Filters are used on the power line and signal line to suppress noise and interference during the transmission of the control signal, improve the purity and transmission quality of the signal, and further ensure the control accuracy of the power supply output voltage. A negative feedback closed-loop control structure is used to generate a control signal based on the comparison result, and the output voltage of the power supply is adjusted until the error between the actual output voltage and the preset reference voltage value reaches the preset threshold range, which has higher stability and response speed.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

图1示出了本发明实施例的基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法的流程示意图;FIG1 is a schematic flow chart of a method for controlling an output voltage of a power supply controller based on a high-precision ADC and a negative feedback closed loop according to an embodiment of the present invention;

图2示出了本发明实施例的基于高精度ADC与负反馈闭环的电源控制器的结构示意图;FIG2 shows a schematic diagram of the structure of a power supply controller based on a high-precision ADC and a negative feedback closed loop according to an embodiment of the present invention;

图3示出了本发明实施例的基于高精度ADC与负反馈闭环的电源控制器输出电压控制装置的框架示意图;FIG3 shows a schematic diagram of a framework of a power supply controller output voltage control device based on a high-precision ADC and a negative feedback closed loop according to an embodiment of the present invention;

图4示出了本发明实施例的计算设备的结构示意图。FIG. 4 shows a schematic diagram of the structure of a computing device according to an embodiment of the present invention.

具体实施方式DETAILED DESCRIPTION

下面将参照附图更详细地描述本发明的示例性实施例。虽然附图中显示了本发明的示例性实施例,然而应当理解,可以以各种形式实现本发明而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本发明,并且能够将本发明的范围完整的传达给本领域的技术人员。The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

图1示出了本发明实施例的基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法的流程示意图。具体地,如图1所示,包括以下步骤:FIG1 shows a flow chart of a method for controlling the output voltage of a power supply controller based on a high-precision ADC and a negative feedback closed loop according to an embodiment of the present invention. Specifically, as shown in FIG1 , the method includes the following steps:

步骤S101,通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号。Step S101 : collecting an output voltage signal of a power supply in real time through at least one analog-to-digital converter ADC and converting it into a digital signal.

可以通过集成12-bit,最大采样率为1MS/s的模数转换器ADC,采集量程为0-5V的单极性模拟信号,设置ADC为12位,右对齐,并启用所需的中断或查询模式。每隔一定的时间间隔(例如0.5秒),通过ADC进行采样。ADC将采样到的模拟信号转换为12位的数字信号。将得到的数字信号转换为对应的电压值(根据ADC的参考电压和位数计算)。The 12-bit ADC with a maximum sampling rate of 1MS/s can be used to collect unipolar analog signals with a range of 0-5V. The ADC is set to 12 bits, right-aligned, and the required interrupt or query mode is enabled. The ADC is used to sample at regular intervals (e.g., 0.5 seconds). The ADC converts the sampled analog signal into a 12-bit digital signal. The resulting digital signal is converted into a corresponding voltage value (calculated based on the reference voltage and number of bits of the ADC).

在一种可选的方式中,所述模数转换器ADC的精度超过24位。In an optional embodiment, the accuracy of the analog-to-digital converter ADC exceeds 24 bits.

24位以上的ADC提供了极高的分辨率,能够读取非常小的信号变化,并且具有最大转换速率为数千次每秒(ksps),能够捕获并转换微小的电压波动,从而实现高精度测量。除了高分辨率外,24位以上的ADC还具有高速采样率,能够实时捕获快速变化的信号。ADCs above 24 bits provide extremely high resolution, can read very small signal changes, and have a maximum conversion rate of thousands of times per second (ksps), which can capture and convert tiny voltage fluctuations to achieve high-precision measurements. In addition to high resolution, ADCs above 24 bits also have high-speed sampling rates, which can capture fast-changing signals in real time.

步骤S102,根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号。Step S102, adjusting the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC according to the temperature compensation algorithm; converting the temperature-compensated analog-to-digital converter ADC to obtain a digital signal, and comparing the digital signal with a preset reference voltage value to generate an error signal.

通过温度补偿算法可以显著减少ADC和DAC因温度变化而产生的读数误差,从而提高数据转换的精度。在不同的环境温度下,经过补偿的ADC和DAC能够提供更稳定的性能,使ADC和DAC能够在更广泛的温度条件下正常工作,满足更多应用场景的需求。The temperature compensation algorithm can significantly reduce the reading error of ADC and DAC caused by temperature changes, thereby improving the accuracy of data conversion. Under different ambient temperatures, the compensated ADC and DAC can provide more stable performance, allowing the ADC and DAC to work normally under a wider range of temperature conditions and meet the needs of more application scenarios.

具体地,集成温度传感器实时监测ADC和DAC的工作环境温度,将温度传感器的输出作为输入参数,通过温度补偿算法对ADC和DAC的读数进行实时调整。经过温度补偿的ADC将模拟信号转换为数字信号,然后将该数字信号与预设的参考电压值进行比较,生成误差信号。Specifically, the integrated temperature sensor monitors the working environment temperature of the ADC and DAC in real time, takes the output of the temperature sensor as the input parameter, and adjusts the readings of the ADC and DAC in real time through the temperature compensation algorithm. The temperature-compensated ADC converts the analog signal into a digital signal, and then compares the digital signal with the preset reference voltage value to generate an error signal.

例如,在25℃时,ADC读取的压力值为100kPa(基准值),当环境温度上升到40℃时,由于热效应,ADC的原始读数可能会偏高,例如读取为105kPa。温度传感器检测到环境温度的变化,并传递给温度补偿算法。温度补偿算法根据预设的温度特性曲线,对ADC的读数进行调整,将其从105kPa修正回实际的100kPa。经过补偿的ADC读数(100kPa)与预设的参考电压值进行比较,如果仍有误差,则生成误差信号。For example, at 25°C, the pressure value read by the ADC is 100kPa (reference value). When the ambient temperature rises to 40°C, the original ADC reading may be higher due to thermal effects, such as reading 105kPa. The temperature sensor detects the change in ambient temperature and passes it to the temperature compensation algorithm. The temperature compensation algorithm adjusts the ADC reading based on the preset temperature characteristic curve, correcting it from 105kPa back to the actual 100kPa. The compensated ADC reading (100kPa) is compared with the preset reference voltage value, and if there is still an error, an error signal is generated.

步骤S103,将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器。Step S103, input the error signal into the fuzzy adaptive PID control algorithm for processing to generate a control signal; use a filter on the power line and the signal line to transmit the control signal; use the digital-to-analog converter DAC to output an analog voltage signal to the power controller according to the control signal.

通过模糊自适应PID控制算法处理误差信号,可以实现对电源控制器的精确控制,从而提高电源输出电压的稳定性。模糊自适应PID控制算法能够根据系统的实时状态自动调整参数,使控制系统更加灵活。在电源线和信号线上使用滤波器,可以有效滤除干扰信号,确保控制信号的纯净传输。使用DAC将处理后的数字控制信号转换为模拟电压信号,能够快速、准确驱动电源控制器,实现电源输出电压的实时调整。By processing the error signal through the fuzzy adaptive PID control algorithm, the power controller can be accurately controlled, thereby improving the stability of the power output voltage. The fuzzy adaptive PID control algorithm can automatically adjust the parameters according to the real-time status of the system, making the control system more flexible. Using filters on the power line and signal line can effectively filter out interference signals and ensure the pure transmission of control signals. Using DAC to convert the processed digital control signal into an analog voltage signal can quickly and accurately drive the power controller and realize real-time adjustment of the power output voltage.

具体地,将误差信号输入模糊自适应PID控制算法,该算法根据误差信号和误差信号的变化率,通过模糊化、模糊推理和解模糊的过程,实时调整PID控制器的参数,生成控制信号。在电源线和信号线上安装滤波器,如电源线滤波器和信号线滤波器,以滤除在传输过程中可能产生的电磁干扰或其他噪声,确保控制信号的纯净。使用DAC将经过滤波的控制信号(数字信号)转换为模拟电压信号。DAC根据输入的数字控制信号,产生相应的模拟输出(连续的模拟电压信号)。将DAC输出的模拟电压信号传输至电源控制器,从而实现对电源输出电压的精确控制。Specifically, the error signal is input into the fuzzy adaptive PID control algorithm, which adjusts the parameters of the PID controller in real time to generate a control signal through the process of fuzzification, fuzzy reasoning and defuzzification according to the error signal and the rate of change of the error signal. Filters such as power line filters and signal line filters are installed on the power line and signal line to filter out electromagnetic interference or other noise that may be generated during the transmission process to ensure the purity of the control signal. The filtered control signal (digital signal) is converted into an analog voltage signal using a DAC. The DAC generates a corresponding analog output (continuous analog voltage signal) based on the input digital control signal. The analog voltage signal output by the DAC is transmitted to the power controller, thereby achieving precise control of the power output voltage.

在一种可选的方式中,所述模糊自适应PID控制算法包括模糊控制器和PID控制器;In an optional manner, the fuzzy adaptive PID control algorithm includes a fuzzy controller and a PID controller;

所述模糊控制器根据误差信号和误差变化率,通过模糊规则库输出PID控制器的参数调整量;The fuzzy controller outputs the parameter adjustment amount of the PID controller through the fuzzy rule base according to the error signal and the error change rate;

所述PID控制器根据模糊控制器输出的参数调整量,实时调整其比例、积分和微分系数,生成适应于当前电源控制状态的控制信号。The PID controller adjusts its proportional, integral and differential coefficients in real time according to the parameter adjustment amount output by the fuzzy controller, and generates a control signal adapted to the current power supply control state.

模糊控制器能够处理不确定性和非线性问题,而PID控制器则提供了稳定的控制机制。两者结合使控制系统能够快速适应电源控制状态的变化。通过实时调整PID控制器的参数,能够优化电源输出电压的稳定性,提高整个电源控制系统的性能。The fuzzy controller can handle uncertainty and nonlinear problems, while the PID controller provides a stable control mechanism. The combination of the two enables the control system to quickly adapt to changes in the power supply control state. By adjusting the parameters of the PID controller in real time, the stability of the power supply output voltage can be optimized and the performance of the entire power supply control system can be improved.

具体地,通过ADC采集电源的输出电压信号,并将其与预设参考电压值进行比较,生成误差信号。同时,计算误差信号的变化率。将误差信号和误差变化率输入到模糊控制器中。模糊控制器根据预先设定的模糊规则库,对这两个输入进行模糊化、模糊推理和解模糊处理,输出PID控制器的参数调整量。PID控制器根据模糊控制器输出的参数调整量,实时调整其比例、积分和微分系数。调整后的PID控制器根据当前的电源控制状态和系统需求,生成适应于当前情况的控制信号。控制信号被传输到电源控制器,用于驱动电源控制器调整输出电压。Specifically, the output voltage signal of the power supply is collected by ADC, and compared with the preset reference voltage value to generate an error signal. At the same time, the rate of change of the error signal is calculated. The error signal and the error change rate are input into the fuzzy controller. The fuzzy controller performs fuzzification, fuzzy reasoning and defuzzification on these two inputs according to the preset fuzzy rule base, and outputs the parameter adjustment amount of the PID controller. The PID controller adjusts its proportional, integral and differential coefficients in real time according to the parameter adjustment amount output by the fuzzy controller. The adjusted PID controller generates a control signal adapted to the current situation according to the current power supply control state and system requirements. The control signal is transmitted to the power supply controller to drive the power supply controller to adjust the output voltage.

在一种可选的方式中,所述PID控制器的公式为:In an optional manner, the formula of the PID controller is:

其中,u(k)为第k个采样时刻的控制信号输出;Kp(k)为第k个采样时刻的比例系数;e(k)为第k个采样时刻的误差信号,即实际输出与参考输出之间的差值;Ki(k)为第k个采样时刻的积分系数;为从第1个采样时刻到第k个采样时刻的误差累积;Kd(k)为第k个采样时刻的微分系数;为误差的变化率,用于计算微分项;T为采样周期,即两次采样之间的时间间隔。Among them, u(k) is the control signal output at the kth sampling moment; Kp(k) is the proportional coefficient at the kth sampling moment; e(k) is the error signal at the kth sampling moment, that is, the difference between the actual output and the reference output; Ki(k) is the integral coefficient at the kth sampling moment; is the error accumulation from the 1st sampling moment to the kth sampling moment; Kd(k) is the differential coefficient at the kth sampling moment; is the rate of change of the error, which is used to calculate the differential term; T is the sampling period, that is, the time interval between two samples.

PID控制器的公式基于离散时间采样,允许在每个采样时刻实时调整控制信号,以适应电源控制状态的变化。通过比例、积分和微分三个控制项的结合,能够更精确反映系统的动态特性。The PID controller formula is based on discrete time sampling, allowing real-time adjustment of the control signal at each sampling moment to adapt to changes in the power supply control state. By combining the three control terms of proportion, integration and differentiation, the dynamic characteristics of the system can be more accurately reflected.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

引入积分限幅值和微分限幅值,以限制积分项和微分项的大小;Introduce integral limit value and differential limit value to limit the size of integral term and differential term;

其中,所述积分项为:Among them, the integral term is:

所述微分项为:The differential term is:

所述PID控制器的公式为:The formula for the PID controller is:

其中,Kilimit为积分限幅,Kdlimit为微分限幅值。Among them, Kilimit is the integral limit and Kdlimit is the differential limit.

通过引入积分限幅值可以防止积分项累积过大,从而避免积分饱和现象。通过设定微分限幅值,可以限制微分项的大小,防止由于误差的快速变化导致的微分过冲。通过设置积分限幅值和微分限幅值,可以适应各种复杂和动态的工作环境。By introducing the integral limit value, the integral term can be prevented from accumulating too much, thus avoiding the integral saturation phenomenon. By setting the differential limit value, the size of the differential term can be limited to prevent differential overshoot caused by rapid changes in errors. By setting the integral limit value and the differential limit value, various complex and dynamic working environments can be adapted.

在一种可选的方式中,所述滤波器包括低通滤波器和带阻滤波器;In an optional manner, the filter includes a low-pass filter and a band-stop filter;

所述低通滤波器用于滤除电源线上的高频噪声,确保控制信号的纯净性;The low-pass filter is used to filter out high-frequency noise on the power line to ensure the purity of the control signal;

所述带阻滤波器用于滤除信号线上的特定频率干扰,保护控制信号免受外界干扰的影响。The band-stop filter is used to filter out specific frequency interference on the signal line and protect the control signal from external interference.

低通滤波器的截止频率根据电源线上的噪声频率范围进行选择,而带阻滤波器的中心频率和带宽则根据信号线上的干扰频率进行选择。低通滤波器能够有效滤除电源线上的高频噪声,带阻滤波器则能滤除信号线上的特定频率干扰,两者结合显著提高了控制信号的纯净性和稳定性。The cutoff frequency of the low-pass filter is selected according to the noise frequency range on the power line, while the center frequency and bandwidth of the band-stop filter are selected according to the interference frequency on the signal line. The low-pass filter can effectively filter out the high-frequency noise on the power line, and the band-stop filter can filter out the specific frequency interference on the signal line. The combination of the two significantly improves the purity and stability of the control signal.

步骤S104,所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。In step S104, the power controller adjusts the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range.

通过数模转换器(DAC)输出的模拟电压信号,电源控制器能够精确调整电源的输出电压,以满足预设参考电压值的要求。电源控制器通过监测电源的实际输出电压,并根据DAC输出的模拟电压信号进行动态调整,确保输出电压的稳定性。The power controller can accurately adjust the output voltage of the power supply to meet the requirements of the preset reference voltage value through the analog voltage signal output by the digital-to-analog converter (DAC). The power controller monitors the actual output voltage of the power supply and dynamically adjusts it according to the analog voltage signal output by the DAC to ensure the stability of the output voltage.

具体地,根据电源系统的需求设置一个预设的参考电压值,DAC根据电源控制器的指令将数字信号转换为模拟电压信号,电源控制器接收DAC输出的模拟电压信号,并将其与电源的实际输出电压进行比较。如果两者之间存在误差,电源控制器将生成调整指令。根据电源控制器的调整指令,电源系统相应调整其输出电压,该过程是动态的,电源控制器会持续监测输出电压,并根据需要进行调整。当电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内时,电源控制器停止调整,并认为电源系统已经稳定工作在给定的输出电压下。Specifically, a preset reference voltage value is set according to the needs of the power supply system, and the DAC converts the digital signal into an analog voltage signal according to the instructions of the power supply controller. The power supply controller receives the analog voltage signal output by the DAC and compares it with the actual output voltage of the power supply. If there is an error between the two, the power supply controller will generate an adjustment instruction. According to the adjustment instruction of the power supply controller, the power supply system adjusts its output voltage accordingly. This process is dynamic. The power supply controller will continuously monitor the output voltage and adjust it as needed. When the error between the actual output voltage of the power supply and the preset reference voltage value reaches a preset threshold range, the power supply controller stops adjusting and considers that the power supply system has been stably operating at a given output voltage.

在一种可选的方式中,所述电源控制器还包括过压保护和欠压保护功能;In an optional manner, the power controller also includes overvoltage protection and undervoltage protection functions;

其中,当电源输出电压超过预设的过压阈值或低于预设的欠压阈值时,所述电源控制器将自动切断输出。When the power supply output voltage exceeds a preset overvoltage threshold or is lower than a preset undervoltage threshold, the power supply controller will automatically cut off the output.

电源控制器具备过压保护和欠压保护功能,能够有效避免电源输出电压超出安全范围,从而保护设备免受损坏。通过及时切断输出,防止因过压或欠压引起的系统不稳定现象。过压和欠压保护能够预防因电压异常导致的设备故障,延长设备使用寿命。The power controller has overvoltage protection and undervoltage protection functions, which can effectively prevent the power output voltage from exceeding the safe range, thereby protecting the equipment from damage. By cutting off the output in time, it prevents system instability caused by overvoltage or undervoltage. Overvoltage and undervoltage protection can prevent equipment failures caused by abnormal voltage and extend the service life of the equipment.

具体地,设定合适的过压阈值和欠压阈值,电源控制器通过电压检测电路实时监测电源的输出电压,并将结果反馈给电源控制器。电源控制器将实时测量的输出电压与预设的过压阈值和欠压阈值进行比较。如果输出电压超过过压阈值或低于欠压阈值,电源控制器将判断为电压异常状态。当电源控制器检测到电压异常时,将自动切断电源输出。可以通过控制电源内部的开关电路实现,确保在电压异常情况下,电源输出被完全切断。Specifically, appropriate overvoltage thresholds and undervoltage thresholds are set, and the power controller monitors the output voltage of the power supply in real time through the voltage detection circuit and feeds the result back to the power controller. The power controller compares the output voltage measured in real time with the preset overvoltage threshold and undervoltage threshold. If the output voltage exceeds the overvoltage threshold or is lower than the undervoltage threshold, the power controller will determine that it is in an abnormal voltage state. When the power controller detects a voltage abnormality, it will automatically cut off the power output. This can be achieved by controlling the switch circuit inside the power supply to ensure that the power output is completely cut off in the event of an abnormal voltage.

根据本发明提供的方案,通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。本发明通过高精度模数转换器(ADC)实时采集电源的输出电压信号,并将其转换为数字信号,大幅提升了电压监测的精度。配合高精度数模转换器(DAC)进行输出调整,实现对电源输出电压的精准控制。引入了温度补偿算法根据不同环境温度对ADC和DAC的读数进行调整,有效降低了温度对电压测量和控制精度的影响,提高了系统的稳定性和可靠性。采用模糊自适应PID控制算法对误差信号进行处理,能够自适应调整控制参数,实现对电源输出电压的快速、准确控制。在电源线和信号线上使用滤波器,对控制信号进行传输过程中的噪声和干扰进行抑制,提高了信号的纯净度和传输质量,进一步保证了电源输出电压的控制精度。采用负反馈闭环控制结构,根据比较结果生成控制信号,调整电源的输出电压,直至实际输出电压与预设参考电压值之间的误差达到预设阈值范围内,具有更高的稳定性和响应速度。According to the scheme provided by the present invention, at least one analog-to-digital converter ADC is used to collect the output voltage signal of the power supply in real time and convert it into a digital signal; the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC are adjusted according to the temperature compensation algorithm; the temperature-compensated analog-to-digital converter ADC is converted to obtain a digital signal, and the digital signal is compared with a preset reference voltage value to generate an error signal; the error signal is input into a fuzzy adaptive PID control algorithm for processing to generate a control signal; a filter is used on the power line and the signal line to transmit the control signal; the digital-to-analog converter DAC is used to output an analog voltage signal to a power supply controller according to the control signal; the power supply controller adjusts the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range. The present invention collects the output voltage signal of the power supply in real time through a high-precision analog-to-digital converter (ADC) and converts it into a digital signal, which greatly improves the accuracy of voltage monitoring. The output is adjusted in conjunction with a high-precision digital-to-analog converter (DAC) to achieve precise control of the output voltage of the power supply. The temperature compensation algorithm is introduced to adjust the readings of ADC and DAC according to different ambient temperatures, which effectively reduces the impact of temperature on voltage measurement and control accuracy, and improves the stability and reliability of the system. The fuzzy adaptive PID control algorithm is used to process the error signal, which can adaptively adjust the control parameters to achieve fast and accurate control of the power supply output voltage. Filters are used on the power line and signal line to suppress noise and interference during the transmission of the control signal, improve the purity and transmission quality of the signal, and further ensure the control accuracy of the power supply output voltage. A negative feedback closed-loop control structure is used to generate a control signal based on the comparison result, and the output voltage of the power supply is adjusted until the error between the actual output voltage and the preset reference voltage value reaches the preset threshold range, which has higher stability and response speed.

图3示出了本发明实施例的基于高精度ADC与负反馈闭环的电源控制器输出电压控制装置的结构示意图。基于高精度ADC与负反馈闭环的电源控制器输出电压控制装置包括:ADC数据采集模块310、温度补偿与误差生成模块320、模糊自适应PID控制模块330以及DAC输出与电源控制模340。Fig. 3 shows a schematic diagram of the structure of a power controller output voltage control device based on a high-precision ADC and a negative feedback closed loop according to an embodiment of the present invention. The power controller output voltage control device based on a high-precision ADC and a negative feedback closed loop includes: an ADC data acquisition module 310, a temperature compensation and error generation module 320, a fuzzy adaptive PID control module 330, and a DAC output and power control module 340.

所述ADC数据采集模块310,用于通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;The ADC data acquisition module 310 is used to acquire the output voltage signal of the power supply in real time through at least one analog-to-digital converter ADC and convert it into a digital signal;

所述温度补偿与误差生成模块320,用于根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;The temperature compensation and error generation module 320 is used to adjust the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC according to the temperature compensation algorithm; convert the temperature-compensated analog-to-digital converter ADC to obtain a digital signal, and compare the digital signal with a preset reference voltage value to generate an error signal;

所述模糊自适应PID控制模块330,用于将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;The fuzzy adaptive PID control module 330 is used to input the error signal into the fuzzy adaptive PID control algorithm for processing to generate a control signal; use filters on the power line and the signal line to transmit the control signal; use the digital-to-analog converter DAC to output an analog voltage signal to the power controller according to the control signal;

所述DAC输出与电源控制模块340,用于所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。The DAC output and power control module 340 is used by the power controller to adjust the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range.

在一种可选的方式中,所述模数转换器ADC的精度超过24位。In an optional embodiment, the accuracy of the analog-to-digital converter ADC exceeds 24 bits.

在一种可选的方式中,所述模糊自适应PID控制算法包括模糊控制器和PID控制器;In an optional manner, the fuzzy adaptive PID control algorithm includes a fuzzy controller and a PID controller;

所述模糊控制器根据误差信号和误差变化率,通过模糊规则库输出PID控制器的参数调整量;The fuzzy controller outputs the parameter adjustment amount of the PID controller through the fuzzy rule base according to the error signal and the error change rate;

所述PID控制器根据模糊控制器输出的参数调整量,实时调整其比例、积分和微分系数,生成适应于当前电源控制状态的控制信号。The PID controller adjusts its proportional, integral and differential coefficients in real time according to the parameter adjustment amount output by the fuzzy controller, and generates a control signal adapted to the current power supply control state.

在一种可选的方式中,所述PID控制器的公式为:In an optional manner, the formula of the PID controller is:

其中,u(k)为第k个采样时刻的控制信号输出;Kp(k)为第k个采样时刻的比例系数;e(k)为第k个采样时刻的误差信号,即实际输出与参考输出之间的差值;Ki(k)为第k个采样时刻的积分系数;为从第1个采样时刻到第k个采样时刻的误差累积;Kd(k)为第k个采样时刻的微分系数;为误差的变化率,用于计算微分项;T为采样周期,即两次采样之间的时间间隔。Among them, u(k) is the control signal output at the kth sampling moment; Kp(k) is the proportional coefficient at the kth sampling moment; e(k) is the error signal at the kth sampling moment, that is, the difference between the actual output and the reference output; Ki(k) is the integral coefficient at the kth sampling moment; is the error accumulation from the 1st sampling moment to the kth sampling moment; Kd(k) is the differential coefficient at the kth sampling moment; is the rate of change of the error, which is used to calculate the differential term; T is the sampling period, that is, the time interval between two samples.

在一种可选的方式中,所述方法还包括:In an optional manner, the method further includes:

引入积分限幅值和微分限幅值,以限制积分项和微分项的大小;Introduce integral limit value and differential limit value to limit the size of integral term and differential term;

其中,所述积分项为:Among them, the integral term is:

所述微分项为:The differential term is:

所述PID控制器的公式为:The formula for the PID controller is:

其中,Kilimit为积分限幅,Kdlimit为微分限幅值。Among them, Kilimit is the integral limit and Kdlimit is the differential limit.

在一种可选的方式中,所述滤波器包括低通滤波器和带阻滤波器;In an optional manner, the filter includes a low-pass filter and a band-stop filter;

所述低通滤波器用于滤除电源线上的高频噪声,确保控制信号的纯净性;The low-pass filter is used to filter out high-frequency noise on the power line to ensure the purity of the control signal;

所述带阻滤波器用于滤除信号线上的特定频率干扰,保护控制信号免受外界干扰的影响。The band-stop filter is used to filter out specific frequency interference on the signal line and protect the control signal from external interference.

在一种可选的方式中,所述电源控制器还包括过压保护和欠压保护功能;In an optional manner, the power controller also includes overvoltage protection and undervoltage protection functions;

其中,当电源输出电压超过预设的过压阈值或低于预设的欠压阈值时,所述电源控制器将自动切断输出。When the power supply output voltage exceeds a preset overvoltage threshold or is lower than a preset undervoltage threshold, the power supply controller will automatically cut off the output.

图4示出了本发明计算设备实施例的结构示意图,本发明具体实施例并不对计算设备的具体实现做限定。FIG. 4 shows a schematic diagram of the structure of an embodiment of a computing device of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the computing device.

如图4所示,该计算设备可以包括:处理器(processor)402、通信接口(Communications Interface)404、存储器(memory)406、以及通信总线408。As shown in FIG. 4 , the computing device may include: a processor (processor) 402 , a communications interface (Communications Interface) 404 , a memory (memory) 406 , and a communication bus 408 .

其中:处理器402、通信接口404、以及存储器406通过通信总线408完成相互间的通信。通信接口404,用于与其它设备比如客户端或其它服务器等的网元通信。处理器402,用于执行程序410,具体可以执行上述基于高精度ADC与负反馈闭环的电源控制器输出电压控制方法实施例中的相关步骤。Wherein: the processor 402, the communication interface 404, and the memory 406 communicate with each other through the communication bus 408. The communication interface 404 is used to communicate with other devices such as a client or other server network elements. The processor 402 is used to execute the program 410, which can specifically execute the relevant steps in the embodiment of the power supply controller output voltage control method based on the high-precision ADC and the negative feedback closed loop.

具体地,程序410可以包括程序代码,该程序代码包括计算机操作指令。Specifically, the program 410 may include program codes, which include computer operation instructions.

处理器402可能是中央处理器CPU,或者是特定集成电路ASIC(ApplicationSpecific Integrated Circuit),或者是被配置成实施本发明实施例的一个或多个集成电路。计算设备包括的一个或多个处理器,可以是同一类型的处理器,如一个或多个CPU;也可以是不同类型的处理器,如一个或多个CPU以及一个或多个ASIC。The processor 402 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computing device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

存储器406,用于存放程序410。存储器406可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 406 is used to store the program 410. The memory 406 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

根据本发明提供的方案,通过至少一个模数转换器ADC实时采集电源的输出电压信号并将其转换为数字信号;根据温度补偿算法对所述模数转换器ADC和数模转换器DAC的读数进行调整;对经过温度补偿的模数转换器ADC进行转换得到数字信号,将所述数字信号与预设参考电压值进行比较生成误差信号;将所述误差信号输入模糊自适应PID控制算法进行处理生成控制信号;在电源线和信号线上使用滤波器,对所述控制信号进行传输;使用所述数模转换器DAC,根据所述控制信号输出模拟电压信号至电源控制器;所述电源控制器根据所述数模转换器DAC输出的模拟电压信号调整电源的输出电压,直至电源的实际输出电压与预设参考电压值之间的误差达到预设阈值范围内。本发明通过高精度模数转换器(ADC)实时采集电源的输出电压信号,并将其转换为数字信号,大幅提升了电压监测的精度。配合高精度数模转换器(DAC)进行输出调整,实现对电源输出电压的精准控制。引入了温度补偿算法根据不同环境温度对ADC和DAC的读数进行调整,有效降低了温度对电压测量和控制精度的影响,提高了系统的稳定性和可靠性。采用模糊自适应PID控制算法对误差信号进行处理,能够自适应调整控制参数,实现对电源输出电压的快速、准确控制。在电源线和信号线上使用滤波器,对控制信号进行传输过程中的噪声和干扰进行抑制,提高了信号的纯净度和传输质量,进一步保证了电源输出电压的控制精度。采用负反馈闭环控制结构,根据比较结果生成控制信号,调整电源的输出电压,直至实际输出电压与预设参考电压值之间的误差达到预设阈值范围内,具有更高的稳定性和响应速度。According to the scheme provided by the present invention, at least one analog-to-digital converter ADC is used to collect the output voltage signal of the power supply in real time and convert it into a digital signal; the readings of the analog-to-digital converter ADC and the digital-to-analog converter DAC are adjusted according to the temperature compensation algorithm; the temperature-compensated analog-to-digital converter ADC is converted to obtain a digital signal, and the digital signal is compared with a preset reference voltage value to generate an error signal; the error signal is input into a fuzzy adaptive PID control algorithm for processing to generate a control signal; a filter is used on the power line and the signal line to transmit the control signal; the digital-to-analog converter DAC is used to output an analog voltage signal to a power supply controller according to the control signal; the power supply controller adjusts the output voltage of the power supply according to the analog voltage signal output by the digital-to-analog converter DAC until the error between the actual output voltage of the power supply and the preset reference voltage value reaches within a preset threshold range. The present invention collects the output voltage signal of the power supply in real time through a high-precision analog-to-digital converter (ADC) and converts it into a digital signal, which greatly improves the accuracy of voltage monitoring. The output is adjusted in conjunction with a high-precision digital-to-analog converter (DAC) to achieve precise control of the output voltage of the power supply. The temperature compensation algorithm is introduced to adjust the readings of ADC and DAC according to different ambient temperatures, which effectively reduces the impact of temperature on voltage measurement and control accuracy, and improves the stability and reliability of the system. The fuzzy adaptive PID control algorithm is used to process the error signal, which can adaptively adjust the control parameters to achieve fast and accurate control of the power supply output voltage. Filters are used on the power line and signal line to suppress noise and interference during the transmission of the control signal, improve the purity and transmission quality of the signal, and further ensure the control accuracy of the power supply output voltage. A negative feedback closed-loop control structure is used to generate a control signal based on the comparison result, and the output voltage of the power supply is adjusted until the error between the actual output voltage and the preset reference voltage value reaches the preset threshold range, which has higher stability and response speed.

本领域那些技术人员可以理解,可以对实施例中的设备中的模块进行自适应性地改变并且把它们设置在与该实施例不同的一个或多个设备中。可以把实施例中的模块或单元或组件组合成一个模块或单元或组件,以及此外可以把它们分成多个子模块或子单元或子组件。除了这样的特征和/或过程或者单元中的至少一些是相互排斥之外,可以采用任何组合对本说明书(包括伴随的权利要求、摘要和附图)中公开的所有特征以及如此公开的任何方法或者设备的所有过程或单元进行组合。除非另外明确陈述,本说明书(包括伴随的权利要求、摘要和附图)中公开的每个特征可以由提供相同、等同或相似目的的替代特征来代替。此外,本领域的技术人员能够理解,尽管在此的一些实施例包括其它实施例中所包括的某些特征而不是其它特征,但是不同实施例的特征的组合意味着处于本发明的范围之内并且形成不同的实施例。例如,在下面的权利要求书中,所要求保护的实施例的任意之一都可以以任意的组合方式来使用。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。上述实施例中的步骤,除有特殊说明外,不应理解为对执行顺序的限定。Those skilled in the art will appreciate that the modules in the devices in the embodiments can be adaptively changed and set in one or more devices different from the embodiments. The modules or units or components in the embodiments can be combined into one module or unit or component, and in addition they can be divided into multiple submodules or subunits or subcomponents. Except that at least some of such features and/or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner can be combined in any combination. Unless otherwise explicitly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) can be replaced by an alternative feature that provides the same, equivalent or similar purpose. In addition, those skilled in the art will appreciate that although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments means being within the scope of the present invention and forming different embodiments. For example, in the following claims, any one of the claimed embodiments can be used in any combination. The present invention can be implemented by hardware including several different elements and by appropriately programmed computers. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The steps in the above embodiments should not be understood as limiting the execution order unless otherwise specified.

Claims (10)

CN202410807490.XA2024-06-212024-06-21Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program productPendingCN118838464A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202410807490.XACN118838464A (en)2024-06-212024-06-21Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202410807490.XACN118838464A (en)2024-06-212024-06-21Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product

Publications (1)

Publication NumberPublication Date
CN118838464Atrue CN118838464A (en)2024-10-25

Family

ID=93146522

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202410807490.XAPendingCN118838464A (en)2024-06-212024-06-21Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product

Country Status (1)

CountryLink
CN (1)CN118838464A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN120601889A (en)*2025-08-082025-09-05歌尔股份有限公司 Detection device, calibration method and control device

Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101788809A (en)*2009-08-172010-07-28杭州和利时自动化有限公司Coordinated control system (CCS) of large-size circulating fluidized bed boiler (CFBB) unit
CN103995535A (en)*2014-06-042014-08-20苏州工业职业技术学院Method for controlling PID controller route based on fuzzy control
CN104779798A (en)*2015-04-272015-07-15东南大学Method for controlling fuzzy PID digital control DC-DC converter
CN109343351A (en)*2018-12-072019-02-15桂林电子科技大学 An Improved PID Controlled Switched Reluctance Motor Torque Control System
CN110146201A (en)*2019-04-132019-08-20复旦大学 A sensing signal conditioning system with temperature compensation and temperature compensation method
CN110502047A (en)*2019-08-292019-11-26苏州邈航科技有限公司Laser Control System and its temperature demodulation method based on AC temperature-control
CN111520700A (en)*2020-04-032020-08-11中国大唐集团科学技术研究院有限公司西北电力试验研究院Differential calculation method based on real-time correction of boiler main steam pressure regulation deviation
CN111781818A (en)*2020-07-062020-10-16山东大学 AGV control method and system based on improved fuzzy PID control algorithm
CN112637997A (en)*2021-01-052021-04-09上海交通大学Full-digital high-frequency LED constant current driving circuit and control method
CN113739196A (en)*2021-08-302021-12-03重庆赛迪热工环保工程技术有限公司Air-fuel ratio value control system for fuel flow and air flow of heating boiler temperature
CN113867135A (en)*2021-11-052021-12-31四川升华电源科技有限公司DC-DC brick power supply system based on fuzzy PID control and control method
CN116317733A (en)*2023-05-192023-06-23小神童创新科技(广州)有限公司 A control method of a position-controlled DC brushed motor
CN117579075A (en)*2023-11-292024-02-20江苏谷泰微电子有限公司High-efficiency double-channel analog-to-digital converter
CN117742790A (en)*2023-12-222024-03-22杭州康吉森自动化科技有限公司Parameter setting method, device and equipment of PID controller and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101788809A (en)*2009-08-172010-07-28杭州和利时自动化有限公司Coordinated control system (CCS) of large-size circulating fluidized bed boiler (CFBB) unit
CN103995535A (en)*2014-06-042014-08-20苏州工业职业技术学院Method for controlling PID controller route based on fuzzy control
CN104779798A (en)*2015-04-272015-07-15东南大学Method for controlling fuzzy PID digital control DC-DC converter
CN109343351A (en)*2018-12-072019-02-15桂林电子科技大学 An Improved PID Controlled Switched Reluctance Motor Torque Control System
CN110146201A (en)*2019-04-132019-08-20复旦大学 A sensing signal conditioning system with temperature compensation and temperature compensation method
CN110502047A (en)*2019-08-292019-11-26苏州邈航科技有限公司Laser Control System and its temperature demodulation method based on AC temperature-control
CN111520700A (en)*2020-04-032020-08-11中国大唐集团科学技术研究院有限公司西北电力试验研究院Differential calculation method based on real-time correction of boiler main steam pressure regulation deviation
CN111781818A (en)*2020-07-062020-10-16山东大学 AGV control method and system based on improved fuzzy PID control algorithm
CN112637997A (en)*2021-01-052021-04-09上海交通大学Full-digital high-frequency LED constant current driving circuit and control method
CN113739196A (en)*2021-08-302021-12-03重庆赛迪热工环保工程技术有限公司Air-fuel ratio value control system for fuel flow and air flow of heating boiler temperature
CN113867135A (en)*2021-11-052021-12-31四川升华电源科技有限公司DC-DC brick power supply system based on fuzzy PID control and control method
CN116317733A (en)*2023-05-192023-06-23小神童创新科技(广州)有限公司 A control method of a position-controlled DC brushed motor
CN117579075A (en)*2023-11-292024-02-20江苏谷泰微电子有限公司High-efficiency double-channel analog-to-digital converter
CN117742790A (en)*2023-12-222024-03-22杭州康吉森自动化科技有限公司Parameter setting method, device and equipment of PID controller and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN120601889A (en)*2025-08-082025-09-05歌尔股份有限公司 Detection device, calibration method and control device

Similar Documents

PublicationPublication DateTitle
CN118838464A (en)Power supply controller output voltage control method and device based on high-precision ADC and negative feedback closed loop, computing equipment and computer program product
CN113900473B (en)High-precision reference generation method and system
CN118399713B (en)Adjustable switching power supply control method based on digital signal processing
CN113644696A (en)Three-phase power grid voltage phase-locked loop based on linear active disturbance rejection control and phase locking method
CN116719378B (en) Method and device for obtaining output current of a direct current source
CN116914769A (en)Harmonic capacitance compensation system, control method thereof and thermal analysis method
CN118999746B (en)Method, device and equipment for controlling weightless flow and readable storage medium
Feng et al.Youla parameterization-based fractional repetitive control of arbitrary frequency disturbance rejections for line-of-sight stabilization
CN119045396B (en) Industrial computer control method and system based on data processing
CN114577378B (en)Non-ideal factor correction system for bridge sensor
CN115102275A (en)Self-adaptive adjustment method and device for data acquisition channel of power system
CN118889432A (en) An automatic voltage regulation method for new power systems
CN113690910B (en) Three-phase power grid phase-locked loop and its phase-locking method based on fractional-order PID control
CN110912616B (en)Method for eliminating power oscillation of coherent optical communication system and coherent optical communication system
CN115567137A (en)Crystal oscillator frequency offset correction device and method based on GNSS system
Vasyutynskyy et al.Limit cycles in PI control loops with absolute deadband sampling
CN120196153B (en) Temperature-power regulation method based on dual closed-loop active disturbance rejection control
JPH0697823A (en)Position controller
CN118836114A (en)Variable pitch control method and device, controller and wind generating set
CN118605640A (en) A method for controlling full temperature of locking and blocking of indexing mechanism
CN100356280C (en)Dynamic compensation method for distortion measurement in discrete control and control system thereof
CN115079568B (en) Performance monitoring method and device of automatic regulation system
CN120255629B (en) A field effect transistor threshold voltage control system and control device
CN109521670B (en) Control System
CN120762508A (en)Heat dissipation control method and device for server display card

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination

[8]ページ先頭

©2009-2025 Movatter.jp