Control method and device of lighting device, lighting device and device control system
By acquiring the desired current and temperature values to generate a target control signal, the problem of low accuracy in dimming control of lighting equipment is solved, enabling precise adjustment of brightness values and improving the accuracy of dimming control.
Patent Information
- Application Number
- CN202210782607.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The dimming control accuracy of existing lighting equipment is low, and the actual brightness value does not match the expected brightness value due to environmental factors.
The desired current value in the dimming command and the current temperature value collected by the temperature sensor are obtained to generate a target control signal. Based on this signal, the lighting equipment is driven and controlled. Taking into account the influence of temperature on brightness, brightness adjustment is achieved through pulse width modulation signal or voltage signal.
It improves the accuracy of dimming control of lighting equipment, ensuring that the actual brightness value matches the desired brightness value, thus achieving closed-loop control.
Smart Images

Figure CN115243427B_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of equipment control technology, and in particular relates to a control method, device, lighting equipment and equipment control system for lighting equipment. Background Technology
[0002] With the continuous development of lighting technology, many existing lighting devices have dimming functions (i.e., brightness adjustment functions), which allows users to control the light emitted by the lighting devices to different brightness levels according to their actual needs.
[0003] Traditional lighting equipment dimming is achieved by adjusting the current flowing through the light-emitting module. However, in practical applications, due to environmental factors, the actual brightness of the lighting equipment often does not match the desired brightness after dimming control, thus reducing the accuracy of dimming control. Summary of the Invention
[0004] In view of this, embodiments of this application provide a control method, apparatus, lighting equipment, and equipment control system for lighting equipment, in order to solve the technical problem of low dimming control accuracy of existing lighting equipment.
[0005] In a first aspect, embodiments of this application provide a method for controlling a lighting device, including:
[0006] Obtain a dimming command; the dimming command carries the desired current value flowing through the light-emitting module of the lighting device;
[0007] Obtain the first temperature value of the lighting device as collected by the temperature sensor;
[0008] A target control signal is generated based on the desired current value and the first temperature value; the duty cycle or voltage value of the target control signal is matched with the desired current value and the first temperature value.
[0009] The lighting equipment is driven and controlled based on the target control signal.
[0010] In an optional implementation of the first aspect, after driving the lighting device based on the target control signal, the method further includes:
[0011] Obtain the actual current value flowing through the light-emitting module;
[0012] If the absolute value of the difference between the actual current value and the expected current value is not within the preset error range, the steps of obtaining the first temperature value, generating the target control signal, and driving the lighting device based on the target control signal are executed repeatedly until the absolute value is within the preset error range.
[0013] In one optional implementation of the first aspect, the target control signal is a pulse width modulation signal, the duty cycle of which is matched with the desired current value and the first temperature value; generating the target control signal based on the desired current value and the first temperature value includes:
[0014] Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device;
[0015] Based on the preset correspondence between each preset temperature value, each preset current ratio, and the duty cycle of the pulse width modulation signal, a target duty cycle corresponding to the first temperature value and the ratio is determined.
[0016] Generate a pulse width modulation signal with a duty cycle equal to the target duty cycle.
[0017] In one optional implementation of the first aspect, the target control signal is a voltage signal, the voltage value of which matches the desired current value and the first temperature value; generating the target control signal based on the desired current value and the first temperature value includes:
[0018] The desired voltage value of the light-emitting module of the lighting device is determined based on the desired current value;
[0019] Based on the preset correspondence between various preset temperature values, various preset voltage values, and voltage values of voltage signals, a target voltage value corresponding to the desired voltage value and the first temperature value is determined.
[0020] A voltage signal with a voltage value equal to the target voltage value is generated.
[0021] In one optional implementation of the first aspect, determining the desired voltage value of the light-emitting module of the lighting device based on the desired current value includes:
[0022] Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device;
[0023] The product of the ratio and the rated voltage of the light-emitting module is determined as the desired voltage value.
[0024] In one optional implementation of the first aspect, obtaining the dimming command includes:
[0025] The dimming command is received from the gateway via a power line carrier communication line.
[0026] In one alternative implementation of the first aspect, the dimming command is sent by the master control device to the gateway via a serial interface.
[0027] Secondly, embodiments of this application provide a control device for a lighting equipment, comprising:
[0028] The first communication unit is used to acquire a dimming command; the dimming command carries the desired current value of the light-emitting module flowing through the lighting device.
[0029] The first acquisition unit is used to acquire the current first temperature value of the lighting device collected by the temperature sensor;
[0030] A signal generation unit is configured to generate a target control signal based on the desired current value and the first temperature value; the duty cycle or voltage value of the target control signal is matched with the desired current value and the first temperature value.
[0031] A drive control unit is used to drive and control the lighting device based on the target control signal.
[0032] Thirdly, embodiments of this application provide another control device for a lighting device, including a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the control method for the lighting device as described in the first aspect or any optional embodiment of the first aspect.
[0033] Fourthly, embodiments of this application provide a lighting device, including a control device and a temperature sensor connected to the control device; the control device is used to perform the control method as described in the first aspect or any optional method of the first aspect.
[0034] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the control method for a lighting device as described in the first aspect or any alternative method of the first aspect.
[0035] In a sixth aspect, embodiments of this application provide a computer program product that, when run on a lighting device, causes the lighting device to perform the lighting device control method as described in the first aspect or any optional method of the first aspect.
[0036] In a seventh aspect, embodiments of this application provide a device control system, including a main control device, at least one gateway, and at least one lighting device as described in the fourth aspect above; each gateway is connected to at least one lighting device, and all gateways are connected to the main control device.
[0037] Implementing the control method, apparatus, lighting equipment, equipment control system, computer storage medium, and computer program product for a lighting device provided in this application has the following beneficial effects:
[0038] The lighting device control method provided in this application, when controlling the lighting device for dimming based on an acquired dimming command, also acquires the current first temperature value of the lighting device collected by a temperature sensor, and generates a target control signal based on the expected current value flowing through the light-emitting module of the lighting device carried in the dimming command and the first temperature value, and drives the lighting device for control based on the target control signal. Since the target control signal is generated based on the expected current value and the first temperature value, the dimming control of the lighting device based on the dimming command considers not only the expected current value but also the influence of the current first temperature value of the lighting device on the brightness of the lighting device; and since the duty cycle or voltage value of the target control signal matches the expected current value and the first temperature value, the actual brightness value of the lighting device can remain consistent with the expected brightness value after driving the lighting device based on the target control signal, thereby improving the accuracy of the lighting device dimming control. Attached Figure Description
[0039] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 This application provides a schematic diagram of the structure of a device control system according to an embodiment of the present application.
[0041] Figure 2 This is a schematic diagram of the structure of a lighting device provided in an embodiment of this application;
[0042] Figure 3 A schematic flowchart illustrating a control method for a lighting device provided in an embodiment of this application;
[0043] Figure 4 This is a flowchart illustrating a specific implementation of step S33 in a lighting device control method provided in an embodiment of this application.
[0044] Figure 5 Another specific implementation flowchart of S33 in a lighting device control method provided in an embodiment of this application;
[0045] Figure 6 A schematic flowchart illustrating a method for controlling a lighting device according to another embodiment of this application;
[0046] Figure 7 This is a schematic diagram of the structure of a control device for a lighting equipment provided in an embodiment of this application;
[0047] Figure 8 This is a schematic diagram of the structure of a control device for a lighting equipment provided in another embodiment of this application. Detailed Implementation
[0048] It should be noted that the terminology used in the implementation section of the embodiments of this application is only used to explain the specific embodiments of this application, and is not intended to limit this application.
[0049] In the description of the embodiments of this application, "and / or" is merely a descriptive term for the relationship between related items, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Furthermore, unless otherwise stated, the term "multiple" means two or more, and "at least one" or "one or more" means one, two, or more than two. The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. The terms "comprising," "including," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0050] This application first provides a device control system. Please refer to... Figure 1 , Figure 1 This is a schematic diagram of a device control system provided in an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown. Figure 1 As shown, the device control system may include at least one lighting device 11, at least one gateway 12, and a main control device 13. Each gateway 12 is connected to at least one lighting device 11, and all gateways 12 are connected to the main control device 13.
[0051] In practical applications, both the lighting device 11 and the gateway 12 can be devices with power line communication (PLC) functionality. Based on this, the lighting device 11 and the gateway 12 can be connected by a PLC cable, and the lighting device 11 and the gateway 12 can exchange data using the PLC method.
[0052] The gateway 12 and the main control device 13 can be connected by wired or wireless means.
[0053] For example, the wired connection methods described above may include, but are not limited to, wired connections based on serial communication interfaces (e.g., RS232 or RS458 interfaces) or universal serial buses (USB). The wireless connection methods described above may include, but are not limited to, wireless connections based on technologies such as Wireless Fidelity (WIFI), ZigBee, radio frequency (RF), or mobile communication. Among these, mobile communication technologies may include 5G or 4G.
[0054] In specific applications, the main control device 13 may include, but is not limited to, terminal devices such as mobile phones, tablets, laptops, or desktop computers.
[0055] The main control device 13 is used to control the lighting device 11. For example, the main control device 13 can control the dimming of the lighting device 11, thereby adjusting the brightness of the lighting device 11. Specifically, the main control device 13 can send a dimming command for the lighting device 11 to the gateway 12. After receiving the dimming command from the main control device 13, the gateway 12 can send the dimming command to the corresponding lighting device 11 via the PLC line. After receiving the dimming command, the lighting device 11 can drive and control its light-emitting module based on the dimming command, thereby achieving dimming of the light-emitting module.
[0056] It should be noted that the specific process of the lighting device 11 driving and controlling its light-emitting module based on the dimming command can be referred to the relevant description in the subsequent method embodiments, and will not be repeated here.
[0057] Based on the equipment control system provided in the above embodiments, this application further provides embodiments of lighting equipment within the above equipment control system. Please refer to... Figure 2 , Figure 2 This is a schematic diagram of a lighting device provided in an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown. Figure 2As shown, the lighting device 11 may include: a control device 111, a drive module 112, a light-emitting module 113, a temperature sensor 114, a power metering module 115, and an analog-to-digital converter 116. The drive module 112, the power metering module 115, and the analog-to-digital converter 116 are all connected to the main control device 111, the light-emitting module 113 is connected to the drive module 112, and the temperature sensor 114 is connected to the analog-to-digital converter 116.
[0058] Specifically, the temperature sensor 114 can be used to acquire an analog temperature signal that reflects the temperature value of the lighting device 11 and send the analog temperature signal to the analog-to-digital converter 116.
[0059] The power metering module 115 can be used to collect the current value flowing through the light-emitting module 113, the voltage value across the light-emitting module 113, or the power value of the light-emitting module 113, and send the current value flowing through the light-emitting module 113, the voltage value across the light-emitting module 113, or the power value of the light-emitting module 113 to the control device 116.
[0060] The analog-to-digital conversion module 116 can be used to perform analog-to-digital conversion on the received analog temperature signal to obtain the temperature value corresponding to the analog temperature signal, and send the temperature value to the control device 111.
[0061] The control device 111 can generate a target control signal based on the temperature value of the lighting device 11 fed back by the analog-to-digital conversion module 116 and / or the current value flowing through the light-emitting module 113 fed back by the power metering module 115, and send the target control signal to the drive module 112 so that the drive module 112 can drive and control the light-emitting module 113 based on the target control signal to achieve brightness adjustment of the light-emitting module 113.
[0062] It should be noted that the control device 111 can specifically use the steps in the subsequent method embodiments to adjust the brightness of the light-emitting module 113. The specific brightness adjustment process will not be described in detail here.
[0063] In another embodiment of this application, the control device 111 may also send the temperature value of the lighting device 11, the current value flowing through the light-emitting module 113, the voltage value across the light-emitting module 113 and / or the power value of the light-emitting module 113 to the gateway 12, so that the gateway 12 sends the above parameter values to the main control device 13, so as to realize the function of remotely monitoring the lighting device 11 through the main control device 13.
[0064] In specific applications, the control device 111 may include a PLC control chip with PLC functionality.
[0065] Based on the equipment control system provided in the above embodiments, this application also provides a control method for a lighting device applied to the equipment control system. The executing entity of this lighting device control method can be... Figure 1 or Figure 2 Lighting equipment 11. Please refer to [link / reference]. Figure 3 , Figure 3 A schematic flowchart illustrating a control method for a lighting device provided in an embodiment of this application, as shown below. Figure 3 As shown, the control method for this lighting device may include S31 to S34, which are detailed below:
[0066] S31: Obtain dimming command.
[0067] When dimming control (i.e. brightness adjustment) is required for a specific lighting device 11 in the equipment control system, the user can issue a dimming command to that lighting device 11 through the main control device 13. Specifically, the main control device 13 can generate a dimming command for the target lighting device 11 to be dimmed based on the user's instruction. The target lighting device 11 can be any lighting device 11 in the equipment control system.
[0068] The dimming command includes the address information of the target lighting device 11, the address information of the target gateway 12 connected to the target lighting device 11, and the expected current value of the light-emitting module 113 flowing through the lighting device 11.
[0069] The address information may include, but is not limited to, the media access control address (MAC) or the internet protocol address (IP).
[0070] The desired current value refers to the current value that the user expects to flow through the light-emitting module 113 of the target lighting device 11. It is understood that since the brightness of the lighting device 11 varies depending on the current value flowing through the light-emitting module 113, the desired current value can be determined based on the user's desired brightness of the target lighting device 11. It should be noted that since determining the current value flowing through the lighting device 11 based on its brightness is existing technology, it will not be discussed further here.
[0071] After the main control device 13 generates a dimming command for the target lighting device 11, it can send the dimming command to the target gateway 12 based on the address information of the target gateway 12 connected to the target lighting device 11, so that the target gateway 12 forwards the dimming command to the target lighting device 11.
[0072] Specifically, after receiving the dimming command, the target gateway 12 can send the dimming command to the target lighting device 11 based on the address information of the target lighting device 11 carried in the dimming command.
[0073] In this embodiment of the application, after receiving a dimming command, the lighting device 11 can parse the desired current value from the dimming command.
[0074] In one embodiment of this application, since the gateway 12 and the lighting device 11 are connected via a power line carrier communication line, the gateway 12 can send a dimming command to the target lighting device 11 via the power line carrier communication line. Based on this, S31 may specifically include:
[0075] The dimming command is received from the gateway via a power line carrier communication line.
[0076] In this embodiment, since the gateway 12 sends dimming commands to the lighting device 11 through the power line carrier communication line, it can avoid problems such as data corruption, data packet loss or data delay caused by electromagnetic interference, thereby improving the accuracy of the control of the lighting device 12.
[0077] S32: Obtain the first temperature value of the lighting device collected by the temperature sensor.
[0078] In this embodiment, when the lighting device 11 receives a dimming command sent by the gateway 12, it can obtain the current first temperature value of the lighting device 11 collected by its internal temperature sensor 114. Here, "current" can refer to the moment when the lighting device 11 receives the dimming command sent by the gateway 12.
[0079] Specifically, the lighting device 11 can acquire the analog temperature signal collected by its internal temperature sensor 114, which reflects the current first temperature value of the lighting device 11, and then convert the analog temperature signal into the current first temperature value of the lighting device 11 through its internal analog-to-digital converter 116.
[0080] S33: Generate the target control signal based on the desired current value and the first temperature value.
[0081] In this embodiment, after the lighting device 11 parses the desired current value from the dimming command and obtains the current first temperature value of the lighting device 11, it can generate a target control signal for driving the light-emitting module 113 to emit light based on the desired current value and the first temperature value. The target control signal can be a pulse width modulation (PWM) signal or a voltage signal.
[0082] In one embodiment of this application, when the target control signal is a PWM signal used to drive the light-emitting module 113 to emit light, the duty cycle of the PWM signal is matched with the desired current value and the first temperature value. Matching the duty cycle of the PWM signal with the desired current value and the first temperature value means that, when the temperature of the lighting device 11 is the first temperature value, theoretically, after driving the lighting device 11 based on the PWM signal, the current flowing through the light-emitting module 113 of the lighting device 11 can be made to be the desired current value.
[0083] Based on this, S33 can be used as follows Figure 4 The implementations of S331 to S333 shown are described in detail below:
[0084] S331: Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting equipment.
[0085] S332: Based on the preset correspondence between each preset temperature value, each preset current ratio and the duty cycle of the pulse width modulation signal, determine the target duty cycle corresponding to the first temperature value and ratio.
[0086] S333: Generates a pulse width modulation signal with a duty cycle of the target duty cycle.
[0087] In this embodiment, the rated current value is the maximum current value allowed to flow through the light-emitting module 113 when it is working normally. The desired current value is less than or equal to the rated current value of the light-emitting module 113; therefore, the ratio of the desired current value to the light-emitting module 113 is less than or equal to 1.
[0088] Because the actual current flowing through the light-emitting film 113 is affected by the temperature of the lighting device 11 during practical applications, the temperature of the lighting device 11 needs to be considered when generating the PWM signal to drive the light-emitting module 113. Based on this, researchers can set multiple preset temperature values and multiple preset current ratios. Through testing, they can determine the duty cycle of the PWM signal driving the light-emitting module 113 at each preset temperature value, using the ratio of the actual current flowing through the light-emitting module 113 to the rated current value. This allows them to obtain the correspondence between each preset temperature value, each preset current ratio, and the duty cycle of the PWM signal. The lighting device 11 can then store this correspondence in its local storage space.
[0089] It should be noted that the aforementioned preset current ratio refers to the ratio of the preset current value flowing through the light-emitting module 113 to the rated current value of the light-emitting module 113.
[0090] As an example and not a limitation, the duty cycle of the PWM signal can be 0% or 10% to 100%, thereby realizing multi-level dimming function for the lighting device 11. For example, the correspondence between various preset temperature values, various preset current percentages and the duty cycle of the PWM signal can be shown in Table 1.
[0091] Table 1
[0092]
[0093]
[0094] Based on this, the lighting device 11 can obtain the preset correspondence between each preset temperature value, each preset current ratio and the duty cycle of the pulse width modulation signal from its local storage space, and determine the target duty cycle corresponding to the first temperature value and the ratio based on the first temperature value, the ratio and the preset correspondence, and generate a PWM signal with the target duty cycle.
[0095] For example, the lighting device 11 may also include a PWM signal generating device (not shown), which can generate a PWM signal with a target duty cycle.
[0096] In another embodiment of this application, when the target control signal is a voltage signal used to drive the light-emitting module 113 to emit light, the voltage value of the voltage signal matches the desired current value and the first temperature value. Matching the voltage value of the voltage signal with the desired current value and the first temperature value means that, when the temperature of the lighting device 11 is the first temperature value, theoretically, after driving the lighting device 11 based on the voltage signal, the current flowing through the light-emitting module 113 of the lighting device 11 can be made to be the desired current value.
[0097] Based on this, S33 can be used as follows Figure 5 The implementations of S334 to S336 shown are described in detail below:
[0098] S334: Determine the desired voltage value of the light-emitting module of the lighting device based on the desired current value.
[0099] S335: Based on the preset correspondence between each preset temperature value, each preset voltage value, and the voltage value of the voltage signal, determine the target voltage value corresponding to the desired voltage value and the first temperature value.
[0100] S336: Generates a voltage signal with a voltage value equal to the target voltage value.
[0101] In this embodiment, the desired voltage value refers to the voltage value across the light-emitting module 113 as desired by the user.
[0102] Since the ratio of the voltage across the light-emitting module 113 to the current flowing through it is typically equal to the resistance of the light-emitting module 113 (i.e., the voltage across the light-emitting module 113 is positively correlated with the current flowing through it), in one possible implementation, the lighting device 113 can first determine the ratio of the desired current value to the rated current value of the light-emitting module 113, and then multiply this ratio by the rated voltage value of the light-emitting module 113 to determine the desired voltage value of the light-emitting module. Here, the rated voltage value of the light-emitting module 113 refers to the maximum voltage value allowed to be applied across the light-emitting module 113.
[0103] In practical applications, the actual current flowing through the light-emitting film 113 is affected by the temperature of the lighting device 11, meaning the actual voltage across the light-emitting module 113 is also affected by the temperature of the lighting device 11. Therefore, when generating the voltage signal to drive the light-emitting module 113, the temperature of the lighting device 11 needs to be considered. Based on this, researchers can set multiple preset temperature values and multiple preset voltage values, and through experiments, test the voltage value of the voltage signal used to drive the light-emitting module 113 at each preset temperature value, thus obtaining the correspondence between each preset temperature value, each preset voltage value, and the voltage value of the voltage signal. The lighting device 11 can then store this correspondence in its local storage space.
[0104] As an example rather than a limitation, the correspondence between the preset temperature values, the preset voltage values, and the voltage values of the voltage signals can be shown in Table 2.
[0105] Table 2
[0106]
[0107] Based on this, the lighting device 11 can obtain the preset correspondence between each preset temperature value, each preset voltage value, and the voltage value of the voltage signal from its local storage space, and based on the first temperature value, the desired voltage value, and the preset correspondence, determine the target voltage value of the voltage signal corresponding to the first temperature value and the desired voltage value, and generate a voltage signal with the voltage value of the target voltage value.
[0108] In one possible implementation, the lighting device 11 generates a voltage signal with a voltage value of the target voltage value by controlling the drive module 112 to output a voltage signal with a voltage value of the target voltage value.
[0109] S34: Drive and control the lighting equipment based on the target control signal.
[0110] In this embodiment of the application, after the lighting device 11 generates a target control signal, it can control the internal drive module 112 to drive the light-emitting module 113 of the lighting device 11 using the target control signal, thereby realizing the drive control of the lighting device 11.
[0111] As can be seen from the above, the lighting device control method provided in this application, when controlling the lighting device based on the acquired dimming command, also acquires the current first temperature value of the lighting device collected by the temperature sensor, and generates a target control signal based on the expected current value flowing through the light-emitting module of the lighting device carried in the dimming command and the first temperature value, and drives the lighting device based on the target control signal. Since the target control signal is generated based on the expected current value and the first temperature value, that is, when controlling the lighting device based on the dimming command, not only the expected current value but also the influence of the current first temperature value of the lighting device on the brightness of the lighting device is considered; and since the duty cycle or voltage value of the target control signal matches the expected current value and the first temperature value, the actual brightness value of the lighting device can remain consistent with the expected brightness value after driving the lighting device based on the target control signal, thereby improving the accuracy of the lighting device dimming control.
[0112] Please see Figure 6 , Figure 6 This is a schematic flowchart illustrating a control method for a lighting device according to another embodiment of this application. Figure 6 As shown, this embodiment is similar to Figures 3 to 5 The difference between the corresponding embodiments is that, after S34, this embodiment may also include S35 to S36, as detailed below:
[0113] S35: Obtain the actual current value flowing through the light-emitting module.
[0114] In this embodiment, the lighting device 11 can obtain the actual current value flowing through the light-emitting module 113 collected by its internal power metering module 115.
[0115] S36: Determine whether the absolute value of the difference between the actual current value and the expected current value is within the preset error range.
[0116] In this embodiment, after the lighting device 11 obtains the actual current value flowing through the light-emitting module 113, it calculates the difference between the actual current value and the expected current value, and determines whether the absolute value of the difference between the actual current value and the expected current value is within a preset error range. The preset error range can be determined based on the actual required control precision of the lighting device 11, and is not specifically limited here.
[0117] In one possible implementation of this embodiment, when the absolute value of the difference between the actual current value and the expected current value is not within the preset error range, the lighting device 11 can return to executing S32 to S35 until the absolute value of the difference between the actual current value and the expected current value is within the preset error range.
[0118] As can be seen from the above, the lighting control method provided in this embodiment, after driving the lighting device based on the target control signal, also obtains the actual current value flowing through the light-emitting module. If the absolute value of the difference between the actual current value and the expected current value is not within the preset error range, the steps of obtaining the first temperature value, generating the target control signal, and driving the lighting device based on the target control signal are repeatedly executed until the absolute value of the difference between the actual current value and the expected current value is within the preset error range. Thus, when the actual brightness value of the lighting device does not match the expected brightness value, the dimming control of the lighting device can continue until the actual brightness value of the lighting device matches the expected brightness value, realizing closed-loop control of the brightness value of the lighting device and further improving the accuracy of the dimming control of the lighting device.
[0119] Based on the lighting device control method provided in the above embodiments, this invention further provides embodiments of a lighting device control apparatus that implements the above method embodiments. Please refer to... Figure 7 , Figure 7 This is a schematic diagram of a control device for a lighting equipment provided in an embodiment of this application. For ease of explanation, only the parts relevant to this embodiment are shown. Figure 7 As shown, the control device 70 for the lighting equipment may include: a first communication unit 71, a first acquisition unit 72, a signal generation unit 73, and a drive control unit 74.
[0120] The first communication unit 71 is used to acquire a dimming command; the dimming command carries the desired current value of the light-emitting module flowing through the lighting device.
[0121] The first acquisition unit 72 is used to acquire the current first temperature value of the lighting device collected by the temperature sensor.
[0122] The signal generation unit 73 is used to generate a target control signal based on the desired current value and the first temperature value; the duty cycle or voltage value of the target control signal is matched with the desired current value and the first temperature value.
[0123] The drive control unit 74 is used to drive and control the lighting device based on the target control signal.
[0124] Optionally, the control device 70 for the lighting equipment may also include a second acquisition unit and an execution unit.
[0125] The second acquisition unit is used to acquire the actual current value flowing through the light-emitting module.
[0126] The execution unit is configured to repeatedly execute the steps of acquiring the first temperature value, generating the target control signal, and driving the lighting device based on the target control signal if the absolute value of the difference between the actual current value and the expected current value is not within the preset error range, until the absolute value is within the preset error range.
[0127] Optionally, the target control signal is a pulse width modulation (PWM) signal, and the duty cycle of the PWM signal matches the desired current value and the first temperature value; the signal generation unit 73 specifically includes: a first determining unit, a second determining unit, and a PWM signal generation unit. Wherein:
[0128] The first determining unit is used to determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device.
[0129] The second determining unit is used to determine the target duty cycle corresponding to the first temperature value and the ratio based on the preset correspondence between each preset temperature value, each preset current ratio and the duty cycle of the pulse width modulation signal.
[0130] The PWM signal generation unit is used to generate a pulse width modulation signal with a duty cycle of the target duty cycle.
[0131] Optionally, the target control signal is a voltage signal, and the voltage value of the voltage signal matches the desired current value and the first temperature value; the signal generation unit 73 specifically includes: a third determining unit, a fourth determining unit, and a voltage signal generation unit. Wherein:
[0132] The third determining unit is used to determine the expected voltage value of the light-emitting module of the lighting device based on the expected current value.
[0133] The fourth determining unit is used to determine the target voltage value corresponding to the desired voltage value and the first temperature value based on the preset correspondence between each preset temperature value, each preset voltage value and the voltage value of the voltage signal.
[0134] The voltage signal generation unit is used to generate a voltage signal with a voltage value of the target voltage value.
[0135] Optionally, the third determining unit is specifically used for:
[0136] Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device;
[0137] The product of the ratio and the rated voltage of the light-emitting module is determined as the desired voltage value.
[0138] Optionally, the first communication unit 71 is specifically used for:
[0139] The dimming command is received from the gateway via a power line carrier communication line.
[0140] Optionally, the dimming command is sent by the master control device to the gateway via a serial interface.
[0141] It should be noted that the information interaction and execution process between the above-mentioned units are based on the same concept as the method embodiments of this application. Their specific functions and technical effects can be referred to the method embodiments section, and will not be repeated here.
[0142] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units is merely an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the lighting equipment's control device or main control device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. Furthermore, the specific names of the functional units are only for easy differentiation and are not intended to limit the scope of protection of this application. The specific working process of the units in the above system can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0143] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a control device for a lighting equipment according to another embodiment of this application. Figure 8 As shown, the control device 8 for the lighting equipment provided in this embodiment may include: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a program corresponding to a lighting equipment control method. When the processor 80 executes the computer program 82, it implements the steps in the above-described lighting equipment control method embodiment, for example... Figure 3 S31 to S34 are shown. Alternatively, when the processor 80 executes the computer program 82, it implements the functions of each module / unit in the above-described control device embodiment of the lighting equipment, for example... Figure 7 The functions of units 71 to 74 shown.
[0144] For example, the computer program 82 can be divided into one or more modules / units, one or more of which are stored in the memory 81 and executed by the processor 80 to complete this application. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program 82 in the control device 8 of the lighting equipment. For example, the computer program 82 can be divided into a first communication unit, a first acquisition unit, a signal generation unit, and a drive control unit; the specific functions of each unit are described in [reference needed]. Figure 7 The relevant descriptions in the corresponding embodiments are not repeated here.
[0145] Those skilled in the art will understand that Figure 8 This is merely an example of the control device 8 for a lighting device and does not constitute a limitation on the control device 8 for a lighting device. It may include more or fewer components than shown, or combine certain components, or use different components.
[0146] The processor 80 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), programmable logic controllers (PLCs), discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0147] The memory 81 can be an internal storage unit of the lighting equipment control device 8, such as a hard disk or RAM of the lighting equipment control device 8. The memory 81 can also be an external storage device of the lighting equipment control device 8, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, or flash card equipped on the lighting equipment control device 8. Furthermore, the memory 81 can include both internal and external storage units of the lighting equipment control device 8. The memory 81 is used to store computer programs and other programs and data required by the lighting equipment control device. The memory 81 can also be used to temporarily store data that has been output or will be output.
[0148] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0149] This application provides a computer program product that, when run on a computer device, enables the computer device to perform the steps described in the various method embodiments above.
[0150] 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, refer to the relevant descriptions of other embodiments.
[0151] 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.
[0152] 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 control method of a lighting device, characterized by, include: Receive dimming commands sent by the gateway; The dimming command is generated by the main control device based on the user's instruction and sent to the gateway; The dimming command carries the desired current value flowing through the light-emitting module of the lighting device; the desired current value is determined based on the brightness of the lighting device desired by the user. Obtain the first temperature value of the lighting device as collected by the temperature sensor; A target control signal is generated based on the desired current value and the first temperature value; the target control signal is a pulse width modulation signal or a voltage signal; the duty cycle of the pulse width modulation signal or the voltage value of the voltage signal is matched with the desired current value and the first temperature value. The lighting equipment is driven and controlled based on the target control signal; Obtain the actual current value flowing through the light-emitting module; If the absolute value of the difference between the actual current value and the expected current value is not within the preset error range, the steps of obtaining the first temperature value, generating the target control signal, and driving the lighting device based on the target control signal are executed repeatedly until the absolute value is within the preset error range. When the target control signal is a pulse width modulation signal, generating the target control signal based on the desired current value and the first temperature value includes: Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device; Based on the second preset correspondence between each preset temperature value, each preset current ratio and the duty cycle of the pulse width modulation signal, a target duty cycle corresponding to the first temperature value and the ratio is determined. Generate a pulse width modulation signal with a duty cycle equal to the target duty cycle; When the target control signal is the voltage signal, generating the target control signal based on the desired current value and the first temperature value includes: The desired voltage value of the light-emitting module of the lighting device is determined based on the desired current value; The system obtains a first preset correspondence between various preset temperature values, various preset voltage values, and voltage values of voltage signals from local storage space, and determines a target voltage value corresponding to the desired voltage value and the first temperature value based on the first preset correspondence. The first preset correspondence is obtained by experimentally testing the voltage value of the voltage signal used to drive the light-emitting module when the actual voltage value across the light-emitting module is the same as the preset voltage value. A voltage signal with a voltage value equal to the target voltage value is generated.
2. The control method of the lighting device according to claim 1, characterized by Determining the desired voltage value of the light-emitting module of the lighting device based on the desired current value includes: Determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device; The product of the ratio and the rated voltage of the light-emitting module is determined as the desired voltage value.
3. The control method of the lighting device according to claim 1, characterized by, Receive dimming commands sent by the gateway, including: The dimming command is received from the gateway via a power line carrier communication line.
4. The control method for the lighting device according to any one of claims 1 to 3, characterized in that, The dimming command is sent from the main control device to the gateway via a serial interface.
5. A control device for a lighting equipment, characterized in that, include: The first communication unit receives dimming commands sent by the gateway; The dimming command is generated by the main control device based on the user's instruction and sent to the target gateway; The dimming command carries the desired current value flowing through the light-emitting module of the lighting device; the desired current value is determined based on the brightness of the lighting device desired by the user. The first acquisition unit is used to acquire the current first temperature value of the lighting device collected by the temperature sensor; A signal generation unit is configured to generate a target control signal based on the desired current value and the first temperature value; the target control signal is a pulse width modulation signal or a voltage signal; the duty cycle of the pulse width modulation signal or the voltage value of the voltage signal is matched with the desired current value and the first temperature value. A drive control unit is used to drive and control the lighting device based on the target control signal; The second acquisition unit is used to acquire the actual current value flowing through the light-emitting module; An execution unit is configured to, if the absolute value of the difference between the actual current value and the expected current value is not within a preset error range, repeatedly execute the steps of acquiring the first temperature value, generating the target control signal, and driving the lighting device based on the target control signal until the absolute value is within the preset error range. When the target control signal is a pulse width modulation signal, the signal generation unit includes: The first determining unit is used to determine the ratio of the desired current value to the rated current value of the light-emitting module of the lighting device; The second determining unit is used to determine the target duty cycle corresponding to the first temperature value and the ratio based on the preset correspondence between each preset temperature value, each preset current ratio and the duty cycle of the pulse width modulation signal. The PWM signal generation unit is used to generate a pulse width modulation signal with a duty cycle equal to the target duty cycle. When the target control signal is the voltage signal, the signal generation unit includes: The third determining unit is used to determine the desired voltage value of the light-emitting module of the lighting device based on the desired current value; The fourth determining unit is used to obtain a first preset correspondence between each preset temperature value, each preset voltage value, and the voltage value of the voltage signal from the local storage space, and to determine the target voltage value corresponding to the desired voltage value and the first temperature value based on the first preset correspondence; the first preset correspondence is obtained by experimentally testing the voltage value of the voltage signal used to drive the light-emitting module when the actual voltage value across the light-emitting module is each preset voltage value. A voltage signal generation unit is used to generate a voltage signal with a voltage value equal to the target voltage value.
6. A lighting device, characterized in that, It includes a control device and a temperature sensor connected to the control device; the control device is used to perform the control method as described in any one of claims 1 to 4.
7. A device control system, characterized in that, It includes a main control device, at least one gateway, and at least one lighting device as described in claim 6; each gateway is connected to at least one lighting device, and all gateways are connected to the main control device.
Citation Information
Patent Citations
Led lighting device and a method for controlling the same
CN101155450A
