CN113438765B - Balance induction lamp, light control method thereof and storage medium - Google Patents

Balance induction lamp, light control method thereof and storage medium Download PDF

Info

Publication number
CN113438765B
CN113438765B CN202110711978.9A CN202110711978A CN113438765B CN 113438765 B CN113438765 B CN 113438765B CN 202110711978 A CN202110711978 A CN 202110711978A CN 113438765 B CN113438765 B CN 113438765B
Authority
CN
China
Prior art keywords
light
brightness
change
value
light bar
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
CN202110711978.9A
Other languages
Chinese (zh)
Other versions
CN113438765A (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.)
Shenzhen Haoli Software Co ltd
Original Assignee
Shenzhen Haoli Software 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 Shenzhen Haoli Software Co ltd filed Critical Shenzhen Haoli Software Co ltd
Priority to CN202110711978.9A priority Critical patent/CN113438765B/en
Publication of CN113438765A publication Critical patent/CN113438765A/en
Application granted granted Critical
Publication of CN113438765B publication Critical patent/CN113438765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/20Controlling the colour of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • 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/155Coordinated control of two or more light sources

Abstract

The invention discloses a balance induction lamp, a light control method thereof and a storage medium, wherein the method comprises the following steps: acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp; comparing the original brightness value of each light bar with a preset target brightness value, and comparing the original angle value with the target angle value to obtain a comparison result; acquiring a brightness interval to which an original brightness value of each light bar belongs; and controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar. According to the invention, the light change of the light bars is controlled according to the preset strategy corresponding to the brightness interval corresponding to each light bar according to the brightness comparison and angle comparison results, so that the effect of performing linkage control on the light bars according to the gyroscope parameters is achieved, and the light change of the balance induction lamp has a streamline visual effect.

Description

Balance induction lamp, light control method thereof and storage medium
Technical Field
The invention relates to the technical field of induction lamps, in particular to a balance induction lamp, a light control method thereof and a storage medium.
Background
The light of the current balance induction lamp (which can be understood as a type of desk lamp) is generally monochromatic light which is too monotonous and not high in playability; another method of mounting RGB lamps on a chip with high performance will result in high cost.
In addition, the balance induction lamp of current double-colored light, light links up not smoothly, and light change is few, and the limitation is great, leads to the user to be relatively poor to the visual sensation that light changes.
Disclosure of Invention
The embodiment of the invention provides a balance induction lamp, a light control method thereof and a storage medium, aiming at enabling light change to be more uniform and smooth and meeting the requirement of a user on visual effect.
The embodiment of the invention provides a light control method of a balance induction lamp,
acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp;
comparing the original brightness value of each light bar with a preset target brightness value, and comparing the original angle value with the target angle value to obtain a comparison result;
acquiring a brightness interval to which an original brightness value of each light bar belongs;
and controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar.
Further, the light bars comprise two light bars with different colors, the two light bars with different colors are respectively connected with a control chip, the balance induction lamp further comprises a touch key and a gyroscope, the touch key and the gyroscope are respectively connected with the control chip, and the light bars with two different colors are controlled by the touch key to input corresponding original brightness values and target brightness values;
the original angle value and the target angle value of the balance induction lamp are controlled and input by a gyroscope, and the gyroscope supports multi-stage light change of a preset angle.
Furthermore, the control chip comprises a main chip and an auxiliary chip, the main chip is respectively connected with the lamp strip and the touch key of one color, and the auxiliary chip is respectively connected with the lamp strip and the gyroscope of another color
Further, the controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs includes:
and based on the comparison result and the brightness interval to which each light bar belongs, controlling the light brightness of one color light bar to increase according to a preset strategy, and controlling the light brightness of the other color light bar to decrease according to the preset strategy.
Further, the method also comprises the following steps:
setting a light pulse width modulation upper limit value of the balance induction lamp;
uniformly dividing the light brightness of the balance induction lamp into a plurality of brightness intervals based on the pulse width modulation upper limit value;
and setting the preset strategy corresponding to each brightness interval as changing the brightness of the lamplight according to different multiple speeds.
Further, the controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs includes:
obtaining the change rate of the lamplight; wherein the change multiplying power is an increase multiplying power or a decrease multiplying power;
controlling the light change according to the change multiplying power of the corresponding multiplying speed based on the brightness interval of the light bar, and recording the periodicity of the light change;
judging whether the brightness value of the changed light bar meets the preset requirement or not by combining the target brightness value;
and when the changed brightness value of the light bar meets the preset brightness requirement, starting to control the light change of the next light bar.
Further, the preset brightness requirement is as follows: (b-a)/3+ a, wherein a is an original brightness value and b is a target brightness value.
Further, acquiring the change magnification of the light includes:
calculating the change multiplying factor k of the lamplight according to the following formula:
k=rw/n(T-e)
in the formula, r is the number of cycles when k is 1, w is the number of light bars required to be changed, n represents n light bars, T is the expected total cycle, and e is the number of additional cycles spent when the number of light bars is not changed simultaneously when the light change starts and ends.
The embodiment of the invention provides a balance induction lamp, which comprises:
the first acquisition unit is used for acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp;
the comparison unit is used for comparing the original brightness value of each light bar with a preset target brightness value and comparing the original angle value with the target angle value to obtain a comparison result;
the second acquisition unit is used for acquiring a brightness interval to which the original brightness value of each light bar belongs;
and the first control unit is used for controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs.
Further, the method also comprises the following steps: the device comprises a touch control chip, a lamp strip group, a gyroscope and a lampshade;
the touch control chip and the gyroscope are respectively connected with the first acquisition unit, the light bar group is respectively connected with the first control unit, the light bar group comprises a plurality of white LED lamps and yellow LED lamps, and the light bar group is arranged in the lampshade and is close to the yellow LED lamp bars.
The embodiment of the invention provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the light control method of the balance induction lamp is realized.
The embodiment of the invention provides a balance induction lamp, a light control method thereof and a storage medium, wherein the method comprises the following steps: acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp; comparing the original brightness value of each light bar with a preset target brightness value, and comparing the original angle value with the target angle value to obtain a comparison result; acquiring a brightness interval to which an original brightness value of each light bar belongs; and controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar. According to the embodiment of the invention, the original brightness value and the target brightness value of each light bar are compared by adopting the multiple chips to respectively match the multiple light bars, and the original angle value and the target angle value of the balance induction lamp are compared, so that the reference information of the light change can be obtained, and the light change of the light bars is controlled according to the preset strategy corresponding to the brightness interval by combining the brightness interval corresponding to each light bar, so that the effect of performing linkage control on the light bars according to the gyroscope parameters is achieved, the cost is reduced, and the light change of the balance induction lamp has a streamline visual effect.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a light control method according to an embodiment of the present invention;
fig. 2 is a schematic view of a sub-flow of a light control method according to an embodiment of the present invention;
fig. 3 is a schematic view of another sub-flow of the light control method according to the embodiment of the present invention;
FIG. 4 is a diagram of the overall hardware architecture provided by an embodiment of the present invention;
fig. 5 is a schematic diagram of an algorithm entry parameter in the light control method according to the embodiment of the present invention;
fig. 6 is a schematic flowchart of a multi-light-bar synchronization algorithm in the light control method according to the embodiment of the present invention;
fig. 7 is a schematic view illustrating a single light bar light change flow in the light control method according to the embodiment of the present invention;
FIG. 8 is a flowchart illustrating an overall algorithm of a light control method according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a balanced induction lamp according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a balance induction lamp according to an embodiment of the present invention;
FIG. 11 is a sub-schematic block diagram of a balanced induction lamp according to an embodiment of the present invention;
fig. 12 is another sub-schematic block diagram of a balanced induction lamp according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to the drawings, fig. 1 is a schematic flow chart of a light control method of a balance induction lamp according to an embodiment of the present invention, which specifically includes: steps S101 to S104.
S101, acquiring an original brightness value and an input target brightness value of each light bar in a balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp;
s102, comparing the original brightness value of each light bar with a preset target brightness value, and comparing the original angle value with the target angle value to obtain a comparison result;
s103, acquiring a brightness interval to which the original brightness value of each light bar belongs;
and S104, controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar.
According to the embodiment of the invention, the reference information of the light change can be obtained by comparing the original brightness value and the target brightness value of each light bar and the original angle value and the target angle value of the balance induction lamp, and the light change of the light bars is controlled according to the preset strategy corresponding to the brightness interval by combining the brightness interval corresponding to each light bar, so that the effect of carrying out linkage control on the light bars according to the gyroscope parameters is achieved, and the light change of the balance induction lamp has a streamline visual effect.
In one embodiment, the light bars comprise two light bars with different colors, the two light bars with different colors are respectively connected with a control chip, the balance induction lamp further comprises a touch key and a gyroscope, the touch key and the gyroscope are respectively connected with the control chip, and the light bars with two different colors are controlled by the touch key to input corresponding original brightness values and target brightness values;
the original angle value and the target angle value of the balance induction lamp are controlled and input by a gyroscope, and the gyroscope supports multi-stage light change of each preset angle.
Furthermore, the control chip comprises a main chip and an auxiliary chip, the main chip is respectively connected with the lamp strip and the touch key of one color, and the auxiliary chip is respectively connected with the lamp strip and the gyroscope of another color.
In this embodiment, two different color light bars are adopted, that is, as shown in fig. 4, the two color light bars are respectively a white LED lamp and a yellow LED lamp, wherein the white LED lamp is connected to a main chip, the main chip is controlled by a touch key through a TTL level signal (i.e., a transistor-transistor level signal), the yellow LED lamp is connected to a sub-chip, the sub-chip is controlled by a gyroscope through an i2c bus (a bidirectional two-wire system synchronous serial bus), and meanwhile, the main chip is communicated with the sub-chip through a uart bus (a universal asynchronous transceiver transmitter). The embodiment controls the light change through the double chips, and avoids the problem of higher cost caused by adopting the chip with stronger performance.
In a specific embodiment, the preset angle is 30 degrees, that is, the embodiment of the invention supports the light change of the gyroscope every 30 degrees, and improves the brightness change algorithm of the light, so that the desk lamp has a streamline visual effect on the user vision when the desk lamp is changed.
Further, in conjunction with fig. 5, there are four input parameters in this embodiment, which are an original brightness value a and a target brightness value b controlled by the touch key, and an original angle value c and a target angle value d at which the balance induction lamp is located and input by the gyroscope. Comparing the original brightness value a with the target brightness value b, and comparing the original angle value c with the target angle value d, so as to obtain four different comparison results, and for the four different comparison results, different lighting control algorithms, that is, lighting control algorithm 1, lighting control algorithm 2, lighting control algorithm 3, and lighting control algorithm 4 in fig. 5, may be correspondingly adopted in this embodiment. It will of course be appreciated that although the four light control algorithms are different, the principle of the four light control algorithms is essentially the same, i.e. only differ by increasing or decreasing the brightness value, or by increasing or decreasing the angle value.
In one embodiment, the step S104 includes:
and based on the comparison result and the brightness interval to which each light bar belongs, controlling the light brightness of one color light bar to increase according to a preset strategy, and controlling the light brightness of the other color light bar to decrease according to the preset strategy.
In this embodiment, the light of the lamp strip of two kinds of different colours is effectual synchronous through the asynchronous light transform of many lamp strips, and the lamp strip of two kinds of colours adopts the same strategy of predetermineeing to carry out light control promptly, but the light luminance of the lamp strip of a colour is for increasing, and the light luminance of the lamp strip of another kind of colour is for descending. Therefore, the brightness of the light can be dynamically and uniformly increased or decreased, the change of the light is more unobtrusive due to the asynchronous conversion of the multiple light bars, and the use feeling of a user is better.
In an embodiment, as shown in fig. 2, the light control method of the balance induction lamp further includes: steps S201 to S202.
S201, setting a light pulse width modulation upper limit value of the obtained balance induction lamp;
s202, uniformly dividing the lamp brightness of the balance induction lamp into a plurality of brightness intervals based on the pulse width modulation upper limit value;
s203, setting the preset strategy corresponding to each brightness interval to change the brightness of the lamplight according to different times of speed.
In this embodiment, according to the light pulse width modulation upper limit value of balanced induction lamp, evenly divide into a plurality of luminance intervals with the light luminance of lamp strip to set up corresponding speed of multiplying for each luminance interval and change light luminance, even the policy diverse is predetermine to each luminance interval correspondence. For example, the upper limit of the light pulse width modulation is set to be a multiple of 6, so that the brightness interval can be uniformly divided into 6 brightness intervals; for another example, if the upper limit of the lamp pulse width modulation is set to be a multiple of 8, the luminance interval can be uniformly divided into 8 luminance intervals.
In a specific embodiment, the number of the brightness intervals is 6, and the brightness intervals are marked as x1, x2, x3, x4, x5 and x6 in sequence according to the height; the preset strategy corresponding to each brightness interval is set to change the brightness of the lamplight according to different multiple speeds, and the method comprises the following steps:
setting x3 and x4 as a third brightness interval, and setting a preset strategy corresponding to the third brightness interval to change the brightness of the lamp light at a double speed;
setting x2 and x5 as a second brightness interval, and setting a preset strategy corresponding to the second brightness interval to change the brightness of the lamp light at twice speed;
setting x1 and x6 as a first brightness interval, and setting a preset strategy corresponding to the first brightness interval to change the brightness of the lamp light at a triple speed.
In real life, human eyes are not very sensitive to a lower area and a higher area of pwm (pulse width modulation) brightness values, so the embodiment divides the lamp brightness into 6 brightness intervals, and takes the x1 and x6 intervals as a first brightness interval, and sets a corresponding preset strategy to change the brightness at a triple speed; taking the x2 and x5 intervals as a second brightness interval, and setting the corresponding preset strategy to change the brightness at double speed; and taking the x3 and x4 intervals as second brightness intervals, and setting the corresponding preset strategy to change the brightness at a double speed, so that the uniform change of the brightness of the light in human eyes can be better realized.
In addition, the amplitude of the light change is different due to the different angles of the rotating gyroscope of the user, and when the light is changed at a fixed rate, the light changes at a slow speed. Therefore, in this embodiment, the time of the lamp change caused by different input parameters is substantially the same under the condition of local uniformity as much as possible, for example, the time T of each lamp change is set to 2000 cycles.
In one embodiment, as shown in fig. 3, the step S104 includes: steps S301 to S306.
S301, obtaining the change magnification of the lamplight; wherein the change multiplying power is an increase multiplying power or a decrease multiplying power;
s302, controlling light change according to change multiplying power corresponding to multiplying speed based on a brightness interval to which a light bar belongs, and recording the periodicity of the light change;
s303, judging whether the changed brightness value of the light bar meets a preset requirement or not by combining the target brightness value;
s304, when the brightness value of the changed light bar meets the preset brightness requirement, starting to control the light change of the next light bar.
In this embodiment, referring to fig. 6, y in fig. 6 represents a current luminance value of the light bar, and the current luminance value y is equal to the original luminance value a, that is, the light change is performed based on the original luminance value of the light bar. When the light is controlled to change, firstly, the change magnification of the obtained light needs to be calculated, and it is understood that the change magnification here may refer to an increase magnification (such as an increase rate in fig. 6) or a decrease magnification, and is specifically determined by the original luminance value and the target luminance value of the light bar, that is, when the original luminance value is less than or equal to the target luminance value (such as y < ═ b in fig. 6), the change magnification is the increase magnification, and when the original luminance value is greater than the target luminance value, the change magnification is the decrease magnification.
Then, the brightness interval of the light bar is judged, and then the light change according to which multiple speed can be determined. Specifically, when the brightness interval of the light bar is a first brightness interval, the light is changed according to the change multiplying power of 3 times speed; when the brightness interval of the light bar is a second brightness interval, light change is carried out according to the change multiplying power of 2 times of speed; and when the brightness interval of the light bar is a third brightness interval, the light is changed according to the change multiplying power of 1 time speed. As shown in fig. 6, after the light change is completed, the current luminance value of the light bar is increased to y +3k, or y +2k, or y + k.
Meanwhile, when the light bar is controlled to change the light, the number of cycles of the light change is recorded, for example, the number of cycles of the light change is added to 1, so that the number of cycles required in the process of enabling the overall light change to reach the target value is basically consistent. The situation that the time length of the whole light change is different due to the fact that the user rotates the gyroscope in angle or the brightness is adjusted in different sizes is avoided, and therefore poor experience is brought to the user.
In one embodiment, the preset brightness requirement is: (b-a)/3+ a, wherein a is an original brightness value and b is a target brightness value.
As shown in fig. 7, in the present embodiment, an asynchronous control method of multiple light bars is adopted, and when the brightness of the current light bar Ln meets the preset brightness requirement, that is, Ln > ═ b-a)/3+ a, the brightness control of the next light bar L (n +1) is started, and so on, until the light change of all light bars is completed. In the embodiment, it is considered that the brightness change of the single light bar one by one is more abrupt in visual effect, and the change time is slower, and if the asynchronous brightness change is performed by adopting a plurality of light bars, the change process is smoother, so that the visual effect of the light change is better.
In an embodiment, the obtaining of the variation magnification of the light includes:
calculating the change multiplying factor k of the lamplight according to the following formula:
k=rw/n(T-e)
in the formula, r is the number of cycles when k is 1, w is the number of light bars required to be changed, n represents n light bars, T is the expected total cycle, and e is the number of additional cycles spent when the number of light bars is not changed simultaneously when the light change starts and ends.
In this embodiment, when the change magnification of the light is calculated, the change magnification of the light is set to 1, so that the number r of cycles that the light changes can be obtained, and then the number of light bars that need to be changed can be determined according to the original angle value and the target angle value of the balance induction lamp, that is, according to a formula w ═ d-c)/30, where d and c are the target angle value and the original angle value, and 30 is a preset unit rotation angle of the gyroscope. And then, calculating the expected total period of the light change, wherein the calculation formula is T ═ sw/n + e, and s is the period number required by the actual light change of the single light bar. The change magnification of the lamp light can be changed according to the formula T ═ r/s, wherein s can be obtained by converting the formula T ═ sw/n + e, so that the change magnification can be obtained by calculating the formula of the change magnification of the lamp light through the formula, and the effect of enabling the brightness of the lamp light and the time to be uniformly changed under the condition that different target brightness values and target angle values are input can be realized.
As shown in fig. 8, when the light of the balance induction lamp is controlled to change, the input change of the light bar of the balance induction lamp, that is, the original brightness value and the target brightness value of the light bar, and the original angle value and the target angle value of the balance induction lamp, are detected first, and then the algorithm corresponding to the light bar is determined according to the changes of the four parameters, that is, the preset strategy corresponding to the light bar is determined. And calculating the k value of the light bar, namely the change multiplying power, then carrying out light change control on the light bar according to a single light bar algorithm, and recording the number of cycles of light change. According to the steps, light change control is carried out on two different color light bars of the balance induction lamp, namely, the light change is controlled by adopting a multi-light-bar synchronous algorithm.
Fig. 9 is a schematic block diagram of a balance induction lamp 900 according to an embodiment of the present invention, where the balance induction lamp 900 includes:
a first obtaining unit 901, configured to obtain an original brightness value and an input target brightness value of each light bar in the balanced induction lamp, and obtain an original angle value and an input target angle value of the balanced induction lamp;
the comparison unit 902 is configured to compare the original brightness value of each light bar with a preset target brightness value, and compare the original angle value with the target angle value to obtain a comparison result;
a second obtaining unit 903, configured to obtain a brightness interval to which an original brightness value of each light bar belongs;
and the first control unit 904 is configured to control the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs.
In one embodiment, as shown in fig. 10, the balance induction lamp 900 further includes: the system comprises a touch chip 1001, a light bar group 1002, a gyroscope and a lampshade 1003;
the touch chip 1001 and the gyroscope (not shown in the figure) are respectively connected with the first acquisition unit 801, the light bar group 1002 is connected with the first control unit 904, the light bar group 1002 comprises a plurality of white LED light bars and yellow LED light bars, and the light bar group 1002 is arranged in the lampshade 1003 and the white LED light bars are close to the yellow LED light bars.
In the embodiment, the white LED lamp and the yellow LED lamp are very close to each other in position, and when the light of the lamp changes, a user can feel that the positions of the lamps do not change.
In an embodiment, the light bar 1002 includes two light bars with different colors, the two light bars with different colors are respectively connected to a control chip, the balance induction lamp further includes a touch key and a gyroscope, the touch key and the gyroscope are respectively connected to the control chip, and the light bars with two different colors are controlled by the touch key to input corresponding original brightness values and target brightness values;
the original angle value and the target angle value of the balance induction lamp are controlled and input by a gyroscope, and the gyroscope supports multi-stage light change of each preset angle.
In one embodiment, the control chip comprises a main chip and an auxiliary chip, the main chip is respectively connected with the light bar and the touch key of one color, and the auxiliary chip is respectively connected with the light bar and the gyroscope of another color.
In an embodiment, the first control unit 904 comprises:
and the second control unit is used for controlling the light brightness of one color light bar to increase according to a preset strategy and controlling the light brightness of the other color light bar to decrease according to the preset strategy based on the comparison result and the brightness interval to which each light bar belongs.
In one embodiment, as shown in fig. 11, the balance induction lamp 900 further includes:
an upper limit obtaining unit 1101 configured to set a lamp light pulse width modulation upper limit value of the balance induction lamp 900;
an interval division unit 1102, configured to evenly divide the lamp brightness of the balance induction lamp 900 into a plurality of brightness intervals based on the pulse width modulation upper limit value;
the policy setting unit 1103 is configured to set a preset policy corresponding to each brightness interval to change the brightness of the lamp according to different multiple speeds.
In one embodiment, as shown in fig. 12, the first control unit 904 includes:
a change magnification acquiring unit 1201 for acquiring a change magnification of the light; wherein the change multiplying power is an increase multiplying power or a decrease multiplying power;
the period recording unit 1202 is configured to control light change according to change magnification corresponding to the speed multiplication based on the brightness interval to which the light bar belongs, and record the period number of the light change;
a requirement determining unit 1203, configured to determine, in combination with the target brightness value, whether the brightness value of the light bar after being changed meets a preset requirement;
the third control unit 1204 is configured to start to control the light change of the next light bar when the changed luminance value of the light bar meets the preset luminance requirement.
In one embodiment, the preset brightness requirement is: (b-a)/3+ a, wherein a is an original brightness value and b is a target brightness value.
In one embodiment, the change magnification acquiring unit 1201 includes:
the change multiplying power calculating unit is used for calculating the change multiplying power k of the lamplight according to the following formula:
k=rw/n(T-e)
in the formula, r is the number of cycles when k is 1, w is the number of light bars required to be changed, n represents n light bars, T is the expected total cycle, and e is the number of additional cycles spent when the number of light bars is not changed simultaneously when the light change starts and ends.
Since the embodiments of the apparatus portion and the method portion correspond to each other, please refer to the description of the embodiments of the method portion for the embodiments of the apparatus portion, which is not repeated here.
Embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed, the steps provided by the above embodiments can be implemented. The storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (9)

1. A light control method for a balance induction lamp, comprising:
acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp;
comparing the original brightness value of each light bar with a preset target brightness value, and comparing the original angle value with the target angle value to obtain a comparison result;
acquiring a brightness interval to which an original brightness value of each light bar belongs;
controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar;
further comprising:
setting a light pulse width modulation upper limit value of the balance induction lamp;
uniformly dividing the light brightness of the balance induction lamp into a plurality of brightness intervals based on the pulse width modulation upper limit value;
setting a preset strategy corresponding to each brightness interval as changing the brightness of the lamplight according to different multiple speeds;
the controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs comprises the following steps:
obtaining the change rate of the lamplight; wherein the change multiplying power is an increase multiplying power or a decrease multiplying power;
controlling the light change according to the change multiplying power of the corresponding multiplying speed based on the brightness interval of the light bar, and recording the periodicity of the light change;
judging whether the brightness value of the changed light bar meets the preset requirement or not by combining the target brightness value;
and when the changed brightness value of the light bar meets the preset brightness requirement, starting to control the light change of the next light bar.
2. The light control method of the balance induction lamp according to claim 1, wherein the light bars comprise two light bars with different colors, the two light bars with different colors are respectively connected with a control chip, the balance induction lamp further comprises a touch key and a gyroscope, the touch key and the gyroscope are respectively connected with the control chip, and the light bars with two different colors are controlled by the touch key to input corresponding original brightness values and target brightness values;
the original angle value and the target angle value of the balance induction lamp are controlled and input by a gyroscope, and the gyroscope supports multi-stage light change of each preset angle.
3. The light control method of the balance induction lamp according to claim 2, wherein the control chip comprises a main chip and an auxiliary chip, the main chip is respectively connected with the lamp strip of one color and the touch key, and the auxiliary chip is respectively connected with the lamp strip of the other color and the gyroscope.
4. The light control method of the balance induction lamp according to claim 2, wherein the controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval to which each light bar belongs comprises:
and based on the comparison result and the brightness interval to which each light bar belongs, controlling the light brightness of one color light bar to increase according to a preset strategy, and controlling the light brightness of the other color light bar to decrease according to the preset strategy.
5. The light control method of the balance induction lamp according to claim 1, wherein the preset brightness requirement is as follows: (b-a)/3+ a, wherein a is an original brightness value and b is a target brightness value.
6. The light control method of the balance induction lamp according to claim 1, wherein the obtaining of the change rate of the light comprises:
calculating the change multiplying factor k of the lamplight according to the following formula:
k=rw/n(T-e)
in the formula, r is the number of cycles when k =1, w is the number of light bars required to be changed, n represents n light bars, T is the expected total cycle, and e is the additional number of cycles spent when the number of light bars is not reached when the light change starts and ends and the number of light bars changes simultaneously.
7. A balanced induction lamp, comprising:
the first acquisition unit is used for acquiring an original brightness value and an input target brightness value of each lamp bar in the balanced induction lamp, and acquiring an original angle value and an input target angle value of the balanced induction lamp;
the comparison unit is used for comparing the original brightness value of each light bar with a preset target brightness value and comparing the original angle value with the target angle value to obtain a comparison result;
the second acquisition unit is used for acquiring a brightness interval to which the original brightness value of each light bar belongs;
the first control unit is used for controlling the light change of each light bar according to a preset strategy based on the comparison result and the brightness interval of each light bar;
the balance induction lamp further comprises:
the upper limit acquisition unit is used for setting the upper limit value of the light pulse width modulation of the balance induction lamp;
the interval dividing unit is used for uniformly dividing the lamp brightness of the balance induction lamp into a plurality of brightness intervals based on the pulse width modulation upper limit value;
the strategy setting unit is used for setting a preset strategy corresponding to each brightness interval to change the light brightness according to different multiple speeds;
the first control unit includes:
the variable magnification acquiring unit is used for acquiring the variable magnification of the lamplight; wherein the change multiplying power is an increase multiplying power or a decrease multiplying power;
the period recording unit is used for controlling light change according to change multiplying power corresponding to the multiplying speed based on the brightness interval to which the light bar belongs and recording the period number of the light change;
the requirement judging unit is used for judging whether the brightness value of the changed light bar meets the preset requirement or not by combining the target brightness value;
and the third control unit is used for controlling the light change of the next light bar when the changed brightness value of the light bar meets the preset brightness requirement.
8. The balanced induction lamp of claim 7, further comprising: the device comprises a touch control chip, a lamp strip group, a gyroscope and a lampshade;
the touch control chip and the gyroscope are respectively connected with the first acquisition unit, the lamp strip group is connected with the first control unit and comprises a plurality of white LED lamp strips and yellow LED lamp strips, and the lamp strip group is arranged in the lampshade and the white LED lamp strips are close to the yellow LED lamp strips.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the light control method of a balance induction lamp according to any one of claims 1 to 6.
CN202110711978.9A 2021-06-25 2021-06-25 Balance induction lamp, light control method thereof and storage medium Active CN113438765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110711978.9A CN113438765B (en) 2021-06-25 2021-06-25 Balance induction lamp, light control method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110711978.9A CN113438765B (en) 2021-06-25 2021-06-25 Balance induction lamp, light control method thereof and storage medium

Publications (2)

Publication Number Publication Date
CN113438765A CN113438765A (en) 2021-09-24
CN113438765B true CN113438765B (en) 2022-08-05

Family

ID=77754585

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110711978.9A Active CN113438765B (en) 2021-06-25 2021-06-25 Balance induction lamp, light control method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN113438765B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104797063B (en) * 2015-05-13 2018-05-01 广州市珠江灯光科技有限公司 Lamplight brightness adjusting method, device and LED light
EP3385601A4 (en) * 2015-12-02 2018-10-31 Sharp Kabushiki Kaisha Illumination device, display device, and television receiver
CN108966439B (en) * 2017-05-25 2021-04-20 深圳市海洋王照明工程有限公司 Indoor brightness adjusting method and device
CN111727135B (en) * 2018-03-14 2023-04-07 日立安斯泰莫株式会社 Automatic lighting system
CN111556605B (en) * 2020-04-21 2022-04-01 宁波大学科学技术学院 Method and system for controlling constant brightness of working surface of table lamp, storage medium and table lamp
CN111556632A (en) * 2020-05-22 2020-08-18 广东启源建筑工程设计院有限公司 Control method and control system of induction lamp
CN112594647B (en) * 2020-12-30 2022-08-09 南京缤致光电科技有限公司 Light adjusting method of ADB headlamp

Also Published As

Publication number Publication date
CN113438765A (en) 2021-09-24

Similar Documents

Publication Publication Date Title
JP4776294B2 (en) Method for setting color point of LED light source and integrated circuit for controlling LED light source
CN107342058B (en) Method, test board, system and equipment for adjusting brightness of liquid crystal display module
CN105632414B (en) Method for controlling backlight thereof, device and equipment in a kind of terminal device start process
CN104407795B (en) Display control method and display control unit
CN104076928B (en) A kind of method for adjusting text importing image
RU2009126135A (en) DEVICE FOR FORMING LIGHT WITH VARIABLE COLOR
CN105764204B (en) A kind of PWM light-dimming methods and PWM light modulating devices
CN104166530A (en) Display parameter adjustment method and device and terminal
CN103782657B (en) Electric equipment and network system
CN106251831A (en) A kind of screen display lightness regulating method based on ambient light and system
CN113438765B (en) Balance induction lamp, light control method thereof and storage medium
WO2005031644A8 (en) Method and system for scaling images
CN104240676B (en) Method for adjusting electronic device and electronic device
JP6581069B2 (en) Light source drive device
CN113260127B (en) Color temperature adjusting method, terminal equipment and computer readable storage medium
US20080074409A1 (en) Method for Controlling the Power Supply from a Power Source to a Power Consumer
CN109410813A (en) A kind of method of adjustment and device of touch-control blank
CN108964538A (en) Motor control system and method for digitally controlling motor speed
CN104376835A (en) Method for adjusting brightness and electronic device
US8004526B2 (en) Waveform data display device and method
JP2016152127A (en) Lighting system, controller, converter and lighting method
JP2017033841A (en) Light source drive device and dimming and toning control method
CN110809346A (en) Light adjusting method, light adjusting device and terminal equipment
CN112102787B (en) Backlight brightness control method, equipment, vehicle and storage medium of liquid crystal display screen
CN114340110A (en) Lamp effect control method and device and electronic 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