CN116133188A - Constant-voltage dimmable LED power supply current calibration system and method - Google Patents
Constant-voltage dimmable LED power supply current calibration system and method Download PDFInfo
- Publication number
- CN116133188A CN116133188A CN202310176348.5A CN202310176348A CN116133188A CN 116133188 A CN116133188 A CN 116133188A CN 202310176348 A CN202310176348 A CN 202310176348A CN 116133188 A CN116133188 A CN 116133188A
- Authority
- CN
- China
- Prior art keywords
- calibration
- current
- power supply
- electronic load
- instruction
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 230000008569 process Effects 0.000 claims abstract description 12
- 238000004321 preservation Methods 0.000 claims description 11
- 230000000977 initiatory effect Effects 0.000 claims description 9
- 238000012360 testing method Methods 0.000 claims description 7
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 6
- 230000009467 reduction Effects 0.000 claims description 3
- 239000000463 material Substances 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000017525 heat dissipation Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000001795 light effect Effects 0.000 description 1
- 239000007769 metal material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
- H05B45/34—Voltage stabilisation; Maintaining constant voltage
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/30—Driver circuits
- H05B45/32—Pulse-control circuits
- H05B45/325—Pulse-width modulation [PWM]
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/40—Details of LED load circuits
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/50—Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The invention discloses a system and a method for calibrating constant-voltage dimmable LED power supply current, wherein the system comprises a calibration tool, a measured power supply, an electronic load and an upper computer which are connected end to end in sequence; the method comprises the following steps: s1, starting calibration; s2, current adjustment; and S3, saving parameters. According to the invention, on a common singlechip, the power supply current calibration is realized through one path of 0-10V analog interface, and the problem of the type selection of the singlechip is solved; the lower-cost singlechip can be introduced into the adjustable light power supply, so that the hardware material cost is reduced. Through an automatic, the calibration process of the closed loop solves the problem of calibration errors possibly caused by personnel intervention; the automatic calibration scheme can save labor cost, time cost and avoid human error.
Description
Technical Field
The invention relates to the technical fields of intelligent illumination, intelligent power supply and LED power supply, in particular to a system and a method for calibrating constant-voltage dimmable LED power supply current.
Background
The control mode of the LED is a constant current driving mode and a constant voltage driving mode. The constant voltage power supply is called a regulated power supply, and the output voltage value is required to be fixed and does not change along with external working conditions such as load, input voltage and the like.
LEDs have a variety of dimming schemes, such as analog dimming and PWM dimming. In order to realize the brightness control of the LED, a constant current driver needs to be added between the constant voltage power supply and the LED, and the output current of the constant current driver is adjusted by an external adjustable signal (for example, 0-10V or PWM), so as to realize the brightness control of the LED.
Because the hardware constitution is different, after the power is processed from the production end, the maximum output current is required to be calibrated to meet the power supply of the same specification and model. The power supply outputs consistent current after calibration so as to achieve the purpose of consistent light effect.
There are generally two ways to calibrate current flow:
one is to program the power supply by wireless means, such as NFC tags, and rewrite the internal parameters of the power supply by external near field communication. But through wireless mode firstly, increase the cost, secondly, the current LED power is mostly to solve the heat dissipation problem and all adopts the metal material, has stronger shielding effect to radio signal, is not suitable for structural implementation.
The other is to program the power supply through a digital interface, and the mode of multiplexing the dimming interface (0-10V PWM) is generally adopted through the digital interface, so that the interface is not newly added, but the structural form of the power supply is destroyed, and the water resistance and the dust resistance of the power supply are affected. This approach requires that the tunable interface of the power supply support the function of digital communication multiplexing, i.e. the monolithic IO needs to support ADC digital-to-analog conversion and UART communication at the same time, which is also the current mainstream power supply calibration method. Therefore, the method also can limit the selection of the power supply to the singlechip, and the singlechip with the digital communication multiplexing function is not provided for the dimming interface, so that the current cannot be calibrated through the second scheme.
Disclosure of Invention
The invention provides a system and a method for calibrating constant-voltage dimmable LED power supply current, which effectively solve the technical problem that a common singlechip cannot automatically calibrate a dimmable power supply by using a 0-10V input interface in the prior art.
Wherein, the common singlechip is a singlechip without digital communication multiplexing function.
In order to achieve the above purpose, the invention adopts the following technical scheme:
the invention discloses a system for calibrating constant-voltage dimmable LED power supply current in a first aspect, which comprises a calibration tool, a measured power supply, an electronic load and an upper computer which are sequentially connected end to form a complete closed loop so as to automatically calibrate the constant-voltage dimmable LED power supply, wherein:
the upper computer is used for initiating a calibration instruction to the calibration tool;
the calibration tool is used for converting a digital instruction of the upper computer into an analog signal and outputting the analog signal to the tested power supply according to the frequency agreed with the tested power supply;
the tested power supply is used for converting the analog signal sequence received from the calibration tool into a digital signal, and executing corresponding operation according to the content of the digital signal;
the electronic load is used for receiving the output current of the tested power supply and sending the self current value to the upper computer for decision making.
Further, the upper computer is further configured to: setting a target current, and initiating a calibration instruction to a calibration tool according to the target current; or responding to the current reading of the electronic load, formulating an adjustment strategy of the calibration current according to the difference value of the target current and the current reading of the electronic load, and initiating a calibration instruction to a calibration tool according to the adjustment strategy; and collecting the current value of the electronic load according to a fixed period, and comparing the current value with a target current.
Wherein the adjustment strategy includes an adjustment direction and an adjustment step of the calibration current.
In the current calibration, the measured power supply refers to a circuit or equipment needing to perform current measurement, and the calibration tool refers to an instrument for simulating a current signal needed by the circuit or equipment. Typically, the current output of the power supply under test is presented in the form of an analog signal, and the calibration fixture may convert digital instructions into an analog signal for current calibration of the power supply under test.
In this case, the calibration fixture converts the digital instructions into analog signals that match the frequencies agreed upon by the power supply under test in order to perform accurate current measurement and calibration of the power supply under test. Thus, the current value output by the tested power supply is consistent with the expected value, and the correctness and the reliability of the circuit or the equipment are ensured.
Further, the tested power supply comprises a dimming interface of 0-10V and a direct-connection output interface, and the dimming interface is connected with the calibration tool and used for receiving analog signals; the direct-connection output interface is connected with the electronic load and used for outputting current.
Therefore, the upper computer is connected with the calibration tool and is used for receiving the instruction of the calibration tool, the dimming interface of 0-10V of the tested power supply is connected with the calibration tool and receives the analog signal from the calibration tool; the direct-connection output interface is connected with the electronic load and used for outputting current; the electronic load and the upper computer are used for receiving the current of the electronic load; therefore, the upper computer, the calibration tool, the tested power supply and the electronic load form a closed loop.
Compared with the basic flow of current calibration realized by combining a common singlechip with a calibration tool, the constant-voltage dimmable LED power supply current calibration system is controlled by an upper computer, and the upper computer can initiate a calibration instruction and set target current through a software interface, so that more flexible and convenient operation is realized. In a basic flow of current calibration realized by combining a common singlechip with a calibration tool, the output value of the calibration tool needs to be manually adjusted.
In this system an electronic load is used. The electronic load can receive the output current of the tested power supply and send the self current value to the upper computer, so that the real-time monitoring and feedback of the output current of the power supply are realized. In the basic flow of current calibration realized by combining a common singlechip with a calibration tool, the voltage value of an analog input port and the analog voltage output value of the calibration tool are required to be manually read, and the operation is complicated.
In this system, conversion of digital signals and analog signals is used. The tested power supply converts the analog signal sequence into a digital signal and executes corresponding operation, and the calibration program in the singlechip is required to calculate the actual value of the power supply current by reading the voltage value of the analog input port and the analog voltage output value of the calibration tool. In contrast, in the basic flow of current calibration realized by combining a common singlechip with a calibration tool, signals are analog signals, so that the method is simpler.
In general, constant voltage dimmable LED power supply current calibration systems have a higher degree of automation and real-time, but correspondingly require more hardware and software costs. The basic flow of current calibration is relatively simple by combining a common singlechip with a calibration tool, and the method is suitable for simple circuits and small-scale production.
Based on the current calibration system of the application, in a second aspect of the application, a method for calibrating the current of a constant-voltage dimmable LED power supply is disclosed, comprising the following steps:
s1, starting calibration; setting the target current on the upper computer, and initiating a calibration instruction to a calibration tool according to the target current;
s2, entering a calibration mode; after receiving the calibration instruction, the calibration tool converts the digital instruction received from the upper computer into an analog signal and outputs the analog signal to the tested power supply; the power supply to be tested converts an analog signal sequence received from the calibration tool into a digital signal, and enters a calibration mode after responding to the digital signal meeting the requirement of a preset sequence;
s3, determining a current adjustment strategy; the upper computer acquires a current value of the electronic load in a preset period, responds to a difference value between the target current and the current value of the electronic load, determines an adjustment strategy of a calibration current, and sends a calibration instruction of the adjustment strategy to the calibration tool;
s3, current adjustment; after the calibration tool receives a calibration instruction of the adjustment strategy, outputting a preset voltage sequence to a dimming interface of the tested power supply; and the tested power supply receives and analyzes a preset voltage sequence, correspondingly adjusts and outputs corresponding current, so that the electronic load is adjusted towards the target current.
In some embodiments, in step S2,
after receiving the calibration command, the calibration tool outputs a appointed voltage sequence of 0-10V to a dimming interface of the tested power supply at preset time intervals;
after responding to the appointed voltage meeting the preset voltage sequence requirement, entering a calibration mode; the preset voltage sequences are 9V, 5V, 2V, 7V and 10V specific voltage sequences. That is, the power supply collects 0-10V input power at a fixed frequency (100 ms 1 times). When the continuous 5 acquisition values are 9V 5V2V 7V 10V respectively, the sequence requirement is judged to be met
In the calibration mode, the tested power supply only receives the voltage sequence instruction and does not respond to the dimming signal.
In this embodiment, in step S2, the measured power supply converts the analog signal into the ADC digital signal in real time, and stores the ADC digital signal in the built-in 5 storage units through the shift algorithm. And 5 built-in memory units are compared in a fixed precision range to judge whether the sequence requirements of 9V, 5V, 2V, 7V and 10V are met.
Preferably, in step S2, the precision range of the memory cell fixation is + -0.2V.
Preferably, in step S2, the upper computer reads the current value of the electronic load in a fixed period 2S.
In some embodiments, step S4 further includes, based on the adjustment policy received by the calibration tool, analyzing a corresponding voltage sequence by an instruction, and outputting the voltage sequence to the tested power supply through a 0-10V output interface; the tested power supply receives and analyzes different voltage sequences, correspondingly adjusts and outputs different currents, and comprises 1) reducing 1% duty ratio; 2) A 0.1% duty cycle reduction; 3) Increasing the duty cycle by 1%; 4) The 0.1% duty cycle is increased.
In some embodiments, the method further comprises,
the process from step S3 to step S4 is circularly executed until the target current is equal to the read current, and a parameter saving process is started;
the parameter preservation flow comprises the following steps:
when the target current in the calibration flow is equal to the current value of the electronic load, starting to execute parameter storage, recording the duty ratio of the current PWM as the maximum current output value, and storing the current output value into a built-in flash;
or, exiting the calibration procedure, the power supply under test will be on the output mapped to the maximum PWM duty cycle value of 0 to recorded for the subsequent 0-10V input signal.
In the calibration procedure, the objective is to match the current value of the electronic load with the desired target current value. And when the matching is successful, the calibration flow enters a parameter preservation stage. In the parameter preservation phase, the duty cycle of the current PWM needs to be recorded for use in the subsequent current output control.
The reason for recording the current output value at which the duty ratio of the present PWM is maximum is that this can ensure that the electronic load can output the maximum current in the subsequent current output. Since the duty cycle of PWM has a direct relationship with the current output, recording the maximum PWM duty cycle ensures the maximum value of the current output. This can improve the accuracy and reliability of the electronic load.
In some embodiments, after the system in response to calibration enters the calibration mode, the power supply under test will start with a fixed PWM duty cycle in step S2.
In some embodiments, in step S3, the difference between the target current and the current value of the electronic load, a calibration current adjustment strategy is formulated, including:
1) If the target current is far greater than the current, transmitting an adjdec10 to the calibration fixture; 2) If the target current is greater than the current, transmitting an adjdec1 to the calibration fixture; 3) If the target current is far smaller than the current, transmitting an adjiec10 to the calibration fixture; 4) If the target current is smaller than the current, transmitting an adjinc1 to the calibration fixture; 5) And if the target current is equal to the current, starting a parameter preservation process.
Wherein the absolute value of the far greater or far less than the value of the finger is greater than 0.1A, and the absolute value of the greater or less than the value of the finger is between 0 and 0.1A.
As a preferred mode of the above scheme, in step S3, 1) when receiving the adjdec10 command, the calibration fixture outputs specific voltage sequences of 2V, 7V, 2V, 7V and 10V to the dimming interface of the tested power supply at intervals of 100ms respectively; 2) When an adjdec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 7V, 2V, 7V, 2V and 10V to the dimming interface 3) of the tested power supply at intervals of 100ms, and when an adjinc10 instruction is received, the calibration tool respectively outputs specific voltage sequences of 6V, 3V, 6V, 3V and 10V to the dimming interface of the tested power supply at intervals of 100 ms; 4) When an adjiec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 3V, 6V, 3V, 6V and 10V to the dimming interface of the tested power supply at intervals of 100 ms.
Because of the calibration system and the calibration method based on the system, the invention has the beneficial effects that:
1. on a common singlechip, the calibration of power supply current is realized through a path of 0-10V analog interface, and the problem of type selection of the singlechip is solved; the lower-cost singlechip can be introduced into the adjustable light power supply, so that the hardware material cost is reduced.
2. Through an automatic, the calibration process of the closed loop solves the problem of calibration errors possibly caused by personnel intervention; the automatic calibration scheme can save labor cost, time cost and avoid human error.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
FIG. 1 is a schematic block diagram of a system for constant voltage dimmable LED power supply current calibration provided in an embodiment of the present disclosure;
FIG. 2 is a flow chart illustrating a method for starting calibration in a constant voltage dimmable LED power supply current calibration provided in an embodiment of the present disclosure;
FIG. 3 illustrates a graph of a measured LED power PWM duty cycle change after entering a calibration mode provided by an embodiment of the present disclosure;
FIG. 4 is a flow chart illustrating current regulation in a method for current calibration of a constant voltage dimmable LED power supply provided in an embodiment of the present disclosure;
fig. 5 shows a flowchart of parameter preservation in a method for calibrating a constant voltage dimmable LED power supply current according to an embodiment of the present disclosure.
Detailed Description
The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
As shown in fig. 1, this embodiment provides a system for calibrating constant-voltage dimmable LED power supply current, which includes a calibration tool, a measured power supply, an electronic load and a PC host computer connected end to end in sequence, to form a complete closed loop, so as to automatically calibrate the constant-voltage dimmable LED power supply, wherein:
the PC upper computer is used for setting and adjusting target current and initiating a calibration instruction to the calibration tool; collecting current readings of an electronic load, and determining an adjustment direction and an adjustment step of a calibration current according to the difference between the current readings of the electronic load and a target current value; and after the current same as the preset current is collected, starting parameter storage.
The calibration tool is used for converting a digital instruction of the PC upper computer into an analog signal and outputting the analog signal to the tested power supply according to the frequency agreed with the tested power supply;
the tested power supply is used for converting the analog signal sequence received from the calibration tool into a digital signal and analyzing the digital signal; different operations are performed according to the content of the digital signal.
The electronic load is used as an output receiving end of the tested power supply in a constant voltage mode; and the self current value is sent to the PC upper computer through the serial port to make decisions.
Further, the tested power supply comprises a 0-10 dimming interface, and the dimming interface is connected with the calibration tool and is used for receiving analog signals; the analog interface is connected with the electronic load and used for outputting current.
The embodiment also provides a method for calibrating the constant-voltage dimmable LED power supply current, which comprises the following steps:
s1, starting calibration, as shown in FIG. 2; the PC upper computer sends an instruction adjstart 1 for starting calibration to the calibration tool through the UART interface;
s2, entering a calibration mode; after the calibration fixture receives the instruction, respectively outputting a appointed specific voltage sequence (such as 9V, 5V, 2V, 7V and 10V) of 0-10V to a dimming interface of the tested power supply at a certain time interval (such as 100 ms), wherein the voltage sequence and the acquisition frequency are the appointed sequence and the frequency between the tested power supply and the fixture;
the tested power supply converts the analog signal into an ADC digital signal in real time and stores the ADC digital signal into five built-in temporary storage units through a shift algorithm;
and comparing whether five temporary storage units built in the tested power supply meet the requirements of five specific voltage sequences (9V, 5V, 2V, 7V and 10V) within a fixed precision range (such as + -0.2V), and entering a calibration mode if the requirements are met. And in this mode, the tested power supply only receives the voltage sequence command, but does not respond to the dimming signal, and after entering the calibration mode, the tested power supply starts from a fixed PWM duty cycle, such as 85% (for improving the calibration efficiency, this value is an empirical value, and for most power supplies, a PWM output relatively close to the target current can be adjusted according to the actual situation), as shown in fig. 3.
S3, determining a current adjustment strategy, as shown in FIG. 4:
the upper computer reads the current value of the electronic load in a fixed period (2S);
the current value of the currently acquired electronic load is judged to be different from the target current, and a dimming direction and a dimming step are formulated;
1) If the target current is far greater than the current value of the electronic load (the absolute value of the difference is greater than 0.1A), transmitting an adjdec10 to the calibration fixture;
2) If the target current is greater than the current value of the electronic load (the absolute value of the difference is between 0 and 0.1A), transmitting an adjdec1 to the calibration fixture;
3) If the target current is far smaller than the current value of the electronic load (the absolute value of the difference value is larger than 0.1A), transmitting an adjiec10 to the calibration fixture;
4) If the target current is smaller than the current value of the electronic load (the absolute value of the difference value is between 0 and 0.1A), transmitting an adjinc1 to the calibration fixture;
5) And if the target current is equal to the current value of the electronic load, starting a parameter preservation process.
S4, current adjustment; after the calibration tool receives a calibration instruction of the adjustment strategy, outputting a preset voltage sequence to an analog interface of the tested power supply; and the tested power supply receives and analyzes a preset voltage sequence, correspondingly adjusts and outputs corresponding current, so that the electronic load is adjusted towards the target current.
When the calibration tool receives the instructions under different strategies in the step S3, different voltage sequences are generated through instruction analysis, and the voltage sequences are output through a 0-10V output interface;
1) When an adjdec10 instruction is received, the calibration tool respectively outputs specific voltage sequences of 2V, 7V, 2V, 7V and 10V to a dimming interface of the LED power supply at intervals of 100 ms;
2) When an adjdec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 7V, 2V, 7V, 2V and 10V to a dimming interface of the LED power supply at intervals of 100 ms;
3) When an adjinc10 instruction is received, the calibration tool respectively outputs specific voltage sequences of 6V, 3V, 6V, 3V and 10V to a dimming interface of the LED power supply at intervals of 100 ms;
4) When an adjiec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 3V, 6V, 3V, 6V and 10V to the dimming interface of the LED power supply at intervals of 100 ms.
S41, the tested power supply receives and analyzes different voltage sequences, and correspondingly adjusts and outputs different currents; comprising the following steps:
1) Reducing the duty cycle by 1%;
2) A 0.1% duty cycle reduction;
3) Increasing the duty cycle by 1%;
4) The 0.1% duty cycle is increased.
S42, when the tested power supply outputs different currents, the corresponding electronic load is adjusted towards the target current;
s43, repeatedly executing the processes from the step S21 to the step S25 until the target current is equal to the read current, and starting a parameter preservation flow.
In this embodiment, the parameter preservation flow is as shown in fig. 5.
When the target current in the calibration flow is equal to the current value of the electronic load, starting to execute parameter storage;
the PC upper computer sends an instruction (adjstart 1) for starting calibration to the calibration tool through the UART interface;
after the calibration tool receives the instruction, respectively outputting a 5V 9V 7V 2V 10V specific voltage sequence to a dimming interface of the LED power supply at intervals of 100 ms;
the dimming power supply converts analog signals into ADC digital signals in real time and stores the ADC digital signals into five built-in temporary storage units through a shifting algorithm;
the built-in five temporary storage units are compared in a fixed precision range (such as + -0.2V) to determine whether the sequence requirement of 5V 9V 7V 2V 10V is met. The duty cycle of the present PWM (e.g., 89.3%) is recorded as the maximum current output value if the demand is met. Storing the flash in a built-in flash;
the calibration procedure is exited and the power supply will be on the output mapped to the maximum PWM duty cycle value recorded from 0 for the subsequent 0-10V input signal.
According to the invention, on a common singlechip, the power supply current calibration is realized through one path of 0-10V analog interface, and the problem of the type selection of the singlechip is solved; the lower-cost singlechip can be introduced into the adjustable light power supply, so that the hardware material cost is reduced. Through an automatic, the calibration process of the closed loop solves the problem of calibration errors possibly caused by personnel intervention; the automatic calibration scheme can save labor cost, time cost and avoid human error.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. The utility model provides a constant voltage adjustable LED power supply current calibration's system which characterized in that: including calibration frock, measured power, electronic load and the host computer that head and tail connect gradually, form a complete closed loop to carry out automatic calibration to constant voltage adjustable LED power, wherein:
the upper computer is used for initiating a calibration instruction to the calibration tool;
the calibration tool is used for converting the digital instruction of the upper computer into an analog signal and outputting the analog signal to the tested power supply according to the frequency agreed with the tested power supply;
the tested power supply is used for converting the analog signal sequence received from the calibration tool into a digital signal, and executing corresponding operation according to the content of the digital signal;
the electronic load is used for receiving the output current of the tested power supply and sending the self current value to the upper computer for responding to the decision.
2. The system for constant voltage dimmable LED power supply current calibration of claim 1, wherein: the upper computer is also used for:
setting a target current, and initiating a calibration instruction to a calibration tool according to the target current; or responding to the current reading of the electronic load, formulating an adjustment strategy of the calibration current according to the difference value of the target current and the current reading of the electronic load, and initiating a calibration instruction to a calibration tool according to the adjustment strategy;
wherein the adjustment strategy includes an adjustment direction and an adjustment step of the calibration current.
3. The system for constant voltage dimmable LED power supply current calibration of claim 1, wherein: the tested power supply comprises a 0-10V dimming interface and a direct-connection output interface, and the dimming interface is connected with the calibration tool and used for receiving analog signals; the direct-connection output interface is connected with the electronic load and used for outputting current.
4. The method for calibrating the constant voltage dimmable LED power supply current according to claim 1, wherein: the method comprises the following steps:
s1, starting calibration; setting the target current on the upper computer, and initiating a calibration instruction to a calibration tool according to the target current;
s2, entering a calibration mode; after receiving the calibration instruction, the calibration tool converts the digital instruction received from the upper computer into an analog signal and outputs the analog signal to the tested power supply; the power supply to be tested converts an analog signal sequence received from the calibration tool into a digital signal, and enters a calibration mode after responding to the digital signal meeting the requirement of a preset sequence;
s3, determining a current adjustment strategy; the upper computer acquires a current value of the electronic load in a preset period, responds to a difference value between the target current and the current value of the electronic load, determines an adjustment strategy of a calibration current, and sends a calibration instruction of the adjustment strategy to the calibration tool;
s4, current adjustment; after the calibration tool receives a calibration instruction of the adjustment strategy, outputting a preset voltage sequence to a dimming interface of the tested power supply; and the tested power supply receives and analyzes a preset voltage sequence, correspondingly adjusts and outputs corresponding current, so that the electronic load is adjusted towards the target current.
5. The method for calibrating the constant voltage dimmable LED power supply current according to claim 4, wherein: the step S2 also includes the step of,
after receiving the calibration command, the calibration tool outputs a appointed voltage sequence of 0-10V to a dimming interface of the tested power supply at preset time intervals;
after responding to the appointed voltage meeting the preset voltage sequence requirement, entering a calibration mode; the preset voltage sequences are 9V, 5V, 2V, 7V and 10V specific voltage sequences.
6. The method for calibrating the constant voltage dimmable LED power supply current according to claim 4, wherein: step S4 also comprises the steps of analyzing a corresponding voltage sequence through an instruction based on the adjustment strategy received by the calibration tool, and outputting the voltage sequence to the tested power supply through a 0-10V output interface; the tested power supply receives and analyzes different voltage sequences, correspondingly adjusts and outputs different currents, and comprises 1) reducing 1% duty ratio; 2) A 0.1% duty cycle reduction; 3) Increasing the duty cycle by 1%; 4) The 0.1% duty cycle is increased.
7. The method for calibrating the constant voltage dimmable LED power supply current according to claim 4, wherein: the method may further comprise the steps of,
the process from step S3 to step S4 is circularly executed until the target current is equal to the current of the electronic load, and a parameter saving process is started;
the parameter preservation flow comprises the following steps:
when the target current in the calibration flow is equal to the current value of the electronic load, starting to execute parameter preservation, and recording the duty ratio of the current PWM as the maximum current output value;
and exiting the calibration process, wherein the tested power supply is mapped to the output of the maximum PWM duty cycle value from 0 to the recorded for the subsequent 0-10V input signal.
8. A method of constant voltage dimmable LED power supply current calibration according to any of claims 4-5, wherein: in step S2, after the calibrated system enters the calibration mode, the power supply under test will start from a fixed PWM duty cycle.
9. The method for calibrating the constant voltage dimmable LED power supply current according to claim 4, wherein: in step S3, the step of determining an adjustment strategy for the calibration current according to the difference between the target current and the current value of the electronic load includes:
1) If the target current is far greater than the current value of the electronic load, transmitting an adjdec10 to a calibration fixture; 2) If the target current is larger than the current value of the electronic load, transmitting an adjdec1 to a calibration tool; 3) If the target current is far smaller than the current value of the electronic load, transmitting an adjiec10 to a calibration tool; 4) If the target current is smaller than the current value of the electronic load, transmitting an adjinc1 to a calibration tool; 5) If the target current is equal to the current value of the electronic load, starting a parameter preservation process; wherein the absolute value of the far greater or far less than the value of the finger is greater than 0.1A, and the absolute value of the greater or less than the value of the finger is between 0 and 0.1A.
10. The method for calibrating the power supply current of the constant-voltage dimmable LED according to claim 9, wherein: in step S3, the method includes:
1) When an adjdec10 instruction is received, the calibration tool respectively outputs specific voltage sequences of 2V, 7V, 2V, 7V and 10V to a dimming interface of a tested power supply at intervals of 100 ms; 2) When an adjdec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 7V, 2V, 7V, 2V and 10V to a dimming interface of a tested power supply at intervals of 100 ms; 3) When an adjinc10 instruction is received, the calibration tool respectively outputs specific voltage sequences of 6V, 3V, 6V, 3V and 10V to a dimming interface of a tested power supply at intervals of 100 ms; 4) When an adjiec1 instruction is received, the calibration tool respectively outputs specific voltage sequences of 3V, 6V, 3V, 6V and 10V to the dimming interface of the tested power supply at intervals of 100 ms.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310176348.5A CN116133188A (en) | 2023-02-28 | 2023-02-28 | Constant-voltage dimmable LED power supply current calibration system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310176348.5A CN116133188A (en) | 2023-02-28 | 2023-02-28 | Constant-voltage dimmable LED power supply current calibration system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116133188A true CN116133188A (en) | 2023-05-16 |
Family
ID=86311767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310176348.5A Pending CN116133188A (en) | 2023-02-28 | 2023-02-28 | Constant-voltage dimmable LED power supply current calibration system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116133188A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118467347A (en) * | 2024-04-28 | 2024-08-09 | 武汉芯必达微电子有限公司 | A power chip automatic testing method and testing system |
-
2023
- 2023-02-28 CN CN202310176348.5A patent/CN116133188A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118467347A (en) * | 2024-04-28 | 2024-08-09 | 武汉芯必达微电子有限公司 | A power chip automatic testing method and testing system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107347222B (en) | Dimming driving circuit and control method thereof | |
CN116133188A (en) | Constant-voltage dimmable LED power supply current calibration system and method | |
CN111289928B (en) | Hall device testing system and testing method | |
US10945324B2 (en) | External assessment device for a lighting system and method of assessing a lighting system | |
CN103606812B (en) | A kind of laser optical power self-adaptation control method based on MCU | |
CN109004830A (en) | A kind of efficiency optimization power control method based on genetic algorithm | |
CN112147484B (en) | Test system based on charging chip and charging test system | |
CN203563244U (en) | Lighting equipment | |
CN117348496B (en) | Digital loop control system for source meter | |
CN112698178A (en) | Crystal oscillator testing device and system | |
CN213715424U (en) | LED lamp strip detection circuit | |
CN108964464A (en) | The circuit and its method of Switching Power Supply outlet side non-destructive testing load current | |
CN104540293A (en) | Switching power driving chip, burning adjustment method and LED constant-current driving circuit | |
CN103491675A (en) | Single PWM multi-group driving and power consumption accurate measurement method | |
CN220123105U (en) | Constant current driving circuit and lamp | |
CN102209411B (en) | High-precision current control method and system applicable to light emitting diode (LED) driver | |
CN215576337U (en) | Multi-range variable-gain current source | |
CN214473739U (en) | Crystal oscillator testing device and system | |
CN115243427A (en) | Control method and device of lighting equipment, lighting equipment and equipment control system | |
CN115912908A (en) | BUCK circuit capable of accurately adjusting current and adjusting method thereof | |
CN209072343U (en) | A kind of wide-range voltage and High-current output power-supply system | |
CN204119037U (en) | A kind of multichannel voltage continuously adjustabe power module and continuously adjustabe power-supply system | |
CN211019357U (en) | Constant current output regulating circuit | |
CN217766678U (en) | High-low temperature test system of touch unit | |
CN212586717U (en) | A drive device based on KNX bus and energy measurement function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |