CN110636683A - Light control method and device for smart home - Google Patents

Light control method and device for smart home Download PDF

Info

Publication number
CN110636683A
CN110636683A CN201910972786.6A CN201910972786A CN110636683A CN 110636683 A CN110636683 A CN 110636683A CN 201910972786 A CN201910972786 A CN 201910972786A CN 110636683 A CN110636683 A CN 110636683A
Authority
CN
China
Prior art keywords
lamp
controlled
rgb
current
channels
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.)
Pending
Application number
CN201910972786.6A
Other languages
Chinese (zh)
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.)
Shanghai Lei Angyun Intelligent Technology Co Ltd
Original Assignee
Shanghai Lei Angyun Intelligent 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 Shanghai Lei Angyun Intelligent Technology Co Ltd filed Critical Shanghai Lei Angyun Intelligent Technology Co Ltd
Priority to CN201910972786.6A priority Critical patent/CN110636683A/en
Publication of CN110636683A publication Critical patent/CN110636683A/en
Pending legal-status Critical Current

Links

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a light control method and device for smart home, relates to the technical field of smart home, and can adaptively adjust the color temperature of light according to the current environment, so that the intelligent control degree of a light system is improved while the energy-saving effect is achieved. The method comprises the following steps: binding all indoor lamps in a networking manner to obtain an indoor lamp distribution diagram; collecting environment information of the position of an indoor lamp, and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment; selecting at least one lamp from the lamp distribution map to generate a lamp control circuit based on a control instruction of a user, wherein the lamp control circuit at least comprises one lamp to be controlled; and correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time. The device is applied with the method provided by the scheme.

Description

Light control method and device for smart home
Technical Field
The invention relates to the technical field of intelligent home, in particular to a light control method and device for intelligent home.
Background
The household light is mainly used for indoor lighting of a household, but with the development of economic society, people put forward new requirements on light lighting, and rooms where people live are private spaces of people, so that people who live on a day want to get home to enjoy a warm environment, and the arrangement of the light and the light of the rooms can have different influences on the mood of the people.
Although the setting of current house lamp includes a lot of, and along with the continuous development of thing networking, people can visit the household equipment through the internet to reach the purpose of control household equipment, if through thing networking control or regulation lighting system, this kind of control and regulation are energy-conserving not enough and not intelligent enough, and the colour temperature of light can not carry out the adaptability adjustment according to current environment.
Disclosure of Invention
The invention aims to provide a light control method and device for smart home, which can be used for adaptively adjusting the color temperature of light according to the current environment, and improving the intelligent control degree of a light system while achieving the energy-saving effect.
In order to achieve the above object, an aspect of the present invention provides a light control method for smart home, including:
binding all indoor lamps in a networking manner to obtain an indoor lamp distribution diagram;
collecting environment information of the position of an indoor lamp, and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment;
selecting at least one lamp from the lamp distribution map to generate a lamp control circuit based on a control instruction of a user, wherein the lamp control circuit at least comprises one lamp to be controlled;
and correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
Preferably, all indoor luminaires are bound in a networking manner, and the method for acquiring the indoor luminaire distribution map includes:
networking all indoor lamps, binding user accounts, and marking each indoor lamp with a unique label;
acquiring an indoor floor plan and marking the position of a lamp in the floor plan;
and matching the labels with the lamps marked in the house type graph to generate an indoor lamp distribution graph.
Preferably, the method for collecting the environment information of the position where the indoor lamp is located includes:
a light sensing unit and a clock unit are arranged beside each lamp, and the light sensing unit and the clock unit beside each lamp are connected with each other;
acquiring the ambient luminous flux at the position of the lamp through a light sensing unit to obtain current ambient brightness data;
and providing the current time corresponding to the collected environment brightness data through a clock unit.
Preferably, the method for calculating the RGB three-channel duty cycle of each lamp at the current time includes:
obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired by each lamp and the current moment corresponding to the current environment brightness data;
and obtaining the duty ratio of the RGB three channels of each lamp at the current moment according to the PWM duty ratio of the RGB of each lamp at the current moment.
Preferably, the method for selecting at least one lamp from the lamp distribution map to generate a lamp control circuit according to the control instruction of the user includes:
and the user selects at least one lamp in the lamp distribution diagram through the intelligent terminal to generate a lamp control circuit, and uploads the lamp control circuit to the server for storage for next calling after the lamp control circuit is named.
Further, the method for correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time includes:
receiving the pulse of each lamp to be controlled;
splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode;
dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, enabling the first part of sub-pulses to drive an R channel in the RGB three channels of the lamp to be controlled, enabling the second part of sub-pulses to drive a G channel in the RGB three channels of the lamp to be controlled, enabling the third part of sub-pulses to drive a B channel in the RGB three channels of the lamp to be controlled, and adjusting the color temperature of the lamp to be controlled in the current moment environment.
Compared with the prior art, the light control method for the intelligent home has the following beneficial effects:
the invention provides a light control method for intelligent home furnishing, firstly binding all indoor lamps in a networking way to obtain an indoor lamp distribution diagram, then collecting environment information at each lamp installation position, wherein the environment information comprises the current time and environment brightness data corresponding to the current time, calculating the RGB three-channel duty ratio of each lamp at the current time based on the environment information at each lamp installation position, a user can select lamps needing to be started from the lamp distribution diagram by using an intelligent terminal according to own requirements and preferences to construct a lamp control circuit, then regulating the RGB three-channel duty ratio of each lamp to be controlled according to the calculated RGB three-channel duty ratio suitable for each lamp to be controlled under the current environment, and keeping the RGB three-channel duty ratio of each lamp to be controlled consistent with the calculated RGB three-channel duty ratio suitable for the lamp to be controlled under the current environment, therefore, the color temperature of each lamp to be controlled can be accurately adjusted; in addition, because the brightness data of the ambient light can change along with the change of time, the RGB three-channel duty ratio suitable for the lamp to be controlled in the current environment is calculated in real time by receiving the brightness data of the current ambient light in real time, and the color temperature of the lamp to be controlled is adjusted in real time.
Therefore, the lamp control circuit can be customized according to the setting of the user, so that the unified control of a plurality of lamps to be controlled is realized, the convenient operation is brought to the user, meanwhile, the electric energy can be saved, and in addition, the color temperature of each lamp to be controlled can be accurately adjusted in real time based on the environment brightness data of the position where each lamp to be controlled is located.
Another aspect of the present invention provides a light control apparatus for smart home, to which the light control method for smart home mentioned in the above technical solution is applied, the apparatus including:
the distribution diagram acquisition unit is used for binding all indoor lamps in a networking manner to acquire an indoor lamp distribution diagram;
the calculating unit is used for collecting environment information of the positions of the indoor lamps and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment;
the circuit selection unit is used for selecting at least one lamp from the lamp distribution diagram to generate a lamp control circuit based on a control instruction of a user, and the lamp control circuit at least comprises one lamp to be controlled;
and the control unit is used for correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
Preferably, the computing unit comprises an acquisition module and a computing module:
the acquisition module is used for acquiring the ambient luminous flux at the position of the lamp through the light sensing unit to obtain current ambient brightness data, and providing the current time corresponding to the acquired ambient brightness data through the clock unit;
the calculation module is used for obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired beside each lamp and the current moment corresponding to the current environment brightness data, and obtaining the duty ratio of RGB three channels of each lamp at the current moment according to the PWM duty ratio of RGB of each lamp at the current moment.
Preferably, the control unit includes:
the pulse receiving module is used for receiving the pulse of each lamp to be controlled;
the pulse modulation module is used for splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode;
the pulse distribution module is used for dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, so that the first part of the sub-pulses drives an R channel in the RGB three channels of the lamp to be controlled, the second part of the sub-pulses drives a G channel in the RGB three channels of the lamp to be controlled, the third part of the sub-pulses drives a B channel in the RGB three channels of the lamp to be controlled, and the color temperature of the lamp to be controlled in the current moment environment is adjusted.
Compared with the prior art, the beneficial effects of the light control device for the smart home provided by the invention are the same as the beneficial effects of the light control method for the smart home provided by the technical scheme, and the detailed description is omitted here.
A third aspect of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, performs the steps of the light control method for smart home.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the invention are the same as the beneficial effects of the light control method for the smart home provided by the technical scheme, and the detailed description is omitted here.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic flow chart of a light control method for smart home in an embodiment of the present invention;
FIG. 2 is a circuit diagram of a light sensing module according to an embodiment of the present invention;
fig. 3 is a circuit diagram of the connection between the PIC24FV16KA301 single chip microcomputer and the lamp according to the first embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.
Referring to fig. 1, the present embodiment provides a light control method for smart home, including:
binding all indoor lamps in a networking manner to obtain an indoor lamp distribution diagram; collecting environment information of the position of an indoor lamp, and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment; selecting at least one lamp from the lamp distribution map to generate a lamp control circuit based on a control instruction of a user, wherein the lamp control circuit at least comprises one lamp to be controlled; and correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
In the light control method for smart homes provided by this embodiment, firstly, all indoor lamps are networked and bound to obtain an indoor lamp distribution map, then, environment information at each lamp installation position is collected, where the environment information includes a current time and environment brightness data corresponding to the current time, and the RGB three-channel duty ratio of each lamp at the current time is calculated based on the environment information at each lamp installation position, a user can use an intelligent terminal to select a lamp to be turned on from the lamp distribution map according to the user's needs and preferences to construct a lamp control circuit, then, the RGB three-channel duty ratio of each lamp to be controlled is adjusted according to the calculated RGB three-channel duty ratio suitable for each lamp to be controlled in the current environment, so that the RGB three-channel duty ratio of each lamp to be controlled is consistent with the calculated RGB three-channel duty ratio suitable for the lamp to be controlled in the current environment, therefore, the color temperature of each lamp to be controlled can be accurately adjusted; in addition, because the brightness data of the ambient light can change along with the change of time, the RGB three-channel duty ratio suitable for the lamp to be controlled in the current environment is calculated in real time by receiving the brightness data of the current ambient light in real time, and the color temperature of the lamp to be controlled is adjusted in real time.
Therefore, the lamp control circuit can be customized according to the setting of the user, so that unified control over a plurality of lamps to be controlled is achieved, convenient operation is brought to the user, electric energy can be saved, and the color temperature of each lamp to be controlled can be adjusted accurately in real time based on the ambient brightness data of the position where each lamp to be controlled is located.
In the above embodiment, all indoor luminaires are bound in a network, and the method for obtaining the indoor luminaire distribution map includes:
networking all indoor lamps, binding user accounts, and marking each indoor lamp with a unique label; acquiring an indoor floor plan and marking the position of a lamp in the floor plan; and matching the marks with the lamps marked in the house type graph to generate an indoor lamp distribution graph.
During specific implementation, a user connects an indoor intelligent lamp to a zigbee network protocol through an intelligent terminal, the zigbee network protocol is a low-power-consumption personal area network protocol based on the ieee802.15.4 standard, power consumption of the whole system can be reduced, positions of the lamps are marked on a house type icon, meanwhile, a unique mark is made for each lamp, and finally, the mark is matched with the lamps marked in the house type icon to generate an indoor lamp distribution diagram, for example: the lamp distribution diagram can clearly see the distribution positions and the lamp labels of the indoor lamps, the specific process can be realized by the user through the intelligent terminal, and the embodiment does not need to repeat the description.
It can be understood that, in the above embodiment, the color temperature of the lamp to be controlled in the current time environment is adjusted according to the duty ratio of the RGB three channels of the lamp to be controlled at the current time, specifically: the RGB three-channel duty ratio value is input into the three-primary-color control circuit or the control unit, and the RGB three-channel duty ratio of the lamp to be controlled is controlled through the three-primary-color control circuit or the control unit, so that the color temperature is adjusted. The three primary color control circuit in the above embodiments is a control circuit existing in the field, and details of the specific structure of the three primary color control circuit are not described herein.
Specifically, the method for collecting the environmental information of the position where the indoor lamp is located in the above embodiment includes:
a light sensing unit and a clock unit are arranged beside each lamp, and the light sensing unit beside each lamp is connected with the clock unit; acquiring the ambient luminous flux at the position of the lamp through a light sensing unit to obtain current ambient brightness data; and providing the current time corresponding to the collected environment brightness data through a clock unit.
In specific implementation, the light sensing unit comprises a light sensing module and an A/D conversion module, wherein the light sensing module is used for acquiring ambient luminous flux to obtain current ambient brightness data; the A/D conversion module is used for converting the analog signal of the current environment brightness data into a digital signal. According to the specific implementation process, the analog signal of the current environment brightness data is converted into the digital signal through the A/D conversion module, so that the anti-interference performance of the environment brightness data transmitted in the circuit can be improved.
In order to ensure the timing accuracy of the clock unit, a power supply module is arranged in the clock unit, an independent power supply is arranged in the power supply module and used for supplying power to the clock unit, and the problem that the clock unit cannot work when the power supply fails is avoided.
Referring to fig. 2, the photo sensing module is an array composed of a plurality of photo sensing circuits, which include transistors T1-T18 and capacitors C1-C4, wherein: a gate of the transistor T1 is connected to CLK, a source is connected to the drain of T9, a drain of T1 is connected to the gate of T3, a source of T3 is connected to the drain of T13, a drain of T3 is connected to OUT, a gate of T2 is connected to CLK, a source of T2 is connected to CTRL, a drain of T2 is connected to the gate of T13, the gate of T6 and the drain of T15 and one end of C3, a source of T13 is connected to the drain of T11 and the source of T15, a drain of T15 is also connected to the base of T4, a drain of T4 is connected to the source of T4, a source of T4 is connected to one end of C4 and the drain of T4, the other end of T4 is connected to OUT, an input end of the a/D conversion module, a gate of T4 is connected to the drain of T4 and the drain of T4, a drain of T4 is connected to Vin, and the drain of T4 is connected to Vin, the drain of T4, and the drain of T4, the drain of T4 is connected to Vin, the drain of T4, the drain of the gate of T36, The source of T8 and one end of C4, the gate of T7 is connected with the gate of T8, the drain of T8 is connected with the source of T10, the other end of C4 is connected with the drain of T10 and the source of T17, the gate of T17 is connected with CLK, the drain of T17 is grounded, the gate of T12 is connected with the source of T17, the gate of T11 is connected with the drain of T1, the drain of T12 is connected with the source of T12 and the source of T12, the gate and the drain of T12 are connected with the gate of T12, the gate of T12 is connected with the drain of T12, the gate of T12 is connected with the gate of T12, and the gate of T12 is connected with the gate. Therefore, when a plurality of photo-sensing circuits are formed into an array, a photo-sensor (not shown) is provided at the capacitor C1 for sensing the intensity of the natural light irradiated thereon. The CTRL terminal is used for controlling whether the light sensing circuit starts to work or not, Vin provides reference voltage, and the OUT terminal outputs the current value of the light sensing circuit. The CLK is used to provide the working clock of the optical sensing circuit, so as to continuously scan the output end of each row and each column to output the current value, and further convert the current value into a voltage value through the different resistors (not shown). The array formed by the circuit can enhance the control precision of the intelligent home system to the illumination requirement, and better control the working state and the color temperature parameter of the lamp to be controlled.
In the above embodiment, the method for calculating the duty ratio of the RGB three channels of each lamp at the current time includes:
obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired by each lamp and the current moment corresponding to the current environment brightness data; and obtaining the duty ratio of the RGB three channels of each lamp at the current moment according to the PWM duty ratio of the RGB of each lamp at the current moment.
In specific implementation, each lamp is provided with a computing unit, the computing unit comprises a first computing module and a second computing module, the input end of the first computing module is connected with the output end of the corresponding A/D conversion module, the output end of the first computing module is connected with the input end of the second computing module, and as the current environment brightness data changes along with the change of time, the current time is collected by the first computing module when the environment brightness data is received, the current environment brightness data is computed in combination with the current time, so that the PWM duty ratio of RGB suitable for the current environment brightness data is computed in real time, and then the second computing module is used for computing the RGB three-channel duty ratio of the lamp to be controlled under the current time environment brightness data.
In order to simplify the circuit in practical applications, it is preferable to use an FPGA chip that can simultaneously realize the functions of the first computing module and the second computing module. Illustratively, a fuzzy neural network algorithm is implanted into the FPGA chip, and according to the brightness data of the lamp to be controlled in the current time environment, the FPGA chip can accurately calculate the duty ratio of RGB three channels of the lamp to be controlled in the current time environment brightness data in real time through the fuzzy neural network algorithm.
In the above embodiment, the method for generating the lamp control circuit by selecting at least one lamp from the lamp distribution map according to the control instruction of the user includes: the user selects at least one lamp in the lamp distribution diagram through the intelligent terminal, a lamp control circuit is generated, and the lamp control circuit is uploaded to the server to be stored for next calling after the lamp control circuit is named.
When the intelligent lamp control system is specifically implemented, one end of the server is networked with the intelligent terminal, the other end of the server is networked with indoor lamps through the gateway, so that a user can select lamps in a lamp distribution diagram through the intelligent terminal and correspondingly draw lamp control circuits, the user can also draw corresponding multiple lamp control circuits through multiple selections, then each lamp control circuit is uploaded to the server for storage after self-naming, and the user can directly call the corresponding lamp control circuit to rapidly implement control response when the intelligent lamp control system is used next time.
Specifically, in the above embodiment, the method for correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time includes:
receiving the pulse of each lamp to be controlled; splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode; dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, enabling the first part of the sub-pulses to drive an R channel in the RGB three channels of the lamp to be controlled, enabling the second part of the sub-pulses to drive a G channel in the RGB three channels of the lamp to be controlled, enabling the third part of the sub-pulses to drive a B channel in the RGB three channels of the lamp to be controlled, and adjusting the color temperature of the lamp to be controlled in the environment of the current moment.
In specific implementation, a control unit is installed beside each lamp and executes the control operation by the control unit, the control unit comprises a pulse receiving module, a pulse modulation module and a pulse distribution module which are connected in sequence, the input end of the pulse receiving module is connected with the output end of the second calculation module, the output end of the pulse distribution module is connected with the pulse drive in the lamp, the pulse receiving module receives the pulse transmitted by the pulse drive of each lamp to be controlled in real time, the pulse transmitted by the pulse drive changes along with the change of the color temperature of the lamp to be controlled, the pulse receiving module transmits the pulse received in real time to the pulse modulation module, the pulse modulation module divides each received pulse into a plurality of sub-pulses in a pulse width modulation mode, and then the pulse distribution module calculates the duty ratio of three channels of RGB (red, green and blue) suitable for the lamp to be controlled under the current environment, the multiple sub-pulses are divided into three parts, the first part of sub-pulses drives an R channel in RGB three channels of the lamp to be controlled, the second part of sub-pulses drives a G channel in RGB three channels of the lamp to be controlled, the third part of sub-pulses drives a B channel in RGB three channels of the lamp to be controlled, the pulse distribution module can accurately control the duty ratio of the RGB three channels by controlling the proportion of the multiple sub-pulses divided into three parts, and therefore the color temperature of the lamp to be controlled can be accurately controlled. It can be understood that the pulse modulation module divides the split sub-pulses into three parts, the proportion of each part may be equal or different, and the specific distribution proportion is determined according to the current environment brightness data and the calculated value of the RGB three-channel duty ratio suitable for the light emitting device in the current environment.
In order to simplify the circuit, the control unit is preferably a PIC24FV16KA301 single chip microcomputer, and the PIC24FV16KA301 single chip microcomputer can realize the functions of the pulse receiving module, the pulse modulation module and the pulse distribution module. Referring to fig. 3, the connection between the PIC24FV16KA301 single chip and the lamp to be controlled is as follows:
a VSS pin in the PIC24FV16KA301 singlechip is grounded;
a VDD pin in the PIC24FV16KA301 singlechip is connected with one end of a capacitor C3, and the other end of the capacitor C3 is grounded;
an RB13 pin in the PIC24FV16KA301 singlechip is connected with a PWN-B channel of the lamp;
an RB14 pin in the PIC24FV16KA301 singlechip is connected with a PWM-G channel of the lamp;
RB15 pin in the PIC24FV16KA301 singlechip is connected with the PWM-R channel of the lamp.
Example two
This embodiment provides a light controlling means for intelligent house, includes:
the distribution diagram acquisition unit is used for binding all indoor lamps in a networking manner to acquire an indoor lamp distribution diagram;
the calculating unit is used for collecting environment information of the positions of the indoor lamps and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment;
the circuit selection unit is used for selecting at least one lamp from the lamp distribution diagram to generate a lamp control circuit based on a control instruction of a user, and the lamp control circuit at least comprises one lamp to be controlled;
and the control unit is used for correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
Preferably, the computing unit comprises an acquisition module and a computing module:
the acquisition module is used for acquiring the ambient luminous flux at the position of the lamp through the light sensing unit to obtain current ambient brightness data, and providing the current time corresponding to the acquired ambient brightness data through the clock unit;
the calculation module is used for obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired beside each lamp and the current moment corresponding to the current environment brightness data, and obtaining the duty ratio of RGB three channels of each lamp at the current moment according to the PWM duty ratio of RGB of each lamp at the current moment.
Preferably, the control unit includes:
the pulse receiving module is used for receiving the pulse of each lamp to be controlled;
the pulse modulation module is used for splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode;
the pulse distribution module is used for dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, so that the first part of the sub-pulses drives an R channel in the RGB three channels of the lamp to be controlled, the second part of the sub-pulses drives a G channel in the RGB three channels of the lamp to be controlled, the third part of the sub-pulses drives a B channel in the RGB three channels of the lamp to be controlled, and the color temperature of the lamp to be controlled in the current moment environment is adjusted.
Compared with the prior art, the beneficial effects of the light control device for the smart home provided by the embodiment are the same as the beneficial effects of the light control method for the smart home provided by the embodiment, and are not repeated herein.
EXAMPLE III
The embodiment provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the lighting control method for smart home are executed.
Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the embodiment are the same as the beneficial effects of the light control method for smart home provided by the technical scheme, and are not repeated herein.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the invention may be implemented by hardware instructions related to a program, the program may be stored in a computer-readable storage medium, and when executed, the program includes the steps of the method of the embodiment, and the storage medium may be: ROM/RAM, magnetic disks, optical disks, memory cards, and the like.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. The light control method for the smart home is characterized by comprising the following steps:
binding all indoor lamps in a networking manner to obtain an indoor lamp distribution diagram;
collecting environment information of the position of an indoor lamp, and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment;
selecting at least one lamp from the lamp distribution map to generate a lamp control circuit based on a control instruction of a user, wherein the lamp control circuit at least comprises one lamp to be controlled;
and correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
2. The method of claim 1, wherein all the indoor luminaires are bound in a networked manner, and the method of obtaining the indoor luminaire distribution map comprises:
networking all indoor lamps, binding user accounts, and marking each indoor lamp with a unique label;
acquiring an indoor floor plan and marking the position of a lamp in the floor plan;
and matching the labels with the lamps marked in the house type graph to generate an indoor lamp distribution graph.
3. The method of claim 1, wherein the method of collecting the environment information of the indoor luminaire comprises:
a light sensing unit and a clock unit are arranged beside each lamp, and the light sensing unit and the clock unit beside each lamp are connected with each other;
acquiring the ambient luminous flux at the position of the lamp through a light sensing unit to obtain current ambient brightness data;
and providing the current time corresponding to the collected environment brightness data through a clock unit.
4. The method of claim 3, wherein the method of calculating the RGB three-channel duty cycle of each luminaire at the current time comprises:
obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired by each lamp and the current moment corresponding to the current environment brightness data;
and obtaining the duty ratio of the RGB three channels of each lamp at the current moment according to the PWM duty ratio of the RGB of each lamp at the current moment.
5. The method of claim 4, wherein the method of selecting at least one luminaire from the luminaire profile to generate a luminaire control line according to a control instruction of a user comprises:
and the user selects at least one lamp in the lamp distribution diagram through the intelligent terminal to generate a lamp control circuit, and uploads the lamp control circuit to the server for storage for next calling after the lamp control circuit is named.
6. The method of claim 5, wherein the method for correspondingly adjusting the color temperature of each lamp to be controlled in the environment at the current time according to the RGB three-channel duty ratio of each lamp to be controlled at the current time comprises:
receiving the pulse of each lamp to be controlled;
splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode;
dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, enabling the first part of sub-pulses to drive an R channel in the RGB three channels of the lamp to be controlled, enabling the second part of sub-pulses to drive a G channel in the RGB three channels of the lamp to be controlled, enabling the third part of sub-pulses to drive a B channel in the RGB three channels of the lamp to be controlled, and adjusting the color temperature of the lamp to be controlled in the current moment environment.
7. The utility model provides a light controlling means for intelligent house which characterized in that includes:
the distribution diagram acquisition unit is used for binding all indoor lamps in a networking manner to acquire an indoor lamp distribution diagram;
the calculating unit is used for collecting environment information of the positions of the indoor lamps and calculating the duty ratio of RGB (red, green and blue) three channels of each lamp at the current moment, wherein the environment information comprises the current moment and environment brightness data corresponding to the current moment;
the circuit selection unit is used for selecting at least one lamp from the lamp distribution diagram to generate a lamp control circuit based on a control instruction of a user, and the lamp control circuit at least comprises one lamp to be controlled;
and the control unit is used for correspondingly adjusting the color temperature of each lamp to be controlled in the current time environment according to the duty ratio of the RGB three channels of each lamp to be controlled at the current time.
8. The apparatus of claim 7, wherein the computing unit comprises an acquisition module and a computing module:
the acquisition module is used for acquiring the ambient luminous flux at the position of the lamp through the light sensing unit to obtain current ambient brightness data, and providing the current time corresponding to the acquired ambient brightness data through the clock unit;
the calculation module is used for obtaining the PWM duty ratio of RGB of each lamp at the current moment according to the current environment brightness data acquired beside each lamp and the current moment corresponding to the current environment brightness data, and obtaining the duty ratio of RGB three channels of each lamp at the current moment according to the PWM duty ratio of RGB of each lamp at the current moment.
9. The apparatus of claim 8, wherein the control unit comprises:
the pulse receiving module is used for receiving the pulse of each lamp to be controlled;
the pulse modulation module is used for splitting each received pulse into a plurality of sub-pulses in a pulse width modulation mode;
the pulse distribution module is used for dividing a plurality of sub-pulses into three parts according to the duty ratio of RGB three channels of the lamp to be controlled at the current moment, so that the first part of the sub-pulses drives an R channel in the RGB three channels of the lamp to be controlled, the second part of the sub-pulses drives a G channel in the RGB three channels of the lamp to be controlled, the third part of the sub-pulses drives a B channel in the RGB three channels of the lamp to be controlled, and the color temperature of the lamp to be controlled in the current moment environment is adjusted.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 6.
CN201910972786.6A 2019-10-14 2019-10-14 Light control method and device for smart home Pending CN110636683A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910972786.6A CN110636683A (en) 2019-10-14 2019-10-14 Light control method and device for smart home

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910972786.6A CN110636683A (en) 2019-10-14 2019-10-14 Light control method and device for smart home

Publications (1)

Publication Number Publication Date
CN110636683A true CN110636683A (en) 2019-12-31

Family

ID=68976576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910972786.6A Pending CN110636683A (en) 2019-10-14 2019-10-14 Light control method and device for smart home

Country Status (1)

Country Link
CN (1) CN110636683A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600453A (en) * 2023-05-23 2023-08-15 深圳市海凌科电子有限公司 Distributed lamp control system and control method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203748080U (en) * 2014-03-13 2014-07-30 京东方科技集团股份有限公司 Illumination control system
CN106332420A (en) * 2016-08-31 2017-01-11 北京易能量智能科技有限公司 Large-scale intelligent lighting control system and implementation method thereof
CN106455266A (en) * 2016-10-25 2017-02-22 京东方科技集团股份有限公司 Color temperature adjusting device and color temperature adjusting method
CN107085378A (en) * 2017-05-10 2017-08-22 苏州天平先进数字科技有限公司 The illuminator linked based on camera
CN109661080A (en) * 2018-12-17 2019-04-19 苏州欧普照明有限公司 A kind of control method and control system of key networking

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203748080U (en) * 2014-03-13 2014-07-30 京东方科技集团股份有限公司 Illumination control system
CN106332420A (en) * 2016-08-31 2017-01-11 北京易能量智能科技有限公司 Large-scale intelligent lighting control system and implementation method thereof
CN106455266A (en) * 2016-10-25 2017-02-22 京东方科技集团股份有限公司 Color temperature adjusting device and color temperature adjusting method
CN107085378A (en) * 2017-05-10 2017-08-22 苏州天平先进数字科技有限公司 The illuminator linked based on camera
CN109661080A (en) * 2018-12-17 2019-04-19 苏州欧普照明有限公司 A kind of control method and control system of key networking

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116600453A (en) * 2023-05-23 2023-08-15 深圳市海凌科电子有限公司 Distributed lamp control system and control method thereof
CN116600453B (en) * 2023-05-23 2024-04-09 深圳市海凌科电子有限公司 Distributed lamp control system and control method thereof

Similar Documents

Publication Publication Date Title
Chew et al. Design of an energy-saving controller for an intelligent LED lighting system
US9992841B2 (en) Systems and methods for controlling color temperature
CN109691230A (en) Modular lighting panel
CN103889115A (en) Illumination control system
CN109997182A (en) For adjusting the lighting apparatus and method of the periodically-varied in simulation output
CN101956941B (en) LED (Light Emitting Diode) aquarium light
KR102013809B1 (en) Natural light led lighting device and control method thereof
CN101784145A (en) Remote stepless dimming LED multi-path drive constant-current system and constant-current source
CN101521972A (en) Intelligent lighting control system based on ZigBee technology and LED light source and application thereof
CN104619073A (en) Phone control based lamp control method and control system therefore
CN110636683A (en) Light control method and device for smart home
CN104754828A (en) Lighting control method, device and system for LED lamp
CN105636265A (en) Novel LED classroom lamp
CN108738200A (en) Color temperature adjustment device, the system and method for lamp group
US20230319960A1 (en) System and methods for generating customized color temperature dimming curves for lighting devices
Wu et al. Smart household environment illumination dimming and control
CN108224350A (en) A kind of classroom LED Healthy Lighting automatic control systems based on natural light
CN208707988U (en) Lamps and lanterns and lighting system
CN203748080U (en) Illumination control system
CN201577222U (en) Remote stepless dimming LED multiplex drive constant current system and constant current source
Hung et al. Halftone control method in white light leds by using an embedded remote controller with ZigBee communication
Özçelik The design and comparison of central and distributed light sensored smart LED lighting systems
Wu Design and Implementation of an LED automatic lighting system for plant factories
CN208707989U (en) The color temperature adjustment apparatus and system of lamp group
CN202172510U (en) Multi-channel LED (light-emitting diode) controlling and driving system

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
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191231