CN117156640B - Intelligent light control method and system - Google Patents

Intelligent light control method and system Download PDF

Info

Publication number
CN117156640B
CN117156640B CN202311111448.6A CN202311111448A CN117156640B CN 117156640 B CN117156640 B CN 117156640B CN 202311111448 A CN202311111448 A CN 202311111448A CN 117156640 B CN117156640 B CN 117156640B
Authority
CN
China
Prior art keywords
lux
value
array
max
light
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311111448.6A
Other languages
Chinese (zh)
Other versions
CN117156640A (en
Inventor
邓国强
全宗丰
郑林晖
陆文波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongguan Huiguan Culture Technology Co ltd
Original Assignee
Dongguan Huiguan Culture Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongguan Huiguan Culture Technology Co ltd filed Critical Dongguan Huiguan Culture Technology Co ltd
Priority to CN202311111448.6A priority Critical patent/CN117156640B/en
Publication of CN117156640A publication Critical patent/CN117156640A/en
Application granted granted Critical
Publication of CN117156640B publication Critical patent/CN117156640B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Operations Research (AREA)
  • Probability & Statistics with Applications (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Algebra (AREA)
  • Evolutionary Biology (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention relates to the field of intelligent regulation and control, and provides a lamplight intelligent control method and system. The method can realize the accurate synchronization of the light brightness and the ambient light brightness, does not need to manually adjust the lamp, greatly improves the comfort of the lamp in the use process, realizes the fine adjustment of the light brightness through the brightness transition rate, ensures that the lighting environment is always stable and comfortable, can avoid the abrupt change of the light brightness, reduces the visual discomfort of a user, and provides high-quality lighting experience.

Description

Intelligent light control method and system
Technical Field
The invention relates to the field of intelligent regulation and control, in particular to an intelligent lamplight control method.
Background
In the past few years, intelligent home systems have moved from concepts to reality and have further been integrated into people's daily lives; the light control system is used as an important component of the intelligent home, the development speed and the application range of the light control system are continuously expanded, and along with the development of electronic technology, the light control system is continuously improved, for example, the existing light control system can be remotely controlled through a wireless network, the light brightness can be automatically adjusted according to the ambient light, the requirements of users can be understood through the artificial intelligence technology, and more personalized light effects are provided.
However, there are some problems in the existing light control system, for example, when the ambient light is darkened, the light control system should automatically increase the brightness of the lamp, when the user needs to read, the light control system should automatically adjust the brightness and color temperature of the lamp to reduce the pressure on the eyes of the user, but the existing light control system generally cannot accurately control the variation amplitude of the brightness, and the situation that the light is still too bright in a darker environment or too dark in a brighter environment is easy to occur, which not only affects the visual experience of the user, but also has a certain negative effect on the eye health of the user.
Therefore, the existing light control system has a shortage of functional performance in terms of user experience, automatic adjustment of environment and user requirements, and the like, and needs further improvement.
Disclosure of Invention
The invention aims to provide a lamplight intelligent control method and system, which are used for solving one or more technical problems in the prior art and at least providing a beneficial selection or creation condition.
The invention relates to the field of intelligent regulation and control, and provides a lamplight intelligent control method and system. The method can realize the accurate synchronization of the light brightness and the ambient light brightness, does not need to manually adjust the lamp, greatly improves the comfort of the lamp in the use process, realizes the fine adjustment of the light brightness through the brightness transition rate, ensures that the lighting environment is always stable and comfortable, can avoid the abrupt change of the light brightness, reduces the visual discomfort of a user, and provides high-quality lighting experience.
In order to achieve the above object, according to an aspect of the present invention, there is provided a light intelligent control method and system, the method comprising the steps of:
s100, collecting illumination data of ambient light, and recording the illumination data of the ambient light as first data;
s200, calculating the brightness transition rate based on the first data;
s300, converting the brightness conversion rate into a control signal;
s400, controlling the brightness of the lamplight through the control signal.
Further, in step S100, the method for collecting illumination data of ambient light and recording the illumination data of ambient light as first data specifically includes: collecting illumination data of ambient light in real time through an optical sensor in a lamp, collecting illumination intensity of the ambient light at intervals of every second in any period, recording lux (i) as illumination intensity of the ambient light collected by the optical sensor in the ith second, wherein lux (i) is illumination data of the ambient light, the unit of lux (i) is lux, i is a serial number, the value range of i is i=1, 2, …, N and N are the lengths of the periods, and the value of lux (i) is lux (1), lux (2), … and lux (N), constructing an array lux [ by using the N values, wherein lux (i) is the ith element in the array lux [ ], and recording the array lux [ is first data; each element in the array lux [ ] has a corresponding element value.
Further, the light sensor is a photodiode or a photoresistor.
Alternatively, the specific value of N is generally set to 5 minutes, and may also be set according to the brightness change speed requirement of the lamp, and an automatic adjustment of the brightness is generally performed at intervals of 5 minutes or 10 minutes, that is, the length of N is 300 or 600 (seconds).
Further, in step S200, the method for calculating the brightness transition rate based on the first data is as follows:
array lux []The element with the largest inner element value is denoted as lux (su), and the array lux []The element with the smallest internal element value is marked as lux (sh), su and sh are sequence numbers, and su E [1, N],sh∈[1,N]Screening array lux]The first element, the second element and the third element in the list, all the first elements form a set and record the set as agr 1 { } all second elements are combined into one set and the set is agr 2 { } grouping all third elements into a set and noting the set as agr 3 { } calculating a transition value tran;
screening out transition elements by a first algorithm, wherein in all the transition elements, the average value of all the transition elements is subtracted from the transition element with the largest value to be used as a first numerator, the average value of all the transition elements added with the transition element with the smallest value is used as a first denominator, and the value obtained by multiplying one half of the transition element by the first numerator and dividing the first denominator is used as the brightness transition rate;
specifically, the lumT is expressed as the luminance transition rate, and the lumT is calculated by the following formula:
lumT=1/2*{max(psy[])-ave(psy[])}/{min(psy[])+ave(psy[])};
where max (psy) is the transition element with the largest value, min (psy) is the transition element with the smallest value, and ave (psy) is the average value of all transition elements.
The beneficial effects of this step are: the illumination intensity of the lamp is always different from the illumination intensity of the environment in which the lamp is positioned, when the brightness change of the environment light is larger, the lamp can capture the change so as to timely adjust the lamp light, however, when the brightness change of the environment light is smaller or the brightness change is more frequent, the performance of the lamp for capturing the small or rapid change is greatly reduced, and further the lamp cannot be timely synchronous with the illumination intensity of the environment light to influence the use experience of a user.
Further, the screening out array lux []The method of the first element, the second element and the third element is specifically as follows: in array lux []In (2), lux (1), lux (2), …, lux(s) min ) The first element;
lux(s) min +1),lux(s min +2),…,lux(s max ) A second element; lux(s) max +1),lux(s max +2), …, lux (N) is denoted as the third element; wherein s is min =min{su,sh},s max =max { su, sh }, min { } represents the number of bits in { }Minimum, max { } represents the maximum value of the numbers in { }; lux(s) min ) And lux(s) max ) Respectively represent lux []The s < th > of (3) min Elements and lux []The s < th > of (3) max The elements.
Further, the calculation method of the transition value tran comprises the following steps:
in the agr 2 (x 2) represents the set agr 2 The x2 element in { x2 is the variable, T2 is the set agr 2 { } number of all elements in the variable, sin (x 2) represents the sine function calculation of the variable x2, max (T_agr 1 { }) is an array T_agr 1 { } element with the largest element value, array T_agr 1 { } by the set agr 1 All elements in the { } are composed by taking the values obtained after reciprocal operation;
agr 3 (x 3) represents the set agr 3 The x3 th element in { }, x3 is a variable, T3 is a set agr 3 The number of all elements in { max (agr) 1 { }) represents the set agr 1 The element with the largest value; abs () represents an absolute value operation on a number within (); ln () represents the number in the pair () taken as a natural logarithm.
Since the illumination data of the ambient light have the phenomenon that the change of the front and rear data is not obvious, the situation that the change of the absolute value of the data is small may exist in the calculation of the transition value based on the ln (x) function, especially when the data floats in the left and right intervals of 1, the calculation result of the transition value is too large or too small, and the brightness of the lamp is excessively adjusted, so that the use is influenced, therefore, in order to eliminate the defect, preferably, the calculation method of the transition value tran may further be as follows:
where exp { } represents an exponential operation with the number in { } being the base of the natural constant e.
The beneficial effects of this step are: compared with the original transition value calculated based on the ln (x) function, the method has the advantages that the small change of the ambient light intensity data can be highlighted by using the function form of x e (-x), the sensitivity of the ln (x) function to abnormal values and data scale is greatly reduced, and meanwhile, the numerical result of the transition value is stabilized in a reasonable interval, so that more accurate lamp brightness adjustment can be realized under the tiny ambient light intensity change of a lamp, and discomfort caused by brightness mutation is avoided.
Further, the method for screening out the transition element by the first algorithm specifically comprises the following steps:
s201, setting integer variables j and k, wherein the value intervals of the variables j and k are S min ,s max ]The initial value of the variable j is set to s min The initial value of the variable k is set to s max Representing variable j in array lux [ with lux (j)]The j-th element corresponding to the above is represented by lux (k) that the variable k is in the array lux [ []The values of lux (j) and lux (k) change with the change of the values of the variables j and k, and j=s min 、k=s max Starting traversing j, k, initializing a counter REG, the initial value of REG is set to 0, creating a blank array psy []Go to S202;
s202, if four numbers of lux (j), lux (j+1), lux (k) and lux (k-1) meet any one of the first condition and the second condition, adding the values of two elements of lux (j+1) and lux (k-1) into an array psy [ ], and increasing the value of REG by 1, and then turning to S203;
s203, if the REG value is equal to or greater than T0, go to S205; if the REG value is less than T0, go to S204; wherein T0=min { T1, T2, T3}, T1 is the set agr 1 The number of all elements within { };
s204, if the variable j is less than S max -1, while the value of the variable k is greater than or equal to s min If the value of +1 is equal to +1, the value of variable j is increased by 1 and the value of variable k is decreased by 1, and the process goes to S202; if the value of variable j is equal to s max A value of-1, or a value of variable k less than s min A value of +1, then go to S205;
s205, all elements in the group psy are transition elements.
Further, the first condition and the second condition are specifically: first condition: abs (lux (j+1) -lux (j)) < tran, second condition: abs (lux (k) -lux (k-1)) > tran; abs () represents an absolute value of a number within () and lux (j+1) represents a subsequent element of the element lux (j) in the array lux [ ], and lux (k-1) represents a previous element of the element lux (k) in the array lux [ ].
Further, in step S300, the method for converting the brightness transition rate into the control signal specifically includes: setting any moment Tr, acquiring the illumination intensity lux (Tr) of ambient light at the moment Tr through a light sensor, and acquiring the illumination intensity luxR of a lamp at the moment Tr; a control signal is sent out by a microcontroller in the lamp, and the control signal is used for controlling the illumination intensity of the lamp; if the value of lux (Tr) is smaller than the value of luxR, reducing the illumination intensity of the lamp by M units through the control signal; if the value of lux (Tr) is greater than the value of luxR, increasing the illumination intensity of the lamp by M units through the control signal;
wherein the value of M is equal to the absolute value of the difference between lux (Tr) and luxR multiplied by the percentage of the luminance transition rate;
specifically, when the luminance transition rate is expressed as lumT, m= |lux (Tr) -luxr| (lumT%).
Further, in step S400, the method for controlling the brightness of the light through the control signal includes: when the driving circuit of the lamp receives the control signal from the microcontroller, the current of the lamp is adjusted by the driving circuit according to the control signal, so that the illumination intensity (namely the brightness of the lamp) of the lamp is increased or decreased.
The invention also provides a lamplight intelligent control system, which comprises: the system comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program to realize steps in a lamplight intelligent control method, the lamplight intelligent control system can be run in a desktop computer, a notebook computer, a mobile phone, a portable phone, a tablet computer, a palm computer, a cloud data center and other computing devices, and the operable system can comprise, but is not limited to, the processor, the memory and a server cluster, and the processor executes the computer program to run in the units of the following systems:
the data acquisition unit is used for acquiring illumination data of the ambient light and recording the illumination data of the ambient light as first data;
a rate calculation unit for calculating a luminance transition rate based on the first data;
the signal conversion unit is used for converting the brightness conversion rate into a control signal;
and the driving control unit is used for controlling the brightness of the lamplight through the control signal.
The beneficial effects of the invention are as follows: the method can realize the accurate synchronization of the light brightness and the ambient light brightness, does not need to manually adjust the lamp, greatly improves the comfort of the lamp in the use process, realizes the fine adjustment of the light brightness through the brightness transition rate, ensures that the lighting environment is always stable and comfortable, can avoid the abrupt change of the light brightness, reduces the visual discomfort of a user, and provides high-quality lighting experience.
Drawings
The above and other features of the present invention will become more apparent from the detailed description of the embodiments thereof given in conjunction with the accompanying drawings, in which like reference characters designate like or similar elements, and it is apparent that the drawings in the following description are merely some examples of the present invention, and other drawings may be obtained from these drawings without inventive effort to those of ordinary skill in the art, in which:
FIG. 1 is a flow chart of a method for intelligent control of light;
fig. 2 is a system structure diagram of a light intelligent control system.
Detailed Description
The conception, specific structure, and technical effects produced by the present invention will be clearly and completely described below with reference to the embodiments and the drawings to fully understand the objects, aspects, and effects of the present invention. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
In the description of the present invention, a number means one or more, a number means two or more, and greater than, less than, exceeding, etc. are understood to not include the present number, and above, below, within, etc. are understood to include the present number. The description of the first and second is for the purpose of distinguishing between technical features only and should not be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
Referring to fig. 1, a flowchart of a light intelligent control method according to the present invention is shown, and a light intelligent control method according to an embodiment of the present invention is described below with reference to fig. 1.
The invention provides an intelligent light control method, which comprises the following steps:
s100, collecting illumination data of ambient light, and recording the illumination data of the ambient light as first data;
s200, calculating the brightness transition rate based on the first data;
s300, converting the brightness conversion rate into a control signal;
s400, controlling the brightness of the lamplight through the control signal.
Further, in step S100, the method for collecting illumination data of ambient light and recording the illumination data of ambient light as first data specifically includes: collecting illumination data of ambient light in real time through an optical sensor in a lamp, collecting illumination intensity of the ambient light at intervals of every second in any period, recording lux (i) as illumination intensity of the ambient light collected by the optical sensor in the ith second, wherein lux (i) is illumination data of the ambient light, the unit of lux (i) is lux, i is a serial number, the value range of i is i=1, 2, …, N and N are the lengths of the periods, and the value of lux (i) is lux (1), lux (2), … and lux (N), constructing an array lux [ by using the N values, wherein lux (i) is the ith element in the array lux [ ], and recording the array lux [ is first data; each element in the array lux [ ] has a corresponding element value.
Further, the light sensor is a photodiode or a photoresistor.
Specifically, the specific value of N is set to 5 minutes, i.e., the length of N is 300 (seconds).
Further, in step S200, the method for calculating the brightness transition rate based on the first data is as follows:
array lux []The element with the largest inner element value is denoted as lux (su), and the array lux []The element with the smallest internal element value is marked as lux (sh), su and sh are sequence numbers, and su E [1, N],sh∈[1,N]Screening array lux]The first element, the second element and the third element in the list, all the first elements form a set and record the set as agr 1 { } all second elements are combined into one set and the set is agr 2 { } grouping all third elements into a set and noting the set as agr 3 { } calculating a transition value tran;
screening out transition elements by a first algorithm, wherein in all the transition elements, the average value of all the transition elements is subtracted from the transition element with the largest value to be used as a first numerator, the average value of all the transition elements added with the transition element with the smallest value is used as a first denominator, and the value obtained by multiplying one half of the transition element by the first numerator and dividing the first denominator is used as the brightness transition rate;
specifically, the lumT is expressed as the luminance transition rate, and the lumT is calculated by the following formula:
lumT=1/2*{max(psy[])-ave(psy[])}/{min(psy[])+ave(psy[])};
where max (psy) is the transition element with the largest value, min (psy) is the transition element with the smallest value, and ave (psy) is the average value of all transition elements.
Further, the screening out array lux []The method of the first element, the second element and the third element is specifically as follows: in array lux []In (2), lux (1), lux (2), …, lux(s) min ) The first element;
lux(s) min +1),lux(s min +2),…,lux(s max ) A second element; lux(s) max +1),lux(s max +2), …, lux (N) is denoted as thirdAn element; wherein s is min =min{su,sh},s max =max { su, sh }, min } represents the minimum value for the number in { }, max { } represents the maximum value for the number in { }; lux(s) min ) And lux(s) max ) Respectively represent lux []The s < th > of (3) min Elements and lux []The s < th > of (3) max The elements.
Further, the calculation method of the transition value tran comprises the following steps:
in the agr 2 (x 2) represents the set agr 2 The x2 element in { x2 is the variable, T2 is the set agr 2 { } number of all elements in the variable, sin (x 2) represents the sine function calculation of the variable x2, max (T_agr 1 { }) is an array T_agr 1 { } element with the largest element value, array T_agr 1 { } by the set agr 1 All elements in the { } are composed by taking the values obtained after reciprocal operation;
agr 3 (x 3) represents the set agr 3 The x3 th element in { }, x3 is a variable, T3 is a set agr 3 The number of all elements in { max (agr) 1 { }) represents the set agr 1 The element with the largest value; abs () represents an absolute value operation on a number within (); ln () represents the number in the pair () taken as a natural logarithm.
Further, the method for screening out the transition element by the first algorithm specifically comprises the following steps:
s201, setting integer variables j and k, wherein the value intervals of the variables j and k are S min ,s max ]The initial value of the variable j is set to s min The initial value of the variable k is set to s max Representing variable j in array lux [ with lux (j)]The j-th element corresponding to the above is represented by lux (k) that the variable k is in the array lux [ []The values of lux (j) and lux (k) change with the change of the values of the variables j and k, and j=s min 、k=s max Starting traversing j, k, initializing a counter REG, the initial value of REG is set to 0, creating a blank array psy []Go to S202;
s202, if four numbers of lux (j), lux (j+1), lux (k) and lux (k-1) meet any one of the first condition and the second condition, adding the values of two elements of lux (j+1) and lux (k-1) into an array psy [ ], and increasing the value of REG by 1, and then turning to S203;
s203, if the REG value is equal to or greater than T0, go to S205; if the REG value is less than T0, go to S204; wherein T0=min { T1, T2, T3}, T1 is the set agr 1 The number of all elements within { };
s204, if the variable j is less than S max -1, while the value of the variable k is greater than or equal to s min If the value of +1 is equal to +1, the value of variable j is increased by 1 and the value of variable k is decreased by 1, and the process goes to S202; if the value of variable j is equal to s max A value of-1, or a value of variable k less than s min A value of +1, then go to S205;
s205, all elements in the group psy are transition elements.
Further, the first condition and the second condition are specifically: first condition: abs (lux (j+1) -lux (j)) < tran, second condition: abs (lux (k) -lux (k-1)) > tran; abs () represents an absolute value of a number within () and lux (j+1) represents a subsequent element of the element lux (j) in the array lux [ ], and lux (k-1) represents a previous element of the element lux (k) in the array lux [ ].
Further, in step S300, the method for converting the brightness transition rate into the control signal specifically includes: setting any moment Tr, acquiring the illumination intensity lux (Tr) of ambient light at the moment Tr through a light sensor, and acquiring the illumination intensity luxR of a lamp at the moment Tr; a control signal is sent out by a microcontroller in the lamp, and the control signal is used for controlling the illumination intensity of the lamp; if the value of lux (Tr) is smaller than the value of luxR, reducing the illumination intensity of the lamp by M units through the control signal; if the value of lux (Tr) is greater than the value of luxR, increasing the illumination intensity of the lamp by M units through the control signal;
wherein the value of M is equal to the absolute value of the difference between lux (Tr) and luxR multiplied by the percentage of the luminance transition rate;
specifically, when the luminance transition rate is expressed as lumT, m= |lux (Tr) -luxr| (lumT%).
Further, in step S400, the method for controlling the brightness of the light through the control signal includes: when the driving circuit of the lamp receives the control signal from the microcontroller, the current of the lamp is adjusted by the driving circuit according to the control signal, so that the illumination intensity (namely the brightness of the lamp) of the lamp is increased or decreased.
The intelligent light control system comprises: the steps in the embodiment of the intelligent lamplight control method are realized when the processor executes the computer program, the intelligent lamplight control system can be operated in a desktop computer, a notebook computer, a mobile phone, a portable phone, a tablet computer, a palm computer, a cloud data center and other computing devices, and the operable system can include, but is not limited to, a processor, a memory, a server cluster.
As shown in fig. 2, an intelligent light control system according to an embodiment of the present invention includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the steps in the above-mentioned embodiment of a light intelligent control method are implemented when the processor executes the computer program, and the processor executes the computer program to operate in the units of the following systems:
the data acquisition unit is used for acquiring illumination data of the ambient light and recording the illumination data of the ambient light as first data;
a rate calculation unit for calculating a luminance transition rate based on the first data;
the signal conversion unit is used for converting the brightness conversion rate into a control signal;
and the driving control unit is used for controlling the brightness of the lamplight through the control signal. The intelligent light control system can be operated in computing equipment such as a desktop computer, a notebook computer, a palm computer, a cloud data center and the like. The intelligent lamplight control system comprises, but is not limited to, a processor and a memory. It will be appreciated by those skilled in the art that the examples are merely examples of a light intelligent control method and system, and are not limited to a light intelligent control method and system, and may include more or fewer components than examples, or may combine certain components, or different components, e.g., the light intelligent control system may further include input and output devices, network access devices, buses, etc.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete component gate or transistor logic devices, discrete hardware components, or the like. The general processor may be a microprocessor or the processor may be any conventional processor, etc., where the processor is a control center of the intelligent lighting control system, and various interfaces and lines are used to connect the various sub-areas of the entire intelligent lighting control system.
The memory can be used for storing the computer program and/or the module, and the processor can realize various functions of the intelligent lamplight control method and system by running or executing the computer program and/or the module stored in the memory and calling the data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
The invention provides a lamplight intelligent control method and system, which are used for collecting illumination data of ambient light, recording the illumination data of the ambient light as first data, calculating a brightness transition rate based on the first data, converting the brightness transition rate into a control signal, and controlling the brightness of lamplight through the control signal. The method can realize the accurate synchronization of the light brightness and the ambient light brightness, does not need to manually adjust the lamp, greatly improves the comfort of the lamp in the use process, realizes the fine adjustment of the light brightness through the brightness transition rate, ensures that the lighting environment is always stable and comfortable, can avoid the abrupt change of the light brightness, reduces the visual discomfort of a user, and provides high-quality lighting experience. Although the present invention has been described in considerable detail and with particularity with respect to several described embodiments, it is not intended to be limited to any such detail or embodiment or any particular embodiment so as to effectively cover the intended scope of the invention. Furthermore, the foregoing description of the invention has been presented in its embodiments contemplated by the inventors for the purpose of providing a useful description, and for the purposes of providing a non-essential modification of the invention that may not be presently contemplated, may represent an equivalent modification of the invention.

Claims (5)

1. The intelligent light control method is characterized by comprising the following steps of:
s100, collecting illumination data of ambient light, and recording the illumination data of the ambient light as first data;
s200, calculating the brightness transition rate based on the first data;
s300, converting the brightness conversion rate into a control signal;
s400, controlling the brightness of the lamplight through a control signal;
in step S100, the method for collecting illumination data of ambient light and recording the illumination data of ambient light as first data specifically includes: collecting illumination data of ambient light in real time through an optical sensor in a lamp, collecting illumination intensity of the ambient light at intervals of every second in any period, recording lux (i) as illumination intensity of the ambient light collected by the optical sensor in the ith second, wherein lux (i) is illumination data of the ambient light, the unit of lux (i) is lux, i is a serial number, the value range of i is i=1, 2, …, N and N are the lengths of the periods, and the value of lux (i) is lux (1), lux (2), … and lux (N), constructing an array lux [ by using the N values, wherein lux (i) is the ith element in the array lux [ ], and recording the array lux [ is first data;
in step S200, based on the first data, the method for calculating the brightness transition rate includes:
array lux []The element with the largest inner element value is denoted as lux (su), and the array lux []The element with the smallest internal element value is marked as lux (sh), su and sh are sequence numbers, and su E [1, N],sh∈[1,N]Screening array lux]The first element, the second element and the third element in the list, all the first elements form a set and record the set as agr 1 { } all second elements are combined into one set and the set is agr 2 { } grouping all third elements into a set and noting the set as agr 3 { } calculating a transition value tran;
screening out transition elements by a first algorithm, wherein in all the transition elements, the average value of all the transition elements is subtracted from the transition element with the largest value to be used as a first numerator, the average value of all the transition elements added with the transition element with the smallest value is used as a first denominator, and the value obtained by multiplying one half of the transition element by the first numerator and dividing the first denominator is used as the brightness transition rate;
the method for screening the first element, the second element and the third element in the array lux is specifically as follows:
in array lux []In (2), lux (1), lux (2), …, lux(s) min ) The first element;
lux(s) min +1),lux(s min +2),…,lux(s max ) A second element; lux(s) max +1),lux(s max +2), …, lux (N) is denoted as the third element; wherein s is min =min{su,sh},s max =max { su, sh }, min { } represents the minimum value for the number in { }, max { } represents the maximum value for the number in { };lux(s min ) And lux(s) max ) Respectively represent lux []The s < th > of (3) min Elements and lux []The s < th > of (3) max An element;
the method for screening out the transition element by the first algorithm comprises the following steps:
s201, setting integer variables j and k, wherein the value intervals of the variables j and k are S min ,s max ]The initial value of the variable j is set to s min The initial value of the variable k is set to s max Representing variable j in array lux [ with lux (j)]The j-th element corresponding to the above is represented by lux (k) that the variable k is in the array lux [ []The values of lux (j) and lux (k) change with the change of the values of the variables j and k, and j=s min 、k=s max Starting traversing j, k, initializing a counter REG, the initial value of REG is set to 0, creating a blank array psy []Go to S202;
s202, if four numbers of lux (j), lux (j+1), lux (k) and lux (k-1) meet any one of the first condition and the second condition, adding the values of two elements of lux (j+1) and lux (k-1) into an array psy [ ], and increasing the value of REG by 1, and then turning to S203;
s203, if the REG value is equal to or greater than T0, go to S205; if the REG value is less than T0, go to S204; wherein T0=min { T1, T2, T3}, T1 is the set agr 1 The number of all elements within { };
s204, if the variable j is less than S max -1, while the value of the variable k is greater than or equal to s min If the value of +1 is equal to +1, the value of variable j is increased by 1 and the value of variable k is decreased by 1, and the process goes to S202; if the value of variable j is equal to s max A value of-1, or a value of variable k less than s min A value of +1, then go to S205;
s205, all elements in the group psy are counted as transition elements;
the first condition and the second condition are specifically: first condition: abs (lux (j+1) -lux (j)) < tran, second condition: abs (lux (k) -lux (k-1)) > tran; abs () represents an absolute value of a number within () and lux (j+1) represents a subsequent element of the element lux (j) in the array lux [ ], and lux (k-1) represents a previous element of the element lux (k) in the array lux [ ].
2. The intelligent light control method according to claim 1, wherein the light sensor is a photodiode or a photoresistor.
3. The intelligent control method of light according to claim 1, wherein in step S300, the method for converting the brightness transition rate into the control signal is specifically as follows: setting any moment Tr, acquiring the illumination intensity lux (Tr) of ambient light at the moment Tr through a light sensor, and acquiring the illumination intensity luxR of a lamp at the moment Tr; a control signal is sent out by a microcontroller in the lamp, and the control signal is used for controlling the illumination intensity of the lamp; if the value of lux (Tr) is smaller than the value of luxR, reducing the illumination intensity of the lamp by M units through the control signal; if the value of lux (Tr) is greater than the value of luxR, increasing the illumination intensity of the lamp by M units through the control signal;
wherein the value of M is equal to the absolute value of the difference between lux (Tr) and luxR multiplied by the percentage of the luminance transition rate.
4. The intelligent control method of light according to claim 1, wherein in step S400, the method for controlling the brightness of the light by the control signal comprises: when the driving circuit of the lamp receives the control signal from the microcontroller, the current of the lamp is adjusted by the driving circuit according to the control signal, so that the illumination intensity of the lamp is increased or decreased.
5. An intelligent light control system, characterized in that, an intelligent light control system includes: a processor, a memory and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of a light intelligent control method according to any one of claims 1-4 when the computer program is executed, and the light intelligent control system runs in a computing device of a desktop computer, a notebook computer, a palm computer or a cloud data center.
CN202311111448.6A 2023-08-30 2023-08-30 Intelligent light control method and system Active CN117156640B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311111448.6A CN117156640B (en) 2023-08-30 2023-08-30 Intelligent light control method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311111448.6A CN117156640B (en) 2023-08-30 2023-08-30 Intelligent light control method and system

Publications (2)

Publication Number Publication Date
CN117156640A CN117156640A (en) 2023-12-01
CN117156640B true CN117156640B (en) 2024-03-22

Family

ID=88905559

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311111448.6A Active CN117156640B (en) 2023-08-30 2023-08-30 Intelligent light control method and system

Country Status (1)

Country Link
CN (1) CN117156640B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376265A (en) * 2010-07-26 2012-03-14 苹果公司 Display brightness control temporal response
CN106535437A (en) * 2016-11-30 2017-03-22 广东工业大学 Brightness adjusting method and device and intelligent desk lamp
JP2017073314A (en) * 2015-10-08 2017-04-13 シャープ株式会社 Illumination control device and illumination control system
CN112218403A (en) * 2020-11-13 2021-01-12 珠海雷特科技股份有限公司 Intelligent lamp, brightness and color temperature adjusting method thereof and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4283314B2 (en) * 2007-01-31 2009-06-24 シャープ株式会社 Illuminance sensor and dimming control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376265A (en) * 2010-07-26 2012-03-14 苹果公司 Display brightness control temporal response
JP2017073314A (en) * 2015-10-08 2017-04-13 シャープ株式会社 Illumination control device and illumination control system
CN106535437A (en) * 2016-11-30 2017-03-22 广东工业大学 Brightness adjusting method and device and intelligent desk lamp
CN112218403A (en) * 2020-11-13 2021-01-12 珠海雷特科技股份有限公司 Intelligent lamp, brightness and color temperature adjusting method thereof and computer readable storage medium

Also Published As

Publication number Publication date
CN117156640A (en) 2023-12-01

Similar Documents

Publication Publication Date Title
CN109919869B (en) Image enhancement method and device and storage medium
CN108876745B (en) Image processing method and device
CN111654594A (en) Image capturing method, image capturing apparatus, mobile terminal, and storage medium
CN110012210B (en) Photographing method and device, storage medium and electronic equipment
WO2019120016A1 (en) Image processing method and apparatus, storage medium, and electronic device
CN112767392B (en) Image definition determining method, device, equipment and storage medium
WO2020172888A1 (en) Image processing method and device
WO2023001001A1 (en) Light brightness adjustment method and apparatus, and electronic device
WO2018233254A1 (en) Terminal-based object recognition method, device and electronic equipment
CN108510557B (en) Image tone mapping method and device
CN112887582A (en) Image color processing method and device and related equipment
Taffel Google’s lens: Computational photography and platform capitalism
CN111859893B (en) Image-text typesetting method, device, equipment and medium
CN111654643B (en) Exposure parameter determination method and device, unmanned aerial vehicle and computer readable storage medium
CN113391778A (en) Paper-like screen display method, device and equipment
CN113596344A (en) Shooting processing method and device, electronic equipment and readable storage medium
CN104869319A (en) Image processing method and image processing device
CN115242983A (en) Photographing method, electronic device, computer program product, and readable storage medium
CN113920912B (en) Display attribute adjusting method and related equipment
CN117156640B (en) Intelligent light control method and system
CN105654470B (en) Image choosing method, apparatus and system
CN114612635A (en) Method and device capable of switching between augmented reality mode and virtual reality mode
CN114339060A (en) Exposure adjusting method and device, storage medium and electronic equipment
WO2022267978A1 (en) Backlight value adjustment method, and processor, display terminal and storage medium
CN114038370B (en) Display parameter adjustment method and device, storage medium and display equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant