LED lamp color temperature control method

By automatically calculating the light intensity difference and color temperature change, using the fuzzy controller and PWM circuit, the color temperature of LED lamps is automatically adjusted, which solves the problem of unadjustable LED lamps, improves lighting effect and eye protection, and adapts to Light changes in classroom environment.

CN118890737APending Publication Date: 2024-11-01HUBEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410809888.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The monochrome temperature of existing LED lights is unadjustable, and the color temperature is selected relatively few, so users need to adjust manually, making it difficult to meet the needs of actual scenes, especially in classroom environments, low efficiency and inability to adapt to light changes, resulting in unsatisfactory lighting effects.

Method used

By obtaining the light intensity values ​​before and after turning on the light, calculating the light intensity difference and color temperature change, using the fuzzy controller to automatically adjust the color temperature of the LED lamp, combining the lighting detection module and the color temperature detection module, and using the PWM chopping circuit to change The color temperature of the LED lamp can be adjusted automatically.

Benefits of technology

Increase the color temperature of the LED lamp when there is sufficient light to enhance the lighting effect; reduce the color temperature when there is poor light to reduce the glare, protect the human eye, achieve softer indoor light, and meet the lighting needs of classroom environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890737A_ABST
    Figure CN118890737A_ABST
Patent Text Reader

Abstract

The invention relates to an LED lamp color temperature control method, and belongs to the technical field of LED control, and the method comprises the steps: obtaining an illumination intensity value before the lamp is turned on, and an illumination intensity value and an LED lamp color temperature value after the LED lamp is turned on; determining an illumination intensity difference value based on the illumination intensity value before the lamp is turned on and the illumination intensity value after the LED lamp is turned on; determining a color temperature change quantity based on the illumination intensity difference value and the LED lamp color temperature value; and controlling an actuator to change the color temperature of the LED lamp based on the color temperature change quantity. The color temperature of the LED lamp suitable for the current environment is automatically adjusted according to the actual light condition and the color temperature of the current LED lamp, adjustment is convenient, and meanwhile the adjusting effect is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of LED control, and in particular to a method for controlling the color temperature of an LED lamp. Background Art

[0002] With the continuous development of LED technology, LED light sources have the advantages of high luminous efficiency, low energy consumption, and long life, and have gradually become the mainstream of the lighting market. At present, the color temperature of mainstream classroom LED lights on the market is not adjustable, and the corresponding relationship between color temperature and brightness is reflected by the human eye's perception of light color and sensitivity to light; generally speaking, the human eye's perception of color is more sensitive in relatively dim light, and relatively less sensitive in brighter light; therefore, under the same brightness of LED lights, in the daytime with good light, we often feel that there is little difference between turning on the lights in the classroom and not turning them on, and the actual lighting effect is not ideal; on cloudy days or nights with poor light, we will feel that the LED lights are too dazzling, and long-term study and work will cause a relatively large burden on the eyes, increasing eye fatigue.

[0003] In order to solve the above-mentioned problem of non-adjustable color temperature, several commonly used color temperature values ​​are also set in advance in the prior art, and then the user adjusts the LED light source to the corresponding color temperature value level required by the user according to his own needs, thereby realizing the change of the color temperature value of the LED light source.

[0004] However, this method can only provide a limited number of color temperature options and requires manual adjustment by the user. In particular, the efficiency of LEDs in classrooms is low and it is difficult to meet the actual scene needs of users. Summary of the invention

[0005] In view of this, it is necessary to provide a method for controlling the color temperature of an LED lamp to solve the problem in the prior art that the color temperature selection is too small and requires manual adjustment by the user, which is difficult to meet the actual scene requirements of the user.

[0006] In order to solve the above problems, the present invention provides a method for controlling the color temperature of an LED lamp, comprising: Obtain the light intensity value before turning on the light, as well as the light intensity value and LED light color temperature value after the LED light is turned on; Determine a light intensity difference based on the light intensity value before turning on the light and the light intensity value after the LED light is turned on; Determining a color temperature change based on the light intensity difference and the LED light color temperature value; Based on the color temperature change amount, the actuator is controlled to change the color temperature of the LED lamp.

[0007] In some possible implementations, the light intensity value is acquired by a lighting detection module, and the lighting detection module includes a light intensity detection sensor, a first signal amplifier, and a first memory; The light intensity detection sensor is used to collect a light intensity signal and convert the light intensity signal into a first electrical signal; The first signal amplifier is used to amplify the strength of the first electrical signal to obtain a first amplified signal; The first memory is used to convert the first amplified signal into a binary light intensity value for storage.

[0008] In some possible implementations, the LED light is controlled by a logic switch, and the logic switch performs an 'AND' operation. The logic of the logic switch is a binary comparison, in which one value a is always set to 1, and the other value b depends on the flag bit of the lighting detection module. When the light intensity value before turning on the light is collected, the flag bit of the lighting detection module is set to 1 and b is set to 1.

[0009] In some possible implementations, the color temperature value is acquired by a color temperature detection module, and the color temperature detection module includes a color temperature detection sensor, a second signal amplifier, and a third memory; The color temperature detection sensor is used to collect a color temperature signal and convert the color temperature signal into a second electrical signal; The second signal amplifier is used to amplify the strength of the second electrical signal to obtain a second amplified signal; The third memory is used to convert the second amplified signal into a binary LED lamp color temperature value for storage.

[0010] In some possible implementations, the color temperature change amount is obtained by a fuzzy controller automatic color temperature adjustment module, and the automatic color temperature adjustment module includes a fuzzy controller; The fuzzy controller is used to perform fuzzification, fuzzy reasoning and defuzzification processing on the light intensity difference and the LED lamp color temperature value in sequence to obtain the color temperature change.

[0011] In some possible implementations, the fuzzification process is implemented by a Gaussian membership function or a triangular membership function.

[0012] In some possible implementations, the defuzzification process is implemented by a weighted average method or a maximum membership function.

[0013] In some possible implementations, the actuator includes a PWM chopping circuit, which is used to change a mixed light band PWM duty cycle of the PWM chopping circuit according to the color temperature change amount, thereby changing the color temperature of the LED lamp.

[0014] In some possible implementations, the automatic color temperature adjustment module also includes a fourth memory, and the actuator is further used to input the changed mixed light band PWM duty cycle into the fourth memory for storage, and the actuator starts the LED lamp based on the mixed light band PWM duty cycle stored in the fourth memory when the light is turned on next time after turning off the light.

[0015] The beneficial effects of the present invention are as follows: the LED lamp color temperature control method provided by the present invention can automatically adjust the LED lamp color temperature suitable for the current environment according to the actual light conditions and the current color temperature of the LED lamp when the lights in the classroom are turned on. The adjustment is convenient and the adjustment effect is good. When the light is sufficient but brighter is needed, the color temperature of the LED lamp will be increased to enhance the lighting effect. When the light is poor or there is no light, the color temperature of the LED lamp will be reduced to make the indoor light softer, thereby protecting the human eyes to a certain extent and reducing the sense of glare. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic flow chart of an embodiment of a method for controlling the color temperature of an LED lamp provided by the present invention; Figure 2 A schematic diagram of the structure of an embodiment of the lighting detection module provided by the present invention; Figure 3 A schematic diagram of the structure of an embodiment of a computing unit provided by the present invention; Figure 4 A schematic diagram of the structure of an embodiment of a color temperature detection module provided by the present invention; Figure 5 A schematic diagram of the structure of an embodiment of the automatic color temperature adjustment module provided by the present invention; Figure numerals: 10-lighting detection module, 11-light intensity detection sensor, 12-first signal amplifier, 13-first memory, 20-operator, 21-subtractor, 22-second memory, 30-color temperature detection module, 31-color temperature detection sensor, 32-second signal amplifier, 33-third memory, 40-automatic color temperature adjustment module, 41-fuzzy controller, 42-fourth memory, 50-actuator. DETAILED DESCRIPTION

[0017] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0018] It should be understood that the schematic drawings are not drawn to scale. The flowchart used in the present invention shows the operations implemented according to some embodiments of the present invention. It should be understood that the operations of the flowchart can be implemented out of order, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present invention, can add one or more other operations to the flowchart, and can also remove one or more operations from the flowchart. Some of the block diagrams shown in the accompanying drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor systems and / or microcontroller systems.

[0019] The descriptions such as "first" and "second" involved in the embodiments of the present invention are only used to describe the implicit purpose, and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" and "second" may explicitly or implicitly include at least one of the features. "And / or" describes the association relationship of the associated objects, indicating that there may be three relationships, for example: A and / or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0020] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0021] The present invention provides a method for controlling the color temperature of an LED lamp, which is described below.

[0022] Figure 1 A schematic flow chart of an embodiment of the LED lamp color temperature control method provided by the present invention is shown as follows: Figure 1 As shown, the LED lamp color temperature control method includes: S101, obtaining the light intensity value before turning on the light, and the light intensity value and the color temperature value of the LED light after the LED light is turned on; S102, determining a light intensity difference based on the light intensity value before turning on the light and the light intensity value after the LED light is turned on; S103: determining a color temperature change based on the light intensity difference and the color temperature value of the LED lamp, and controlling the actuator to change the color temperature of the LED lamp based on the color temperature change.

[0023] Compared with the prior art, the present invention can automatically adjust the color temperature of the LED lamp to be suitable for the current environment according to the actual light conditions and the current color temperature of the LED lamp when the lights in the classroom are turned on. The adjustment is convenient and the adjustment effect is good. When the light is sufficient but brighter is needed, the color temperature of the LED lamp will be increased to enhance the lighting effect. When the light is poor or there is no light, the color temperature of the LED lamp will be reduced to make the indoor light softer, thereby protecting the human eyes to a certain extent and reducing the sense of glare.

[0024] Furthermore, for a school with a large number of classrooms, each of which is equipped with a plurality of LED lamps, the present invention changes the color temperature of the LED lamp by calculating the color temperature change, and can use a circuit to directly control the change of the color temperature of the LED lamp, thereby reducing costs and improving the feasibility of the solution.

[0025] In some embodiments, the light intensity value is acquired by the lighting detection module into the first memory, such as Figure 2 As shown, the lighting detection module 10 includes a light intensity detection sensor 11, a first signal amplifier 12 and a first memory 13; The light intensity detection sensor 11 is used to collect the light intensity signal and convert the light intensity signal into a first electrical signal; Specifically, the light intensity detection sensor 11 converts the input light signal into an electrical signal through the photovoltaic effect. The stronger the light, the greater the photocurrent and the greater the voltage.

[0026] The first signal amplifier 12 is used to amplify the strength of the first electrical signal to obtain a first amplified signal; Specifically, the signal amplifier includes an operational amplifier circuit for amplifying, filtering and calibrating the signal output by the photosensitive element to provide accurate light intensity measurement results. The signal amplifier can be designed according to application requirements to meet different accuracy and response time requirements.

[0027] The first memory 13 is used to convert the first amplified signal into a binary light intensity value for storage.

[0028] Specifically, the memory includes a logic circuit and a register, and the amplified signal is converted into a 16-bit binary number by the logic circuit and stored in the internal register, wherein the amplified signal is an analog signal (such as voltage or current).

[0029] It should be noted that there needs to be a certain interval between the illumination detection module 10 collecting the illumination intensity values ​​before the light is turned on and after the LED light is turned on, in order to reduce the error of the collection result. In this embodiment, it is set to 1s.

[0030] In some embodiments, the LED light is controlled by a logic switch, and the logic switch is implemented by a logic gate. The logic gate performs an 'AND' operation, and the logic of the logic gate is a binary comparison, in which one value a is always set to 1, and the other value b depends on the flag bit of the lighting detection module; when the main switch of the classroom LED light is turned on to connect the circuit, the logic switch is not closed at this time. After the light intensity value before turning on the light is collected, the flag position of the lighting detection module is 1, a and b are true, the logic switch is closed, the LED light is on, and the light intensity value and the LED light color temperature value after the LED light is turned on are collected.

[0031] In some embodiments, the light intensity difference is obtained by a calculator, such as Figure 3 As shown, the operator 20 includes a subtractor 21 and a second memory 22; The subtractor 21 is used to perform unsigned binary operation on the light intensity values ​​before turning on the light and after the LED light is turned on to obtain the light intensity difference; The second memory 22 is used to store the light intensity difference.

[0032] In some embodiments, the color temperature value is obtained by a color temperature detection module, such as Figure 4 As shown, the color temperature detection module 30 includes a color temperature detection sensor 31, a second signal amplifier 32 and a third memory 33; The color temperature detection sensor 31 is used to collect the color temperature signal and convert the color temperature signal into a second electrical signal; It should be noted that the color temperature detection sensor 31 obtains the color temperature in the following manner: First, calculate the stimulus value LED control, Y and Z through the RGB conversion formula. The RGB conversion formula is: [LED control;Y;Z]=[2.789,1.7517,1.1302;1,4.5907,0.0601;0,0.565,5.5943][R;G;B]; Then calculate the color coordinates (LED control, y), the color coordinate calculation formula is: LED control = LED control / (LED control + Y + Z), y = Y / (LED control + Y + Z); Finally, calculate the color temperature. The color temperature CCT calculation formula is: n=(LED control-0.3320) / (0.1858-y) CCT=437*n*n*n+3601*n*n+6831*n+5517.

[0033] The second signal amplifier 32 is used to amplify the strength of the second electrical signal to obtain a second amplified signal; The third memory 33 is used to convert the second amplified signal into a binary current LED color temperature value for storage.

[0034] In some embodiments, the color temperature change amount is obtained by an automatic color temperature adjustment module, such as Figure 5 As shown, the automatic color temperature adjustment module 40 includes a fuzzy controller 41; The fuzzy controller 41 is used to perform fuzzification, fuzzy reasoning and defuzzification processing on the light intensity difference and the LED light color temperature value in sequence to obtain the color temperature change; It should be noted that fuzzy control is an intelligent control method based on fuzzy set theory, fuzzy linguistic variables and fuzzy logical reasoning. It imitates people's fuzzy reasoning and decision-making process in terms of behavior. The core part of fuzzy control is the fuzzy controller, which mainly includes fuzzy quantization, fuzzy reasoning and defuzzification. The control law of the fuzzy controller is implemented by a computer program. The process of implementing the fuzzy control algorithm is described as follows: the microcomputer obtains the precise value of the controlled quantity through interrupt sampling, and then compares this quantity with the given value to obtain the error signal E. Generally, the error signal E is selected as an input quantity of the fuzzy controller, and the precise quantity of the error signal E is fuzzified into a fuzzy quantity. The fuzzy quantity of the error E can be expressed by the corresponding fuzzy language, and a subset e of the fuzzy language set of the error E is obtained (e is a fuzzy vector). Then, fuzzy decision-making is made based on e and the fuzzy relationship according to the synthesis rule of reasoning to obtain the fuzzy control quantity u.

[0035] In this embodiment, the fuzzy controller is configured as follows: Determine the structure of the fuzzy controller: select a two-input single-output fuzzy controller, the input of the fuzzy controller is the light intensity difference and the LED light color temperature value, and the output is the change in the LED light color temperature; Define the input and output fuzzy sets: light intensity difference {negative large, negative small, zero, positive small, positive large} = {NB, NS, ZO, PS, PB}, LED light color temperature value = {negative large, negative small, zero, positive small, positive large} = {NB, NS, ZO, PS, PB}, LED light color temperature change = {negative large, negative small, zero, positive small, positive large} = {NB, NS, ZO, PS, PB}; Define membership function: use Gaussian membership function or triangular membership function; Establish fuzzy control relationship rules, as shown in Table 1: Table 1 Fuzzy control relationship rules

[0036] According to the above fuzzy control relationship rules, a fuzzy rule control table is established and fuzzy reasoning is performed; Defuzzification: Use weighted average method or maximum membership function.

[0037] In other embodiments, an adaptive fuzzy PID controller may be used to calculate the color temperature change.

[0038] In some embodiments, Figure 5 As shown, the actuator 50 includes a PWM chopping circuit for changing the mixed light band PWM duty cycle of the PWM chopping circuit according to the amount of color temperature change, thereby changing the color temperature of the LED lamp.

[0039] In this embodiment, the color temperature adjustment range of the LED lamp is [3000K, 4500K].

[0040] In some embodiments, Figure 5 As shown, the automatic color temperature adjustment module 40 also includes a fourth memory 42, and the actuator 50 is also used to input the changed mixed light band PWM duty cycle into the fourth memory 42 for storage. When the light is turned on next time after turning off the light, the actuator starts the LED light based on the mixed light band PWM duty cycle stored in the fourth memory.

[0041] In this embodiment, the initial default value of the LED light color temperature is 4000K.

[0042] The above is a detailed introduction to a method for controlling the color temperature of an LED lamp provided by the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

[0043] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by any technician familiar with the technical field within the technical scope disclosed by the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for controlling the color temperature of an LED lamp, characterized in that: include: Obtain the light intensity value before turning on the light, as well as the light intensity value and LED light color temperature value after the LED light is turned on; Determine a light intensity difference based on the light intensity value before turning on the light and the light intensity value after the LED light is turned on; Determining a color temperature change based on the light intensity difference and the LED light color temperature value; Based on the color temperature change amount, the actuator is controlled to change the color temperature of the LED lamp.

2. The LED lamp color temperature control method according to claim 1, characterized in that: The light intensity value is acquired by a lighting detection module, which includes a light intensity detection sensor, a first signal amplifier and a first memory; The light intensity detection sensor is used to collect a light intensity signal and convert the light intensity signal into a first electrical signal; The first signal amplifier is used to amplify the strength of the first electrical signal to obtain a first amplified signal; The first memory is used to convert the first amplified signal into a binary light intensity value for storage.

3. The LED lamp color temperature control method according to claim 2, characterized in that: The LED light is controlled by a logic switch, and the logic switch performs an 'AND' operation. The logic of the logic switch is a binary comparison, in which one value a is always set to 1, and the other value b depends on the flag bit of the lighting detection module. When the light intensity value before turning on the light is collected, the flag bit of the lighting detection module is set to 1 and b is set to 1.

4. The LED lamp color temperature control method according to claim 1, characterized in that: The light intensity difference is obtained by an operator, and the operator includes a subtractor and a second memory; The subtractor is used to subtract the light intensity value before the LED light is turned on from the light intensity value after the LED light is turned on to obtain the light intensity difference; The second memory is used to store the light intensity difference.

5. The LED lamp color temperature control method according to claim 1, characterized in that: The color temperature value is obtained by a color temperature detection module, and the color temperature detection module includes a color temperature detection sensor, a second signal amplifier and a third memory; The color temperature detection sensor is used to collect a color temperature signal and convert the color temperature signal into a second electrical signal; The second signal amplifier is used to amplify the strength of the second electrical signal to obtain a second amplified signal; The third memory is used to convert the second amplified signal into a binary LED lamp color temperature value for storage.

6. The LED lamp color temperature control method according to claim 1, characterized in that: The color temperature change is obtained by a fuzzy controller automatic color temperature adjustment module, which includes a fuzzy controller, which is used to perform fuzzification, fuzzy reasoning and defuzzification processing on the light intensity difference and the LED light color temperature value in sequence to obtain the color temperature change.

7. The LED lamp color temperature control method according to claim 6, characterized in that: The fuzzification process is implemented by a Gaussian membership function or a triangular membership function.

8. The LED lamp color temperature control method according to claim 6, characterized in that: The defuzzification process is implemented by a weighted average method or a maximum membership function.

9. The LED lamp color temperature control method according to claim 1, characterized in that: The actuator includes a PWM chopping circuit, which is used to change the mixed light band PWM duty cycle of the PWM chopping circuit according to the color temperature change amount, thereby changing the color temperature of the LED lamp.

10. The LED lamp color temperature control method according to claims 6 and 9, characterized in that: The automatic color temperature adjustment module also includes a fourth memory, and the actuator is also used to input the changed mixed light band PWM duty cycle into the fourth memory for storage. When the light is turned on next time after turning off the light, the actuator starts the LED lamp based on the mixed light band PWM duty cycle stored in the fourth memory.