Summary of the invention
The present invention is directed at least solve one of the technical problems existing in the prior art, a kind of light with music is providedControl method and lighting system with music, to solve the problems of the prior art.
As the first aspect of the invention, a kind of lamp light control method with music is provided, wherein described to have soundHappy lamp light control method is applied to the lighting system with music, and the lighting system with music includes more set lamps and lanterns,Every set lamps and lanterns correspond to a kind of light program, and multiple light programs corresponding to more set lamps and lanterns are all different, and the light journeySequence is to write completion in advance and store, and the lamp light control method with music includes:
Obtain the corresponding light program of every set lamps and lanterns;
The light program is decoded to obtain decoded signal, and the decoded signal is handled to obtain control signal;
The control signal is handled to obtain driving signal;
It is carried out according to the driving signal luminous;
Music corresponding with the light program is played according to the control signal.
Preferably, the light program write in advance and include: with storage
Multiple lamps and lanterns are grouped to obtain more set lamps and lanterns, every set lamps and lanterns include multiple lamps;
More song songs are provided, by every set lamps and lanterns collocation a piece of music song or more song songs;
Every set lamps and lanterns can be realized, light program is written as according to the process that the music track arranged in pairs or groups with it carries out light transformation;
The light program is stored.
Preferably, it is described by the light program carry out storage include:
The light program is uploaded to cloud server;
Alternatively, storing the light program to hardware memory.
Preferably, the corresponding more song songs of the light program are uploaded to cloud server and are stored.
As the second aspect of the invention, a kind of lighting system with music is provided, wherein described with musicLighting system includes:
Central controller, stereo set and cover lamps and lanterns, the stereo set and the central controller communicate to connect, every set lamp moreTool includes lamp dimmer and multiple lamps for connecting with the lamp dimmer, each lamp dimmer with the centerController connection;
The central controller is decoded the light program and is solved for obtaining the corresponding light program of every set lamps and lanternsCode signal, and the decoded signal is handled to obtain control signal, wherein the light program includes every set lamps and lanterns by soundThe program for the light transformation that happy control is realized, every set lamps and lanterns correspond to a kind of light program, and multiple lamps corresponding to more set lamps and lanternsLight path sequence is all different;
The lamp dimmer to the control signal received for being handled to obtain driving signal;
Multiple lamps in every set lamps and lanterns are used to be carried out according to the driving signal of the lamp dimmer output in the set lamps and lanterns luminous;
The stereo set is used to play music corresponding with the light program according to the control signal.
Preferably, the central controller includes memory module, and the memory module is for storing the lamp gotLight path sequence.
Preferably, the lighting system with music further includes storage device, and the storage device and the center are controlledDevice connection processed, the storage device is for storing the light program got.
Preferably, the storage device includes SD card or mobile hard disk.
Preferably, every set lamps and lanterns further include multiple electric machines, and each lamp is connect with an electric machine, and everyA electric machine is connect with the lamp dimmer, and the electric machine can drive according to the driving signal receivedThe lamp connected is swung.
Preferably, the stereo set includes Bluetooth audio device equipment.
Lamp light control method provided by the invention with music, by the way that light program is write and is stored in advance,Then the light program is called, and the light program is decoded to obtain control signal, due to realizing sound in light programThe control of the happy variation to light, it is thus achieved that controlling the effect of light transformation by music, and since every set lamps and lanterns are singleA solely corresponding light program, therefore more set lamps and lanterns can be realized the pattern conversion of a variety of light combinations, it is this with musicLamp light control method is thus at low cost and be suitable for small-sized due to using writing and store and be not required to the work of field programming in advanceApplication scenarios, while the diversity requirement of application can also be met.
Specific embodiment
Below in conjunction with attached drawing, detailed description of the preferred embodiments.It should be understood that this place is retouchedThe specific embodiment stated is merely to illustrate and explain the present invention, and is not intended to restrict the invention.
As the first aspect of the invention, a kind of lamp light control method with music is provided, wherein described to have soundHappy lamp light control method is applied to the lighting system with music, and the lighting system with music includes more set lamps and lanterns,Every set lamps and lanterns correspond to a kind of light program, and multiple light programs corresponding to more set lamps and lanterns are all different, and the light journeySequence is to write completion in advance and store, as shown in Figure 1, the lamp light control method with music includes:
S110, the corresponding light program of every set lamps and lanterns is obtained;
S120, the light program is decoded to obtain decoded signal, and the decoded signal is handled and is controlledSignal;
S130, the control signal is handled to obtain driving signal;
S140, carried out according to the driving signal it is luminous;
S150, music corresponding with the light program is played according to the control signal.
Lamp light control method provided by the invention with music, by the way that light program is write and is stored in advance,Then the light program is called, and the light program is decoded to obtain control signal, due to realizing sound in light programThe control of the happy variation to light, it is thus achieved that controlling the effect of light transformation by music, and since every set lamps and lanterns are singleA solely corresponding light program, therefore more set lamps and lanterns can be realized the pattern conversion of a variety of light combinations, it is this with musicLamp light control method is thus at low cost and be suitable for small-sized due to using writing and store and be not required to the work of field programming in advanceApplication scenarios, while the diversity requirement of application can also be met.
Specifically, the light program write in advance and include: with storage
Multiple lamps and lanterns are grouped to obtain more set lamps and lanterns, every set lamps and lanterns include multiple lamps;
More song songs are provided, by every set lamps and lanterns collocation a piece of music song or more song songs;
Every set lamps and lanterns can be realized, light program is written as according to the process that the music track arranged in pairs or groups with it carries out light transformation;
The light program is stored.
It is understood that by the way that light program is carried out preprogramming, i.e., by light as music track carries out lightThe process of transformation is written as light program in advance and is stored, and can call directly the light program when using in this way, not needField programming.
It should be noted that the light program is to be controlled according to music beat light transformation, and by every setLamps and lanterns, which can be realized, is written as this specific volume of light program according to the process for carrying out light transformation with its music track arranged in pairs or groupsProcess is write as known to those skilled in the art, details are not described herein again.
The a piece of music song it should also be noted that, every set lamps and lanterns can arrange in pairs or groups, can also arrange in pairs or groups more song songs, and oneSong song can also be that more set lamps and lanterns share.
Specifically, it is described by the light program carry out storage include:
The light program is uploaded to cloud server;
Alternatively, storing the light program to hardware memory.
It is understood that the light program can be stored in advance in the cloud server or, being stored in advanceIn hardware memory, for example, in mobile hard disk or SD card etc..
Specifically, the corresponding more song songs of the light program are uploaded to cloud server and are stored.
As the second aspect of the invention, a kind of lighting system with music is provided, wherein as shown in Fig. 2, describedLighting system 100 with music includes:
Central controller 110, stereo set 120 and more set lamps and lanterns 130, the stereo set 120 and the central controller 110Communication connection, every set lamps and lanterns 130 are including lamp dimmer 131 and the multiple lamps 132 connecting with the lamp dimmer 131, oftenA lamp dimmer 131 is connect with the central controller 110;
The central controller 110 is decoded the light program for obtaining the corresponding light program of every set lamps and lanternsTo decoded signal, and the decoded signal is handled to obtain control signal, wherein the light program includes every set lamps and lanternsBy the program for the light transformation that music control is realized, every set lamps and lanterns correspond to a kind of light program, and more corresponding to more set lamps and lanternsA light program is all different;
The lamp dimmer 131 to the control signal received for being handled to obtain driving signal;
Multiple lamps 132 in every set lamps and lanterns are used to be sent out according to the driving signal of the lamp dimmer output in the set lamps and lanternsLight;
The stereo set 120 is used to play music corresponding with the light program according to the control signal.
Lighting system provided by the invention with music, by the way that light program is write and stored in advance, thenThe light program is called by central controller, and is decoded to obtain control signal according to the light program, due to light journeyThe control of variation of the music to light is realized in sequence, it is thus achieved that the effect of light transformation is controlled by music, and due toEvery set lamps and lanterns individually correspond to a light program, therefore more set lamps and lanterns can be realized the pattern conversion of a variety of light combinations, thisKind of the lighting system with music is thus at low cost and be suitable for small due to using being stored in advance and be not required to the work of field programmingType application scenarios, while the diversity requirement of application can also be met.
In addition, the lighting system provided by the invention with music, since light program is write and being stored in advance,Therefore, with it is in the prior art it is general according to the proper decoded control mode of the methods of the high bass of music be have essence areaIt is other.
Specifically, the light program is stored in advance in cloud server.
It is understood that light program is stored in advance in cloud server, it can be convenient user and using the bandHave and directly obtain the light program from cloud server when the lighting system of music, there is wide coverage.Additionally, due to lightProgram writes in advance, and is stored in advance in cloud server, therefore compared with field programming in the prior art, atThis is low and easy to use, is more suitable for small application scene.
A kind of embodiment of the light program, the central controller 110 are obtained as the central controller 110Including memory module, after getting the light program from the cloud server, the memory module is obtained for storingThe light program got.
Specifically, the central controller 110 can be by the terminal with communication function from the cloud serverDownload the light program, and the central controller 110 is established with the terminal with communication function and communicated to connect, and then from endEnd gets the light program.
Obtain the another embodiment of the light program as the central controller 110, it is described with musicLighting system 110 further includes storage device, and the storage device is connect with the central controller 110, is taken when from the cloudAfter getting the light program on business device, the storage device is for storing the light program got.
Preferably, the storage device includes SD card or mobile hard disk.
Specifically, the terminal with communication function downloads the light program, the storage from the cloud serverDevice directly passes through communication connection by getting the light program in the terminal with communication function.
Specifically, in order to realize the swing of lamp in every set lamps and lanterns, every set lamps and lanterns 130 further include multiple electric machines 133, oftenA lamp 132 is connect with an electric machine 133, and each electric machine 133 connects with the lamp dimmer 131It connects, the electric machine 133 can drive connected lamp to swing according to the driving signal received.
It is understood that can be realized the swing of lamp by the way that electric machine 133 is arranged, thus realize the direction of lightChange, to enable every set lamps and lanterns to build several scenes.
It should be understood that since electric machine 133 is worked according to the driving signal, the driving signalIt is to be obtained by central controller 110 according to the light program of calling, therefore, electric shock device 133 is that by according to musicBeat realize swing.
It should be noted that including the program that the program of control light transformation further includes control motor in the light programThat is the program of light direction transformation.
Preferably, the stereo set 120 includes Bluetooth audio device equipment.
Specifically, in order to realize the communication between the central controller 110 and terminal and/or stereo set, it is described inEntreating controller 110 includes communication module.
Preferably, the communication module includes WIFI communication module.
It is understood that the central controller 110 with WIFI communication module may be implemented to communicate function with having WIFIThe terminal of energy realizes communication connection.
Specifically, the stereo set 120 can be communicated to connect directly with the central controller 110, such as center controlDevice 110 processed has bluetooth communication, and the stereo set 120 is Bluetooth audio device equipment, thus stereo set 120 can be realizedWith the connection of central controller 110, the function of corresponding music is played according to central controller 110 to realize.In addition, in describedEntreat controller 110 can also with the mobile terminal with communication function establish communicate to connect, the stereo set 120 also with the shiftingDynamic terminal establishes communication connection, for example, the communication connection established by bluetooth, the mobile terminal can be realized to stereo set120 volume and switch-mode regulation function.
Preferably, the central controller 110 includes single-chip microcontroller.
Sound is had to provided by the invention below with reference to the specific embodiment block diagram of the lighting system with music of Fig. 3The course of work of happy lighting system is described in detail.
4 sets of lamps and lanterns are given in Fig. 3, respectively combination 1a, combination 1b, combination 1c and combination 1d, every set lamps and lanterns include 5Lamp, combining has lamp 2, lamp 4, lamp 6, lamp 7 and lamp 9 in 1a, and combining has lamp 1, lamp 3, lamp 5, lamp 8 and lamp 10 in 1b, combines 2aIn there is lamp 1, lamp 3, lamp 5, lamp 7 and lamp 9, combining has lamp 2, lamp 4, lamp 6, lamp 8 and lamp 10 in 2b, since every set lamps and lanterns are correspondingOne light program, therefore there are four light program, respectively program 1a, program 1b, program 2a and program 2b.
Firstly the need of explanation, the central controller 110 in the embodiment is the program function write with interpretationOne signal central controller of energy, it may have WIFI communication function continues function in, and can produce with mobile phone or wireless terminalThe function of product connection.With broadcasting light program function, while the corresponding song of light program can be played, and can issueThe external equipments such as this instruction control motor.
In addition, each of every set lamps and lanterns lamp has an opposite lamp dimmer, which has decodingFunction, and there is number, write address code function.
Every set lamps and lanterns can obtain different-effect by adjusting current or voltage.According to different lamps and lanterns models, andThe quantity of lamps and lanterns is combined into an opposite light array, and effect of lamp includes that monochrome gets brighter gradually dark effect, have RGB orThe lamps and lanterns of RGBW.Every suit lamps and lanterns mostly form a fixed combination by the model of a fixed quantity or fixation, thisSet lamp combination can be combined with multiple songs.
Stereo set has Bluetooth function, can control sound equipment by mobile phone or mobile device.
In addition, the control to stereo set can be realized in present embodiment by two ways.The first is to pass through handMachine sowing is put the music on, and controls the high bottom of sound, this scheme can control in a small ranges such as Bluetooth functions, controls oneHost, and right two extension sets of the first from left near this host are controlled simultaneously.Second is to play sound by central controllerHappy, this is large-scale broadcast mode.This mode is the similar mode with broadcast, is played all under this controlAcoustics unit.