Wide voltage range DC voltage control method, DC power supply and storage medium
By dividing the output voltage of the DC power supply into multiple voltage segments and setting correction coefficients, and combining high-frequency and low-frequency strategies, the problem of high voltage regulation accuracy of the DC power supply in a wide output range is solved, and high-precision and stable voltage control is achieved.
Patent Information
- Application Number
- CN202411909386.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-11-14
- Estimated Expiration
- 2044-12-24
AI Technical Summary
Existing DC power supplies struggle to maintain high voltage regulation accuracy across a wide output range, especially when the output voltage is far from the center point. Existing calibration methods are inconvenient to operate and lack sufficient accuracy.
The output voltage range of the DC power supply is divided into multiple voltage segments. Correction coefficients are set for the lower and upper limits of each voltage segment. The main control chip and a low-speed, high-precision ADC sampling chip are used in combination with high-frequency and low-frequency strategies to perform correction, generate correction records, and adjust the output voltage in real time.
It achieves high voltage regulation accuracy output over a wide voltage range, reduces operational complexity, improves the accuracy and stability of the output voltage, and avoids output discontinuity caused by abrupt changes in the correction coefficient.
Smart Images

Figure CN119765241B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of DC power supplies, and more specifically, to a wide-range DC voltage control method, a DC power supply, and a storage medium. Background Technology
[0002] With the rapid development of power electronics technology, especially the booming development of the new energy industry, the application of DC power supplies is becoming increasingly widespread. Besides traditional industries such as instruments / meters and power equipment, emerging fields like new energy batteries and electric vehicles are also placing increasing demands on DC power supplies. In these emerging fields, a wide range of output DC voltage and high voltage regulation accuracy are two essential performance characteristics of DC power supplies.
[0003] To achieve the above performance requirements, DC power supplies generally adopt a digital high-frequency control strategy for output control. The control chip has a very high control frequency, and the control board is required to have detection functions with fast sampling speed and high sampling accuracy. For example, the control chip with built-in ADC sampling function is generally used, combined with DC voltage detection circuit to realize a digital high-frequency control scheme.
[0004] However, the selection of a control chip requires comprehensive consideration of multiple factors. Dedicated control chips with built-in high-speed and high-precision ADC sampling functions are not only expensive, but also have relatively few other resources, making them unsuitable as the main control chip for DC power supplies. Therefore, most existing digitally controlled DC power supplies choose general-purpose control chips with abundant peripheral resources. These chips have fast built-in ADC sampling speeds, but the claimed sampling bit depth is generally 10-12 bits (the actual sampling bit depth is around 9-10 bits, which means the sampling accuracy is around 0.5-0.1%). Considering the deviation of the detection circuit (the improvement of the accuracy of the sampling resistor in the detection circuit has a limited impact on the entire detection circuit) and the wide range of output voltage, it is difficult to guarantee high-precision performance across the entire output range.
[0005] To address accuracy issues, the most common method currently used is manual calibration. There are two ways to perform manual calibration: on-site calibration and factory calibration. The former offers higher accuracy, while the latter is more convenient. On-site calibration requires manual calibration every time a new voltage level is used. The software generates a sampled calibration coefficient based on the measured DC output voltage data, which is used throughout the digital control of the output voltage. This method has significant limitations. First, it requires manual operation by the user, which is inconvenient and provides a poor user experience. Second, manual calibration is necessary when adjusting the output DC voltage (especially over a large range); otherwise, an inappropriate calibration coefficient may lead to a larger error in the output DC voltage, affecting on-site use and potentially causing false alarms or even shutting down the DC output. Factory calibration, on the other hand, sets the center point output voltage of the DC power supply during factory testing. Manual calibration is then performed at this output voltage. The software generates a sampled calibration coefficient based on the measured DC output voltage data from the factory test, which is used throughout the digital control of the output voltage. Since the correction is only performed when the voltage is output at the center point, the output voltage accuracy is very high when the output voltage is near the center point during the use of the DC power supply. However, the accuracy of the output DC voltage is relatively poor when the output voltage is set to high or low voltage far from the center point. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a DC voltage control method with a wide voltage range, a DC power supply and a storage medium, addressing the difficulty of achieving both wide output range and high voltage regulation accuracy in the aforementioned DC power supplies.
[0007] The technical solution of this invention to solve the above-mentioned technical problems is to provide a wide voltage range DC voltage control method applied to a DC power supply. The DC power supply includes a main control chip and an ADC sampling chip, each with a voltage sampling function, wherein the sampling accuracy of the ADC sampling chip is greater than that of the main control chip. The method includes the following steps executed by the main control chip:
[0008] (a) N voltage segments are generated according to the output voltage range of the DC power supply, and each voltage segment includes an upper limit segment and a lower limit segment, where N is an integer greater than or equal to 2, and the upper limit segment and the lower limit segment contain the same range of voltage values.
[0009] (b) Control the DC power supply to sequentially output the minimum output voltage, the voltages corresponding to adjacent points of N voltage segments, and the maximum output voltage, while simultaneously sampling the output voltage of the DC power supply and outputting a voltage sampling command to the ADC sampling chip;
[0010] (c) A correction coefficient is generated based on the output voltage sampled at each DC voltage output point and the feedback voltage of the ADC sampling chip at the same time, and a correction record is generated based on the correction coefficient and saved in the memory. In the correction record, the correction coefficients of the lower limit region of the previous voltage segment and the upper limit region of the next voltage segment in the adjacent voltage segment are the correction coefficients of the adjacent points in the adjacent voltage segment.
[0011] As a further improvement of the present invention, steps (a) to (c) are performed before the DC power supply leaves the factory.
[0012] As a further improvement of the present invention, the method further includes the following steps performed by the main control chip during the DC power supply transformation and output process:
[0013] (d) Obtain the voltage range corresponding to the voltage that needs to be output, and obtain the correction coefficient corresponding to the upper limit range and the correction coefficient corresponding to the lower limit range of the voltage range;
[0014] (e) Generate the correction coefficient corresponding to the current required output voltage by interpolation based on the correction coefficient corresponding to the upper limit region and the correction coefficient corresponding to the lower limit region;
[0015] (f) Adjust the output voltage of the DC power supply according to the correction coefficient generated by interpolation.
[0016] As a further improvement of the present invention, steps (d) to (e) are executed at regular intervals according to a high-frequency control strategy.
[0017] As a further improvement of the present invention, the method further includes the following steps performed by the main control chip during the constant voltage output process of the DC power supply:
[0018] (g) Sample the output voltage of the DC power supply and output a voltage sampling command to the ADC sampling chip;
[0019] (h) Generate real-time correction coefficients based on the output voltage obtained from sampling and the feedback voltage of the ADC sampling chip;
[0020] (i) Adjust the output voltage of the DC power supply according to the real-time correction coefficient.
[0021] As a further improvement of the present invention, steps (g) to (i) are executed periodically according to a low-frequency refresh strategy, and step (i) includes:
[0022] (i1) Obtain the voltage range corresponding to the current output voltage, and obtain the correction coefficient corresponding to the upper limit range and the correction coefficient corresponding to the lower limit range of the voltage range;
[0023] (i2) Generate the correction coefficient corresponding to the current output voltage by interpolation based on the correction coefficient corresponding to the upper limit region and the correction coefficient corresponding to the lower limit region;
[0024] (i3) When the difference between the real-time correction coefficient and the interpolated correction coefficient does not exceed a preset range, the output voltage of the DC power supply is adjusted using the real-time correction coefficient; when the difference between the real-time correction coefficient and the interpolated correction coefficient exceeds a preset range, the output voltage of the DC power supply is adjusted using the interpolated correction coefficient.
[0025] As a further improvement of the present invention, the correction coefficient is composed of the quotient of the voltage sampled by the main control chip and the feedback voltage of the ADC sampling chip.
[0026] As a further improvement of the present invention, the sampling bit depth of the ADC sampling chip is between 16 and 24 bits.
[0027] The present invention also provides a DC power supply, including a main control chip, an ADC sampling chip, and a memory, wherein the memory stores a computer program that can be executed by the main control chip, and the main control chip executes the computer program to implement the steps of the wide voltage range DC voltage control method described above.
[0028] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the wide voltage range DC voltage control method described above.
[0029] The present invention has the following advantages: by generating multiple voltage segments in the output voltage range of the DC power supply, and setting corresponding correction coefficients for the lower limit of each voltage segment and the upper limit of its subsequent voltage segments, a wide voltage range and high voltage regulation accuracy DC voltage output can be achieved by using only a low-cost general-purpose main control chip and a low-speed ADC sampling chip, and by combining a high-frequency control strategy with a low-frequency refresh strategy. Attached Figure Description
[0030] Figure 1 This is a flowchart illustrating the wide voltage range DC voltage control method provided in an embodiment of the present invention.
[0031] Figure 2 This is a schematic diagram of the process of the wide voltage range DC voltage control method provided in the embodiment of the present invention during transformer output.
[0032] Figure 3 This is a schematic diagram of the process of the wide voltage range DC voltage control method provided in the embodiment of the present invention when the voltage is constant.
[0033] Figure 4 yes Figure 3A schematic diagram illustrating the process of adjusting the output voltage of a DC power supply based on a real-time correction coefficient. Detailed Implementation
[0034] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the invention.
[0035] like Figure 1 The diagram shown is a flowchart of a wide-range DC voltage control method provided in an embodiment of the present invention. This method can be applied to a DC power supply, enabling the DC power supply to achieve a wide voltage range and high voltage regulation accuracy DC voltage output. The aforementioned DC power supply can be a power supply used in devices such as electric vehicles, and the DC power supply includes a main control chip and an ADC sampling chip. The main control chip and the ADC sampling chip each have voltage sampling functions and are electrically connected to the output terminal of the DC power supply (through external circuits), and the sampling accuracy of the ADC sampling chip is greater than that of the main control chip.
[0036] Specifically, the aforementioned main control chip can be a general-purpose control chip with a built-in ADC sampling module having a sampling bit depth of 10-12 bits and a control frequency of 3000Hz to 10000Hz. The ADC sampling chip has a relatively low sampling speed (between a few Hz and several hundred Hz) and high sampling accuracy (between 16-24 sampling bits). For example, the main control chip can be a general-purpose control chip with a control frequency of 5000Hz and a sampling accuracy of 0.5%, while the ADC sampling chip has a sampling frequency of 10Hz and a sampling accuracy of over 0.025%. Furthermore, the main control chip and the ADC sampling chip communicate via an I2C bus, and the timing communication frequency between the main control chip and the ADC sampling chip is 1Hz.
[0037] In the aforementioned DC power supply, the ADC sampling chip does not require separate software design; it only needs to operate according to instructions received from the main control chip. Specifically, upon receiving a voltage sampling instruction from the main control chip, it performs DC voltage sampling and feeds back the sampled voltage to the main control chip. Accordingly, the wide-range DC voltage control method of this embodiment can be integrated into the main control chip of the DC power supply and includes the following steps:
[0038] Step S11: Generate N voltage segments based on the output voltage range of the DC power supply. Each voltage segment includes an upper limit segment and a lower limit segment. N is an integer greater than or equal to 2. The voltage value ranges contained in the upper limit segment and the lower limit segment are the same.
[0039] For example, when the output voltage range of the DC power supply is 24-1200V, this step can be divided into six voltage segments: 24-200V, 200-400V, 400-600V, 600-800V, 800-1000V, and 1000-1200V. In the 24-200V voltage segment, 24-112V is the upper limit and 112-200V is the lower limit (112V can be included in either the upper or lower limit). In the 200-400V voltage segment, 200-300V is the upper limit and 300-400V is the lower limit (300V can be included in either the upper or lower limit), and so on.
[0040] Step S12: Control the DC power supply to sequentially output the minimum output voltage, the voltages corresponding to adjacent points of N voltage segments, and the maximum output voltage (i.e., the voltages corresponding to the endpoints of each voltage segment), while simultaneously sampling the output voltage of the DC power supply and outputting a voltage sampling command to the ADC sampling chip.
[0041] In this step, the main control chip generates voltage commands to control the semiconductor switches in the DC power supply so that the output voltage sequentially corresponds to the endpoint voltages of each voltage segment. The main control chip samples the output voltage using its own ADC sampling module and the ADC sampling chip. In other words, the main control chip obtains accurate sampling data by periodically sending sampling commands to the ADC sampling chip. For example, when the output voltage range of the DC power supply is 24-1200V and is divided into six voltage segments in step S11, the main control chip sequentially controls the output voltage of the DC power supply to be 24V, 200V, 400V, 600V, 800V, 1000V, and 1200V. Each time the output voltage of the DC power supply reaches a stable state, the main control chip and the ADC sampling chip simultaneously sample the output voltage.
[0042] Step S13: Generate correction coefficients based on the output voltage sampled at each DC voltage output point and the feedback voltage of the ADC sampling chip at the same time. Generate correction records based on these correction coefficients and save them to the memory. In the correction records, the voltages of the lower limit region of the previous voltage segment and the upper limit region of the next voltage segment have the same correction coefficient. That is, the correction coefficients of the lower limit region of the previous voltage segment and the upper limit region of the next voltage segment in adjacent voltage segments are the correction coefficients of adjacent voltage points in the adjacent voltage segments. The correction records include N+1 correction coefficients. These correction records can be stored in the memory of the DC power supply's control circuit board (both the main control chip and the ADC sampling chip are integrated on this control circuit board) or in the memory module integrated into the main control chip. Furthermore, during the operation of the DC power supply, the main control chip can read the correction records and adjust the output voltage of the DC power supply according to these records, thereby improving the accuracy of the output voltage of the DC power supply under different amplitude conditions.
[0043] For example, when the output voltage range of the DC power supply is 24-1200V, and is divided into six voltage segments in step S11, for the voltage sampled when the DC power supply output voltage is 24V and the voltage fed back by the ADC, the main control chip divides the two voltages to obtain the correction coefficient corresponding to 24-112V; for the voltage sampled when the DC power supply output voltage is 200V and the voltage fed back by the ADC, the main control chip divides the two voltages to obtain the correction coefficient corresponding to 112-200V. And so on, the main control chip can generate a correction record including seven correction coefficients.
[0044] In practical applications, when generating the correction coefficient for a certain output voltage, the main control chip and the AD sampling chip can sample multiple times and take the average value of the multiple samples to generate the corresponding correction coefficient, thereby improving the accuracy of the correction coefficient.
[0045] The aforementioned wide-range DC voltage control method divides the DC power supply into multiple voltage segments according to the output voltage range and sets corresponding correction coefficients for the lower limit of each voltage segment and the upper limit of its subsequent voltage segments. It does not require the use of a high-sampling-precision main control chip. It only requires a general-purpose control chip combined with a low-cost, low-speed, high-precision ADC sampling chip. Through a high-frequency control strategy combined with a low-frequency refresh strategy, a wide voltage range and high voltage regulation accuracy DC voltage output can be achieved.
[0046] In one embodiment of the present invention, steps S11 to S13 are performed before the DC power supply leaves the factory; that is, the calibration record is generated by the DC power supply manufacturer using specific software. In practical applications, users can also regenerate the calibration record using the above method.
[0047] like Figure 2 As shown, in one embodiment of the present invention, the above-described wide voltage range DC voltage control method further includes the following steps executed by the main control chip during the DC power supply transformation and output process (i.e., when the DC power supply is applied to transformation and output):
[0048] Step S21: Obtain the voltage range corresponding to the current required output voltage (which can be generated according to the usage requirements of the DC power supply), and obtain the correction coefficients corresponding to the upper limit and lower limit of the voltage range. Specifically, the main control chip can directly read the correction record and obtain the two correction coefficients by searching through the voltage value.
[0049] Step S22: Generate the correction coefficient corresponding to the current required output voltage by interpolation based on the correction coefficients corresponding to the upper limit region and the lower limit region.
[0050] Specifically, a linear interpolation method can be used to generate a correction coefficient corresponding to the voltage that needs to be output. For example, when the output voltage range of the DC power supply is 24-1200V and is divided into six voltage segments in step S11, if the voltage that needs to be output is 280V, and the correction coefficient corresponding to the upper limit of 200-400V is 0.9 and the correction coefficient corresponding to the lower limit is 1.1, then the correction coefficient corresponding to the 280V output voltage is 0.9 + (1.1 - 0.9) × (280 - 200) / (400 - 200) = 0.98.
[0051] Step S23: Adjust the output voltage of the DC power supply according to the correction coefficient generated by interpolation.
[0052] When adjusting the output voltage of a DC power supply according to a correction factor, conventional techniques in the art can be used, and will not be elaborated here. Furthermore, those skilled in the art will understand that when the required output voltage happens to be the voltage at the end of a certain segment, the correction factor corresponding to that end voltage can be used directly.
[0053] Specifically, the steps S21 to S23 described above are executed periodically according to a high-frequency control strategy. That is, the main control chip adjusts the correction coefficient once for each control interrupt. For example, when the clock frequency of the main control chip is 3000-10000Hz, the main control chip executes once every 100-333 microseconds.
[0054] When the output voltage range of the DC power supply is 24-1200V, and only the output voltage center point of 600V is used for correction, the DC output is 599.9V at the set 600V, with a control error of 0.1V and a control accuracy of 0.017%. After rising to 1200V, the DC voltage output is 1200.6V, with a control error of 0.6V and a control accuracy of 0.05%. After dropping to 24V, the measured low-voltage DC output is 22.8V, with a control error of 1.2V and a control accuracy decreasing to 5%. However, when the output voltage range of the DC power supply is divided into six voltage segments and seven correction coefficients are generated, the control error and control accuracy at each voltage point are shown in Table 1 below, indicating that the control accuracy is greatly improved.
[0055] Voltage setting Control error Control precision 24 0.1 0.417% 50 0.3 0.600% 100 0.2 0.200% 150 0.2 0.130% 190 0.3 0.158% 200 0.2 0.100% 250 0.3 0.120% 300 0.3 0.100% 350 0.2 0.057% 390 0.3 0.077% 400 0.1 0.025% 450 0.0 0.000% 500 0.0 0.000% 550 0.1 0.018% 590 0.0 0.000% 600 0.0 0.000% 650 0.2 0.031% 700 0.1 0.014% 750 0.0 0.000% 790 0.1 0.013% 800 0.0 0.000% 850 0.2 0.024% 900 0.1 0.011% 950 0.0 0.000% 990 0.1 0.010% 1000 0.0 0.000% 1050 0.2 0.019% 1100 0.1 0.009% 1150 0.0 0.000% 1200 0.1 0.008%
[0056] Table 1. Output accuracy data under different output voltages
[0057] Since the output voltage of a DC power supply is often continuous, the above-mentioned wide voltage range DC voltage control method, by setting the same correction coefficient for the lower limit of each voltage segment and the upper limit of its subsequent voltage segments, can ensure the continuity of the output voltage within the voltage range and avoid output voltage jumps caused by jumps in the correction coefficient, rather than setting a correction coefficient for each voltage segment within the voltage range of the DC power supply.
[0058] like Figure 3 As shown, the above-mentioned wide voltage range DC voltage control method also includes the following steps executed by the main control chip according to the low-frequency refresh strategy (i.e., according to the maximum sampling frequency of the ADC sampling chip) during the constant voltage output process of the DC power supply (i.e., when the DC power supply is used for constant voltage output):
[0059] Step S31: Sample the output voltage of the DC power supply and output a voltage sampling command to the ADC sampling chip. That is, the main control chip and the ADC sampling chip sample the output voltage of the DC power supply in real time.
[0060] Step S32: Generate a real-time correction coefficient based on the sampled output voltage and the feedback voltage of the ADC sampling chip. Specifically, this real-time correction coefficient can be the quotient of the sampling voltage of the main control chip and the feedback voltage of the ADC sampling chip.
[0061] Step S33: Adjust the output voltage of the DC power supply according to the real-time correction coefficient.
[0062] In other words, when the DC power supply is outputting a constant voltage, the main control chip adjusts the output voltage of the DC power supply based on the correction coefficient obtained from real-time sampling.
[0063] like Figure 4 As shown, to avoid abnormal DC output voltage due to errors in the real-time correction coefficient during constant voltage output, step S33 above, adjusting the DC power supply output voltage according to the real-time correction coefficient, includes:
[0064] Step S331: Obtain the voltage range corresponding to the current output voltage, and obtain the correction coefficients corresponding to the upper limit and lower limit of the voltage range. For details, please refer to step S21 above.
[0065] Step S332: Generate the correction coefficient corresponding to the current output voltage by interpolation based on the correction coefficients corresponding to the upper limit region and the lower limit region. For details, please refer to step S22 above.
[0066] Step S333: Determine whether the difference between the real-time correction coefficient generated in step S332 and the interpolated correction coefficient exceeds a preset range (this preset range can be set according to the application of the DC power supply, etc.; the higher the accuracy requirement, the smaller the value of this preset range). If the difference between the real-time correction coefficient and the interpolated correction coefficient exceeds the preset range, proceed to step S335; otherwise, proceed to step S334.
[0067] Step S334: The main control chip uses the real-time correction coefficient generated in step S32 to adjust the output voltage of the DC power supply.
[0068] Step S335: The main control chip uses the correction coefficient generated by interpolation in step S332 to adjust the output voltage of the DC power supply.
[0069] The present invention also provides a DC power supply, including a main control chip, an ADC sampling chip, and a memory, wherein the memory stores a computer program that can be executed by the main control chip, and the main control chip executes the computer program to implement the steps of the wide voltage range DC voltage control method described above.
[0070] The DC power supply in this embodiment is the same as described above. Figure 1-4 The wide voltage range DC voltage control method in the corresponding embodiments belongs to the same concept. The specific implementation process can be found in the corresponding method embodiments. The technical features in the method embodiments are all applicable to this DC power supply embodiment, and will not be repeated here.
[0071] The present invention also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the wide voltage range DC voltage control method described above.
[0072] The computer-readable storage medium in this embodiment is the same as described above. Figure 1-4 The wide voltage range DC voltage control method in the corresponding embodiments belongs to the same concept. The specific implementation process can be found in the corresponding method embodiments. The technical features in the method embodiments are also applicable to this storage medium embodiment, and will not be repeated here.
[0073] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0074] Those skilled in the art will understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is merely an example. In practical applications, the functions can be assigned to different functional units and modules as needed. The functional units and modules in the embodiments can be integrated into a single processor, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units can be implemented in hardware or as software functional units. Furthermore, the specific names of the functional units and modules are merely for easy differentiation and are not intended to limit the scope of protection of this application. The specific working processes of the units and modules in the above system can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0075] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0076] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0077] In the embodiments provided in this application, it should be understood that the disclosed wide-voltage-range DC voltage control method and DC power supply can be implemented in other ways. For example, the DC power supply embodiments described above are merely illustrative.
[0078] Furthermore, the functional units in the various embodiments of this application can be integrated into a single processor, or each unit can exist physically separately, or two or more units can be integrated into a single unit. The integrated units described above can be implemented in hardware or as software functional units.
[0079] If the integrated module / unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable medium can include: any entity or interface switching device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.
[0080] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.
Claims
1. A wide-range DC voltage control method, applied to a DC power supply, characterized in that, The DC power supply includes a main control chip and an ADC sampling chip, both of which have voltage sampling functions, and the sampling accuracy of the ADC sampling chip is greater than that of the main control chip; the method includes the following steps performed by the main control chip: (a) N voltage segments are generated according to the output voltage range of the DC power supply, and each voltage segment includes an upper limit segment and a lower limit segment, where N is an integer greater than or equal to 2, and the upper limit segment and the lower limit segment contain the same range of voltage values. (b) Control the DC power supply to sequentially output the minimum output voltage, the voltages corresponding to adjacent points of N voltage segments, and the maximum output voltage, while simultaneously sampling the output voltage of the DC power supply and outputting a voltage sampling command to the ADC sampling chip; (c) A correction coefficient is generated based on the output voltage sampled at each DC voltage output point and the feedback voltage of the ADC sampling chip at the same time, and a correction record is generated based on the correction coefficient and saved in the memory. In the correction record, the correction coefficients of the lower limit region of the previous voltage segment and the upper limit region of the next voltage segment in the adjacent voltage segment are the correction coefficients of the adjacent points in the adjacent voltage segment. The method also includes the following steps performed by the main control chip during the DC power supply transformation and output process: (d) Obtain the voltage range corresponding to the voltage that needs to be output, and obtain the correction coefficient corresponding to the upper limit range and the correction coefficient corresponding to the lower limit range of the voltage range; (e) Generate the correction coefficient corresponding to the current required output voltage by interpolation based on the correction coefficient corresponding to the upper limit region and the correction coefficient corresponding to the lower limit region; (f) Adjust the output voltage of the DC power supply according to the correction coefficient generated by interpolation.
2. The wide voltage range DC voltage control method according to claim 1, characterized in that, Steps (a) to (c) are performed before the DC power supply leaves the factory.
3. The wide voltage range DC voltage control method according to claim 1, characterized in that, Steps (d) to (e) are executed once for each control interrupt of the main control chip.
4. The wide voltage range DC voltage control method according to claim 1, characterized in that, The method further includes the following steps performed by the main control chip during the constant voltage output process of the DC power supply: (g) Sample the output voltage of the DC power supply and output a voltage sampling command to the ADC sampling chip; (h) Generate real-time correction coefficients based on the output voltage obtained from sampling and the feedback voltage of the ADC sampling chip; (i) Adjust the output voltage of the DC power supply according to the real-time correction coefficient.
5. The wide voltage range DC voltage control method according to claim 4, characterized in that, Steps (g) to (i) are executed at regular intervals according to the sampling frequency of the ADC sampling chip, and step (i) includes: (i1) Obtain the voltage range corresponding to the current output voltage, and obtain the correction coefficient corresponding to the upper limit range and the correction coefficient corresponding to the lower limit range of the voltage range; (i2) Generate the correction coefficient corresponding to the current output voltage by interpolation based on the correction coefficient corresponding to the upper limit region and the correction coefficient corresponding to the lower limit region; (i3) When the difference between the real-time correction coefficient and the interpolated correction coefficient does not exceed a preset range, the output voltage of the DC power supply is adjusted using the real-time correction coefficient; when the difference between the real-time correction coefficient and the interpolated correction coefficient exceeds a preset range, the output voltage of the DC power supply is adjusted using the interpolated correction coefficient.
6. The wide voltage range DC voltage control method according to any one of claims 1-5, characterized in that, The correction coefficient is composed of the quotient of the voltage sampled by the main control chip and the feedback voltage of the ADC sampling chip.
7. The wide voltage range DC voltage control method according to any one of claims 1-5, characterized in that, The sampling bit depth of the ADC sampling chip is between 16 and 24 bits.
8. A DC power supply, characterized in that, It includes a main control chip, an ADC sampling chip, and a memory. The memory stores a computer program that can be executed by the main control chip, and when the main control chip executes the computer program, it implements the steps of the wide voltage range DC voltage control method as described in any one of claims 1-7.
9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the steps of the wide voltage range DC voltage control method as described in any one of claims 1-7.
Citation Information
Patent Citations
Multi-dimensional nine-area optimal control strategy analysis method based on power distribution network system
CN109119993A
Voltage segmentation correction device
CN212008892U