Lamp closed-loop control method and system, control device and storage medium
Through the closed-loop control method of lamps, the real-time voltage at both ends of lamps is obtained and the power output voltage is adjusted using the pre-stored characteristic curves, which solves the problem of inaccurate dimming in traditional control methods and realizes accurate control of lamp voltage and brightness.
Patent Information
- Application Number
- CN202510542118.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-27
- Publication Date
- 2025-07-01
AI Technical Summary
In the prior art, the inaccurate dimming is caused by the inaccurate dimming. The traditional open-loop control method fails to consider the influence of other factors in the long-distance power supply line, resulting in dynamic differences in the actual voltage at both ends of the lamp and the voltage at the power output end of the power supply, and the dimming accuracy is low and the control is unstable.
The closed-loop control method of lamps is adopted to obtain the real-time voltage at both ends of lamps, use the pre-stored characteristic curve to obtain the target voltage, and adjust the output voltage of the power supply until the real-time voltage at both ends of lamps reaches the target voltage, so as to achieve accurate control.
The accuracy of voltage and brightness of the lamp at both ends is achieved, which eliminates other factors between the power supply and the lamp, and ensures the accuracy of the lamp power and uniform brightness.
Smart Images

Figure CN120239152A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of lighting control, and specifically provides a closed-loop control method, system, control device and storage medium for lamps and lanterns. Background Art
[0002] With the development of global urbanization, the demand for road lighting has increased sharply. The development of smart cities has promoted the transformation of street lamps from "single lighting" to "multi-functional Internet of Things nodes", which need to support functions such as remote control, brightness adaptive adjustment, and fault monitoring, and put forward higher requirements for dimming accuracy and reliability.
[0003] Traditional street lamp dimming control adopts open-loop control, which only adjusts the output voltage / current of the power supply by sending dimming instructions, but does not consider the influence of other factors in the long-distance power supply line. There is a dynamic difference between the actual voltage at both ends of the lamp and the voltage at the power supply output end, and the volt-ampere characteristic of the lamp is a non-linear relationship, which ultimately leads to low dimming accuracy and unstable control.
[0004] Correspondingly, there is a need in the art for a new solution of a closed-loop control method, system, control device and storage medium for lamps and lanterns to solve the above problems. Summary of the Invention
[0005] In order to overcome the above defects, the present application is proposed to provide a closed-loop control method, system, control device and storage medium for lamps and lanterns that solve or at least partially solve the technical problem that the voltage at both ends of the lamp cannot be accurately controlled in the prior art, resulting in inaccurate dimming.
[0006] In a first aspect, the present application provides a closed-loop control method for lamps and lanterns, the method comprising: obtaining the real-time voltage at both ends of the lamp; in response to the received dimming instruction, obtaining the target voltage corresponding to the dimming instruction based on a pre-stored characteristic curve, wherein the characteristic curve can characterize the relationship between the brightness and voltage of the lamp; adjusting the output voltage of the power supply until the real-time voltage at both ends of the lamp reaches the target voltage.
[0007] In a technical solution of the above closed-loop control method for lamps and lanterns, the obtaining the real-time voltage at both ends of the lamp comprises: taking the positive electrode end of the lamp as one sampling point, and taking the negative electrode end of the lamp as another sampling point; collecting the voltage between the two sampling points and wirelessly transmitting the collected voltage data.
[0008] In a technical solution of the above lamp closed-loop control method, the obtaining of the real-time voltage across the lamp includes: taking the positive terminal of the lamp as one sampling point and the negative terminal of the power supply as the other sampling point, or taking the negative terminal of the lamp as one sampling point and the positive terminal of the power supply as the other sampling point; collecting the voltage between the two sampling points in the same group; and on the basis of the collected voltage, subtracting the pre-stored line voltage drop to obtain the real-time voltage across the lamp.
[0009] In a technical solution of the above lamp closed-loop control method, the number of the lamps is several and they are connected in parallel with each other. The lamp closest to the power supply is denoted as the nearest lamp, and the lamp farthest from the power supply is denoted as the farthest lamp. One electrode of the power supply is connected to the nearest lamp, and the other electrode of the power supply is connected to the farthest lamp. Among all the lamps, taking the nearest lamp as the sampling object, collecting the voltage across the nearest lamp to obtain the real-time voltage: taking the positive electrode of the power supply as one sampling point and the negative electrode of the nearest lamp as the other sampling point, and leading them to the sampling circuit of the preset controller through wires; or taking the negative electrode of the power supply as one sampling point and the positive electrode of the nearest lamp as the other sampling point, and leading them to the sampling circuit of the preset controller through wires.
[0010] In a technical solution of the above lamp closed-loop control method, the number of the power supplies is several and they are connected in parallel with each other. The method further includes: obtaining the loop voltage output by the parallel connection of the power supplies; for any one of the power supplies, judging whether the difference between the output voltage of the power supply and the loop voltage meets a preset first condition. If not, adjusting the output voltage of the power supply; or obtaining the loop current output by the parallel connection of the power supplies; for any one of the power supplies, judging whether the difference between the output current of the power supply and the loop current meets a preset second condition. If not, adjusting the output current of the power supply to adjust the output voltage of the power supply.
[0011] In a technical solution of the above lamp closed-loop control method, the adjusting of the output voltage of the power supply includes: in response to a voltage regulation instruction containing the adjusted output voltage value, adjusting the output voltage of the power supply by adjusting the output current of the power supply, or obtaining a pulse width value based on a pre-stored pulse width relationship curve, generating a pulse width modulation parameter based on the pulse width value, and using the pulse width modulation parameter to adjust the output voltage of the power supply, where the pulse width relationship curve can represent the relationship between the voltage and the pulse width of the power supply; or in response to a voltage regulation instruction containing a pulse width modulation parameter, directly using the pulse width modulation parameter in the voltage regulation instruction to adjust the output voltage of the power supply.
[0012] In one technical solution of the above lamp closed-loop control method, the method further includes: determining whether the real-time voltage reaches a preset rated value; if so, recording the real-time voltage as the upper limit voltage of the target voltage, and recording the output voltage at the same time as the real-time voltage as the upper limit voltage of the power supply.
[0013] In a second aspect, the present application provides a lamp closed-loop control system, the system includes: a communication module configured to obtain the real-time voltage across the lamp; a processing module configured to, in response to a received dimming instruction, obtain a target voltage corresponding to the dimming instruction based on a pre-stored characteristic curve, where the characteristic curve can characterize the relationship between the brightness of the lamp and the voltage; an execution module configured to adjust the output voltage of the power supply until the real-time voltage across the lamp reaches the target voltage.
[0014] In a third aspect, a control device is provided, the control device includes a processor and a storage device, the storage device is adapted to store a plurality of program codes, and the program codes are adapted to be loaded and run by the processor to execute the lamp closed-loop control method described in any one of the technical solutions of the above lamp closed-loop control method.
[0015] In a fourth aspect, a computer-readable storage medium is provided, which stores a plurality of program codes, and the program codes are adapted to be loaded and run by a processor to execute the lamp closed-loop control method described in any one of the technical solutions of the above lamp closed-loop control method.
[0016] One or more of the above technical solutions of the present application have at least one of the following beneficial effects:
[0017] In implementing the technical solution of the present application, a target voltage corresponding to a dimming instruction is obtained through a pre-stored characteristic curve, and then the output voltage of the power supply is adjusted until the real-time voltage across the lamp reaches the target voltage. The present application can effectively eliminate the influence of other factors between the power supply and the lamp, use the obtained real-time voltage across the lamp as a reference, use the target voltage as the final value, use the power supply output voltage as the direct adjustment object, and indirectly adjust the real-time voltage until it reaches the target voltage, ensuring the accuracy of the voltage across the lamp, that is, the accuracy of the lamp power, so as to achieve precise dimming to the expected brightness.
[0018] Further, in an embodiment of the present application, the positive and negative terminals of the lamp are used as sampling points respectively, and the collected voltage data is transmitted in a wireless manner, which can obtain the most accurate real-time voltage while reducing the data calculation amount.
[0019] Further, in an embodiment of the present application, the positive terminal of the lamp and the negative terminal of the power supply are used as sampling points, or the negative terminal of the lamp and the positive terminal of the power supply are used as sampling points. After collecting the voltage between the two points, the pre-calculated and stored line voltage drop is subtracted to finally obtain the real-time voltage across the lamp. Through this embodiment, adverse factors such as external signal interference and high cost in the wireless transmission of voltage data can be avoided. Moreover, in actual engineering construction, the extra space in the multi-core cable can be utilized for wiring to achieve electrical connection between the sampling points without increasing additional cost.
[0020] Further, in an embodiment of the present application, one end of the power supply is connected to the nearest lamp, and the other end of the power supply is connected to the farthest lamp. Through this connection method, the same voltage distribution can be obtained for all parallel-connected lamps, avoiding the problem that the voltages of each lamp are different due to factors such as line loss although the lamps are connected in parallel, ensuring that the voltage across any lamp is the same, that is, ensuring that the brightness of all lamps is the same.
[0021] Further, in an embodiment of the present application, it is determined whether the difference between the output voltage of a single power supply and the loop voltage satisfies a preset first condition, or whether the difference between the output current of a single power supply and the loop current satisfies a preset second condition, so as to determine whether a single power supply works in balance with other power supplies. Through the present application, the output voltage or current of each power supply can be dynamically adjusted to ensure that each power supply works in balance, avoid overloading of a single power supply, and extend the service life of the power supply.
[0022] Further, in an embodiment of the present application, a voltage regulation instruction containing pulse width modulation parameters is directly received to adjust the output voltage of the power supply, or first, a voltage regulation instruction containing the adjusted output voltage value is received, then the pulse width value is obtained by using the pre-stored pulse width relationship curve, and finally, it is converted into pulse width modulation parameters to adjust the output voltage of the power supply. Through the present application, the control problem of non-linear characteristics can be solved to achieve high-precision control.
[0023] Further, by setting the upper limit voltage for the lamp and the upper limit voltage for the power supply, the normal operating voltage of the electrical components can be guaranteed, and the service life is extended. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Referring to the accompanying drawings, the disclosure of the present application will become more understandable. It is easy for those skilled in the art to understand that these drawings are only for illustrative purposes and are not intended to limit the protection scope of the present application. In addition, similar numbers in the figures are used to represent similar components, where:
[0025] Figure 1 is a schematic flowchart of the main steps of a lamp closed-loop control method according to an embodiment of the present application;
[0026] Figure 2 It is a schematic diagram of the main steps of the balanced control power supply of the closed-loop control method for a lighting fixture according to an embodiment of the present application;
[0027] Figure 3 It is a schematic diagram of the main structural block diagram of the closed-loop control system for a lighting fixture according to an embodiment of the present application;
[0028] Figure 4 It is a circuit schematic diagram of the closed-loop control system for a lighting fixture according to an exemplary embodiment of the present application;
[0029] Figure 5 It is a circuit schematic diagram of the closed-loop control system for a lighting fixture according to an exemplary embodiment of the present application;
[0030] Figure 6 It is a circuit schematic diagram of the closed-loop control system for a lighting fixture according to an exemplary embodiment of the present application;
[0031] Figure 7 It is a circuit schematic diagram of the closed-loop control system for a lighting fixture according to an exemplary embodiment of the present application.
[0032] List of reference numerals:
[0033] 11: Communication module; 12: Processing module; 13: Execution module. Detailed implementation manners
[0034] The following describes some implementation manners of the present application with reference to the accompanying drawings. Those skilled in the art should understand that these implementation manners are only used to explain the technical principle of the present application and are not intended to limit the protection scope of the present application.
[0035] In the description of the present application, a "module" and a "processor" may include hardware, software, or a combination of both. A module may include a hardware circuit, various suitable sensors, communication ports, a memory, and may also include a software part, such as program code, or may be a combination of software and hardware. A processor may be a central processing unit, a microprocessor, an image processor, a digital signal processor, or any other suitable processor. The processor has data and / or signal processing functions. The processor may be implemented in software, in hardware, or in a combination of both. A non-transitory computer-readable storage medium includes any suitable medium for storing program code, such as a magnetic disk, a hard disk, an optical disk, a flash memory, a read-only memory, a random access memory, and so on. The term "A and / or B" represents all possible combinations of A and B, such as only A, only B, or A and B. The term "at least one A or B" or "at least one of A and B" has a meaning similar to "A and / or B" and may include only A, only B, or A and B. The singular terms "a" and "the" may also include the plural form.
[0036] Currently, the traditional lamp control method is only based on the output voltage of the power supply. Assuming that when the dimming instruction is 80%, the operating voltage of the lamp is 80V, in the traditional solution, the output voltage of the power supply is directly adjusted to 80V. However, in actual scenarios such as street lamps or indoor lighting, due to the long power supply line, there will be a certain amount of power loss in the line connecting the power supply and the lamp. Therefore, the output voltage of the power supply is not equal to the actual operating voltage of the lamp. Moreover, since the volt-ampere characteristic curve of the lamp itself is a non-linear relationship, when the dimming instruction is 50%, its operating voltage does not decrease proportionally to 50V. If the output voltage of the power supply is adjusted proportionally according to the traditional solution, the operating voltage of the lamp will deviate further from the target voltage.
[0037] Refer to the attached Figure 1 , Figure 1 is a schematic diagram of the main steps of the lamp closed-loop control method according to an embodiment of the present application. As Figure 1 shown, the lamp closed-loop control method in the embodiment of the present application mainly includes the following steps S1-step S3.
[0038] Step S1: Obtain the real-time voltage across the lamp;
[0039] Step S2: In response to the received dimming instruction, obtain the target voltage corresponding to the dimming instruction based on the pre-stored characteristic curve;
[0040] Step S3: Adjust the output voltage of the power supply until the real-time voltage across the lamp reaches the target voltage.
[0041] In this embodiment, the method for obtaining the real-time voltage across the lamp may include, but is not limited to, using the direct voltage measurement method, the voltage division circuit method, the voltage transformer, etc. The dimming instruction may be an instruction manually input containing the lamp brightness value information, or it may also be an instruction automatically generated by a smart device according to the ambient light or time and containing the lamp brightness value information. Since the volt-ampere characteristic curve of the lamp is non-linear and the brightness value of the lamp corresponds to its power, it is possible to perform tests and experiments in advance for each or each type of lamp to obtain a curve that can at least reflect the correspondence between the brightness of the lamp and the voltage across its two ends. After obtaining the target voltage of the lamp corresponding to the dimming instruction, if the real-time voltage of the lamp is less than the target voltage, increase the output voltage of the power supply until the real-time voltage of the lamp is equal to the target voltage; if the real-time voltage of the lamp is greater than the target voltage, decrease the output voltage of the power supply until the real-time voltage of the lamp is equal to the target voltage.
[0042] In one implementation manner of this embodiment, obtaining the real-time voltage of the lamp, i.e., step S1, may specifically include: taking the positive terminal of the lamp as one sampling point, and taking the negative terminal of the lamp as the other sampling point; collecting the voltage between the two sampling points and transmitting the collected voltage data wirelessly. For example, in Figure 4 and Figure 5 (the only difference between the two is the reverse connection of the power supply output polarity), the voltage sampling points are the electrodes at both ends of the lamp, and the voltage on the electrodes at both ends of the lamp is directly collected, so that the real real-time voltage can be collected by eliminating all external factors. Transmitting the voltage data wirelessly can reduce the wiring cost.
[0043] In another implementation manner of this embodiment, obtaining the real-time voltage of the lamp, i.e., step S1, may specifically include: taking the positive terminal of the lamp as one sampling point and the negative terminal of the power supply as the other sampling point, or taking the negative terminal of the lamp as one sampling point and the positive terminal of the power supply as the other sampling point; collecting the voltage between the two sampling points in the same group; on the basis of the collected voltage, subtracting the pre-stored line voltage drop to obtain the real-time voltage across the lamp. In this implementation manner, referring to Figure 6 and Figure 7 (the only difference between the two is the reverse connection of the power supply output polarity), connect the positive terminal of the power supply and the negative terminal of the lamp (refer to Figure 6 ), or connect the negative terminal of the power supply and the positive terminal of the lamp (refer to Figure 7), thereby measuring the voltage between two sampling points. In this embodiment, the pre-stored line voltage drop at least includes the voltage drop caused by the resistance of the power supply line itself. In other embodiments, the pre-stored line voltage drop may additionally include the voltage drop caused by other components on the power supply line. After subtracting the pre-stored line voltage drop from the collected voltage, the obtained result is the voltage across the lamp. In an actual construction scenario, compared with the above-mentioned embodiment, this embodiment does not require additional cost for a communication line or a wireless module. Only the redundant space (one of the vacant cores in a multi-core cable) in a multi-core cable (such as a common three-core or four-core cable on the market) is used to introduce an additional cable to connect two sampling points to collect the voltage.
[0044] In an embodiment of this example, the number of lamps is several and they are connected in parallel. The lamp closest to the power supply is denoted as the nearest lamp, and the lamp farthest from the power supply is denoted as the farthest lamp; one electrode of the power supply is connected to the nearest lamp, and the other electrode of the power supply is connected to the farthest lamp; among all the lamps, the nearest lamp is taken as the sampling object, and the voltage across the nearest lamp is collected to obtain the real-time voltage. Taking the nearest lamp as the sampling object, in practical applications, the positive electrode of the power supply can be used as one sampling point and the negative electrode of the nearest lamp can be used as the other sampling point, or the negative electrode of the power supply can be used as one sampling point and the positive electrode of the nearest lamp can be used as the other sampling point. The redundant space in the multi-core cable during actual construction is used to set up an additional cable to lead the sampling point signal to the receiving end of the sampling circuit in the controller, thereby realizing the transmission of the sampling signal. In an actual traffic street lamp construction scenario, although the street lamps are connected in parallel, due to factors such as the resistance of the line itself, the voltages across each street lamp are still inconsistent. Especially when comparing the street lamp closest to the power supply with the street lamp farthest from the power supply, although they are connected in parallel, there is a large difference in brightness. In this embodiment, Figure 4 taking... as an example, the positive electrode of the power supply is connected to the nearest lamp (LP1) through line X11, and at the same time, the negative electrode of the power supply is connected to the farthest lamp (LPn) through line X21. In this way, the same voltage distribution can be obtained for all the parallel-connected lamps, avoiding the problem that the voltages of each lamp are different due to factors such as line loss although the lamps are connected in parallel, ensuring that the voltage across any lamp is the same, that is, ensuring that the brightness of all lamps is the same.
[0045] The street lamps are connected in parallel with each other, and the street lamp closest to the power supply is selected as the sampling object to save cable cost.
[0046] Please refer to the appendix Figure 2 , Figure 2It is a schematic diagram of the main steps of the balanced control power supply for the lamp closed-loop control method according to an embodiment of the present application. In this embodiment, the number of power supplies is several and they are connected in parallel. As Figure 2 shown, the lamp closed-loop control method of the present application may further include steps S4 - S6:
[0047] Step S4: Obtain the loop voltage (or current) output by the parallel connection of the power supplies;
[0048] Step S5: For any power supply, determine whether the difference between the output voltage (or current) of the power supply and the loop voltage (or current) meets a preset first condition (or preset second condition);
[0049] Step S6: If not, adjust the output voltage (or current) of the power supply.
[0050] In this embodiment, the number of power supplies is more than one and they are connected in parallel, so as to ensure the load capacity requirements, redundancy and reliability requirements, and the requirement of sharing the current pressure in practical applications. However, if the output voltages or currents of the power supplies are inconsistent, circulating current may occur, resulting in efficiency loss or even power supply damage. In one implementation, a sub-controller is used to achieve the balanced operation of the power supplies: the sub-controller reads the voltage value of the DC output power supply output in parallel in this loop through 485 or CAN or other communication methods, calculates the deviation between this voltage value and the voltage of a certain power supply. If the deviation exceeds a certain proportional deviation, such as 0.5%, the sub-controller issues a voltage adjustment and correction instruction to this power supply to make its output voltage enter the 0.5% deviation range; or, the sub-controller reads the current value of the DC output power supply output in parallel in this loop through 485 or CAN or other communication methods, calculates the power supply current according to the current ratio under the rated power ratio of the power supply. If the deviation between the current value in the loop and the current of a certain power supply exceeds a certain proportional deviation, such as 5%, the sub-controller issues a voltage adjustment and correction instruction to this power supply to make its output current enter the 5% deviation range.
[0051] In an implementation manner of the above embodiment, adjusting the output voltage of the power supply specifically includes: in response to a voltage regulation instruction including the adjusted output voltage value, adjusting the output current of the power supply to adjust the output voltage of the power supply, or obtaining a pulse width value based on a pre-stored pulse width relationship curve, generating pulse width modulation parameters based on the pulse width value, and using the pulse width modulation parameters to adjust the output voltage of the power supply, where the pulse width relationship curve can characterize the relationship between the voltage and the pulse width of the power supply; or, in response to a voltage regulation instruction including pulse width modulation parameters, directly using the pulse width modulation parameters in the voltage regulation instruction to adjust the output voltage of the power supply. In this implementation manner, the voltage regulation instruction can be a signal including pulse width modulation parameters that can directly act on the power supply control chip, or a signal including the adjusted expected output voltage value that needs to be further converted. If the voltage regulation instruction includes pulse width modulation parameters that can directly act on the power supply control chip, the power supply output is directly controlled based on the pulse width adjustment parameters; if the voltage regulation instruction only includes the adjusted expected output voltage value, the pulse width adjustment parameters need to be obtained using the pre-stored power supply pulse width curve, and then the power supply output is controlled based on the pulse width modulation parameters, so that the control problem of non-linear characteristics can be solved to achieve high-precision control.
[0052] In the above implementation manner, it can be real-time monitoring of the power supply deviation, or monitoring at a certain time interval, or monitoring is performed each time after dimming. If the deviation does not meet the preset conditions, the sub-controller is controlled to perform balancing control, and relevant information of the power supply such as the output voltage and label is uploaded or an alarm message is generated, so as to be able to save the relevant information and timely remind the technical personnel.
[0053] In an implementation manner, the lamp closed-loop control method of the present application may further include: determining whether the real-time voltage reaches a preset rated value; if so, recording the real-time voltage as the upper limit voltage of the target voltage, and recording the output voltage at the same time as the real-time voltage as the upper limit voltage of the power supply. In this implementation manner, if it is found that the real-time voltage at both ends of the lamp has reached its rated voltage, or the real-time voltage is greater than its rated voltage, the value is lowered until it is equal to the rated voltage. The real-time voltage at this time is recorded as the upper limit voltage of the lamp, and the power supply output voltage at this time is recorded as the upper limit voltage of the power supply. The upper limit voltage value is stored and does not lose power, so that the normal operating voltage of the electrical components can be guaranteed and the service life is extended.
[0054] So far, the lamp closed-loop control method of the present application has been described. It should be noted that although the above steps are described in a specific order in the above embodiments, those skilled in the art can understand that in order to achieve the effects of the present application, different steps do not necessarily have to be executed in such an order, and they can be executed simultaneously (in parallel) or in other orders, and these changes are all within the protection scope of the present application.
[0055] Furthermore, the present application also provides a closed-loop control system for a lamp.
[0056] Referring to the appendix Figure 3 , Figure 3 is the main structural block diagram of the closed-loop control system for a lamp according to an embodiment of the present application. As Figure 3 shown, the closed-loop control system for a lamp in the embodiment of the present application mainly includes a communication module 11, a processing module 12, and an execution module 13. In some embodiments, one or more of the communication module 11, the processing module 12, and the execution module 13 may be combined into one module. In some embodiments, the communication module 11 may be configured to obtain the real-time voltage across the lamp. The processing module 12 may be configured to, in response to the received dimming instruction, obtain a target voltage corresponding to the dimming instruction based on a pre-stored characteristic curve, where the characteristic curve can characterize the relationship between the brightness and the voltage of the lamp. The execution module 13 may be configured to adjust the output voltage of the power supply until the real-time voltage across the lamp reaches the target voltage. In one embodiment, the specific implementation of the function of the communication module 11 can be seen in step S1. In one embodiment, the specific implementation of the function of the processing module 12 can be seen in step S2. In one embodiment, the specific implementation of the function of the execution module 13 can be seen in step S3. In one embodiment, the number of power supplies is several and they are connected in parallel, and the communication module 11 may also be configured to obtain the loop voltage (or current) output by the parallel connection of the power supplies. The processing module 12 may also be configured to, for any one of the power supplies, determine whether the difference between the output voltage (or current) of the power supply and the loop voltage (or current) satisfies a preset first condition (or preset second condition). The execution module 13 may also be configured to, if the preset first condition (or preset second condition) is not satisfied, adjust the output voltage of the power supply. In one embodiment, the processing module 12 may also be configured to determine whether the real-time voltage reaches a preset rated value. The execution module 13 may also be configured to, if the real-time voltage reaches the preset rated value, record the real-time voltage as the upper limit voltage of the target voltage, and record the output voltage at the same time as the real-time voltage as the upper limit voltage of the power supply.
[0057] The above-mentioned closed-loop control system for a lamp is used to execute Figure 1 the embodiment of the closed-loop control method for a lamp shown. The technical principles, the technical problems solved, and the technical effects produced by both are similar. Those skilled in the art of the present technology can clearly understand that, for the convenience and brevity of description, the specific working process and related descriptions of the closed-loop control system for a lamp can refer to the content described in the embodiment of the closed-loop control method for a lamp, which will not be elaborated here.
[0058] Those skilled in the art can understand that all or part of the processes in the methods of the above-described embodiments of the present application can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above-described method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable storage medium can include: any entity or device, medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory, random access memory, electrical carrier signal, telecommunication signal, and software distribution medium that can carry the computer program code, etc.
[0059] Furthermore, the present application also provides a control device. In an embodiment of the control device according to the present application, the control device includes a processor and a storage device. The storage device can be configured to store a program for executing the lamp closed-loop control method of the above-described method embodiment, and the processor can be configured to execute the program in the storage device. The program includes, but is not limited to, a program for executing the lamp closed-loop control method of the above-described method embodiment. For the sake of convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The control device can be a control device formed by various electronic devices.
[0060] Furthermore, the present application also provides a computer-readable storage medium. In an embodiment of the computer-readable storage medium according to the present application, the computer-readable storage medium can be configured to store a program for executing the lamp closed-loop control method of the above-described method embodiment. The program can be loaded and run by a processor to implement the above-described lamp closed-loop control method. For the sake of convenience of description, only the parts related to the embodiments of the present application are shown. For the specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiments of the present application is a non-transitory computer-readable storage medium.
[0061] Furthermore, it should be understood that since the setting of each module is only to illustrate the functional units of the device of the present application, the corresponding physical devices of these modules can be the processor itself, or a part of the software in the processor, a part of the hardware, or a part of the combination of software and hardware. Therefore, the number of each module in the figure is only illustrative.
[0062] Those skilled in the art can understand that the various modules in the device can be adaptively split or combined. Such splitting or combining of specific modules will not cause the technical solution to deviate from the principle of the present application. Therefore, the technical solutions after splitting or combining will all fall within the protection scope of the present application.
[0063] So far, the technical solutions of the present application have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, those skilled in the art can easily understand that the protection scope of the present application is obviously not limited to these specific embodiments. Without departing from the principle of the present application, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will all fall within the protection scope of the present application.
Claims
1. A closed-loop control method for a lighting fixture, characterized in that, The method includes: Obtaining the real-time voltage across the lamp; In response to the received dimming instruction, obtaining a target voltage corresponding to the dimming instruction based on a pre-stored characteristic curve, where the characteristic curve can characterize the relationship between the brightness and voltage of the lamp; Adjusting the output voltage of the power supply until the real-time voltage across the lamp reaches the target voltage.
2. The closed-loop control method for a lighting fixture according to claim 1, wherein The obtaining the real-time voltage across the lamp includes: Taking the positive terminal of the lamp as one sampling point and the negative terminal of the lamp as another sampling point; Collecting the voltage between the two sampling points and transmitting the collected voltage data in a wired or wireless manner.
3. The closed-loop control method for a lighting fixture according to claim 1, wherein The obtaining the real-time voltage across the lamp includes: Taking the positive terminal of the lamp as one sampling point and the negative terminal of the power supply as another sampling point, or taking the negative terminal of the lamp as one sampling point and the positive terminal of the power supply as another sampling point; Collecting the voltage between the two sampling points in the same group; Based on the collected voltage, subtracting the pre-stored line voltage drop to obtain the real-time voltage across the lamp.
4. The lamp closed-loop control method according to any one of claims 3, wherein The number of the lamps is several and they are connected in parallel. The lamp closest to the power supply is denoted as the nearest lamp, and the lamp farthest from the power supply is denoted as the farthest lamp. One electrode of the power supply is connected to the nearest lamp, and the other electrode of the power supply is connected to the farthest lamp; Among all the lamps, taking the nearest lamp as the sampling object and collecting the voltage across the nearest lamp to obtain the real-time voltage: Taking the positive electrode of the power supply as one sampling point and the negative electrode of the nearest lamp as another sampling point, and leading them to the sampling circuit of the preset controller through wires; or taking the negative electrode of the power supply as one sampling point and the positive electrode of the nearest lamp as another sampling point, and leading them to the sampling circuit of the preset controller through wires.
5. The closed-loop control method for a lighting fixture according to claim 4, wherein The number of the power supplies is several and they are connected in parallel. The method further includes: Obtaining the loop voltage output by the parallel connection of the power supplies; For any one of the power supplies, determining whether the difference between the output voltage of the power supply and the loop voltage meets a preset first condition. If not, adjusting the output voltage of the power supply; Or, Obtaining the loop current output by the parallel connection of the power supplies; For any one of the power supplies, determining whether the difference between the output current of the power supply and the loop current meets a preset second condition. If not, adjusting the output current of the power supply to adjust the output voltage of the power supply.
6. The lighting closed-loop control method according to claim 5, characterized in that, The adjusting the output voltage of the power supply includes: In response to the received voltage regulation instruction including the adjusted output voltage value, adjusting the output voltage of the power supply by adjusting the output current of the power supply, or obtaining a pulse width value based on a pre-stored pulse width relationship curve, generating pulse width modulation parameters based on the pulse width value, and using the pulse width modulation parameters to adjust the output voltage of the power supply, where the pulse width relationship curve can characterize the relationship between the voltage and pulse width of the power supply; Alternatively, in response to a voltage regulation instruction containing pulse width modulation parameters received, directly adjust the output voltage of the power supply by using the pulse width modulation parameters in the voltage regulation instruction.
7. The closed-loop control method of the lamp according to claim 1, characterized in that, The method further includes: judging whether the real-time voltage reaches a preset rated value; if so, record the real-time voltage as the upper limit voltage of the target voltage, and record the output voltage at the same time as the real-time voltage as the upper limit voltage of the power supply.
8. A closed-loop control system for a lighting fixture, characterized in that, The system includes: a communication module configured to obtain the real-time voltage across the lamp; a processing module configured to obtain a target voltage corresponding to the dimming instruction based on a pre-stored characteristic curve in response to the received dimming instruction, wherein the characteristic curve can characterize the relationship between the brightness of the lamp and the voltage; an execution module configured to adjust the output voltage of the power supply until the real-time voltage across the lamp reaches the target voltage.
9. A control device, comprising a processor and a storage device, the storage device being adapted to store a plurality of program codes, characterized in that, The program code is suitable for being loaded and run by the processor to execute the lamp closed-loop control method according to any one of claims 1 to 7.
10. A computer-readable storage medium storing multiple program codes, characterized in that, The program code is suitable for being loaded and run by the processor to execute the lamp closed-loop control method according to any one of claims 1 to 7.