Embodiment
Below will cooperate graphic and example describes embodiments of the present invention in detail, by this to the present invention how the application technology means implementation procedure that solves technical problem and reach the technology effect can fully understand and implement according to this.
Core idea of the present invention is: a kind of light modulation tinting system as shown in Figure 1, comprising: central control board 1, controller 2, one or more decoder 3 and the one or more LED light fixtures corresponding with each decoder; Described central control board 1 is used for sending controling instruction, and described control command comprises: corresponding to the pattern information of control model with corresponding to the business information of pending business under the described control model; Described controller 2 is used to receive described control command and basis described pattern information is wherein resolved described business information, thereby obtains the drive signal of pending business under the described control model; Described decoder 3 obtains the duty cycle signals of each light source correspondence of corresponding LED light fixture according to described drive signal, according to the duty cycle signals of correspondence the light source of current LED light fixture is controlled.
Described control model comprises: color modulation pattern, tone modulating mode and/or intensity modulation pattern can also comprise color/tone/intensity variations pattern and flicker pattern or the like.Described duty cycle signals is used to indicate the duty ratio state of each light source in current time or one section duration, and/or the variable condition of the duty ratio in one section duration (realizing that effect promptly is that color/tone/light intensity of light source scintillation or light source changes).
Described central control board 1 is preserved the corresponding relation of control model and pattern information, and the corresponding relation of pending business and business information under the described control model; Described controller 2 at each pattern information, is preserved the business information under the corresponding control model and the corresponding relation of drive signal; Described decoder 3 is preserved the corresponding relation of drive signal and duty cycle signals.
Below with first embodiment light modulation tinting system of the present invention is described.Present embodiment realizes that based on serial protocol the scheme framework is as described above, and the thin portion function of the formation of drive signal, controller 2 and decoder 3 as described below.
Described drive signal comprises: a subsignal that is provided with respectively at each light source of described light fixture; Described controller 2, thus organize a plurality of subsignals to obtain a drive signal and transmission by serial protocol; Described decoder 3 obtains the duty cycle signals of corresponding light source according to each subsignal in the described drive signal, thereby corresponding light source is controlled.
When connecting with serial mode between described a plurality of decoders 3, whole resolution datas that each decoder 3 issued needs by described controller 2 are arranged in order to be provided with by the series sequence of corresponding decoder in a serial protocol signal and constitute a drive signal, send to a plurality of decoders 3 that connect with serial mode;
Current decoder is after the initial code position receives data in the described drive signal, the data that received are removed, and remaining data are arranged in order to be provided with by the series sequence of the decoder of remainder in a serial protocol signal constitute drive signal and be forwarded to next decoder.
Below with first application example first embodiment is described.As shown in Figure 2, central control board 1 comprises: wireless transmitter module 11, processing module 12 and display screen 13.As shown in Figure 3, controller 2 comprises: wireless receiving module 21, processing module 22.As shown in Figure 4, decoder 3 comprises: processing module 31 and the control module of docking with each light source.
1) central control board 1 triggers the color mode key, whole system enters the color modulation pattern, demonstrate current color on the display screen 13 of central control board 1, trigger this moment and increase or reduce key, and then can control the conversion of 4 groups of light fixtures order and go out different color (red greenish-yellow orange indigo purple), the color of the display screen 13 of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants the current color of 4 groups of light fixtures all is adjusted to redness, and per 1 group of light fixture correspondence is controlled by 1 decoder, and per 1 group of light fixture is made up of red, green, blue, white light source.The processing module 12 of central control board 1 is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X11+0x01), 0X11 is a pattern information, expression color modulation pattern, 0x01 is a business information, represents pure red;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X11, business information 0x01; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X11 by transferring corresponding mapping table in the internal memory, get access to 32 resolution data 0XFF 0X00 0X00 0X00 of business information 0x01 correspondence, this resolution data is promptly represented pure red.
Resolution data 0XFF 0X00 0X00 0X00 is organized as drive signal according to serial protocol sends to decoder 3, the decoder 3 one group of light fixture of controlling can be adjusted to redness.Want in this example the current color of 4 groups of light fixtures all is adjusted to redness, resolution data 0XFF 0X00 0X00 0X00 repeated to be arranged in order for four times be packaged into drive signal in the serial protocol mode and send to four decoders, the processing module 31 of first decoder 3 receives drive signal, on the initial code position, parse first group of resolution data 0XFF 0X00 0X00 0X00 wherein, and the first group of resolution data 0XFF 0X00 0X000X00 that is received removed, and remaining three groups of resolution datas are packaged into drive signal in the serial protocol mode are transmitted to next decoder, the rest may be inferred.
The 0XFF 0X00 0X00 0X00 that the processing module 31 of decoder 3 is come in according to reception analyzes and obtains duty cycle signals: the red light source duty ratio is 100%, and green, blue, white light source duty ratio is 0.This duty cycle signals is sent to the control module of each light source by the processing module 31 of decoder 3, control module uses MBI6651 to realize in this example, have only the MBI6651 of red light source to be in open mode, the MBI6651 of turquoise white light source is in closed condition, and this moment, whole light fixture was shown in red.
Below 32 resolution datas are described:
32 resolution datas are made up of 4 groups of data, as shown in Figure 5, the corresponding red, green, blue of difference, white light source, every group of data constitute by 8, the duty ratio of a light source of corresponding control, the corresponding relation such as the following table of every group 8 the resolution data and the duty cycle information of light source can rely on the relation table of following correspondence to make up 32 resolution datas, check colors and transfer in row adjustment thereby obtain activation bit:
Every group of resolution data |
The light source duty ratio |
00H |
|
0 |
01H |
0.39% |
02H |
0.78 |
03H |
1.17% |
04H |
1.56% |
05H |
1.95% |
06H |
2.34% |
07H |
2.73% |
08H |
3.12% |
…… |
…… |
19H |
10% |
88H |
50% |
FFH |
100% |
In 32 resolution datas each data 0 or 1 timing waveform as shown in Figure 6, wherein the specifying information of timing waveform sees the following form:
Title |
Describe |
The typical case |
Admissible error |
T0H |
Data |
0 high level time |
220 nanoseconds |
± 30 nanoseconds |
T0L |
Data |
0 low level time |
110 nanoseconds |
± 30 nanoseconds |
T1H |
Data |
1 high level time |
110 nanoseconds |
± 30 nanoseconds |
T1L |
Data |
1 low level time |
220 nanoseconds |
± 30 nanoseconds |
ALE | Latch signal | |
5 microseconds |
|
Below serial protocol is described:
The processing module of decoder adopts the mode transceive data of unipolarity NRZ, receive data by datain (data input) port after powering on, be transmitted to next decoder by dataout (data output) port after receiving 32 resolution datas, the dataout port drags down always before issuing.
During the Data Receiving, if receiving a long low level (is latch signal ALE, referring to Fig. 6), single-chip microcomputer is saved in internal memory to 32 resolution datas at once, according to 32 resolution datas, change the duty ratio output of corresponding light source, after disposing, wait for the input of 32 resolution datas of next group.
2) central control board 1 triggers the tone mode key, whole system enters the tone modulating mode, demonstrate color on the display screen LCD of central control board 1 with current tone, trigger this moment and increase or reduce key, and then can control 4 groups of light fixture conversion and go out different tones (for example under red pattern, color can be extremely pale red from dark red gradual change), the tone of the display screen LCD of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants the current color of 4 groups of light fixtures all is adjusted to light red by redness, and per 1 group of light fixture correspondence is controlled by 1 decoder, and per 1 group of light fixture is made up of red, green, blue, white light source.
Central control board 1 meeting is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X12+0x02), 0X12 is a pattern information, expression is to carrying out the tone modulating mode based on redness, and 0x02 is a business information, and the expression tone is a light red;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X12, business information 0x02; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X12 by transferring corresponding mapping table in the internal memory, get access to 32 resolution data 0XFF 0X00 0X00 0X19 of business information 0x02 correspondence, this resolution data is promptly represented light red;
Resolution data 0XFF 0X00 0X00 0X19 is organized as drive signal according to serial protocol sends to decoder 3, the decoder 3 one group of light fixture of controlling can be adjusted to light red.Want in this example the current color of 4 groups of light fixtures all is adjusted to light red, resolution data 0XFF 0X00 0X00 0X19 repeated to be arranged in order for four times be packaged into drive signal in the serial protocol mode and send to four decoders, the processing module 31 of first decoder 3 receives drive signal, on the initial code position, parse first group of resolution data 0XFF 0X00 0X00 0X19 wherein, and the first group of resolution data 0XFF 0X000X00 0X19 that is received removed, and remaining three groups of resolution datas are packaged into drive signal in the serial protocol mode are transmitted to next decoder, the rest may be inferred.
The 0XFF 0X00 0X00 0X19 that the processing module 31 of decoder 3 is come in according to reception analyzes and obtains duty cycle signals: the red light source duty ratio is 100%, and the white light source duty ratio is 10%, and green, blue-light source duty ratio is 0.This duty cycle signals is sent to the control module of each light source by the processing module 31 of decoder 3, control module uses MBI6651 to realize in this example, MBI6651 red, white light source is in open mode, the duty ratio of the MBI6651 of white light source is 10%, MBI6651 green, blue-light source is in closed condition, and this moment, whole light fixture was shown as light red.
3) central control board 1 triggers the light intensity mode key, whole system enters the intensity modulation pattern, demonstrate color on the display screen LCD of central control board 1 with current light intensity, trigger this moment and increase or reduce key, and then the light intensity conversion that can control 4 groups of light fixtures (is carried out classification to light intensity, the brightest 100, the most secretly be to be 0), the light intensity of the display screen LCD of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants the current redness of 4 groups of light fixtures is dimmed half (light intensity 50), and per 1 group of light fixture correspondence is controlled by 1 decoder, and per 1 group of light fixture is made up of red, green, blue, white light source.
Central control board 1 meeting is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X13+0x02), 0X13 is a pattern information, expression is to carrying out the intensity modulation pattern based on redness, and 0x02 is a business information, and the expression light intensity reduces half for red light intensity;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X13, business information 0x02; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X13 by transferring corresponding mapping table in the internal memory, get access to 32 resolution data 0X88 0X00 0X00 0X00 of business information 0x02 correspondence, this resolution data represents that promptly red light intensity reduces half;
Resolution data 0X88 0X00 0X00 0X00 is organized as drive signal according to serial protocol sends to decoder 3, the red light intensity of the decoder 3 one group of light fixture of controlling can be reduced by half.Want in this example the redness of the current demonstration of 4 groups of light fixtures is all dimmed half, resolution data 0X88 0X00 0X00 0X00 repeated to be arranged in order for four times be packaged into drive signal in the serial protocol mode and send to four decoders, the processing module 31 of first decoder 3 receives drive signal, on the initial code position, parse first group of resolution data 0X88 0X00 0X00 0X00 wherein, and the first group of resolution data 0X880X00 0X00 0X00 that is received removed, and remaining three groups of resolution datas are packaged into drive signal in the serial protocol mode are transmitted to next decoder, the rest may be inferred.
The 0X88 0X00 0X00 0X00 that the processing module 31 of decoder 3 is come in according to reception analyzes and obtains duty cycle signals: the red light source duty ratio is 50%, and green, blue, white light source duty ratio is 0.This duty cycle signals is sent to the control module of each light source by the processing module 31 of decoder 3, control module uses MBI6651 to realize in this example, have only the MBI6651 of red light source to be in open mode, MBI6651 green, blue, white light source is in closed condition, and the red intensity that this moment, whole light fixture showed has been reduced to original half.
4) central control board trigger switch key promptly opens or closes whole system.
Below with second embodiment light modulation tinting system of the present invention is described.Present embodiment realizes that based on serial protocol the scheme framework is as described above, drive signal be constructed as follows describe.
Described drive signal comprises: drive the DMX512 protocol signal of respective pins with each light source of controlling described light fixture.
For the drive signal among above second embodiment, follow the DMX512 agreement.Press the regulation of DMX512 agreement: referring to Fig. 9,1-signal, 2-reset accounting between back mark, 3-field, 4-start bit, 5-minimum data position, 6-the maximum data position, 7-position of rest, 8-position of rest, the 9-field (free time), 10-reset interval, 12-homing sequence, 13-DMX512 packet, 14-initial code (field 0 data), 15-field 1,16-field n (being 512 to the maximum) between preceding mark, 11-reset signal.
With field 0 is beginning, with the carrying data and to need the last field n of transmission be end (n is smaller or equal to 512, i.e. maximum totally 513 fields).Field 1 should send homing sequence before transmitting: reset signal, back mark and initial code reset.The field value that is carried on zero initial code (being used to identify follow-up field is typeless serial 8 bit informations) effective DMX512 data field afterwards is a decimal number 0~255.Thus, the present invention can (hexadecimal 00~FF) be provided with by 0~255 with effective adjusting data of corresponding color, tone or light intensity, for example 0 expression is closed, 255 expression maximums are exported or the like, constitutes drive signal thereby utilize these data to put into data field by the DMX512 agreement then.
Below with second application example second embodiment is described.As shown in Figure 2, central control board 1 comprises: wireless transmitter module 11, processing module 12 and display screen 13.As shown in Figure 7, controller 2 comprises: wireless receiving module 21, processing module 22, communication module 485 chips 23.As shown in Figure 8, decoder 3 comprises: processing module 31, communication module 485 chips 32 and the control module of docking with each light source.
At first, how the controlled individuality of describing at single decoder responds central control board:
1) central control board 1 triggers the color mode key, whole system enters the color modulation pattern, demonstrate current color on the display screen LCD of central control board 1, trigger this moment and increase or reduce key, and then can control the conversion of light fixture order and go out different color (red greenish-yellow orange indigo purple), the color of the display screen LCD of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants the current color of light fixture is adjusted to redness, and the light fixture correspondence is controlled by 1 decoder, and light fixture is made up of red, green, blue, white light source.Central control board 1 meeting is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X48+0x01), 0X48 is a pattern information, expression color modulation pattern, 0x01 is a business information, represents pure red;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X48, business information 0x01; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X48 by transferring corresponding mapping table in the internal memory, get access to the resolution data of business information 0x01 correspondence and constitute drive signal.
Controller 2 converts drive signal to differential signal by communication module 485 chips 23 and sends to decoder 3, decoder 3 receives differential signal and is converted to serial signal by communication module 485 chips 32, and the processing module 31 of decoder 3 resolves to serial signal and drives the DMX512 control signal of respective pins with the control red light source.
At this moment four of processing module 31 pins (the DMX512 control signal of corresponding red, green, blue and white respectively), the red light source duty ratio is 100%, green, blue, white light source duty ratio is 0, give the duty ratio modulation pin of control corresponding module, control module uses PT4115 to realize in this example, this moment, turquoise white PT4115 was in closed condition, had only red PT4115 to be in open mode, and then this moment, whole light fixture was shown in red.
2) central control board 1 triggers the tone mode key, whole system enters the tone modulating mode, demonstrate color on the display screen LCD of central control board 1 with current tone, trigger this moment and increase or reduce key, and then can control the light fixture conversion and go out different tones (for example under red pattern, color can be extremely pale red from dark red gradual change), the tone of the display screen LCD of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants that the current color key with light fixture is a light red, and the light fixture correspondence is controlled by 1 decoder, and light fixture is made up of red, green, blue, white light source.Central control board 1 meeting is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X58+0x02), 0X58 is a pattern information, expression is based on the tone modulating mode of redness, and 0x02 is a business information, the expression light red;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X58, business information 0x02; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X58 by transferring corresponding mapping table in the internal memory, get access to the resolution data of business information 0x02 correspondence and constitute drive signal.
Controller 2 converts drive signal to differential signal by 485 chips and sends to decoder 3, decoder 3 receives differential signal and is converted to serial signal by 485 chips, and the processing module 31 of decoder 3 resolves to serial signal and drives the DMX512 control signal of respective pins with the control red light source.
At this moment four of processing module 31 pins (the DMX512 control signal of corresponding red, green, blue and white respectively), the red light source duty ratio is 100%, the white light source duty ratio is 10%, green, blue-light source duty ratio is 0, give the duty ratio modulation pin of control corresponding module, control module uses PT4115 to realize in this example, and this moment, turquoise PT4115 was in closed condition, the PT4115 of Bai Hong is in open mode, and then this moment, whole light fixture was shown as light red.
3) central control board 1 triggers the light intensity mode key, whole system enters the intensity modulation pattern, demonstrate color on the display screen LCD of central control board 1 with current light intensity, trigger this moment and increase or reduce key, and then the light intensity conversion that can control light fixture (is carried out classification to light intensity, the brightest 100, the most secretly be to be 0), the light intensity of the display screen LCD of central control board 1 is respective change also;
As, central control board 1 triggers and increases key, wants the current redness of light fixture is dimmed half (light intensity 50), and the light fixture correspondence is controlled by 1 decoder, and light fixture is made up of red, green, blue, white light source.Central control board 1 meeting is according to the corresponding relation of the control model and the pattern information of its preservation, and the corresponding relation of pending business and business information under the described control model, send one group of data by serial ports, for example (0X68+0x02), 0X68 is a pattern information, expression is to carrying out the intensity modulation pattern based on redness, and 0x02 is a business information, and the expression light intensity reduces half for red light intensity;
After the triode that links to each other with serial ports receives described data and data amplitude is amplified, send to the wireless receiving module 21 of controller 2 via wireless transmitter module 11, and transfer to the processing module 22 of controller 2, processing module 22 discovery mode information 0X68, business information 0x02, processing module 22 meetings this moment for example are pure red (0X48+0x01) by the state of transferring current light fixture in the internal memory, according to current (0X68+0x02) that receives the pure red tone that carries out are modulated; According to the business information under the corresponding control model of preserving at each pattern information in the controller 2 and the corresponding relation of drive signal, promptly according to pattern information 0X68 by transferring corresponding mapping table in the internal memory, get access to the resolution data of business information 0x02 correspondence and constitute drive signal;
Controller 2 converts drive signal to differential signal by 485 chips and sends to decoder 3, decoder 3 receives differential signal and is converted to serial signal by 485 chips, and the processing module 31 of decoder 3 resolves to serial signal and drives the DMX512 control signal of respective pins with the control red light source.
At this moment four of processing module 31 pins (the DMX512 control signal of corresponding red, green, blue and white respectively), the red light source duty ratio is 50%, green, blue, white light source duty ratio is 0, this duty cycle signals is sent to the control module of each light source by the processing module 31 of decoder 3, control module uses PT4115 to realize in this example, have only the PT4115 of red light source to be in open mode, PT4115 green, blue, white light source is in closed condition, and the red intensity that this moment, whole light fixture showed has been reduced to original half.
4) central control board trigger switch key promptly opens or closes whole system.
Based on the controlled mechanism of the single decoder of second embodiment, controlling between many decoders can To adopt following pattern:
When connecting with serial mode between described a plurality of decoders 3, whole resolution datas that each decoder 3 issued needs by described controller 2 are arranged in order to be provided with by the series sequence of corresponding decoder in a DMX512 protocol signal and constitute a drive signal, send to a plurality of decoders 3 that connect with serial mode; Current decoder is after the initial code position receives data in the described drive signal, the data that received are removed, and remaining data are arranged in order to be provided with by the series sequence of the decoder of remainder in a serial protocol signal constitute drive signal and be forwarded to next decoder.
Perhaps, when connecting with parallel mode between described a plurality of decoders 3, respectively at each decoder, thereby described controller constitutes a drive signal with corresponding resolution data address bit setting by current decoder in a DMX512 protocol signal, sends to current decoder; Each decoder receives drive signal separately, and resolves data separately on the appropriate address position of drive signal separately.
Perhaps, when connecting with serial mode between described a plurality of decoders 3, whole resolution datas that each decoder issued needs by described controller are provided with by separately arrangement of address bits in a DMX512 protocol signal and constitute a drive signal, send to a plurality of decoders that connect with serial mode; Described drive signal is transmitted between each decoder, and each decoder receives described drive signal and parsing data separately on corresponding address bit.
Above-mentioned explanation illustrates and has described some preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the disclosed form of this paper, should not regard eliminating as to other embodiment, and can be used for various other combinations, modification and environment, and can in invention contemplated scope described herein, change by the technology or the knowledge of above-mentioned instruction or association area.And change that those skilled in the art carried out and variation do not break away from the spirit and scope of the present invention, then all should be in the protection range of claims of the present invention.