Direct current source self-adaptive range switching method, device and equipment and storage medium
By configuring an independent current acquisition circuit and closed-loop control, high-precision and stable switching of the DC current source is achieved over an extremely wide range, solving the accuracy and stability problems of traditional current sources during range switching, and realizing smooth switching and fast response across the entire range.
Patent Information
- Application Number
- CN202610050017.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-01-15
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2046-01-15
AI Technical Summary
Traditional DC current sources struggle to achieve smooth switching with high precision, high stability, and fast dynamic response over extremely wide measurement ranges. Existing technologies struggle to achieve a good balance between structural complexity, cost, switching speed, and full-range accuracy.
By configuring three sets of independent, physically isolated current acquisition circuits (minimum, intermediate, and maximum) and connecting them in parallel with controlled switching circuits, combined with hardware gating and parameter adaptation, a smooth and uninterrupted range switching across the entire measurement range is achieved. Closed-loop control and PID regulation are used to generate an appropriate control signal to drive the DC current source.
It achieves adaptive range switching across the entire output range from 0.05A to 1000A, significantly improving the measurement accuracy and control stability in the low current output range, and ensuring high accuracy and fast response of the current source under different ranges.
Smart Images

Figure CN121523066A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of power current, in particular to a direct current source adaptive range switching method, device, equipment and storage medium. BACKGROUND
[0002] As a basic test and measurement device, programmable direct current source is widely used in the fields of semiconductor characteristic analysis, sensor calibration, precision instrument power supply and scientific research experiment. With the continuous expansion of application scenarios, more stringent technical requirements are put forward for the current source: not only high precision and high stability are required in a single range, but also excellent performance indicators are required in a very wide output range, that is, self-adaptive output capability in a wide range. The traditional wide-range direct current source design scheme mainly adopts a single sampling resistor and a high-resolution analog-to-digital converter scheme. The dynamic range is limited by the resolution of the ADC, and it is difficult to maintain high measurement signal-to-noise ratio and precision in the small current segment while covering a very wide range. The scheme of using multiple sampling resistors with different resistances to switch through mechanical relays or analog switches can expand the range, but voltage glitches and on-resistance changes are easily introduced during switching, which leads to output current jump or temporary loss of control, destroying continuity and stability, and the service life and switching speed of the relay are limited. Therefore, the existing technology cannot achieve a good balance between structural complexity, cost, switching speed, seamless continuity and full-range accuracy, and there is an urgent need for a circuit structure and control method that can automatically, quickly and smoothly switch to the optimal measurement and control range according to the output current size, so as to realize high precision, high stability and fast dynamic response in the entire output range. SUMMARY
[0003] The main purpose of the present application is to provide a direct current source adaptive range switching method, device, equipment and storage medium, which realizes non-disturbance and smooth automatic range switching in the full range of parameters by hardware gating and parameter adaptation, significantly improving the measurement accuracy and control stability of small current output segment.
[0004] To achieve the above purpose, the present application provides a direct current source adaptive range switching method, comprising the following steps: A direct current source is identified to collect a first current value of the direct current source, and an initial effective range is determined according to the comparison result of the amplitude of the first current value and the preset initial threshold value. A first control parameter group corresponding to the initial effective range is enabled from a plurality of preset control parameter groups. The initial effective range corresponds to a first acquisition circuit of three independent acquisition circuits. The first acquisition circuit is connected to the feedback link through the control switch circuit, and the first acquisition circuit constitutes an initial feedback signal source of closed-loop control. Based on the first acquisition circuit, the second output current value of the direct current source is collected in real time, the second output current value is preprocessed in combination with the first control parameter group, and the real-time amplitude value of the preprocessed second output current value is compared with the upshift threshold value and the downshift threshold value corresponding to the current effective range; Based on the comparison result, the feedback signal source of the closed-loop control is switched to obtain a switched target feedback signal source, and a second control parameter group corresponding to a target range is loaded from a plurality of preset control parameter groups; Based on the switched target feedback signal source and the loaded second control parameter group, a closed-loop adjustment operation is performed to generate a control signal to drive the direct current source, and the direct current source is controlled in a closed loop.
[0005] Further, the step of identifying the direct current source to collect the first current value of the direct current source includes: The range of the three groups of acquisition circuits is set, the rated maximum value of adjacent ranges is set as a preset proportional relationship, and the rated maximum values of the minimum range and the intermediate range are both less than the rated maximum value of the maximum range, to adapt to small current, medium current and large current output intervals respectively; A switch circuit is connected in parallel at the input end or the output end of the minimum range acquisition circuit and the intermediate range acquisition circuit, the switch circuit is composed of at least one switch tube, and is used to shunt the current of the corresponding acquisition circuit during range switching; The maximum range acquisition circuit rated maximum value matches the maximum output capability of the direct current source, and is connected to the output bus, which is used for first current value collection and initial feedback signal transmission during large current output; The output bus connection state and the acquisition circuit of the direct current source are identified, the initial output current signal of the direct current source is synchronously collected through the three groups of independent acquisition circuits, and the first current value for initial effective range determination is obtained after the initial output current signal is filtered.
[0006] Further, the first control parameter group corresponding to the initial effective range is enabled from a plurality of preset control parameter groups, the initial effective range corresponds to the first acquisition circuit of the three groups of independent acquisition circuits, and the step of connecting the first acquisition circuit to the feedback link through the control switch circuit includes: The control module calls and enables the first control parameter group, and the first acquisition circuit is connected to the closed-loop feedback link through the on-off instruction of the first control parameter group; Only the data of the first acquisition circuit is limited to participate in control calculation, and the closed-loop operation formula and the convergence condition of the adaptive range accuracy are configured in combination with the first control parameter group.
[0007] Further, the first acquisition circuit is used to acquire the second output current value of the DC current source in real time, and the second output current value is preprocessed by using the first control parameter group, including: The first acquisition circuit is used to acquire the second output current value of the DC current source in real time at a preset frequency, and the second output current value is transmitted to the control module synchronously. The control module is used to call the filter coefficient and the calibration parameter in the first control parameter group to perform digital filtering and amplitude calibration preprocessing on the second output current value.
[0008] Further, the step of comparing the real-time amplitude of the preprocessed second output current value with the upshift threshold and the downshift threshold corresponding to the current effective range includes: The real-time amplitude of the preprocessed second output current value is extracted, the upshift threshold and the downshift threshold bound with the current effective range are called, and the real-time amplitude is quantitatively compared with the two sets of thresholds of upshift and downshift. If the real-time amplitude is outside the range of the downshift threshold and the upshift threshold, it is determined that the range needs to be switched. If the real-time amplitude is between the downshift threshold and the upshift threshold, the current effective range is maintained.
[0009] Further, the step of switching the feedback signal source of the closed-loop control based on the comparison result, obtaining the switched target feedback signal source, and loading the second control parameter group corresponding to the target range from the preset multiple control parameter groups includes: The target range to be switched is determined based on the comparison result. The control switch circuit is used to cut off the feedback path of the current effective range acquisition circuit and switch to the acquisition circuit corresponding to the target range, and the acquisition circuit constitutes the target feedback signal source of the closed-loop control. The second control parameter group matched with the target range is called from the preset multiple control parameter groups, the second control parameter group pre-stores the core control parameter adapted to the target range, and the loading of the second control parameter group is enabled.
[0010] Further, the step of performing closed-loop regulation operation based on the switched target feedback signal source and the loaded second control parameter group to generate a control signal to drive the DC current source and performing closed-loop control on the DC current source includes: The target feedback signal source is used to acquire the output current signal of the DC current source in real time, and the output current signal is transmitted to the control module synchronously. The control module is used to call the second control parameter group to perform closed-loop regulation operation in combination with the output current signal, the closed-loop regulation operation is dynamically corrected based on the control logic adapted to the target range, and the corresponding control signal is generated. The control signal adapts the power conversion unit driving requirement of the direct current source, and the output current is regulated by adjusting the conduction state of the power switching device. The output data of the target feedback signal source is continuously monitored, and the control signal parameters are dynamically optimized according to the result of the closed-loop regulation operation.
[0011] The application also provides a direct current source adaptive range switching device, comprising: The data acquisition module starts the corresponding acquisition circuit based on the current effective range, acquires the output current signal of the direct current source in real time, performs preprocessing, and transmits the preprocessed current data to the threshold judgment module; The parameter configuration module is used for receiving the range switching instruction of the range switching module, outputting the threshold parameters of the current effective range and the control parameter group of the target range; The initial range determination module is used for identifying the direct current source and acquiring the initial current value thereof, determining the initial effective range in combination with the preset initial threshold value, sending the initial parameter enabling instruction to the parameter configuration module, and synchronously controlling the data acquisition module to turn on the acquisition circuit corresponding to the initial effective range; The threshold judgment module is used for receiving the preprocessed current data transmitted by the data acquisition module, calling the rising threshold value and the falling threshold value of the current effective range in the parameter configuration module, performing threshold comparison operation, and transmitting the judgment result to the range switching module; The range switching module is used for receiving the judgment result of the threshold judgment module, generating a range switching instruction, and synchronously sending the range switching instruction to the parameter configuration module and the data acquisition module to control the on-off of the corresponding control switch circuit in the data acquisition module, and realize the only switching of the feedback signal source; The closed-loop control module is used for receiving the target range control parameter group output by the parameter configuration module and the real-time feedback signal transmitted by the data acquisition module, performing closed-loop regulation operation, generating the control signal adapted to the power conversion unit of the direct current source, and driving the direct current source to realize the closed-loop control of the output current.
[0012] The application also provides a computer device comprising a memory and a processor, wherein the memory stores a computer program, and the processor realizes the steps of the direct current source adaptive range switching method of any one of the above when executing the computer program.
[0013] The application also provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executed by a processor to realize the direct current source adaptive range switching method of any one of the above. BRIEF DESCRIPTION OF DRAWINGS
[0014] Figure 1 is the hardware layout diagram of the multi-range acquisition circuit and the shielding switch circuit in an embodiment of the application; Figure 2 is a flow chart of the range switching logic in an embodiment of the present application; Figure 3 is an output data chart of the single-range model 1000A in an embodiment of the present application; Figure 4 is an output data chart of the three-range model 1000A in an embodiment of the present application; Figure 5 is a flow chart of the adaptive range switching method of the DC current source in an embodiment of the present application; Figure 6 is a structural block diagram of the adaptive range switching device of the DC current source in an embodiment of the present application; The implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION
[0015] In order to make the purpose, technical solutions and advantages of the present application more clear and explicit, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not to limit the present application.
[0016] Reference Figure 5 is a flow chart of the adaptive range switching method of the DC current source in an embodiment of the present application, comprising the following steps: S1, identifying the DC current source to collect the first current value of the DC current source, determining the initial effective range according to the comparison result of the amplitude of the first current value and the preset initial threshold value, enabling the first control parameter group corresponding to the initial effective range from the preset multiple control parameter groups, the initial effective range corresponds to the first acquisition circuit of the preset three independent acquisition circuits, the first acquisition circuit is connected to the feedback link through the control switch circuit, and the first acquisition circuit constitutes the initial feedback signal source of the closed-loop control; S2, based on the first acquisition circuit, collecting the second output current value of the DC current source in real time, pre-processing the second output current value in combination with the first control parameter group, comparing the real-time amplitude of the pre-processed second output current value with the upshift threshold value and the downshift threshold value corresponding to the current effective range; S3, based on the comparison result, switching the feedback signal source of the closed-loop control to obtain the target feedback signal source after switching, and loading the second control parameter group corresponding to the target range from the preset multiple control parameter groups; S4, based on the target feedback signal source after switching and the loaded second control parameter group, performing closed-loop adjustment operation to generate a control signal to drive the DC current source and perform closed-loop control on the DC current source.
[0017] As described in step S1, by deploying three groups of independent current acquisition circuits (matching different current output intervals), adopting physical isolation channel design to avoid cross-range crosstalk, and implementing differentiated switch configuration, the minimum / intermediate range acquisition circuit is configured with a controlled switch, and the maximum range acquisition circuit is directly connected to the output bus, solving the switching delay and precision deviation problems of traditional multi-range acquisition schemes, and finally building a hardware foundation supporting adaptive switching, providing hardware support for subsequent current acquisition and feedback control.
[0018] As described in step S2, by acquiring the initial output current amplitude of the direct current source and comparing it with the preset initial threshold value, the adaptive initial effective range is determined; the control parameter group corresponding to the range is loaded synchronously, and the switch circuit is controlled to be on or off, so that the acquisition circuit corresponding to the initial effective range is connected to the closed-loop feedback link alone, and the remaining range circuits are exited, realizing precise isolation of the feedback signal and avoiding precision loss caused by initial range mismatch, laying the initial control foundation for subsequent real-time monitoring and adaptive switching.
[0019] As described in step S3, based on the initial feedback link constructed in S2, the current signal is acquired by the corresponding acquisition circuit in real time, and the control parameter group that has been enabled is combined to complete filtering and noise reduction preprocessing to optimize signal precision; then the preprocessed current amplitude is compared with the upshift and downshift threshold values of the current effective range, the range adaptation state of the current is accurately identified, and the explicit judgment basis for "whether to switch the range" is output, avoiding mis-switching caused by original signal interference or comparison deviation, and providing decision support for subsequent switching actions.
[0020] As described in step S4, based on the judgment result of S3, the feedback signal source of the closed-loop control is switched to the target range acquisition circuit, and the control parameter group corresponding to the target range is loaded synchronously, realizing the synchronous adaptation of the feedback link and the control parameter; then based on the adapted feedback signal source and parameter group, the closed-loop regulation operation is performed to generate the control signal of the adaptive power module, drive the direct current source to output and rely on the feedback link to continuously acquire data to dynamically correct the deviation, finally ensure the stable output of the direct current source in the target range, and complete the complete closed loop of "monitoring-determination-switching-control".
[0021] In one embodiment, the direct current source is identified to acquire a first current value of the direct current source, an initial effective range is determined according to a comparison result of an amplitude of the first current value and a preset initial threshold value, a first control parameter group corresponding to the initial effective range is enabled from a plurality of preset control parameter groups, the initial effective range corresponds to a first acquisition circuit of three independent acquisition circuits, and the first acquisition circuit is connected to a feedback link through a control switch circuit. The step S1 of constructing an initial feedback signal source of a closed-loop control includes: S11, configuring a hardware acquisition architecture; S12, acquire the initial current signal; S13, Determine the initial effective range; S14, enable the adaptation parameter group; S15, Construct the initial feedback loop.
[0022] In the specific implementation process, based on the maximum output capability of the DC current source of 1000A, refer to Figure 4 The parameters for the three-range model specify the range specifications of the three independent current acquisition circuits as follows: minimum range 10A, intermediate range 150A, and maximum range 1000A. Each group is adapted to current output ranges of 0.05A to 10A, 10A to 150A, and 150A to 1000A, respectively. The rated maximum values of adjacent ranges are in a preset ratio of 1:15:100, achieving full output range coverage without overlap or omission. The three acquisition circuits adopt an isolated sampling channel design, each equipped with an independent sampling resistor, signal conditioning module, and data transmission link. Channel isolation avoids cross-range signal crosstalk. Figure 4 Data shows that in the low current range, such as 0.05A, the three-range model actually outputs 0.0428A with an accuracy of -0.001%, while the single-range model outputs 0.2527A with an accuracy of 0.02%. This design significantly improves the accuracy of low-range acquisition. To address range switching control requirements, a controlled switching circuit consisting of at least one semiconductor switching transistor is connected in parallel on the signal path at the input or output of the minimum and intermediate range acquisition circuits; the maximum range acquisition circuit is directly connected to the output bus, and its range parameters match the maximum output capability of the DC current source. This differentiated configuration and... Figure 1 The hardware layout logic of the shielded switch circuits 1 and 2 corresponding to the 4A, 40A, and 400A acquisition circuits shown is consistent, allowing the controlled switches to precisely control the connection or disconnection of the minimum and intermediate range acquisition circuits through their on / off states. After the deployment of each set of acquisition circuits is completed, the reference is verified through actual testing. Figure 4The output data ensures minimum range adaptation small current high precision acquisition, intermediate range transition interval, maximum range matching full load output, and forms a hardware architecture of independent acquisition channel range differentiation switch configuration. Based on the hardware architecture, after starting the direct current source, three groups of acquisition circuits synchronously acquire initial output current signals at a frequency of 100 Hz, and obtain initial current signals for range determination, with an acquisition error controlled within ±0.01%; the control module calls 10A and 150A preset initial threshold values, and compares the initial current signals with the threshold values: when the amplitude is less than 10A, it is determined that the initial effective range is the minimum range, when 10A≤amplitude≤150A, it is determined that the initial effective range is the intermediate range, and when the amplitude is greater than 150A, it is determined that the initial effective range is the maximum range; according to the determination result, the corresponding control parameter group is called from the preset multiple control parameter groups and enabled; finally, the feedback link configuration is realized by controlling the on-off of the switch circuit: when the initial effective range is the minimum range, the corresponding switch circuit is opened and the intermediate range switch circuit is closed; when the initial effective range is the intermediate range, the minimum range switch circuit is closed and the intermediate range switch circuit is opened; and when the initial effective range is the maximum range, the minimum range and intermediate range switch circuits are closed, so that the acquisition circuit corresponding to the initial effective range is separately connected to the feedback link, and an initial feedback signal source of closed-loop control is formed.
[0023] In one embodiment, based on the first acquisition circuit, the second output current value of the direct current source is collected in real time, the second output current value is preprocessed in combination with the first control parameter group, and the real-time amplitude of the preprocessed second output current value is compared with the rising threshold value and the falling threshold value corresponding to the current effective range in step S2. S21, collecting current signals in real time; S22, signal preprocessing optimization; S23, extracting target parameters; S24, threshold quantization comparison.
[0024] In the specific implementation process, the initial feedback link constructed based on step S1 is independently executed by the acquisition circuit corresponding to the initial effective range to perform the real-time current acquisition task, and the acquisition process is continuously performed at a fixed frequency of 100 Hz, ensuring real-time perception of the output state of the direct current source; the acquisition accuracy follows Figure 3The measured standard of the three-range model sets different error thresholds for different range characteristics: when collecting the minimum range (0.05A-10A), the current amplitude fluctuation is not more than ±0.0005A; the collection error of the intermediate range (10A-150A) is controlled within ±0.01A; the collection error of the maximum range (150A-1000A) is not more than ±0.1A. The collected instantaneous output current signal is transmitted to the control module in real time to provide high-quality data input for the subsequent preprocessing link. Relying on the initial effective range enabled in step S1, the control module first calls the preset filter coefficient in the parameter group to use the moving average filtering algorithm to suppress noise in the collected signal: for the characteristics of the minimum range small current signal, the filter coefficient is set to 0.02, which focuses on retaining small signal details while filtering out high-frequency electromagnetic interference; the intermediate range filter coefficient is adjusted to 0.05, balancing signal details and anti-interference ability; the maximum range filter coefficient is set to 0.1, focusing on suppressing circuit fluctuation noise during large current output. After filtering, the signal is linearly calibrated through the proportional coefficient compensation and offset error calibration parameters in the parameter group: according to the temperature drift characteristics of the sampling resistor, a temperature compensation curve is preset, and the proportional coefficient is used to correct the collection deviation caused by the change of resistor value with temperature; at the same time, based on the measured offset error of the signal conditioning module, a fixed offset compensation value is set to offset the inherent system error of the hardware circuit. The preprocessing effect is verified by actual measurement: in the 0.5A output scenario, the current amplitude after preprocessing is 0.4939A, and the difference from the set value is only -0.0061A; in the 75A output scenario, the amplitude after preprocessing is 74.9538A, and the difference is -0.0462A; in the 800A output scenario, the amplitude after preprocessing is 799.7845A, and the difference is -0.2155A, which is significantly better than the single-range scheme without preprocessing, and the difference of the single-range model at the same period is 0.1617A, 0.0444A, and 0.495A respectively, which fully verifies the effectiveness of the preprocessing scheme. The control module extracts the real-time current amplitude from the preprocessed current signal through the peak detection algorithm, which has the same sampling period and collection frequency (10ms / time) and can accurately capture the peak value change of the instantaneous current while filtering the sharp pulse interference in the signal, ensuring that the extracted amplitude parameter can truly reflect the actual output state of the direct current source. The extracted current amplitude data is temporarily stored in the cache unit of the control module in the form of digital signals. The control module calls the pre-stored lift threshold and drop threshold corresponding to each range, and the threshold parameters are based on Figure 4The measured critical data and fluctuation characteristics of the three-range model are set by the design principle of "range rated maximum value-buffer value" to avoid false switching: the lift threshold corresponding to the minimum range is 10A (i.e. rated maximum value), the drop threshold is 9.5A (rated maximum value-0.5A); the lift threshold corresponding to the intermediate range is 150A, and the drop threshold is 145A; the maximum range is only set to the drop threshold 145A because there is no higher range to switch. The comparison process uses a frame-by-frame real-time operation method to quantitatively compare the extracted current amplitude with the threshold corresponding to the current effective range: when the current is the minimum range, if the amplitude ≥10A, it is marked as a lift switching requirement, if the amplitude ≤9.5A, it maintains the current range, if the amplitude is between 9.5A~10A, it is determined to be a fluctuation buffer interval, and no switching action is performed; when the current is the intermediate range, if the amplitude ≥150A, it is marked as a lift switch to the maximum range, if the amplitude ≤145A, it is marked as a drop switch to the minimum range, if the amplitude is between 145A~150A, it maintains the intermediate range; when the current is the maximum range, only when the amplitude ≤145A, it is marked as a drop switch to the intermediate range, and in other cases, it maintains the maximum range. The whole comparison logic is consistent with the core nodes of the range switching flowchart shown in Figure 2 The comparison result generates a switching instruction identifier of maintain / lift / drop in real time and transmits it to the decision unit of the control module.
[0025] In one embodiment, based on the comparison result, the feedback signal source of the closed-loop control is switched to obtain a switched target feedback signal source, and the step S3 of loading a second control parameter group corresponding to a target range from a plurality of preset control parameter groups comprises: S31, analyzing the comparison result to determine the target range; S32, switching the feedback signal source to build a target feedback link; S33, retrieving and loading the target range control parameter group; S34, verifying the validity of switching and loading.
[0026] In the specific implementation process, the control module first receives the threshold quantization comparison result output in step S2, and performs target range resolution: if the comparison result is marked as "lift demand" (minimum range amplitude ≥10A, intermediate range amplitude ≥150A), the target range is determined as the intermediate range and the maximum range; if it is marked as "drop demand" (intermediate range amplitude ≤145A, maximum range amplitude ≤145A), the target range is determined as the minimum range and the intermediate range; if it is marked as "maintain range", the S3 process is terminated, and the current effective range and parameter group remain unchanged. The control module sends on-off instructions to the corresponding switch circuit. When the current is the minimum range and needs to be switched to the intermediate range, the switch circuit corresponding to the minimum range acquisition circuit is closed, the switch circuit corresponding to the intermediate range acquisition circuit is opened, and the intermediate range acquisition circuit is connected to the feedback link; when the current is the intermediate range and needs to be switched to the maximum range, the switch circuit corresponding to the intermediate range acquisition circuit is closed, and the maximum range acquisition circuit becomes the target feedback signal source because it is directly connected to the output bus; when the current is the intermediate range and needs to be switched to the minimum range, the switch circuit corresponding to the minimum range acquisition circuit is opened, and the switch circuit corresponding to the intermediate range acquisition circuit is closed to ensure that the minimum range acquisition circuit works independently; when the current is the maximum range and needs to be switched to the intermediate range, the switch circuit corresponding to the intermediate range acquisition circuit is opened to connect the intermediate range acquisition circuit to the feedback link. The response time of the whole switching process is controlled within 5ms, and after the switching is completed, the acquisition circuit corresponding to the target range becomes the target feedback signal source of the closed-loop control, the control module retrieves the control parameter group matched with the target range from the pre-set multiple control parameter groups, replaces the original parameter group by using the overlay update mechanism, and the loading completion time is not more than 3ms. The core of the parameter group includes PID parameters such as proportional coefficient Kp, integral time constant Ti, and derivative time constant Td, as well as auxiliary parameters such as filtering coefficient and calibration parameter. All parameters are based on Figure 3 The measured characteristics of the three-range model are optimized and designed to match the current output characteristics of the target range, such as minimum range Kp=0.8, Ti=0.5s, maximum range Kp=1.2, Td=0.1s. The switching and loading effectiveness verification stage is verified by two signals in parallel: one detects the output amplitude stability of the target feedback signal source to ensure that the acquisition circuit is connected normally, and the minimum range allows a fluctuation of ≤±0.0005A, the intermediate range allows a fluctuation of ≤±0.01A, and the maximum range allows a fluctuation of ≤±0.1A; the other checks the consistency of the loaded control parameter group and the target range, and checks that the numerical deviation of the core parameters such as Kp, Ti, and Td does not exceed the pre-set threshold ±0.01. If the verification is qualified, it is determined that the step S3 process is completed, and the target feedback signal source and the parameter group enter the ready state; if the verification is not qualified, the retry mechanism is triggered immediately, and the switching and loading operation is re-executed until the verification standard is met, ensuring the reliability of the control link.
[0027] In one embodiment, the target feedback signal source based on switching and the loaded second control parameter group perform closed-loop regulation operation to generate a control signal to drive the direct current source, and the step S4 of closed-loop control of the direct current source comprises: S41, obtaining the feedback signal and the target parameter group; S42, performing closed-loop regulation operation; S43, generating an adaptive driving signal; S44, driving the current source and dynamically correcting the closed loop.
[0028] In the specific implementation process, the target feedback signal source continuously collects real-time output current data of the direct current source at a frequency of 100Hz, and the collection accuracy follows Figure 3 The three-range model standard, the minimum range (0.05A~10A) collection error ≤±0.0005A, the middle range (10A~150A) ≤±0.01A, and the maximum range (150A~1000A) ≤±0.1A. The collected data is transmitted to the control module in real time. At the same time, the control module calls the target range control parameter group (including PID core parameters such as proportional coefficient Kp, integral time constant Ti, and differential time constant Td, and auxiliary parameters such as signal amplification coefficient and protection threshold) loaded in step S3. Based on the "real-time collected current data" and the "preset output current setting value", the control module calls the target range control parameter group to perform PID closed-loop regulation operation. The operation period is controlled within 1ms to ensure real-time performance. In the operation process, the deviation of the current amplitude and the setting value is calculated first: the proportional link (Kp) quickly outputs the adjustment component according to the deviation size to realize the immediate response of the deviation; the integral link Ti accumulates the deviation and gradually outputs the compensation component to eliminate the static error; the differential link Td predicts the trend based on the deviation rate to output the leading adjustment component to suppress the overshoot. The PID parameter adaptive characteristics of different ranges are realized through Figure 4Actual data verification: minimum range Kp=0.8, Ti=0.5s, Td=0.02s, focus on small current high precision suppression overshoot, such as 0.05A output precision-0.001%; intermediate range Kp=1.0, Ti=0.3s, Td=0.05s, balance response speed and stability, such as 75A output precision-0.008%; maximum range Kp=1.2, Ti=0.1s, Td=0.1s, adapt to large current fast response, such as 1000A output precision 0.035%. The regulating command generated by the PID operation is converted into a pulse width modulation (PWM) control signal that matches the target range characteristics by the control module. The signal parameters are matched: the PWM frequency is set to 20kHz and the duty cycle regulation precision is 0.1% for the minimum range to ensure small signal effective amplification; the PWM frequency is set to 10kHz and the duty cycle regulation range is 5%~95% for the maximum range to ensure stable output of large current. The duty cycle of the control signal is linearly related to the current output: when the real-time current is lower than the set value, the duty cycle is increased to increase the output of the power module; when the real-time current is higher than the set value, the duty cycle is decreased to reduce the output, ensuring the precision of current regulation. The PWM control signal is transmitted to the power conversion unit of the direct current source after being amplified by the drive circuit. The drive unit adjusts the conduction state of the switching device according to the signal instruction to realize precise regulation of the output current. At the same time, the target feedback signal source continuously collects real-time output current data and returns it to the control module, forming a dynamic closed-loop correction mechanism: after receiving the data every frame (10ms), the control module recalculates the deviation, compares the trend of the deviation in the last period, and dynamically adjusts the PID parameters and PWM duty cycle to suppress current fluctuations. For example, when the target range is the intermediate range and the set value is 150A, if the real-time acquisition value is 150.0316A, the deviation is 0.0316A, and the PWM duty cycle is reduced by 0.02%; if the acquisition value is 149.863A, the deviation is 0.137A, and the PWM duty cycle is increased by 0.09%. Throughout the closed-loop control process, the output current precision follows Figure 3 Three-range model standards: minimum range ≤±0.001%, intermediate range ≤±0.008%, maximum range ≤±0.035%, ultimately achieving stable output of the direct current source under full range.
[0029] Referring to Figure 6 The structure of the direct current source self-adaptive range switching device according to an embodiment of the present application is shown in the schematic block diagram, which includes: The data acquisition module starts the corresponding acquisition circuit based on the current effective range, acquires the output current signal of the direct current source in real time, and performs preprocessing. The preprocessed current data is transmitted to the threshold judgment module. The parameter configuration module is used to receive the range switching instruction of the range switching module, output the threshold parameters of the current effective range and the control parameter group of the target range. An initial range determination module is configured to identify a direct current source and collect an initial current value thereof, determine an initial effective range in combination with a preset initial threshold value, send an initial parameter enabling instruction to a parameter configuration module, and control a data collection module to turn on a collection circuit corresponding to the initial effective range; A threshold value determination module is configured to receive preprocessed current data transmitted by the data collection module, call a rising threshold value and a falling threshold value of a current effective range in the parameter configuration module, perform a threshold value comparison operation, and transmit a determination result to a range switching module; The range switching module is configured to receive the determination result of the threshold value determination module, generate a range switching instruction, and synchronously send the range switching instruction to the parameter configuration module and the data collection module to control the on-off of a corresponding control switch circuit in the data collection module and realize unique switching of a feedback signal source. A closed-loop control module is configured to receive a target range control parameter group output by the parameter configuration module and a real-time feedback signal transmitted by the data collection module, perform a closed-loop adjustment operation, generate a control signal suitable for a power conversion unit of the direct current source, and drive the direct current source to realize closed-loop control of an output current.
[0030] In summary, the application configures three groups of independently physically isolated current collection circuits of minimum, intermediate and maximum, controls switches in parallel in the minimum and intermediate range collection circuits, directly connects the maximum range collection circuit to an output bus, and constructs a multi-range collection hardware architecture. The maximum output capacity of the direct current source and the measured data are used to determine the range intervals and threshold parameters, the current output current amplitude is collected and compared with the preset initial threshold value, the initial effective range is locked and the corresponding control parameter group is enabled, the initial effective range collection circuit is connected to the feedback link through the switch circuit control; the output current signal is collected in real time based on the initial effective range collection circuit, and digital filtering and amplitude calibration preprocessing are performed in combination with the control parameter group, the preprocessed current amplitude is quantitatively compared with the rising and falling threshold values of each range, and the range switching requirement is determined; according to the threshold comparison result, the feedback signal source is switched by using the first-off-then-on mechanism, the target range control parameter group is loaded synchronously and the adaptability is verified; the PID closed-loop adjustment operation is performed based on the switched feedback signal source and the target range parameter group, the PWM control signal is generated to drive the direct current source to output, and the current deviation is dynamically corrected, so as to realize adaptive range switching and high-precision stable control of the direct current source in the full output range of 0.05A to 1000A, and achieve the purpose of accurate and reliable output control in different current output scenarios.
[0031] In the embodiment, the specific implementation of each unit in the above-described device embodiment is described in the above-described method embodiment, which will not be described here.
[0032] The embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the method.
[0033] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware, and the computer program can be stored in a non-volatile computer readable storage medium. When the computer program is executed, the computer program can include the processes of the above-mentioned embodiment methods. Any reference to memory, storage, database or other medium provided by the present application and used in the embodiments can include non-volatile and / or volatile memory. The non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. The volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM, etc.
[0034] It should be noted that, in this document, the terms "comprising", "containing", or any other similar term are intended to encompass non-exclusive inclusions, such that a process, device, article or method that comprises a list of elements does not only include those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such a process, device, article or method. Without more limitations, the element defined by the phrase "comprising a" does not exclude the presence of additional identical elements in the process, device, article or method that includes the element.
[0035] The above description is only the preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation, or direct or indirect application in other related technical fields, as described in the specification and drawings of the present application, are also included in the patent protection scope of the present application.
Claims
1. A method for adaptive range switching of a DC current source, characterized in that, Includes the following steps: A DC current source is identified, and a first current value of the DC current source is acquired. An initial effective range is determined based on the comparison result between the amplitude of the first current value and a preset initial threshold. The first control parameter group corresponding to the initial effective range is activated from a preset set of multiple control parameter groups. The initial effective range corresponds to the first acquisition circuit of three preset independent acquisition circuits. The first acquisition circuit is connected to the feedback link through a control switch circuit. The first acquisition circuit constitutes the initial feedback signal source for closed-loop control. Based on the first acquisition circuit, the second output current value of the DC current source is acquired in real time. The second output current value is preprocessed in combination with the first control parameter group. The real-time amplitude of the preprocessed second output current value is extracted and compared with the rise threshold and fall threshold corresponding to the current effective range. Based on the comparison results, the feedback signal source of the closed-loop control is switched to obtain the target feedback signal source after switching, and the second control parameter group corresponding to the target range is loaded from the preset multiple control parameter groups. Based on the switched target feedback signal source and the loaded second control parameter group, a closed-loop regulation operation is performed to generate a control signal to drive the DC current source and perform closed-loop control on the DC current source.
2. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of identifying a DC current source and acquiring a first current value of the DC current source includes: Set the range of the three sets of acquisition circuits, set the rated maximum value of adjacent ranges to a preset ratio, and set the rated maximum value of the minimum range and the middle range to be less than the rated maximum value of the maximum range, so as to adapt to the small current, medium current and large current output range respectively. A switching circuit is connected in parallel only at the input or output of the minimum range acquisition circuit and the intermediate range acquisition circuit. The switching circuit consists of at least one switching transistor and is used to shunt the current of the corresponding acquisition circuit when the range is switched. The maximum range acquisition circuit is rated to match the maximum output capacity of the DC current source and is connected to the output bus for the acquisition of the first current value and the transmission of the initial feedback signal when the current is outputting at high current. The output bus connection status and acquisition circuit of the DC current source are identified. The initial output current signal of the DC current source is acquired synchronously through the three sets of independent acquisition circuits. After the initial output current signal is filtered, the first current value used for initial effective range determination is obtained.
3. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of activating the first control parameter group corresponding to the initial effective range from a preset set of multiple control parameter groups, wherein the initial effective range corresponds to the first acquisition circuit of three preset independent acquisition circuits, and the first acquisition circuit is connected to the feedback link through a control switch circuit, includes: The control module retrieves and enables the first control parameter group, and the first acquisition circuit sends the on / off command of the first control parameter group to access the closed-loop feedback link. Only the data from the first acquisition circuit is allowed to participate in the control calculation. The closed-loop calculation formula and the convergence conditions for the appropriate range and accuracy are configured in combination with the first control parameter group.
4. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of acquiring the second output current value of the DC current source in real time based on the first acquisition circuit, and preprocessing the second current value in combination with the first control parameter group, includes: The first acquisition circuit acquires the second output current value of the DC current source in real time at a preset frequency, and the second output current value is synchronously transmitted to the control module; The control module calls the filter coefficients and calibration parameters in the first control parameter group to perform digital filtering and amplitude calibration preprocessing on the second output current value.
5. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of comparing the real-time amplitude of the preprocessed second output current value with the lift threshold and droop threshold corresponding to the current effective range includes: Extract the real-time amplitude of the preprocessed second output current value, call the rise threshold and fall threshold bound to the current effective range, and perform a quantitative comparison between the real-time amplitude and the two sets of rise and fall thresholds; If the real-time amplitude is outside the range of the descent threshold and the rise threshold, it is determined that the range needs to be switched; If the real-time amplitude is between the descent threshold and the rise threshold, the current effective range is maintained.
6. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of switching the feedback signal source of the closed-loop control based on the comparison result to obtain the switched target feedback signal source, and loading the second control parameter group corresponding to the target range from a preset set of multiple control parameter groups, includes: Determine the target range to be switched based on the comparison results; The control switch circuit cuts off the feedback path of the current effective range acquisition circuit and switches to the acquisition circuit corresponding to the target range. The acquisition circuit constitutes the target feedback signal source for closed-loop control. The second control parameter group that matches the target range is retrieved from the preset multiple control parameter groups. The second control parameter group pre-stores the core control parameters that are adapted to the target range, and the second control parameter group is loaded and enabled.
7. The DC current source adaptive range switching method according to claim 1, characterized in that, The step of performing closed-loop regulation calculations based on the switched target feedback signal source and the loaded second control parameter group to generate a control signal to drive the DC current source, and performing closed-loop control of the DC current source, includes: The target feedback signal source acquires the output current signal of the DC current source in real time and transmits the output current signal to the control module synchronously. The control module calls the second control parameter group and performs closed-loop regulation calculation in combination with the output current signal. The closed-loop regulation calculation dynamically corrects the output deviation based on the control logic adapted to the target range and generates the corresponding control signal. The control signal is adapted to the power conversion unit drive requirements of the DC current source, and the output current is regulated by adjusting the conduction state of the power switching device. The output data of the target feedback signal source is continuously monitored, and the control signal parameters are dynamically optimized based on the results of the closed-loop adjustment operation.
8. A DC current source adaptive range switching device, characterized in that, include: The data acquisition module starts the corresponding acquisition circuit based on the current effective range, acquires the output current signal of the DC current source in real time and performs preprocessing, and transmits the preprocessed current data to the threshold judgment module. The parameter configuration module is used to receive the range switching command from the range switching module and output the threshold parameter of the current effective range and the control parameter group of the target range. The initial range determination module is used to identify the DC current source and collect its initial current value, determine the initial effective range by combining it with the preset initial threshold, send the initial parameter enable command to the parameter configuration module, and synchronously control the data acquisition module to connect the acquisition circuit corresponding to the initial effective range. The threshold judgment module is used to receive the preprocessed current data transmitted by the data acquisition module, call the current effective range's rise threshold and fall threshold in the parameter configuration module, perform threshold comparison calculation, and transmit the judgment result to the range switching module. The range switching module is used to receive the judgment result of the threshold judgment module, generate the range switching command, and send it synchronously to the parameter configuration module and the data acquisition module to control the on and off of the corresponding control switch circuit in the data acquisition module, thereby realizing the unique switching of the feedback signal source. The closed-loop control module receives the target range control parameter set output by the parameter configuration module and the real-time feedback signal transmitted by the data acquisition module, performs closed-loop adjustment calculations, generates control signals adapted to the DC current source power conversion unit, and drives the DC current source to achieve closed-loop control of the output current.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the DC current source adaptive range switching method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the DC current source adaptive range switching method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Current range switching method and current acquisition device
CN115078798A
Method and system for self-adaptive circuit switching based on current range
CN116937947A
Automatic range switching method and system for electric measuring instrument
CN120971788A
Electric energy meter calibrating device capable of rapidly and stably switching current and control method
CN120972083A
RLS adaptive transient current signal frequency division inversion measurement method
WO2025060178A1