Dimming control method and circuit and dimming control chip
By designing the dimming control method and circuit in the lamp, and using the operating signal of the light source switch to set and update the gear, the problem of traditional lamp dimming without memory is solved, simplified brightness and color temperature adjustment is achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202410751673.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-09-06
AI Technical Summary
Traditional lamp dimming methods do not have memory, and users need to operate the light source switch multiple times to achieve intermediate brightness, resulting in inconvenient use and poor user experience.
Design a dimming control method and circuit that sets the memory gear or specific gear through the operating signal of the light source switch, and updates the gear in different working modes according to signal changes to simplify the adjustment of brightness and color temperature.
It realizes simple control of lamp brightness and color temperature by operating the light source switch, which improves user experience and reduces adjustment complexity.
Smart Images

Figure CN118612923A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lamp dimming, and in particular to a dimming control method and circuit and a dimming control chip. Background Art
[0002] The traditional way of dimming lamps is generally as follows: the controller inside the lamp detects the frequency of the light source switch on and off, thereby changing the output power of the power supply to achieve the purpose of adjusting the brightness of the light source. However, this dimming method has the following defects: it has no memory. If the customer needs an intermediate brightness, the light source switch needs to be operated multiple times each time. Therefore, it is not appropriate to design too many adjustment gears. Therefore, the lamp can only achieve a few adjustments between medium and high brightness in a targeted manner. Based on the above defects, this type of lamp is extremely inconvenient to use and the user experience is poor. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a dimming control method and circuit and a dimming control chip.
[0004] The technical solution adopted by the present invention to solve the technical problem is: construct a dimming control method for a lamp, the lamp includes a light source driving circuit and a light source switch, and the dimming control method includes the following steps:
[0005] Entering working mode 1 when the lamp is powered on for the first time;
[0006] Acquire an operation signal generated by operating the light source switch;
[0007] In the working mode 1, the gear to be set is set to a memory gear or a specific gear according to the change of the operation signal, and it is also determined whether the change of the operation signal meets the first change feature, and if so, the working mode 1 is changed to the working mode 2;
[0008] In the second working mode, the gear position to be set is set and the memory gear position is updated according to the change of the operation signal;
[0009] A corresponding control signal is output to the light source driving circuit according to the gear position to be set.
[0010] Preferably, the step of setting the gear to be set as a memory gear or a specific gear according to the change of the operation signal includes:
[0011] At the beginning of entering the working mode 1, setting the gear position to be set as a memory gear position;
[0012] Determining a first closing number of the light source switch after entering working mode 1 according to a change of the operating signal;
[0013] The gear to be set is set to a specific gear according to the first closing number; wherein the specific gear includes a minimum power gear and / or a maximum power gear.
[0014] Preferably, the determining whether the change of the operation signal meets the first change characteristic includes:
[0015] According to the change of the operation signal, it is determined that the first time interval between the next closing of the light source switch after the gear position to be set is set to the preset final gear position and the last opening of the light source switch is less than the first preset time. If so, it is determined that the real-time change of the operation signal meets the first change characteristic.
[0016] Preferably, the dimming control method further includes:
[0017] In the working mode, each time after closing the light source switch, the following is performed: determining, based on the change of the operation signal, a second time interval between the closing of the light source switch and the last opening of the light source switch, and judging whether the second time interval is greater than a second preset time, and if so, setting the gear to be set to a memory gear.
[0018] Preferably, the step of setting the gear to be set and updating the memory gear according to the real-time change of the operation signal includes:
[0019] Determining a second closing number of the light source switch after entering the second working mode according to the change of the operation signal;
[0020] Determine the to-be-set sequence number according to the preset function and the second closing number, so as to set the dimming gear whose gear sequence number in the memory gear list is consistent with the to-be-set sequence number as the to-be-set gear; wherein the memory gear list includes K gear sequence numbers and K dimming gears corresponding to the gear sequence numbers one by one; K is a natural number greater than 1;
[0021] After setting the gear position to be set, it is also determined whether the duration of the high setting level corresponding to the second number of closing times is greater than a fourth preset time, and if so, the memory gear position is updated to the currently set gear position to be set;
[0022] The preset function is:
[0023] D = mod (V, K) + 1;
[0024] Wherein, D is the sequence number to be set; V is the second closure number; mod is the remainder function.
[0025] Preferably, the dimming control method further includes:
[0026] In the working mode 2, it is also determined whether the change of the operation signal meets the second change characteristic, and if so, the working mode 1 is entered from the working mode 2.
[0027] Preferably, the step of setting the gear to be set and updating the memory gear according to the real-time change of the operation signal includes:
[0028] After entering the working mode 2, the gear to be set is set based on a clock signal related to time, and in the process of setting the gear to be set, the change of the operation signal is monitored, so that when the end signal is detected, the memory gear is updated to the gear to be set set at the current moment.
[0029] Preferably, the step of setting the gear to be set based on a clock signal related to time comprises:
[0030] When entering the working mode 2, the gear to be set is set to the maximum power gear or the minimum power gear:
[0031] If the gear to be set is the maximum power gear, gradually reducing the gear to be set to the minimum power gear based on a clock signal related to time;
[0032] If the gear to be set is the minimum power gear, the gear to be set is gradually increased to the maximum power gear based on a clock signal related to time.
[0033] Preferably, the gears to be set include a brightness gear and a color temperature gear;
[0034] The clock signal related to time sets the gear to be set, including:
[0035] When entering the second working mode, the brightness level is set to a default brightness level, and the color temperature level is set to a default color temperature level;
[0036] The brightness level and the color temperature level are set step by step based on a time-dependent clock signal.
[0037] Preferably, the step of outputting a corresponding power control signal to the light source driving circuit according to the gear position to be set includes:
[0038] determining a mode setting signal according to the gear position to be set;
[0039] Inputting the mode setting signal to the light source driving circuit to set the light source driving circuit to a low power output mode or a high power output mode;
[0040] Also determining a dimming signal according to the gear position to be set;
[0041] The dimming signal is input to the light source driving circuit to control the output of the light source driving circuit.
[0042] The present invention also constructs a dimming control circuit for a lamp, the lamp comprising a light source driving circuit and a light source switch, the dimming control circuit comprising an acquisition unit, a memory, a processing unit and a power control unit;
[0043] The acquisition unit is used to acquire the operation signal generated by operating the light source switch;
[0044] The memory is used to store memory gears;
[0045] The processing unit is used to enter working mode one when the lamp is powered on for the first time, and in the working mode one, set the gear to be set to a memory gear or a specific gear according to the change of the operation signal, and also judge whether the change of the operation signal meets the first change characteristic, and if so, enter working mode two from the working mode one; the processing unit is also used to set the gear to be set and update the memory gear according to the change of the operation signal in the working mode two;
[0046] The power control unit is used to output a corresponding power control signal to the light source driving circuit according to the gear position to be set.
[0047] The present invention also constructs a dimming control chip, which includes the dimming control circuit described above.
[0048] By implementing the technical solution of the present invention, the lamp can be controlled to work at a memory brightness or a specific brightness by operating the light source switch, and the memory brightness can also be set by operating the light source switch. This has the advantage of simple operation and can effectively improve user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0050] Figure 1 is a flowchart of a dimming control method in some embodiments of the present invention;
[0051] Figure 2 is a waveform diagram of an operating signal in some embodiments of the present invention;
[0052] Figure 3 is a circuit schematic diagram of a dimming control circuit in some embodiments of the present invention. DETAILED DESCRIPTION
[0053] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0054] It should be noted that the flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor do they have to be executed in the order described. For example, some operations / steps can be decomposed, while some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0055] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0056] Figure 1 It is a program flow chart of the dimming control method in some embodiments of the present invention. The method is used in the dimming control circuit or dimming control chip included in the lamp. In addition, the lamp also includes components such as a light source driving circuit, a light source switch and a light board, wherein the light source driving circuit is used to drive the light board to emit light, and the light source switch can be a manual switch for controlling the on and off of the lamp (such as a household switch panel set on the wall). The present invention can be implemented to control the lamp to work at a memory brightness or a specific brightness (such as maximum brightness and minimum brightness) by operating the light source switch, and the memory brightness can also be set by operating the light source switch. It has the advantage of simple operation and can effectively improve the user experience.
[0057] like Figure 1 As shown, the dimming control method includes step S10, step S20, step S30, step S40 and step S50.
[0058] Step S10 includes: entering working mode 1 when the lamp is powered on for the first time.
[0059] Specifically, the first power-on of a lamp refers to the first time a user turns on the light source switch after the lamp has been turned off for more than the set time. The set time can be customized according to the needs (such as 3 seconds, 5 seconds, etc.), which is not limited here.
[0060] Step S20 includes: acquiring an operation signal generated by operating a light source switch.
[0061] Specifically, one end of the light source switch is usually used to connect to a power source (such as mains power, emergency power supply, etc.), and the other end is connected to the light source drive circuit. Therefore, when the light source switch is closed, it is equivalent to connecting the light source drive circuit to the power source, so that the lamp is powered and lit. When the light source switch is disconnected, the lamp goes out due to power failure. In this case, the level of the power rectified by the light source drive circuit can be used as an operation signal. It can be understood that when the light source switch is closed, the operation signal is a high level, and when the light source switch is disconnected, the operation signal is a low level. Therefore, the user can generate an operation signal composed of multiple pulses by operating the light source switch (see Figure 2 ).
[0062] Step S30 includes: in the working mode, setting the gear to be set to a memory gear or a specific gear according to the change of the operation signal. Specifically, in step S30, both the memory gear and the specific gear can be stored in the memory, and in the working mode, the gear to be set can only be set to the memory gear and the specific gear, and the information in the memory cannot be updated, that is, in this working mode, the lamp can only be set to a relatively fixed brightness, and the memory gear and the specific gear are usually the gears that the user uses more frequently.
[0063] In some embodiments, the gear to be set can be set to a memory gear or a specific gear according to changes in the operating signal in the following manner: at the beginning of entering working mode one, the gear to be set is set to a memory gear; according to changes in the operating signal, the first number of closures of the light source switch after entering working mode one is determined; according to the first number of closures, the gear to be set is set to a specific gear; wherein the specific gear may include a minimum power gear and / or a maximum power gear.
[0064] Specifically, the counting principle of the first number of closures can be: after entering working module one (the initial state of the light source switch is closed), each time the light source switch is detected to be closed (that is, when the operation signal is detected to be converted from a low level to a high level), if the light source switch is detected to be closed within the set time, the first number of closures will be increased by one. Further, if the light source switch is closed for longer than the set time, when the light source switch is detected to be closed next time, it will be determined that the behavior of closing the light source switch belongs to the first power-on of the lamp, and the first number of closures will be set to one. When the first number of closures is 1 (that is, the moment when the lamp is powered on for the first time and just enters working mode one from working mode two), the gear to be set will be set to the memory gear. This means that when the user closes the light source switch for the first time or closes the light source switch after disconnecting it for a period of time, the lamp will control the gear of the lamp based on the memory gear recorded last time. Then, as the first number of closures increases, the gear to be set will be gradually set to the relevant specific gear, for example, see Figure 2When the first closing number is 2, the gear to be set is set to the minimum power gear; when the first closing number is 3, the gear to be set is set to the maximum power gear, and so on.
[0065] It can be understood that in this embodiment, as long as the user sets the memory gear according to personal preference in advance, the lamp can operate in the memory gear when the light source switch is closed for the "first time" (i.e., initially powered on). If the user wants to switch to a night light or maximum brightness, it can be achieved by continuing to operate the light source switch one or two times. In other words, the user does not need to operate the light source switch multiple times, but only needs to operate it three times to switch back and forth between the memory gear, the minimum power gear, and the maximum power gear, which simplifies the complexity of operational control between the maximum, minimum and memory gears. Moreover, in the working mode, the memory gear will not be updated. Therefore, the user does not need to worry about memorizing the minimum power gear and the maximum power gear, resulting in the next time the lamp is initially powered on, the memory gear cannot be used to control the operation of the lamp. It can be understood that the specific gear can also include other power gears besides the minimum power gear and the maximum power gear, such as 50% power gear, etc. The gears included in the specific gear can be set according to user needs. Generally, the power gears that users use more frequently except the memory gears will be added to the specific gears, so that users can set the gear to be set to a more commonly used gear through simple operations.
[0066] In some embodiments, whether the change of the operating signal meets the first change characteristic can be determined in the following manner: based on the change of the operating signal, determine the first time interval between the next closing of the light source switch after the gear position to be set is set to the preset final gear position and the last opening of the light source switch, and judge whether the first time interval is less than the first preset time. If so, it is determined that the real-time change of the operating signal meets the first change characteristic.
[0067] Specifically, the setting of the specific gear is related to the first closing number, and the preset last gear corresponds to the last gear set in the specific gear (refer to Figure 2 ), that is, when the gear to be set is set to the last gear, it means that all gears included in the specific gear have been set once. When the gear to be set is set to the last gear, if the user operates the light source switch again (disconnect and then close) within the first time interval, it will be determined that the real-time change of the operation signal meets the first change characteristic. In addition, the first time interval can be 3 seconds. It should be noted that in the process of increasing the number of first closures, the gears included in the specific gear will be set to the gear to be set in sequence and without repetition. When the specific gear is set to the last gear, if the light source switch continues to be operated within a short time, it will enter working mode 2 from working mode 1.
[0068] To facilitate the user to return to the memory gear after adjusting a specific gear, in some embodiments, the dimming control method also includes: in the working mode, after each closing of the light source switch: determining according to the change of the operation signal, the second time interval between the closing of the light source switch and the last opening of the light source switch, judging whether the second time interval is greater than the second preset time, and if so, setting the gear to be set as the memory gear.
[0069] Specifically, after the gear position to be set is set to a specific gear position, if the second time interval when the user turns off the light source switch exceeds the second preset time, the gear position to be set will be reset to the memory gear position, and the first closing number of times will be set to one.
[0070] Step S40 includes: in working mode 2, setting the gear to be set and updating the memory gear according to the change of the operation signal, and determining whether the change of the operation signal meets the second change characteristic. If so, entering working mode 1 from working mode 2.
[0071] In an optional embodiment, the gear to be set and the memory gear to be updated can be set according to the real-time changes of the operation signal in the following manner: determine the second number of closing times of the light source switch after entering the working mode 2 according to the changes of the operation signal; determine the to-be-set sequence number according to the preset function and the second number of closing times, so as to set the dimming gear whose gear number in the memory gear list is consistent with the to-be-set sequence number as the to-be-set gear; wherein the memory gear list includes K gear numbers, and K dimming gears corresponding one by one to the gear numbers; K is a natural number greater than 1; after setting the to-be-set gear, it is also determined whether the duration of the high setting level corresponding to the second number of closing times is greater than the fourth preset time, and if so, the memory gear is updated to the currently set to-be-set gear.
[0072] Furthermore, the preset function may be:
[0073] D = mod (V, K) + 1;
[0074] Wherein, D is the sequence number to be set; V is the second closure number; mod is the remainder function, which is used to find the remainder after V is divided by K.
[0075] In some embodiments, the memory gear list includes a maximum power gear, a minimum power gear, and a plurality of gears of different powers other than the maximum power gear and the minimum power gear, and the power corresponding to each gear increases (or decreases) as the gear number increases, so that the setting of the gear to be set in working mode 2 has a certain regularity, which is convenient for users to adjust. Since in working mode 1, users can set the gear to be set to a more commonly used gear (memory gear and specific gear) according to their needs, this means that users usually let the lamp work in working mode 1 to meet their basic needs, and generally will not enter working mode 2, and the purpose of entering working mode 2 is only to set the memory gear. It is understandable that if the memory gear list contains multiple dimming gears (such as 10 or even 20), this can improve the settable accuracy of the dimming gear, and it is more convenient for users to set the memory gear to a gear with a certain precise power. After setting the memory gear, it can basically meet the daily application needs of users. Although the memory gear list contains multiple dimming gears, which may cause users to need more operations when setting the memory gear, it only needs to be set once occasionally. Therefore, under the effect of working mode 1, the bad experience caused by the cumbersome operation of setting the memory gear can be minimized. In working mode 2, it provides users with a way to accurately set the memory brightness of the lamp, which can effectively improve the user experience.
[0076] In order to facilitate the user to switch from working mode 2 back to working mode 1, in this optional embodiment, the dimming control method may also include: in working mode 2, it is also determined whether the change of the operation signal meets the second change characteristic, and if so, enter working mode 1 from working mode 2.
[0077] In some embodiments, whether the change in the operating signal meets the second change characteristic can be determined in the following manner: in working mode two, after each closing of the light source switch: determine based on the change in the operating signal, the third time interval between the closing of the light source switch and the last opening of the light source switch, and judge whether the third time interval is greater than the third preset time. If so, it is determined that the change in the operating signal meets the second change characteristic.
[0078] Specifically, in working mode two, when the gear to be set is set to a certain dimming gear, if the user operates the light source switch again (disconnects and then closes), and the time the light source switch is closed exceeds the third time interval, then it will be determined that the change in the operation signal meets the second change characteristic, and then enter from working mode two to working mode one, and the first number of closures is set to one.
[0079] In another optional embodiment, the gear position to be set and the memory gear position to be updated can be set according to the real-time changes of the operation signal in the following manner: after entering the working mode 2, the gear position to be set is set based on a clock signal related to time, and in the process of setting the gear position to be set, the changes of the operation signal are monitored, so that when the end signal is detected, the memory gear position is updated to the gear position to be set set at the current moment.
[0080] Specifically, after entering the second working mode, the gear to be set changes with time, that is, the gear to be set will be automatically adjusted and presented to the user. When the gear to be set is automatically adjusted to the gear the user likes, the user can operate (open and close) the light source switch once, so that the operation signal switches from a high level to a low level and then switches back to a high level (equivalent to an end signal). When the operation signal is detected to have this change feature, the memory gear will be updated to the gear to be set at the current moment. It can be understood that after entering the second working mode, the user only needs to operate the light source switch once to update the memory gear, which can effectively simplify the operation of setting the memory gear.
[0081] In some embodiments, setting the gear to be set based on a time-related clock signal may include: at the moment of entering working mode two, setting the gear to be set to the maximum power gear or the minimum power gear: if the gear to be set is the maximum power gear, then based on the clock signal related to time, gradually reducing the gear to be set to the minimum power gear; if the gear to be set is the minimum power gear, then based on the clock signal related to time, gradually increasing the gear to be set to the maximum power gear.
[0082] In this embodiment, after entering working mode two, the gears to be set will be gradually set based on the principle of linear change, so that the brightness of the lamp can be gradually adjusted from the maximum (or minimum) brightness to the minimum (maximum) brightness, and then gradually adjusted from the minimum (or maximum) brightness to the maximum (or minimum) brightness, until the voltage change of the operation signal is detected to meet the second change characteristic, and then the memory gear is updated.
[0083] In order to enrich the adjustment function of the lamp, in some embodiments, the gear to be set includes a brightness gear and a color temperature gear. Accordingly, the time-related clock signal setting the gear to be set may include: at the moment of entering the working mode 2, setting the brightness gear to the default brightness gear and the color temperature gear to the default color temperature gear; gradually setting the brightness gear and the color temperature gear based on the time-related clock signal.
[0084] In this embodiment, after entering the working mode 2, the brightness level and the color temperature level change with time. When the brightness level and the color temperature level are adjusted to the level the user likes, the user can set the brightness level and the color temperature level to be recorded by operating (opening and closing) the light source switch once or twice. It can be understood that after entering the working mode 2, the user only needs to operate the light source switch once (or twice) to update the memory level.
[0085] In another optional embodiment, the stepwise setting of the brightness level and the color temperature level based on a clock signal related to time may include: stepwise and simultaneously setting the brightness level and the color temperature level based on a clock signal related to time, monitoring changes in the operation signal during the setting process to wait for the arrival of an end signal, and when the end signal arrives, updating the memory level based on the brightness level and color temperature level set at the current moment.
[0086] It can be understood that, by implementing this embodiment, the user only needs to operate the light source switch once to update the brightness level and color temperature level that need to be memorized, which has the advantage of simple operation.
[0087] In another optional embodiment, the stepwise setting of the brightness level and the color temperature level based on a clock signal related to time may include: stepwise setting the brightness level based on a clock signal related to time, and monitoring changes in the operating signal during the process of setting the brightness level, so that when the arrival of the brightness level setting signal is detected, the brightness level is maintained at the brightness level set at the current moment; after the brightness level is maintained at a certain level, the color temperature level is stepwise set based on the clock signal related to time, and monitoring changes in the operating signal during the process of setting the color temperature level to wait for the arrival of an end signal, when the end signal arrives, the color temperature level is maintained at the color temperature level set at the current moment, and the memory level is updated based on the maintained color temperature level and brightness level.
[0088] In this embodiment, the specific manner in which the brightness level and the color temperature level are automatically adjusted over time can refer to the above embodiment, and will not be described in detail here. It can be understood that, in the implementation of this embodiment, the user only needs to operate the light source switch twice to update the brightness level and color temperature level that need to be memorized. Compared with another embodiment, although this embodiment requires one more operation of the light source switch, different brightness levels and different color temperature levels can be combined arbitrarily, increasing the diversity of the combination of brightness levels and color temperature levels.
[0089] Step S50 includes: outputting a corresponding control signal to the light source driving circuit according to the gear to be set. Specifically, in step S30 and step S40, after each setting of the gear to be set, a control signal capable of controlling the operation of the light source driving circuit is generated according to the gear to be set, thereby controlling the brightness and color temperature of the lamp.
[0090] In some embodiments, the outputting of a power control signal corresponding to the gear position to be set to the light source driving circuit may include: determining a mode setting signal according to the gear position to be set; inputting the mode setting signal to the light source driving circuit to set the light source driving circuit to a low power output mode or a high power output mode; and also determining a dimming signal according to the gear position to be set; inputting the dimming signal to the light source driving circuit to control the output of the light source driving circuit.
[0091] Specifically, the light source driving circuit can be an existing switching power supply; the mode setting signal is used to set the working mode of the light source driving circuit, the low-power output mode can include the DCM mode (i.e., discontinuous current mode), and the high-power output mode can include the QR mode (i.e., quasi-resonant mode) or the CCM mode (i.e., continuous current mode); the dimming signal is used to control the output power of the light source driving circuit to control the brightness of the lamp; in addition, the dimming signal is also used to control the color temperature driving signal output by the light source driving circuit to the lamp board with different color temperatures, thereby controlling the lamp to emit light of different color temperatures. For the specific scheme of how to control the lamp, please refer to the existing technology and will not be repeated here.
[0092] like Figure 3 As shown, the present invention also provides a dimming control circuit, which is used for a lamp, wherein the lamp includes a light source driving circuit, a light source switch, a light board and other devices. The dimming control circuit can control the lamp to operate at a memory brightness or a specific brightness (such as maximum brightness and minimum brightness) according to an operation signal, and set the memory brightness.
[0093] like Figure 3 As shown, the dimming control circuit may include an acquisition unit 1 , a memory 2 , a processing unit 3 and a power control unit 4 .
[0094] The acquisition unit 1 is used to acquire the operation signal generated by operating the light source switch. Specifically, the acquisition unit 1 can be connected to the rectifier circuit in the light source driving circuit for rectifying and filtering the power supply (such as the mains) of the lamp, so as to acquire the operation signal which is high level when the light source switch is closed and low level when the light source switch is disconnected. In addition, the acquisition unit 1 can be an existing voltage divider circuit, which can divide the power supply after rectification and filtering to obtain a low-voltage DC signal (i.e., the operation signal) to facilitate the detection of the processing unit 3.
[0095] The memory 2 is used to store the memory gear. Specifically, the memory 2 is connected to the processing unit 3, and the processing unit 3 can perform read and write operations on the memory 2 to read the memory gear and update the memory gear memory. In addition, the memory 2 can be an existing non-volatile storage.
[0096] The processing unit 3 is used to enter working mode 1 when the lamp is powered on for the first time, and in working mode 1, the gear to be set is set to a memory gear or a specific gear according to the change of the operation signal, and it is also determined whether the change of the operation signal meets the first change characteristic. If so, it enters working mode 2 from working mode 1; the processing unit 3 is also used to set the gear to be set and update the memory gear according to the change of the operation signal in working mode 2. Specifically, the processing unit 3 can be an existing microprocessor. In addition, the steps of working mode 1 and working mode 2 implemented by the processing unit 3 when running the computer program can refer to the dimming control method provided in the embodiment of the present invention, and will not be repeated here.
[0097] The power control unit 4 is used to output a corresponding power control signal to the light source driving circuit according to the gear position to be set.
[0098] In some embodiments, Figure 3 As shown, the power control unit 4 may include a mode setting unit 41 and a dimming control unit 42 .
[0099] The mode setting unit 41 is connected to the processing unit 3 and the light source driving circuit. The mode setting unit 41 is used to output a mode setting signal to the light source driving circuit according to the gear to be set, thereby setting the light source driving circuit to a low power output mode or a high power output mode.
[0100] The dimming control unit 42 is connected to the processing unit 3 and the light source driving circuit. The dimming control unit 42 is used to output a dimming signal to the light source driving circuit according to the gear to be set, thereby controlling the output of the light source driving circuit (including output power and color temperature driving signal).
[0101] like Figure 3 As shown, the present invention further provides a dimming control chip 40, and the dimming control chip 40 includes the dimming control circuit provided by the embodiment of the present invention.
[0102] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0103] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0104] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0105] It can be understood that the above embodiments only express the preferred implementation modes of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the patent scope of the present invention. It should be pointed out that, for ordinary technicians in this field, the above technical features can be freely combined without departing from the concept of the present invention, and several deformations and improvements can be made, which all belong to the protection scope of the present invention. Therefore, all equivalent changes and modifications made to the scope of the claims of the present invention should belong to the coverage of the claims of the present invention.
Claims
1. A dimming control method for a lamp, wherein the lamp comprises a light source driving circuit and a light source switch, characterized in that: The dimming control method comprises the following steps: Entering working mode 1 when the lamp is powered on for the first time; Acquire an operation signal generated by operating the light source switch; In the working mode 1, the gear to be set is set to a memory gear or a specific gear according to the change of the operation signal, and it is also determined whether the change of the operation signal meets the first change feature, and if so, the working mode 1 is changed to the working mode 2; In the second working mode, the gear position to be set is set and the memory gear position is updated according to the change of the operation signal; A corresponding control signal is output to the light source driving circuit according to the gear position to be set.
2. The dimming control method according to claim 1, characterized in that: The step of setting the gear position to be set as a memory gear position or a specific gear position according to the change of the operation signal comprises: At the beginning of entering the working mode 1, setting the gear position to be set as a memory gear position; Determining a first closing number of the light source switch after entering working mode 1 according to a change of the operating signal; The gear to be set is set to a specific gear according to the first closing number; wherein the specific gear includes a minimum power gear and / or a maximum power gear.
3. The dimming control method according to claim 2, characterized in that: The determining whether the change of the operation signal meets the first change characteristic includes: According to the change of the operation signal, it is determined that the first time interval between the next closing of the light source switch after the gear position to be set is set to the preset final gear position and the last opening of the light source switch is less than the first preset time. If so, it is determined that the real-time change of the operation signal meets the first change characteristic.
4. The dimming control method according to claim 1, characterized in that: The dimming control method further includes: In the working mode, each time after closing the light source switch, the following is performed: determining, based on the change of the operation signal, a second time interval between the closing of the light source switch and the last opening of the light source switch, and judging whether the second time interval is greater than a second preset time, and if so, setting the gear to be set to a memory gear.
5. The dimming control method according to claim 1, characterized in that: The step of setting the gear position to be set and updating the memory gear position according to the real-time change of the operation signal includes: Determining a second closing number of the light source switch after entering the second working mode according to the change of the operation signal; Determine the to-be-set sequence number according to the preset function and the second closing number, so as to set the dimming gear whose gear sequence number in the memory gear list is consistent with the to-be-set sequence number as the to-be-set gear; wherein the memory gear list includes K gear sequence numbers and K dimming gears corresponding to the gear sequence numbers one by one; K is a natural number greater than 1; After setting the gear position to be set, it is also determined whether the duration of the high setting level corresponding to the second number of closing times is greater than a fourth preset time, and if so, the memory gear position is updated to the currently set gear position to be set; The preset function is: D = mod (V, K) + 1; Wherein, D is the sequence number to be set; V is the second closure number; mod is the remainder function.
6. The dimming control method according to claim 5, characterized in that: The dimming control method further includes: In the working mode 2, it is also determined whether the change of the operation signal meets the second change characteristic, and if so, the working mode 1 is entered from the working mode 2.
7. The dimming control method according to claim 1, characterized in that: The step of setting the gear position to be set and updating the memory gear position according to the real-time change of the operation signal includes: After entering the working mode 2, the gear to be set is set based on a clock signal related to time, and in the process of setting the gear to be set, the change of the operation signal is monitored, so that when the end signal is detected, the memory gear is updated to the gear to be set set at the current moment.
8. The dimming control method according to claim 7, characterized in that: The step of setting the gear position to be set based on a clock signal related to time includes: When entering the working mode 2, the gear to be set is set to the maximum power gear or the minimum power gear: If the gear to be set is the maximum power gear, gradually reducing the gear to be set to the minimum power gear based on a clock signal related to time; If the gear to be set is the minimum power gear, the gear to be set is gradually increased to the maximum power gear based on a clock signal related to time.
9. The dimming control method according to claim 7, characterized in that: The gears to be set include a brightness gear and a color temperature gear; The clock signal related to time sets the gear to be set, including: When entering the second working mode, the brightness level is set to a default brightness level, and the color temperature level is set to a default color temperature level; The brightness level and the color temperature level are set step by step based on a time-dependent clock signal.
10. The dimming control method according to any one of claims 1 to 9, characterized in that: The step of outputting a corresponding power control signal to the light source driving circuit according to the gear position to be set includes: determining a mode setting signal according to the gear position to be set; Inputting the mode setting signal to the light source driving circuit to set the light source driving circuit to a low power output mode or a high power output mode; Also determining a dimming signal according to the gear position to be set; The dimming signal is input to the light source driving circuit to control the output of the light source driving circuit.
11. A dimming control circuit for a lamp, the lamp comprising a light source driving circuit and a light source switch, characterized in that: The dimming control circuit comprises an acquisition unit (1), a memory (2), a processing unit (3) and a power control unit (4); The acquisition unit (1) is used to acquire an operation signal generated by operating the light source switch; The memory (2) is used to store memory gear positions; The processing unit (3) is used to enter working mode one when the lamp is powered on for the first time, and in the working mode one, according to the change of the operation signal, set the gear to be set as a memory gear or a specific gear, and also judge whether the change of the operation signal meets the first change characteristic, and if so, enter working mode two from the working mode one; the processing unit (3) is also used to set the gear to be set and update the memory gear in the working mode two according to the change of the operation signal; The power control unit (4) is used for outputting a corresponding power control signal to the light source driving circuit according to the gear position to be set.
12. A dimming control chip, characterized in that: The device comprises the dimming control circuit as claimed in claim 11.
