Method and system for controlling color transformation of three-color lamp
Through the Zigbee network and sensor network, combined with the computer BIOS/EC status and user biologic mode, the color of the mini machine's lighting effect is dynamically adjusted, solving the problem that traditional lighting solutions cannot adapt to environmental changes, and achieving efficient energy management and user experience improvement .
Patent Information
- Application Number
- CN202411217042.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-22
AI Technical Summary
The single, static lighting scheme used in traditional computer systems cannot be dynamically changed according to the environmental changes of the actual application scenario, resulting in users who may experience visual fatigue in work and learning environments that require concentration, limiting users based on personal preferences or current situations. The ability to adjust lighting situations.
Configure wireless communication through Zigbee network protocol, deploy sensor networks to collect environmental data, and use the central control system to automatically adjust the base color combination, color temperature and brightness of the mini machine lighting effect according to the computer BIOS/EC status and user biologic rhythm mode, and monitor and adjust the light in real time. To adapt to the environment and user needs.
Dynamic and diverse color change lighting control is realized, which reduces energy consumption, improves the overall health and quality of life of users, and enhances the safety and stability of equipment.
Smart Images

Figure CN119012445A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of lighting control, and in particular to a control method and system for color conversion of a three-color lamp. Background Art
[0002] In the field of customized and personalized decoration of computer hardware and peripherals, especially mini computers and small computing devices, the use of LED lighting effects to enhance the aesthetics and user experience of the equipment has become a popular trend. This lighting effect not only enhances the aesthetics of the equipment, but also enriches the user's visual experience through color changes. With the advancement of technology, users not only pursue the functionality of the equipment, but also pay more and more attention to the flexibility of its appearance design and personalized settings. Traditional computer systems usually use a single, static lighting scheme that cannot be dynamically changed according to environmental changes in actual application scenarios. Users may experience visual fatigue when exposed to dynamic and colorful light for a long time, especially in work and learning environments that require concentration. This limits the user's ability to adjust the lighting changes according to personal preferences or current situations to a certain extent. Therefore, a lighting control method that can provide dynamic and diverse color changes is needed. Summary of the invention
[0003] In view of the problems existing in the above-mentioned existing control method and system for color change of three-color lamps, the present invention is proposed.
[0004] Therefore, the problem to be solved by the present invention is that a lighting control method capable of providing dynamic and diversified color changes is needed.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a control method for color change of a three-color lamp, which includes configuring wireless communication through the Zigbee network protocol and deploying a sensor network to collect environmental data, automatically controlling the power supply of the mini machine lighting effect according to the computer BIOS / EC status through a central control system, and adjusting the base color combination of the mini machine's three-color lighting effect according to the lighting effect settings and environmental data; automatically adjusting the color temperature and brightness of the mini machine's light according to the user's biorhythm pattern, and monitoring the mini machine's working temperature in real time and making adjustments.
[0006] As a preferred solution of the control method for color change of the three-color lamp described in the present invention, wherein: the configuration of wireless communication through the Zigbee network protocol and the deployment of the sensor network to collect environmental data refers to installing a wireless communication module of the Zigbee network protocol in each lamp, setting the network address and communication channel of each lamp, deploying environmental sensors to collect environmental data and connecting to the central control system through a wireless network to transmit the collected environmental data in real time, initializing the three-color lighting effect of the mini machine and setting the default base color combination.
[0007] As a preferred solution of the control method for color change of the three-color lamp of the present invention, wherein: the power supply of the mini-machine lighting effect is automatically controlled by the central control system according to the computer BIOS / EC status, which means that an appropriate USB hardware interface is installed and configured in the central control system to receive the status signal from the computer BIOS / EC, set the communication protocol parameters, use the decoding algorithm to parse the original signal received from the BIOS / EC, convert the original signal into the status description of the computer host, including power on, sleep and sleep, and store the parsing result in the database;
[0008] Integrate lighting control in the BIOS interface to provide users with switch options, including enabling and disabling three-color lighting effects, save user-set lighting effect options and load the user's lighting effect settings to determine the lighting effect status each time the computer starts;
[0009] According to the analysis result, a corresponding lighting effect control instruction is generated through logical judgment. If the analysis result shows that the computer is in an inactive state and the user has not set the lighting effect to be maintained, an instruction to turn off the lighting effect is generated; otherwise, an instruction to maintain the lighting effect is generated;
[0010] The generated control instructions are sent to the central control system through the Zigbee network for instruction execution, and the user's lighting effect settings are passed to the EC through the BIOS.
[0011] As a preferred solution of the control method for color change of the three-color light described in the present invention, wherein: the central control system adjusts the primary color combination of the three-color lighting effect of the mini machine according to the lighting effect settings and environmental data, which means receiving data from the environmental sensor in real time, and at the same time receiving the user lighting effect settings from the BIOS, the central control system analyzes the collected ambient light data, determines the degree of matching between the lighting conditions and the lights in the current environment, and adjusts the primary color combination of the three-color lighting effect of the mini machine according to the fusion analysis of the lighting effect parameters set by the user and the real-time environmental data.
[0012] As a preferred solution of the control method for color change of the three-color lamp of the present invention, wherein: the automatic adjustment of the color temperature and brightness of the mini-machine light according to the user's biorhythm pattern refers to deploying a human activity monitor, including an infrared sensor, a motion sensor and a time sensor, collecting user location and activity pattern data in real time and recording the current time, and cleaning and normalizing the collected data;
[0013] Extract data features and use clustering algorithms to identify different patterns of user behavior, including grouping data into similar behavior patterns, each pattern corresponding to different lighting needs, determining the user's typical daily cycle based on the collected data, creating a time-behavior pattern color temperature mapping table based on the daily cycle and the identified behavior patterns, and determining the time of day when a specific behavior pattern occurs;
[0014] Based on the time-behavior pattern color temperature mapping table, the user's biorhythm pattern is obtained, and the user's ideal color temperature is determined according to the user's biorhythm pattern and time period;
[0015] Configure two groups of LED arrays, one group emits low color temperature light, and the other group emits high color temperature light, to match different color temperature requirements. Calculate the total color temperature CCT2 generated by mixing LED arrays with different color temperatures:
[0016]
[0017] In the formula, φ m is the luminous flux of the mth LED, I m is the forward current of the mth LED, φ m (I m ) is the LED current I m Light output under CCT m (I m ) is the current I m The color temperature under the condition, M is the number of LEDs, E(t) is the ambient light correction factor, f(I m ) is a nonlinear function, η is a correction factor;
[0018] Receive ambient light data in real time and analyze the difference ΔCCT between the current color temperature and the ideal color temperature:
[0019] ΔCCT=CCT1-CCT2,
[0020] Where CCT1 is the target color temperature;
[0021] Make preliminary adjustments to the light output of the LEDs based on the color temperature difference. If the calculated color temperature difference is a positive number, it means that the current color temperature is too high, so the light output of the high color temperature LEDs is reduced, and the light output of the low color temperature LEDs is increased. If the calculated color temperature difference is a negative number, the light output of the high color temperature LEDs is increased, and the light output of the low color temperature LEDs is reduced.
[0022] Use the color matching function to calculate the chromaticity value of each color LED in the current light source after preliminary adjustment:
[0023]
[0024] In the formula, X1, Y1, Z1 represent the calculated chromaticity values, S(λ) is the power distribution of the light source at wavelength λ, and is the CIE 1931 standard color matching function, μ R , μ G and μ B Respectively represent the central wavelengths of red, green and blue LEDs, σ R , σG and σ B denote the standard deviation of the red, green, and blue LED spectral distributions, respectively, and dλ denotes a small increment in the integral;
[0025] Determine the target chromaticity value by inverse calculation of the color matching function based on the target color temperature, and calculate the chromaticity difference between the current chromaticity value and the target chromaticity value;
[0026] According to the calculated chromaticity difference, the genetic algorithm is used to adjust the RGB LED brightness value. The goal is defined as minimizing the difference between the target chromaticity value and the current chromaticity value. The fitness function E is defined as the sum of the squares of the chromaticity difference.
[0027] Initialize the population. Each individual is represented by an RGB brightness combination. The gene of each individual is the brightness value of the three RGB channels. A set of RGB brightness combinations is randomly generated as the initial population.
[0028] For individuals in the population, the current chromaticity value is calculated using the color matching function according to the current RGB brightness combination, and the fitness value of each individual is calculated according to the fitness function E;
[0029] According to the fitness value, individuals are selected as parents through roulette, and the genes of the parents are combined to produce offspring by single-point crossover. The genes of the offspring are mutated to increase the diversity of the population. All parents are replaced with offspring to form a new population. The fitness of each individual in the new population is recalculated, and the process of selection, crossover, mutation and population update is repeated. The fitness change threshold P is set until the change in the fitness function is less than the fitness change threshold P, then the iteration is stopped;
[0030] After reaching the stopping condition, the individual with the highest fitness is selected as the optimal solution to obtain the optimal brightness combination;
[0031] Generate a corresponding PWM signal based on the calculated brightness combination of each color LED, and send the generated PWM signal to the corresponding LED driver to adjust the duty cycle of each LED in real time. After adjusting the brightness of each color LED, combine the output of all colors to achieve the required overall color temperature. If there is a deviation between the actual output and the ideal color temperature, further fine-tune the duty cycle of the PWM of each color until the actual color temperature matches the ideal color temperature.
[0032] Set three-color lighting effects corresponding to different scene modes, connect the computer's control system to the user's smart device via Wi-Fi, and allow users to remotely adjust lighting settings according to personal preferences, including color temperature, brightness and scene mode.
[0033] As a preferred solution of the control method for color change of the three-color lamp described in the present invention, the real-time monitoring of the working temperature of the mini machine and adjustment thereof refers to installing a temperature sensor near the key components of the mini machine to collect temperature data in real time and sending the collected temperature data to the central control system of the computer through the Zigbee network. When the system detects a high temperature warning, the operating frequency of the CPU and GPU of the mini machine is automatically reduced, and the operating data of the mini machine and the data generated during the lighting effect control process are collected and stored.
[0034] As a preferred solution of the control method for color change of the three-color lamp described in the present invention, wherein: the collection of mini machine operation data and the data generated during the lighting effect control process for storage refers to collecting the temperature data of the mini machine and the current settings and real-time changes of the LED lighting effect, storing the collected data into a central database, configuring the storage architecture according to the data type and purpose, implementing a data hierarchical storage strategy and regularly maintaining the database.
[0035] Another object of the present invention is to provide a control system for changing the color of a three-color lamp, which comprises:
[0036] A data collection module is used to assemble a wireless communication module of the Zigbee network protocol in the lamp and deploy environmental sensors to continuously collect environmental data for preprocessing;
[0037] The central control module is used to receive environmental data and status signals, and automatically adjust the base color combination of the three-color lighting effect of the mini machine according to the collected data and the lighting effect parameters set by the user;
[0038] Lighting effect adjustment module, used to automatically adjust the color temperature and brightness of the light according to the user's biorhythm pattern obtained by analyzing the user's behavior data;
[0039] The fault diagnosis module is used to deploy a temperature sensor near the mini machine to monitor the working temperature of the mini machine in real time and make adjustments, and store the operating data of the mini machine and the data generated during the lighting effect control process.
[0040] A computer device comprises: a memory and a processor; the memory stores a computer program, and the processor implements the steps of a control method for color conversion of a three-color lamp when executing the computer program.
[0041] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a control method for color conversion of a three-color lamp.
[0042] The beneficial effects of the present invention are as follows: the present invention automatically controls the lighting effect power supply according to the computer BIOS / EC status, synchronizes the lighting effect with the computer's operating status, effectively saves energy, and automatically adjusts the color temperature and brightness of the light according to the user's personal settings and biorhythm patterns to adapt to the user's daily activities, thereby improving the user's overall health and quality of life. The present invention also monitors the working temperature of the mini machine in real time and makes adjustments to improve the safety and stability of the equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0044] Figure 1 The figure is a flow chart of a control method for changing the colors of a three-color lamp.
[0045] Figure 2 It is a structural diagram of the control system for changing the color of the three-color lamp. DETAILED DESCRIPTION
[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.
[0047] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0048] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor is it a separate or selective embodiment that is mutually exclusive with other embodiments.
[0049] Example 1, reference Figure 1 , which is the first embodiment of the present invention, and provides a control method for color change of a three-color lamp, the control method for color change of a three-color lamp includes:
[0050] S1. Configure wireless communication through Zigbee network protocol and deploy sensor network to collect environmental data. The central control system automatically controls the power of the mini machine lighting effect according to the computer BIOS / EC status. The central control system adjusts the base color combination of the mini machine's three-color lighting effect according to the lighting effect settings and environmental data.
[0051] Specifically, configuring wireless communication through the Zigbee network protocol and deploying a sensor network to collect environmental data means installing a wireless communication module of the Zigbee network protocol in each lamp, setting the network address and communication channel of each lamp, deploying environmental sensors to collect environmental data and connecting to the central control system through a wireless network to transmit the collected environmental data in real time, initializing the three-color lighting effect of the mini machine and setting the default base color combination.
[0052] Lighting control implemented through the Zigbee protocol not only simplifies operation, but also makes lighting settings highly automated and personalized. The system can remember user preferences and automatically apply the most appropriate lighting settings under specific conditions. By using efficient LED lights and Zigbee wireless communication technology, the present invention significantly reduces energy consumption while maintaining high-quality lighting effects. Through the intelligent control system, unnecessary lighting use is reduced to further improve energy efficiency. Traditional lighting effects may increase the thermal load of the equipment, but the LED lighting effects used in the present invention have low heat dissipation characteristics while providing rich colors. Combined with real-time temperature monitoring and automatic adjustment systems, the temperature of the mini machine can be effectively managed to avoid overheating and extend the life of the equipment.
[0053] Furthermore, automatically controlling the power supply of the mini-computer lighting effect according to the computer BIOS / EC status through the central control system means installing and configuring an appropriate USB hardware interface in the central control system to receive a status signal from the computer BIOS / EC, setting communication protocol parameters, using a serial communication protocol decoding algorithm in a decoding algorithm to parse the original signal received from the BIOS / EC, converting the original signal into a status description of the computer host, including power on, hibernation and sleep, and storing the parsing result in a database;
[0054] Integrate lighting control in the BIOS interface to provide users with switch options, including enabling and disabling three-color lighting effects, save user-set lighting effect options and load the user's lighting effect settings to determine the lighting effect status each time the computer starts;
[0055] According to the analysis result, a corresponding lighting effect control instruction is generated through logical judgment. If the analysis result shows that the computer is in an inactive state and the user has not set the lighting effect to be maintained, an instruction to turn off the lighting effect is generated; otherwise, an instruction to maintain the lighting effect is generated;
[0056] The generated control instructions are sent to the central control system through the Zigbee network for instruction execution, and the user's lighting effect settings are passed to the EC through the BIOS.
[0057] Dynamic lighting control based on real-time system status is achieved through the interaction between the central control system and the computer BIOS / EC. Through this technology, the lighting effect can be automatically adjusted according to the computer's operating status, such as turning off the lighting effect when the computer is in sleep or shut down, reducing unnecessary energy consumption, providing users with the ability to customize lighting effect settings, and enhancing the flexibility and personalization of the lighting effect system. Users can enable or disable lighting effects according to personal preferences, and the settings can be stored and automatically restored at each startup, improving the user experience, ensuring that the use of lighting effects strictly corresponds to the actual needs of users, and avoiding the lighting effects being turned on when no one is using them. Logical judgment ensures that when the computer is inactive and the user does not choose to keep the lighting effect, the lighting effect can be automatically turned off, effectively saving electricity and extending the life of the equipment. The low power consumption advantage of the Zigbee network is used to ensure the fast and reliable transmission of control instructions while maintaining the energy efficiency of the system. In addition, the application of Zigbee technology makes the system configuration more flexible and easy to expand and maintain.
[0058] Furthermore, the central control system adjusts the primary color combination of the three-color lighting effect of the mini machine according to the lighting effect settings and environmental data, which means receiving data from the environmental sensor in real time, and receiving the user lighting effect settings from the BIOS at the same time. The central control system analyzes the collected ambient light data, determines the degree of matching between the lighting conditions and the lights in the current environment, and adjusts the primary color combination of the three-color lighting effect of the mini machine according to the fusion analysis of the lighting effect parameters set by the user and the real-time environmental data.
[0059] By monitoring the light intensity and color temperature in the environment in real time, the system is able to dynamically adjust the lights to match changes in external light sources, thereby reducing energy consumption and enhancing the naturalness of the lighting effect. For example, reducing the brightness of indoor lighting when there is sufficient daylight, or automatically brightening it in a dark environment. This step allows the central control system to integrate external environmental data and user personal preferences to achieve highly personalized lighting settings. By precisely controlling color temperature and brightness, the system is able to provide a more comfortable visual experience, reduce visual fatigue, and improve people's work or study efficiency in a specific environment. In this system, real-time monitoring is not limited to ambient light, but also includes multiple factors such as audio and temperature, which allows lighting adjustments to respond more comprehensively to environmental changes. For example, the system can automatically adjust the lights to create a more focused or relaxing atmosphere when it detects an increase in ambient volume.
[0060] S2, automatically adjust the color temperature and brightness of the mini machine light according to the user's biorhythm pattern, monitor the working temperature of the mini machine in real time and make adjustments;
[0061] Specifically, automatically adjusting the color temperature and brightness of the mini-machine light according to the user's biorhythm pattern means deploying a human activity monitor, including an infrared sensor, a motion sensor, and a time sensor, to collect user location and activity pattern data in real time and record the current time, and to clean and normalize the collected data;
[0062] Extract data features using clustering algorithms to identify different patterns of user behavior, including grouping data into similar behavior patterns. Each pattern corresponds to different lighting requirements, including cooler color temperatures for reading to improve concentration and warmer color temperatures for resting to promote relaxation. Based on the collected data, determine the user's typical daily cycle, including morning wake-up time, work time, and evening rest time. Based on the daily cycle and the identified behavior patterns, create a time-behavior pattern color temperature mapping table to determine the time of day when a specific behavior pattern (users tend to read at night or exercise in the morning) occurs;
[0063] The user's biorhythm pattern is obtained based on the time-behavior pattern color temperature mapping table, and the user's ideal color temperature is determined according to the user's biorhythm pattern and time period;
[0064] Configure two groups of LED arrays, one group emits low color temperature light, and the other group emits high color temperature light, to match different color temperature requirements, and calculate the total color temperature CCT generated by mixing LED arrays with different color temperatures mix :
[0065]
[0066] In the formula, φ m is the luminous flux of the mth LED, I m is the forward current of the mth LED, φ m (I m ) is the LED current I m Light output under CCT m (I m ) is the current I m The color temperature under, M is the number of LEDs;
[0067] Considering that the luminous flux of LED does not change completely linearly with the current, a nonlinear luminous flux correction function f(I m ) to express the correction of luminous flux: In the formula, I m is the forward current of the mth LED, α m It is the proportional coefficient related to the mth LED, indicating the reference value of the initial luminous flux. It is the proportional coefficient obtained by fitting the relationship curve between the actual measured LED luminous flux and current, and can adjust the luminous flux reference of different LEDs. mIt is a nonlinear adjustment parameter related to the mth LED, reflecting the nonlinear relationship between luminous flux and current. It is obtained through nonlinear regression or experimental data fitting. The introduction of nonlinear luminous flux correction function can capture the nonlinear characteristics of LED light output, thereby improving the accuracy of overall color temperature calculation;
[0068] The relationship between ambient light and color temperature is expressed as a periodic change using a sine function. The expression is:
[0069] Where T is the time period of a day, usually fixed to 24 hours, which is used to describe the time dependence in E(t). t is the time. The ambient light correction factor E(t) is calculated based on the periodic changes to simulate the impact of ambient light changes on LED color temperature during the day:
[0070] In the formula, γ represents the impact of ambient light, which is obtained by measuring and analyzing the lighting conditions in different time periods. δ is the baseline value of ambient light, which represents the basic level of the impact of ambient light on color temperature. It is determined by measuring the average value of lighting conditions in a day. This correction can dynamically adjust the color temperature of light in different time periods to better adapt to actual environmental needs.
[0071] There will be a deviation between the actual value and the theoretical value of the luminous flux. In order to improve the calculation accuracy of the color temperature, a correction factor η is introduced to correct the deviation. The expression is: Where M is the number of LEDs, indicating the total number of LEDs involved in the calculation, φ m is the luminous flux of the mth LED, η is the global correction factor, which is used to correct the influence of the luminous flux deviation of all LEDs on the color temperature. It is obtained through experimental adjustment. The use of the global correction factor η can balance and adjust the deviation between the luminous flux and the expected color temperature, reduce the error caused by the difference between the actual performance of the LED and the theoretical value in the calculation, and make the calculation of the final color temperature more robust and consistent;
[0072] The complete total color temperature calculation formula is:
[0073]
[0074] Receive ambient light data in real time and analyze the difference ΔCCT between the current color temperature and the ideal color temperature:
[0075] ΔCCT=CCT1-CCT2, where CCT1 is the target color temperature;
[0076] Make preliminary adjustments to the light output of the LEDs based on the color temperature difference. If the calculated color temperature difference is a positive number, it means that the current color temperature is too high, so the light output of the high color temperature LEDs is reduced, and the light output of the low color temperature LEDs is increased. If the calculated color temperature difference is a negative number, the light output of the high color temperature LEDs is increased, and the light output of the low color temperature LEDs is reduced.
[0077] Use the color matching function to calculate the chromaticity value of each color LED in the current light source after preliminary adjustment:
[0078]
[0079] Where X, Y, and Z are the calculated chromaticity values, and S(λ) is the power distribution of the light source at wavelength λ, which is usually obtained by measuring the light output of the LED at different wavelengths using a spectrometer. and is the CIE 1931 standard color matching function used to convert spectral power distribution into chromaticity values in the XYZ color space. It is a standard function obtained experimentally and can be found in CIE literature. dλ represents a small increment in the integral.
[0080] In order to better reflect the spectral response of LED at different wavelengths, the Gaussian distribution function is introduced to correct the classic color matching function:
[0081]
[0082] In the formula, X1, Y1, and Z1 represent the chromaticity values of the red, green, and blue LEDs calculated after the introduction of Gaussian distribution correction, μ R , μ G and μ B Represent the central wavelengths of the red, green, and blue LEDs, respectively, which are obtained by measuring the spectral distribution of the LEDs and can be determined using a spectrometer, σ R , σ G and σ B They represent the standard deviation of the red, green, and blue LED spectral distributions, respectively, reflecting the spread of the spectral distribution;
[0083] By introducing the Gaussian distribution function to correct the spectral power distribution S(λ), the improved formula can more accurately reflect the actual spectral response of the LED. Compared with the traditional linear color matching function, this correction is more in line with the nonlinear characteristics of the LED, making the calculated chromaticity value more accurate. It is not only applicable to conventional LED light sources, but also to those LEDs with non-standard spectral characteristics. It can better capture the nonlinear response characteristics of the LED, reduce the errors caused by improper assumptions in the spectrum calculation process, and make the color temperature control more precise through more accurate chromaticity calculation. It can accurately achieve the expected color temperature by accurately adjusting the brightness ratio of the RGB LED, reduce the color temperature deviation, effectively reduce the color deviation, and improve the color consistency of the light source;
[0084] Determine the target chromaticity value by inverse calculation of the color matching function based on the target color temperature, and calculate the chromaticity difference between the current chromaticity value and the target chromaticity value;
[0085] According to the calculated chromaticity difference, the genetic algorithm is used to adjust the RGB LED brightness value. The goal is defined as minimizing the difference between the target chromaticity value and the current chromaticity value. The fitness function E is defined as the sum of the squares of the chromaticity difference.
[0086] Initialize the population. Each individual is represented by an RGB brightness combination. The gene of each individual is the brightness value of the three RGB channels. A set of RGB brightness combinations is randomly generated as the initial population.
[0087] For individuals in the population, the current chromaticity value is calculated using the color matching function according to the current RGB brightness combination, and the fitness value of each individual is calculated according to the fitness function E;
[0088] According to the fitness value, individuals are selected as parents through roulette, and the genes of the parents are combined to produce offspring by single-point crossover. The genes of the offspring are mutated to increase the diversity of the population. All parents are replaced with offspring to form a new population. The fitness of each individual in the new population is recalculated, and the process of selection, crossover, mutation and population update is repeated. The fitness change threshold P is set until the change in the fitness function is less than the fitness change threshold P, then the iteration is stopped. First, an initial threshold P is set, and then it is optimized and determined according to experimental tuning;
[0089] After reaching the stopping condition, the individual with the highest fitness is selected as the optimal solution to obtain the optimal brightness combination;
[0090] Generate a corresponding PWM signal based on the calculated brightness combination of each color LED group, and send the generated PWM signal to the corresponding LED driver to adjust the duty cycle of each LED in real time. After adjusting the brightness of each color LED, combine the output of all colors to achieve the required overall color temperature. If there is a deviation between the actual output and the ideal color temperature, further fine-tune the duty cycle of the PWM of each color until the actual color temperature matches the ideal color temperature.
[0091] Set three-color lighting effects corresponding to different scene modes, connect the computer's control system to the user's smart device via Wi-Fi, and allow users to remotely adjust lighting settings according to personal preferences, including color temperature, brightness and scene mode.
[0092] The user's behavior data is collected in real time through the human activity monitor, and the clustering algorithm is used to identify the user's biorhythm patterns, and the color temperature and brightness of the light are adjusted according to these patterns. This process ensures that the light is automatically adjusted to the most suitable color temperature for the user at different times of the day, thereby reducing eye fatigue and improving the user's work efficiency and quality of life. When calculating the color temperature, the system not only takes into account the luminous flux of the LED, but also combines the ambient light correction factor E(t) and the nonlinear luminous flux correction function f(I m), thereby further improving the accuracy of color temperature calculation. By analyzing the ambient light conditions in real time, the system can dynamically adjust the LED output to adapt to the changes in natural light, making the indoor lighting more natural and comfortable. This sophisticated control method enables the system to automatically provide the most suitable lighting effect in different environments, and is widely used in a variety of application scenarios such as home and office. By using genetic algorithms to optimize the brightness combination of RGB LEDs, the difference between the current chromaticity value and the target chromaticity value can be effectively reduced to achieve precise color temperature control. The color matching function is used to accurately calculate the chromaticity value of the current LED light source, while the genetic algorithm finds the optimal combination of RGB LED brightness values in the complex chromaticity adjustment process. Through the combination of these algorithms, the system can quickly and accurately optimize the chromaticity difference so that the lighting effect reaches the ideal color temperature state. This optimization process not only ensures that the chromaticity of the light is highly matched with the target value, but also can flexibly respond to the lighting requirements in different scenarios. The introduction of genetic algorithms enables the system to find the best solution in a complex color space, thereby providing users with the best lighting experience. This optimization process not only improves the system's computing efficiency, but also enhances the system's adaptability to a variety of complex lighting requirements. It generates PWM signals to adjust the brightness of the LED in real time, ensuring precise control of color temperature and chromaticity. At the same time, the system also supports connecting smart devices via Wi-Fi, allowing users to remotely adjust the lighting settings. The implementation of this function enables users to adjust the lighting according to their personal needs anytime and anywhere, adapting to a variety of different usage scenarios, such as setting different lighting modes at home to match family activities, or adjusting the lighting at work to improve concentration.
[0093] Furthermore, real-time monitoring of the operating temperature of the mini machine and adjusting it means installing temperature sensors near the key components of the mini machine (CPU, GPU and power supply unit) to collect temperature data in real time and send the collected temperature data to the central control system of the computer through the Zigbee network. When the system detects a high temperature warning, it automatically reduces the operating frequency of the CPU and GPU of the mini machine, collects the operating data of the mini machine and the data generated during the lighting effect control process for storage.
[0094] By installing temperature sensors near the CPU, GPU, and power supply unit, the system can monitor the temperature of these key components in real time to ensure that the temperature is always within a safe range. This monitoring mechanism can prevent hardware damage and performance degradation due to overheating and extend the service life of the device. When a high temperature warning is detected, the system automatically reduces the operating frequency of the CPU and GPU, which can effectively reduce heat generation and slow down the temperature rise. This not only protects the hardware from overheating damage, but also helps maintain the stable operation and reliability of the system. The system not only monitors and adjusts the hardware operating status, but also records the device's operating data and historical information on lighting control. This enables users and technical support teams to analyze historical data, optimize device configuration and performance, and provide support for future product designs.
[0095] Furthermore, collecting the mini machine operation data and the data generated during the lighting effect control process for storage means collecting the temperature data of the mini machine and the current settings and real-time changes of the LED lighting effect, storing the collected data into a central database, configuring the storage architecture according to the data type and purpose, implementing a data hierarchical storage strategy and regularly maintaining the database.
[0096] Real-time monitoring and recording of this data can help system administrators and maintenance personnel promptly discover potential hardware problems, such as overheating, and its impact on LED effects. Collecting LED settings and change data helps analyze user preferences, thereby optimizing lighting design and improving user experience. Collecting LED settings and change data helps analyze user preferences, thereby optimizing lighting design and improving user experience. Collecting LED settings and change data helps analyze user preferences, thereby optimizing lighting design and improving user experience. Using centrally stored data allows for more in-depth analysis, such as using machine learning algorithms to predict device failures or optimize energy efficiency management. Tiered storage strategies optimize the use of storage resources, reduce storage costs, and ensure fast access to critical data.
[0097] Example 2, reference Figure 2 , which is the second embodiment of the present invention, and which is different from the previous embodiment, provides a control system for color change of a three-color lamp, which includes:
[0098] A data collection module is used to assemble a wireless communication module of the Zigbee network protocol in the lamp and deploy environmental sensors to continuously collect environmental data for preprocessing;
[0099] The central control module is used to receive environmental data and status signals, and automatically adjust the base color combination of the three-color lighting effect of the mini machine according to the collected data and the lighting effect parameters set by the user;
[0100] Lighting effect adjustment module, used to automatically adjust the color temperature and brightness of the light according to the user's biorhythm pattern obtained by analyzing the user's behavior data;
[0101] The fault diagnosis module is used to deploy a temperature sensor near the mini machine to monitor the working temperature of the mini machine in real time and make adjustments, and store the operating data of the mini machine and the data generated during the lighting effect control process.
[0102] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0103] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0104] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0105] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
Claims
1. A method for controlling the color change of a three-color lamp, characterized in that: include, Configure wireless communication through Zigbee network protocol and deploy sensor network to collect environmental data. Automatically control the power of the mini machine lighting effect according to the computer BIOS / EC status through the central control system. The central control system adjusts the base color combination of the mini machine's three-color lighting effect according to the lighting effect settings and environmental data. Automatically adjust the color temperature and brightness of the mini machine's light according to the user's biorhythm pattern, and monitor the mini machine's operating temperature in real time and make adjustments.
2. The control method for color change of a three-color lamp as claimed in claim 1, characterized in that: The configuration of wireless communication through the Zigbee network protocol and the deployment of a sensor network to collect environmental data refers to installing a wireless communication module of the Zigbee network protocol in each lamp, setting the network address and communication channel of each lamp, deploying environmental sensors to collect environmental data and connecting to the central control system through a wireless network to transmit the collected environmental data in real time, initializing the three-color lighting effect of the mini machine and setting the default base color combination.
3. The control method for color change of a three-color lamp as claimed in claim 2, characterized in that: The automatic control of the power supply of the mini-machine lighting effect according to the computer BIOS / EC status through the central control system refers to installing and configuring an appropriate USB hardware interface in the central control system to receive the status signal from the computer BIOS / EC, setting the communication protocol parameters, using a decoding algorithm to parse the original signal received from the BIOS / EC, converting the original signal into a status description of the computer host, including power on, hibernation and sleep, and storing the parsing results in a database; Integrate lighting control in the BIOS interface to provide users with switch options, including enabling and disabling three-color lighting effects, save user-set lighting effect options and load the user's lighting effect settings to determine the lighting effect status each time the computer starts; According to the analysis result, a corresponding lighting effect control instruction is generated through logical judgment. If the analysis result shows that the computer is in an inactive state and the user has not set the lighting effect to be maintained, an instruction to turn off the lighting effect is generated; otherwise, an instruction to maintain the lighting effect is generated; The generated control instructions are sent to the central control system through the Zigbee network for instruction execution, and the user's lighting effect settings are passed to the EC through the BIOS.
4. The control method for color change of a three-color lamp as claimed in claim 3, characterized in that: The central control system adjusts the primary color combination of the three-color lighting effect of the mini machine according to the lighting effect settings and environmental data, which means that data from the environmental sensor is received in real time, and the user lighting effect settings are received from the BIOS at the same time. The central control system analyzes the collected ambient light data, determines the degree of matching between the lighting conditions and the lights in the current environment, and adjusts the primary color combination of the three-color lighting effect of the mini machine according to the fusion analysis of the lighting effect parameters set by the user and the real-time environmental data.
5. The control method for color change of a three-color lamp as claimed in claim 4, characterized in that: The automatic adjustment of the color temperature and brightness of the mini-machine light according to the user's biorhythm pattern refers to deploying a human activity monitor, including an infrared sensor, a motion sensor, and a time sensor, to collect user location and activity pattern data in real time and record the current time, and to clean and normalize the collected data; Extract data features and use clustering algorithms to identify different patterns of user behavior, including grouping data into similar behavior patterns, each pattern corresponding to different lighting needs, determining the user's typical daily cycle based on the collected data, creating a time-behavior pattern color temperature mapping table based on the daily cycle and the identified behavior patterns, and determining the time of day when a specific behavior pattern occurs; Based on the time-behavior pattern color temperature mapping table, the user's biorhythm pattern is obtained, and the user's ideal color temperature is determined according to the user's biorhythm pattern and time period; Configure two groups of LED arrays, one group emits low color temperature light, and the other group emits high color temperature light, to match different color temperature requirements. Calculate the total color temperature CCT2 generated by mixing LED arrays with different color temperatures: In the formula, φ m is the luminous flux of the mth LED, I m is the forward current of the mth LED, φ m (I m ) is the LED current I m Light output under CCT m (I m ) is the current I m The color temperature under the condition, M is the number of LEDs, E(t) is the ambient light correction factor, f(I m ) is the nonlinear flux correction function, η is the global correction factor; Receive ambient light data in real time and analyze the difference ΔCCT between the current color temperature and the ideal color temperature: ΔCCT=CCT1-CCT2, Where CCT1 is the target color temperature; Make preliminary adjustments to the light output of the LEDs based on the color temperature difference. If the calculated color temperature difference is a positive number, it means that the current color temperature is too high, so the light output of the high color temperature LEDs is reduced, and the light output of the low color temperature LEDs is increased. If the calculated color temperature difference is a negative number, the light output of the high color temperature LEDs is increased, and the light output of the low color temperature LEDs is reduced. Use the color matching function to calculate the chromaticity value of each color LED in the current light source after preliminary adjustment: In the formula, X1, Y1, Z1 represent the calculated chromaticity values, S(λ) is the power distribution of the light source at wavelength λ, and is the CIE 1931 standard color matching function, μ R , μ G and μ B Respectively represent the central wavelengths of red, green and blue LEDs, σ R , σ G and σ B denote the standard deviation of the red, green, and blue LED spectral distributions, respectively, and dλ denotes a small increment in the integral; Determine the target chromaticity value by inverse calculation of the color matching function based on the target color temperature, and calculate the chromaticity difference between the current chromaticity value and the target chromaticity value; According to the calculated chromaticity difference, the genetic algorithm is used to adjust the RGB LED brightness value. The goal is defined as minimizing the difference between the target chromaticity value and the current chromaticity value. The fitness function E is defined as the sum of the squares of the chromaticity difference. Initialize the population, each individual is represented by an RGB brightness combination, the gene of each individual is the brightness value of the three RGB channels, and randomly generate a set of RGB brightness combinations as the initial population; For individuals in the population, the current chromaticity value is calculated using the color matching function according to the current RGB brightness combination, and the fitness value of each individual is calculated according to the fitness function E; According to the fitness value, individuals are selected as parents through roulette, and the genes of the parents are combined to produce offspring by single-point crossover. The genes of the offspring are mutated to increase the diversity of the population. All parents are replaced with offspring to form a new population. The fitness of each individual in the new population is recalculated, and the process of selection, crossover, mutation and population update is repeated. The fitness change threshold P is set until the change in the fitness function is less than the fitness change threshold P, then the iteration is stopped; After reaching the stopping condition, the individual with the highest fitness is selected as the optimal solution to obtain the optimal brightness combination; Generate a corresponding PWM signal based on the calculated brightness combination of each color LED, and send the generated PWM signal to the corresponding LED driver to adjust the duty cycle of each LED in real time. After adjusting the brightness of each color LED, combine the output of all colors to achieve the required overall color temperature. If there is a deviation between the actual output and the ideal color temperature, further fine-tune the duty cycle of the PWM of each color until the actual color temperature matches the ideal color temperature. Set three-color lighting effects corresponding to different scene modes, connect the computer's control system to the user's smart device via Wi-Fi, and allow users to remotely adjust lighting settings according to personal preferences, including color temperature, brightness and scene mode.
6. The control method for color change of a three-color lamp as claimed in claim 5, characterized in that: The real-time monitoring of the mini machine's operating temperature and adjustment thereof refers to installing temperature sensors near the key components of the mini machine to collect temperature data in real time and sending the collected temperature data to the computer's central control system through the Zigbee network. When the system detects a high temperature warning, it automatically reduces the operating frequency of the mini machine's CPU and GPU, collects the mini machine's operating data and the data generated during the lighting effect control process for storage.
7. The control method for color change of a three-color lamp as claimed in claim 6, characterized in that: The collection and storage of the mini machine operation data and the data generated during the lighting effect control process refers to collecting the temperature data of the mini machine and the current settings and real-time changes of the LED lighting effect, storing the collected data into a central database, configuring the storage architecture according to the data type and purpose, implementing a data hierarchical storage strategy and regularly maintaining the database.
8. A control system for color change of a three-color lamp based on the control method for color change of a three-color lamp according to any one of claims 1 to 7, characterized in that: include, A data collection module is used to assemble a wireless communication module of the Zigbee network protocol in the lamp and deploy environmental sensors to continuously collect environmental data for preprocessing; The central control module is used to receive environmental data and status signals, and automatically adjust the base color combination of the three-color lighting effect of the mini machine according to the collected data and the lighting effect parameters set by the user; Lighting effect adjustment module, used to automatically adjust the color temperature and brightness of the light according to the user's biorhythm pattern obtained by analyzing the user's behavior data; The fault diagnosis module is used to deploy a temperature sensor near the mini machine to monitor the working temperature of the mini machine in real time and make adjustments, and store the operating data of the mini machine and the data generated during the lighting effect control process.
9. A computer device comprising: A memory and a processor; the memory stores a computer program, characterized in that: when the processor executes the computer program, the steps of the control method for color change of the three-color lamp described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the control method for color conversion of a three-color lamp according to any one of claims 1 to 7 are implemented.
Citation Information
Cited By
Method and system for regulating and controlling color temperatures of intelligent lighting lamps in batches
CN119697826A
A Method and System for Batch Regulation of the Color Temperature of Intelligent Lighting Fixtures
CN119697826B
Photovoltaic sensing driven automobile self-adaptive glass color change regulation and control device and method
CN119828390A
Light source control method, controller of light-emitting device and light-emitting device
CN122555022A
