Method for controlling LED lamp by intelligent sound box

文档序号:1231820 发布日期:2020-09-08 浏览:6次 中文

阅读说明:本技术 一种智能音箱控制led灯的方法 (Method for controlling LED lamp by intelligent sound box ) 是由 唐峥 李本松 许兵兵 于 2020-06-16 设计创作,主要内容包括:本发明实施例公开了一种智能音箱控制led灯的方法,包括以下步骤:步骤100将led灯带分区配网;步骤200将分区后的led灯带通过通信系统与智能音箱建立通讯调控关系;步骤300在智能音箱上增设智能感知室内环境的第一光传感器,智能音箱通过第一光传感器监测的光强主动智能调控每个分区的led灯带;本方案的led灯带的运行根据人体的移动而自动调控,在正常情况下可以在主人说出led灯带一种智能音箱控制led灯的方法之前完成通电工作,即使主人没有语音控制灯带的通断,本实施方式还通过红外识别感应器识别人体的位置,当人体所在位置的led灯带没有通过语音控制开关,也可通过红外识别感应器反馈至智能音箱,智能音箱对该划分区域的led灯带进行通电操作。(The embodiment of the invention discloses a method for controlling an LED lamp by an intelligent sound box, which comprises the following steps: step 100, distributing the LED lamp strips in a partition mode; step 200, establishing a communication regulation and control relation between the partitioned LED lamp belts and the intelligent sound box through a communication system; step 300, adding a first optical sensor for intelligently sensing the indoor environment on the intelligent sound box, wherein the intelligent sound box actively and intelligently regulates and controls the LED lamp strip of each subarea through the light intensity monitored by the first optical sensor; the operation in led lamp area of this scheme is according to human removal and automatic regulation and control, can accomplish the circular telegram work before the owner says out the method in led lamp area intelligent audio amplifier control led lamp under normal conditions, even owner does not have the break-make in voice control lamp area, this embodiment still through the position of infrared recognition inductor discernment human body, led lamp area when human position does not pass through the voice control switch, also accessible infrared recognition inductor feeds back to intelligent audio amplifier, intelligent audio amplifier carries out the circular telegram operation to this division regional led lamp area.)

1. A method for controlling an LED lamp by an intelligent sound box is characterized by comprising the following steps:

step 100, distributing the LED lamp strips in a partition mode;

step 200, establishing a communication regulation and control relation between the partitioned LED lamp belts and the intelligent sound box through a communication system;

step 300, adding a first optical sensor for intelligently sensing the indoor environment on the intelligent sound box, and actively and intelligently regulating and controlling the LED lamp belts of each partition by the light intensity monitored by the intelligent sound box through the first optical sensor.

2. The method for controlling the led lamp by the smart sound box according to claim 1, wherein in the step 200, the specific implementation steps for establishing the communication regulation relationship between the led lamp strip and the smart sound box are as follows:

step 201, dividing distribution areas of the led lamp strips, dividing the led lamp strips in different areas into mutually independent father units, and respectively regulating and controlling each independent father unit by using a first microcontroller;

step 202, dividing the led lamp strips in the same parent unit into a plurality of mutually independent sub-units according to different functions, and respectively and uniformly regulating and controlling the led lamp strips contained in each sub-unit by using a second microcontroller;

step 203, connecting the first microcontroller and the second microcontroller into the intelligent sound box through the WIFI module or the Bluetooth module to establish a communication regulation and control relation between the LED lamp strip and the intelligent sound box.

3. The method for controlling the led lamp by the smart sound box according to claim 2, wherein the priority of the first microcontroller is greater than the priority of the second microcontroller, and the first microcontroller and the second controller operate by:

the first microcontroller controls the parent unit of the divided area to be powered on and powered off, and supplies power to the LED lamp strip and the second microcontroller in the corresponding area;

and the second microcontroller controls the actual operation switches of the led lamp belts of the child units with different functions corresponding to the parent unit.

4. The method for controlling the led lamps by the smart sound box according to claim 2, wherein the led strips in the same parent unit divide each child unit into an illumination lamp, a warm light and an atmosphere lamp according to different functions, the second microcontroller is configured to control the switch of each child unit led strip and the parameter variation of each child unit led strip, and the parameters of each child unit led strip include a light temperature level and a light intensity level.

5. The method for controlling the led lamps by the smart sound box according to claim 4, wherein in step 300, the steps of actively and intelligently controlling the led lamp strip of each partition by the smart sound box according to the light intensity monitored by the first light sensor are specifically implemented as follows:

s301, controlling the corresponding sub-unit led lamp strip to work by the intelligent sound box according to the voice command and the regulation command;

step S302, the intelligent sound box analyzes the light intensity parameters monitored by the first light sensor to regulate and control the parameters of the led lamp strip of the subunit.

6. The method for controlling the led lamp by the smart sound box according to claim 5, wherein in step S302, the specific implementation steps of the smart sound box for regulating and controlling the parameters of the led lamp strip of the subunit through the parameter analysis of the first light sensor include:

setting two critical values of the first optical sensor corresponding to the actual operation switches of the illuminating lamp, the warm light lamp and the atmosphere lamp;

distributing mapping relations between the lighting lamps, the warm light lamps, the atmosphere lamps and the division areas of the two critical values;

and the intelligent sound box controls the lamp belt to run according to the division region corresponding to the signal value of the current first optical sensor.

7. The method of claim 4, wherein the smart sound box is further provided with a sound wave sensor, and the sound wave sensor is used for identifying a position where the voice command is sent.

8. The method for controlling the led lamp by the smart sound box according to claim 7, wherein an infrared identification and positioning unit is disposed in the first microcontroller, and the method further comprises the following steps:

the intelligent sound box calculates the relative position of the intelligent sound box body and each infrared identification and positioning unit in real time;

the intelligent sound box identifies the position of a voice instruction sent by an owner through the sound wave sensor, and determines the moving direction of the owner through the sound wave position change of the voice;

the intelligent sound box calculates an infrared recognition positioning unit which is opposite to the movement direction of the owner and has the shortest distance with the position of the owner, and controls a first microcontroller corresponding to the infrared recognition positioning unit to be electrified and operated.

9. The method according to claim 7, wherein a second light sensor is also arranged on the ceiling of the area where the parent unit is located, the second light sensor is powered on and off by the first microcontroller, the second light sensor is used for monitoring the light intensity in the corresponding area, and the second microcontroller regulates and controls the parameters of the led light strip of the child unit according to the light intensity detected by the second light sensor.

10. A method for controlling an led lamp by a smart sound box according to claim 7, wherein a music light control model is provided in the smart sound box, and the method further comprises the following steps:

the intelligent sound box regulates and controls the first microcontroller according to the music light control model so as to manage parameters of each sub-unit LED lamp strip;

the method comprises the following steps of establishing a music light control model:

classifying music of the intelligent sound box according to music style;

setting the light parameters of each music style, and self-defining the light memory value of each music style;

and creating a mapping relation between the music style and the light memory value to obtain the music light control model.

Technical Field

The embodiment of the invention relates to the technical field of intelligent control of LED lamps, in particular to a method for controlling an LED lamp by an intelligent sound box.

Background

Speech recognition intelligence lamp is a ring in intelligence house. In the whole intelligent home system, the discussion of the intelligent lamp is not limited to the following forms: remote control type, network type, voice type.

The existing intelligent LED lamp strip has the following defects:

(1) although the light can be adjusted and the scene can be switched, the appointed app of the user still needs to be opened and manually adjusted;

(2) the led lamp strips in all the spaces are switched on and off simultaneously, so that personalized regulation and control are inconvenient, electricity is wasted, and environmental protection is influenced.

Disclosure of Invention

The invention provides a method for controlling an LED lamp by an intelligent sound box, which aims to overcome the defects of the prior art.

In order to achieve the above purpose, the present invention provides the following technical solutions:

a method for controlling an LED lamp by an intelligent sound box comprises the following steps:

step 100, distributing the LED lamp strips in a partition mode;

step 200, establishing a communication regulation and control relation between the partitioned LED lamp belts and the intelligent sound box through a communication system;

step 300, adding a first optical sensor for intelligently sensing the indoor environment on the intelligent sound box, and actively and intelligently regulating and controlling the LED lamp strip through the first optical sensor by the intelligent sound box.

As a preferred scheme of the present invention, in step 200, the step of establishing the communication regulation relationship between the led light strip and the smart sound box is:

step 201, dividing distribution areas of the led lamp strips, dividing the led lamp strips in different areas into mutually independent father units, and respectively regulating and controlling each independent father unit by using a first microcontroller;

step 202, dividing the led lamp strips in the same parent unit into a plurality of mutually independent sub-units according to different functions, and respectively and uniformly regulating and controlling the led lamp strips contained in each sub-unit by using a second microcontroller;

step 203, connecting the first microcontroller and the second microcontroller into the intelligent sound box through the WIFI module or the Bluetooth module to establish a communication regulation and control relation between the LED lamp strip and the intelligent sound box.

As a preferred aspect of the present invention, the priority of the first microcontroller is greater than the priority of the second microcontroller, and the working steps of the first microcontroller and the second controller are as follows:

the first microcontroller controls the parent unit of the divided area to be powered on and powered off, and supplies power to the LED lamp strip and the second microcontroller in the corresponding area;

and the second microcontroller controls the actual operation switches of the led lamp belts of the child units with different functions corresponding to the parent unit.

As a preferred scheme of the present invention, the led strips in the same parent unit divide each child unit into an illumination lamp, a warm light and an atmosphere lamp according to different functions, the second microcontroller is configured to control a switch of each child unit led strip and a parameter change of each child unit led strip, and the parameter of each child unit led strip includes a light cooling and heating level and a light intensity.

As a preferred scheme of the present invention, in step 300, after sending the voice instruction to the smart speaker or directly regulating and controlling the smart speaker through the smart speaker background App, the smart speaker controls the corresponding sub-unit led strip to operate according to the voice instruction and the regulation and control instruction, and the smart speaker regulates and controls the parameter of the sub-unit led strip through parameter analysis of the first optical sensor.

As a preferred scheme of the present invention, the intelligent sound box regulates and controls parameters of the led light strip of the subunit by analyzing parameters of the first optical sensor, and the specific implementation steps are as follows:

setting two critical values of the first optical sensor corresponding to the actual operation switches of the illuminating lamp, the warm light lamp and the atmosphere lamp;

distributing mapping relations between the lighting lamps, the warm light lamps, the atmosphere lamps and the division areas of the two critical values;

and the intelligent sound box controls the lamp belt to run according to the division region corresponding to the signal value of the current first optical sensor.

As a preferable scheme of the present invention, the smart sound box is further provided with a sound wave sensor, and the sound wave sensor is configured to identify a position where a voice command is issued.

As a preferred scheme of the present invention, an infrared identification positioning unit is disposed in the first microcontroller, the smart speaker is configured to receive and calculate a distance between the smart speaker body and each infrared identification positioning unit, and the implementation steps of the smart speaker adjusting and controlling the led light strip switch according to information of the acoustic wave sensor include:

the intelligent sound box calculates the relative position of the intelligent sound box body and each infrared identification and positioning unit in real time;

the intelligent sound box identifies the position of a voice instruction sent by an owner through the sound wave sensor, and determines the moving direction of the owner through the sound wave position change of the voice;

the intelligent sound box calculates an infrared recognition positioning unit which is opposite to the movement direction of the owner and has the shortest distance with the position of the owner, and controls a first microcontroller corresponding to the infrared recognition positioning unit to be electrified and operated.

As a preferable scheme of the present invention, a second light sensor is also disposed on the ceiling of the area where the parent unit is located, the second light sensor is powered on and powered off by the first microcontroller, the second light sensor is used to monitor the light intensity in the corresponding area, and the second microcontroller regulates and controls the parameter of the led light strip of the child unit according to the light intensity detected by the second light sensor.

As a preferred scheme of the present invention, the smart speaker receives a voice instruction or a background App to play music, a music light control model is provided in the smart speaker, the smart speaker regulates and controls the first microcontroller according to the music light control model to manage parameters of each led strip of the sub-units, and the implementation step of establishing the music light control model is as follows:

classifying music of the intelligent sound box according to music style;

setting the light parameters of each music style, and self-defining the light memory value of each music style;

and creating a mapping relation between the music style and the light memory value to obtain the music light control model.

The embodiment of the invention has the following advantages:

(1) according to the LED lamp strip control system, the LED lamp strips are divided into different father units according to regions, and each father unit is independently controlled by one control node, so that the condition that an intelligent sound box controls all the LED lamp strips to be switched on and off at the same time can be avoided, the flexibility and the practicability of the control of the LED lamp strips are improved, and the purpose of saving electricity is realized;

(2) the LED lamp strip has the advantages that the lighting mode can be automatically changed under different light intensities, and a master does not need to send a lighting change instruction, so that the control mode of the LED lamp strip is more intelligent, and in addition, the effects of saving electricity, protecting environment and reducing emission are achieved by controlling the operation of different quantities of lamp beads and the operation of different types of lamp strips according to different indoor light intensities;

(3) the operation of the LED lamp strip is automatically regulated and controlled according to the movement of the human body, the electrification work can be completed before the owner speaks the name of the LED lamp strip under the normal condition, even if the owner does not control the on-off of the lamp strip through voice, the position of the human body is identified through the infrared identification sensor, when the LED lamp strip at the position of the human body does not pass through the voice control switch, the LED lamp strip can be fed back to the intelligent sound box through the infrared identification sensor, and the intelligent sound box conducts electrification operation on the LED lamp strip in the divided area.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.

Fig. 1 is a schematic flow chart of a smart sound box control method according to an embodiment of the present invention.

Detailed Description

The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:线性LED驱动电路、系统及其驱动方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!