CN107172792A - A kind of APP music intelligent lamps of tunable optical toning - Google Patents
A kind of APP music intelligent lamps of tunable optical toning Download PDFInfo
- Publication number
- CN107172792A CN107172792A CN201710554310.1A CN201710554310A CN107172792A CN 107172792 A CN107172792 A CN 107172792A CN 201710554310 A CN201710554310 A CN 201710554310A CN 107172792 A CN107172792 A CN 107172792A
- Authority
- CN
- China
- Prior art keywords
- msub
- mrow
- mfrac
- bluetooth communication
- mobile phone
- 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
Links
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/175—Controlling the light source by remote control
- H05B47/19—Controlling the light source by remote control via wireless transmission
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/10—Controlling the intensity of the light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/20—Controlling the colour of the light
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
- H05B47/115—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
- H05B47/12—Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by detecting audible sound
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Signal Processing (AREA)
- Heterocyclic Carbon Compounds Containing A Hetero Ring Having Oxygen Or Sulfur (AREA)
Abstract
A kind of APP music intelligent lamps of tunable optical toning, including mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and LED, described LED is RGB LEDs, mobile phone A PP modules and bluetooth communication wireless connection, bluetooth communication connects digital analog converter, digital analog converter connects PWM control modules, PWM control modules connect LED, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, Bluetooth communication hop algorithm is write into mobile phone A PP and bluetooth communication, PWM control modules are by changing color and the brightness of the duty cycle adjustment LED of LED, the present invention is by algorithm chip and circuit can by inputting, corresponding parameter is counter to extrapolate corresponding dutycycle directly by the LED light of needs, in the case where adjusting dutycycle to color, illumination is dynamically adjusted, PWM light modulation advantage be dim it is more accurate, colors changing hue is faster, the color more beautiful of light modulation, the pattern of light modulation has more color changes than traditional mode.
Description
Technical field
The present invention relates to the APP music intelligent lamps of field of household appliances, more particularly to a kind of toning of tunable optical.
Background technology
Intelligent appliance, exactly introduces microprocessor, sensor technology, the network communications technology family formed after home appliance
Electric product, with automatic sensing residence space state and household electrical appliances oneself state, household electrical appliances service state, can automatically control and receive
Residential customer is in premises or long-range control instruction;Meanwhile, intelligent appliance, can be with living as the part of smart home
Other household electrical appliances and household, facility interconnection composition system, realize smart home function in residence, and which forms one in Internet of Things
Individual application most specifically, with mankind's application demand and household electrical appliances are intelligentized continues to develop, its content will more be enriched, and most
The intelligent appliance that mankind's daily life can be incorporated is exactly LED lamp, certainly, according to the different intelligent household electrical appliances of actual application environment
Function also can difference, but intelligent appliance should typically possess following basic function:Communication function, intelligent program control function,
Interactive control etc., most basic homework therein, is exactly wireless control function, in intelligent domestic system and Internet of Things application,
LED is also to best embody one of household electrical appliances of intelligent control, remote control, controlled in wireless.
As the rapid advances of photoelectric technology, and attention of the China's Mainland to New Energy Industry are increased, possess environmental protection, section
The LED illumination industry of energy characteristic is quickly becoming one of most popular industry, is researched and developed according to China national Semiconductor Lighting
And the data display that industry alliance provides, Chinese LED illumination sales Value of Industry increases on year-on-year basis up to 60,000,000,000 yuans within 2009
Long more than 30%, China is turned into one of global LED industry region with fastest developing speed, Chinese LED manufacture strength and manufacture water
Why the flat leading role for also playing the part of the whole world, LED can be favored by market or even people, be because its luminance
It is very high, 801m/w can be reached, more than 80% can be economized on electricity under identical light situation, largely just served
The effect of energy-conservation, the colour temperature of LED has many kinds, and the colour rendering of various colour temperatures is very good, and the index of colour developing is also very high, can
To be selected and be allocated according to the usage scenario of terminal user, the EMI of LED meets the index in the whole world, and power factor is more than
It is less than or equal to 20% equal to 0.9, two harmonic distortion, the loss of the electric energy of supply circuit can be reduced, reduces the infringement to circuit,
Power network will not be polluted, the full voltage range index of LED is between 264V, it ensure that the brightness of LED in 85V
Less likely influenceed with service life ratio by voltage pulsation, LED is almost used in the world, LED does not have
Without mercury etc. hazardous substance inside radiation, its lamp, safer to human body, LED is pure DC operation, will not be because handing over
There is the phenomenon of stroboscopic in stream switching, and this eliminates the need for causing visual fatigue phenomenon because of stroboscopic during light fixture use.
At present, the switch that people are touched on light fixture by using hand carries out the control to light fixture, uses very not square
Just, if the control to light fixture can be carried out by the smart mobile phone in people's hand, just it can be brought great convenience to life.Pass through
SMS etc. is controlled to light fixture, needs user to pay campus network.
The content of the invention
The present invention is intended to provide a kind of APP music intelligent lamps of tunable optical toning.
To realize above-mentioned technical purpose, the present invention uses following technical scheme, a kind of APP music intelligence of tunable optical toning
Lamp, including music signal acquisition module, signal processing module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM
Control module and LED, music signal acquisition module connection signal processing module, signal processing module connection mobile phone A PP modules,
Music signal acquisition module is specifically mobile microphone, and signal processing module is specifically a staircase generator, by microphone
The audio signal collected, which is converted into after stepped-up voltage signal, is transmitted further to mobile phone A PP modules, and described LED is RGB LED
Lamp, mobile phone A PP modules and bluetooth communication wireless connection, bluetooth communication connection digital analog converter, digital analog converter connect
PWM control modules are connect, PWM control modules connection LED, bluetooth communication passes through after receiving mobile phone A PP control signal
Digital analog converter outputs signal to PWM control modules, and bluetooth communication is carried out using bluetooth hop algorithm with mobile phone A PP modules
Data transfer, mobile phone A PP and bluetooth communication are write by Bluetooth communication hop algorithm, to ensure that mobile phone A PP leads to bluetooth
The consistent communication module of receiving and sending messages of letter module can be just in communication with each other, and bluetooth communication uses bluetooth hop algorithm and mobile phone
APP modules carry out data transmission, and Bluetooth communication hop algorithm are write into mobile phone A PP and bluetooth communication, to ensure mobile phone
The consistent communication module of receiving and sending messages of APP and bluetooth communication can be just in communication with each other, and hop algorithm is that frequency band is divided into some
Individual frequency hopping channel, in once connecting, radio transceiver constantly jumps to another according to certain code sequence from a channel
Individual channel, only receiving-transmitting sides are communicated according to this rule, and other interference sources can not possibly be disturbed according to same rule,
There are 10 kinds of frequency hop sequences altogether, be divided into 79 jumps and 23 and jump, 79 jumps and 23 jumps respectively there are 5 kinds, and they are respectively:Call frequency hopping sequence
Row, call answering sequence, search sequence, inquiry response sequence and Channel Hopping Sequence, each channel is by a pseudo-random hopping
Sequence represents that the frequency hop sequences of each piconet are different, and frequency hopping selection scheme is made up of two parts:A sequence is selected,
The sequence is mapped on Hopping frequencies;In the case where choosing sequence, input data, the data of input are divided into two groups, respectively
Local clock and current address, under the connection status of mobile phone A PP modules and bluetooth communication, local clock (CLKN) by
One compensation equal with master clock (CLK) is modified, specifically, and local clock is the MCU crystalline substances in bluetooth communication
Shake the clock signal produced on circuit, master clock refers to clock signal when MCU receives mobile communication, and equal compensation refers to crystalline substance
One compensation circuit of the circuit that shakes connection is compensated the distorted signals received, it is ensured that signal stabilization, the frequency hopping in connection status
The input data of selection scheme can only use 27 M S B of clock, and under calling and inquiry sub-state, will use clock
Whole 28 MSB, inquiry state refer to bluetooth module can at interval of several seconds inquiry once whether connect mobile phone terminal and whether
There is new command, call state refers to a kind of instruction of the change of operating handset APP modules control lamp, under call state, locally
Clock will be modified to estimate of the called unit to master unit;The input data of current address is constituted by 28, i.e., whole LAP
(bluetooth low address part) and UAP's (bluetooth high address part) is low 4, in connection status, and master unit address can be used,
Call and calling unit address is then used under sub- state, and when for inquiry sub-state, will use and GIAC (general polling identifications
Code) corresponding UAP/LAP, the local clock and current address inputted under above-mentioned several states export after mapping, constitutes one
Individual pseudo-random sequence, the mapping process of frequency hopping selection scheme is operated by an add operation, X O R, arranges operation, second addition
Computing and register selecting sequence are constituted, and an add operation adds a constant only on the stage, and to 32 modulus, and for
Frequency hop sequences are called, an add operation is unnecessary, because it only changes state in this frequency range, in X O R operations, such as
Fruit represents the output of an add operation with Z ', then the four of Z ' L S B make the XOR fortune of mould 2 with address bit A22-19 respectively
Calculate, output is respectively Z0, Z1, Z2, Z3.Arrangement operation is the core of the algorithm, is included for 79 hop patterns from input 5 to output
5 switching, during which uses the mode of operation that butterfly-unit is controlled by control word, and the mapping relations for inputting and exporting are jumped according to 79
It is divided into 23 jump both of which following two:For 79 hop patterns, it is 64M Hz's that frequency hopping selection scheme, which will select to take gap,
32 frequency hopping bands, and these frequency hoppings are accessed once with random order, then, one 32 different frequency hopping band of selection, and the like,
For calling, calling scanning and the sub- state of call answering, same 32 frequency hopping band will be used, the section is selected by address, it is different
Unit will have different exhalation frequency ranges;23 hop patterns are that the digit of each module input signal cable and end are deposited with 79 hop patterns
Number of storage unit etc. slightly has difference, can be produced using unified hardware circuit or software program and meet both of which requirement
Frequency hop sequences, and in same pattern, in order to produce the frequency hop sequences under various states, it is only necessary to receive mobile phone to Bluetooth chip
APP input control signal A-F, X, Yl, Y2 takes different values;
Data signal is reduced to analog signal to control PWM control modules by changing by digital analog converter by ladder algorithm
Become color and the brightness of the duty cycle adjustment LED of LED, it is first determined the relation of LED chromaticity coordinates and dutycycle, change
LED PWM duty cycle is driven, its LED chromaticity coordinate do not change substantially, and luminous flux correspondingly linear change and luminous flux
Ratio be equal to the ratio of dutycycle, so for the convenience of call for Votes in engineering, be approximately considered luminous flux and dutycycle into
Direct proportion function relation, has with reference to Jim Glassman blend of colors law:
Ym=DrYr+D6Y6+DbYb* (1)
According to colour mixture principle and cie color computational methods is added, dutycycle distinguishes Dr、Dg、DbWhen, after light source R, G, B mixed light
Chromaticity coordinate is met:
X in formulam、Ym、ZmIt is the tristimulus values for mixing light source M, Yr、Yg、YbFor the Y thorns under the full current work of light source R, G, B
Swash value;Cr=Yr/yr、Cg=Yg/yg、Cb=Yb/ybExpire the tristimulus values sum under current work for light source R, G, B, in CIE-
1931 standard colorimetric system moderate stimulation value Y are equal to luminous flux, under PWM light modulations, and dutycycle is the unique of control LED chromaticity coordinates
Factor, if desired luminous flux is Ym, desired chromaticity coordinate is (x, y), dutycycle as unknown number, then triple channel is accounted for
Sky than can convolution (1), (2) try to achieve:
The span of the luminous flux in triangle RGB is [0, Y in theoryr+Yg+Yb], but when using PWM light modulations,
Luminous flux is constrained by dutycycle, it is impossible to the span on realization theory, in dimming process, the mixing of different chromaticity coordinates
Light, the ratio of its RGB three primary colours is different, and only dutycycle ratio is 1:1:Its duty Bizet of 1 mixed light can reach simultaneously
100%, now the span of luminous flux is 0~Yr+Yg+Yb, the luminous flux span of other mixed lights is then less than this model
Enclose, every group of chromaticity coordinate has corresponding highlight flux, from practical significance, PWM dutycycle should meet Dr≤ 1, Dg
≤ 1, Db≤ 1, YmAs object function, (3) formula is carried out to deform and can obtain
The luminous flux of mixed light should meet (4)~(6) formula simultaneously, can by further colorimetry and algebraic manipulation
Know, when mixed light LED coordinates are located at close to the region of feux rouges, the largest duty cycle of feux rouges, now the light described by (4) formula is logical
Measure span minimum, it is expected that luminous flux only needs to meet (4) formula, remaining luminous flux need to only meet (5), (6) respectively
Formula, further, since there is clear and definite functional relation with correlated colour temperature Tcp in the chromaticity coordinate of daylight track, can be according to correlation
Colour temperature tries to achieve the chromaticity coordinate of correspondence daylight, then by dutycycle and the functional relation of chromaticity coordinate determined by (3) formula, directly
The functional relation of dutycycle and correlated colour temperature is set up, the chromaticity coordinate of daylight track has following relation:
In correlated colour temperature TcpIn the case of known, the chromaticity coordinate of typical daylight can be calculated by following formula.
As 4000K≤TcpDuring≤7000K:
As 7000K≤TcpDuring≤25000K:
Correlated colour temperature and luminous flux are set when using, you can corresponding chromaticity coordinate is calculated by (7), (8) formula, then
(3) formula, which is substituted into, with reference to expected luminous flux tries to achieve corresponding dutycycle.
Further, the bluetooth communication is directly driven by high voltage power supply, and bluetooth communication is furnished with identifier.
Further, described bluetooth communication uses BK3260 chips.
Further, a certain Channel Hopping Sequence under 79 hop patterns, the value of each input control signal is:
X-CL K 6_2;
A-A27-23·CL K 25-21;
B-A22 19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E-AI3,11,9,7,5,3,1;
F-16 X CL K27_7 mod79;
Y 1-CL K 1;
Y 2-32 X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, " A22-19 " table
Show master unit address the 22nd to the 19th, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
Further, if desired 4000K correlated colour temperatures, 80lm daylight, corresponding chromaticity is calculated according to (7), (8) formula
Coordinate is (0.3823,0.3838), and substituting into (3) formula with reference to expected luminous flux tries to achieve corresponding dutycycle for Dr=68.64%, Dg
=83.64%, Db=14.46%.
The present invention transmits data using bluetooth communication, bluetooth security architecture be mainly characterized by it is open with
Flexibility uses the measure such as data encryption and user's authentication to ensure communication there is provided the communication between short distance peer layer
Security, frequency hopping is one of key technology that Bluetooth system is used, and is grouped corresponding to single time slot, and the frequency hopping rate of bluetooth is
Per second 1600 jump, and are grouped corresponding to multi-slot, and frequency hopping rate decreases, but (including paging and inquiry) is special when establishing the link
Indescribably a height of per second 3200 jump, use so high frequency hopping rate, Bluetooth system has sufficiently high antijamming capability and safety
Property, frequency band is divided into several frequency hopping channels by frequency hopping, in once connecting, and radio transceiver is according to certain code sequence
One other channel constantly is jumped to from a channel, only receiving-transmitting sides communicate according to this rule, and other interference sources can not
It can be disturbed according to same rule, compared with other are operated in the system of similar frequency bands, faster, packet is more for bluetooth frequency hopping
Short, this makes Bluetooth system communicate to connect more stable, traffic rate faster than other systems, while being not easily disturbed and cracking;
In addition, the present invention is by algorithm chip and circuit can by inputting, corresponding parameter is counter to be extrapolated directly by the LED light of needs
Corresponding dutycycle, is dynamically adjusted in the case where adjusting dutycycle to color, illumination, can from corresponding algorithm
Go out, PWM module adjusted by adjusting dutycycle the pattern of LED with light modulation more precisely, colors changing hue faster, light modulation
Color more beautiful, the pattern of light modulation have the advantages that more color changes than traditional mode, while light fixture heating is low, efficiency is more
Height, the LED change that the present invention is designed is more, and the collection of audio signal of the present invention, processing, to convert be to utilize mobile phone in itself
Microphone is gathered and signal processing module, is finally given stepped-up voltage signal of the output to mobile phone A PP modules, is easy to putting for signal
Greatly with transmission, and we are then that by mobile phone A PP mobile phone is gathered and is handled well this audio digital signals are utilized into bluetooth
Pattern is transferred to our bluetooth module, then this data signal is reduced into analog voltage signal control by ladder algorithm
The dutycycle of PWM control modules changes the change of LED brightness, and the slight change of audio signal passes through a series of processing and pass
Transport to PWM control modules, it is sufficient to cause the change of its dutycycle so as to which the change to LED brings more influences.
Brief description of the drawings
Fig. 1 is the schematic diagram of the present invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, is only used for explaining the present invention, and is not considered as limiting the invention.
In the description of the invention, unless otherwise prescribed with limit, it is necessary to explanation, term " installation ", " connected ",
" connection " should be interpreted broadly, for example, it may be mechanically connect or electrical connection or the connection of two element internals, can
To be to be joined directly together, it can also be indirectly connected to by intermediary.For the ordinary skill in the art, can basis
Concrete condition understands the concrete meaning of above-mentioned term.
A kind of APP music intelligent lamps of tunable optical toning according to embodiments of the present invention, including sound are described referring to Fig. 1
Music signal acquisition module, signal processing module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and
LED, music signal acquisition module connection signal processing module, signal processing module connection mobile phone A PP modules, music signal is adopted
It is specifically mobile microphone to collect module, and signal processing module is specifically a staircase generator, the sound that microphone is collected
Frequency signal, which is converted into after stepped-up voltage signal, is transmitted further to mobile phone A PP modules, and described LED is RGB LEDs, mobile phone A PP
Module and bluetooth communication wireless connection, bluetooth communication connection digital analog converter, digital analog converter connection PWM control moulds
Block, PWM control modules connection LED, bluetooth communication receives defeated by digital analog converter after mobile phone A PP control signal
Go out signal and give PWM control modules, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, will
Bluetooth communication hop algorithm writes mobile phone A PP and bluetooth communication, to ensure mobile phone A PP and bluetooth communication transmitting-receiving
The consistent communication module of information can be just in communication with each other, and bluetooth communication enters line number using bluetooth hop algorithm and mobile phone A PP modules
According to transmission, Bluetooth communication hop algorithm is write into mobile phone A PP and bluetooth communication, to ensure mobile phone A PP and Bluetooth communication
The consistent communication module of receiving and sending messages of module can be just in communication with each other, and hop algorithm is that frequency band is divided into several frequency hopping channels,
In once connecting, radio transceiver constantly jumps to one other channel according to certain code sequence from a channel, only receives
Both sides are sent out to communicate according to this rule, and other interference sources can not possibly be disturbed according to same rule, altogether in the presence of 10 kinds
Frequency hop sequences, are divided into 79 jumps and 23 and jump, and 79 jumps and 23 jumps respectively have 5 kinds, and they are respectively:Call frequency hop sequences, call answering sequence
Row, search sequence, inquiry response sequence and Channel Hopping Sequence, each channel represents by a pseudo-random hop sequence, each
The frequency hop sequences of piconet are all different, and frequency hopping selection scheme is made up of two parts:A sequence is selected, is shown in Hopping frequencies
Penetrate the sequence;In the case where choosing sequence, input data, the data of input are divided into two groups, be respectively local clock and work as
Preceding address, under the connection status of mobile phone A PP modules and bluetooth communication, local clock (CLKN) is by one and master clock
(CLK) equal compensation is modified, specifically, and local clock is produced on the MCU crystal oscillating circuits of bluetooth communication
Clock signal, master clock refers to clock signal when MCU receives mobile communication, and equal compensation refers to crystal oscillating circuit connection
One compensation circuit is compensated the distorted signals received, it is ensured that signal stabilization, in connection status, frequency hopping selection scheme is defeated
27 M S B of clock can only be used by entering data, and under calling and inquiry sub-state, will use whole 28 MSB of clock,
Inquiry state refers to whether bluetooth module can once connect mobile phone terminal at interval of inquiry in several seconds and whether have new command, calls
State refers to a kind of instruction of the change of operating handset APP modules control lamp, and under call state, local clock will be modified to
Estimate of the called unit to master unit;The input data of current address is constituted by 28, i.e., whole LAP (bluetooth low address portions
Point) and UAP's (bluetooth high address part) is low 4, and in connection status, master unit address can be used, under the sub- state of calling
Calling unit address is then used, and when for inquiry sub-state, will be used and GIAC (general polling identification code) corresponding UAP/
The local clock and current address inputted under LAP, above-mentioned several states exports then one pseudo-random sequence of composition after mapping,
The mapping process of frequency hopping selection scheme is operated by an add operation, X O R, arranges operation, second addition computing and register
Selecting sequence is constituted, and an add operation adds a constant only on the stage, and to 32 modulus, and for calling frequency hopping sequence
Row, an add operation is unnecessary, because it only changes state in this frequency range, in X O R operations, if with Z ' come table
Show the output of an add operation, then the four of Z ' L S B make the XOR of mould 2, output point with address bit A22-19 respectively
Wei not Z0, Z1, Z2, Z3.Arrangement operation is the core of the algorithm, and the switching from input 5 to output 5 is included for 79 hop patterns,
Period uses the mode of operation that butterfly-unit is controlled by control word, and the mapping relations for inputting and exporting are jumped according to 79 and 23 jump two
The pattern of kind is divided into following two:For 79 hop patterns, frequency hopping selection scheme will select to take 32 frequency hopping bands that gap is 64M Hz,
And these frequency hoppings are accessed once with random order, and then, one 32 different frequency hopping band of selection, and the like, for calling,
Calling scanning and the sub- state of call answering, will use same 32 frequency hopping band, the section is selected by address, and different units will have
Difference exhalation frequency range;23 hop patterns and digit and of end memory cell that 79 hop patterns are each module input signal cable
The slightly difference such as number, the frequency hop sequences for meeting both of which requirement can be produced using unified hardware circuit or software program,
And in same pattern, in order to produce the frequency hop sequences under various states, it is only necessary to receive mobile phone A PP input to Bluetooth chip
Control signal A-F, X, Yl, Y2 take different values;
Data signal is reduced to analog signal to control PWM control modules by changing by digital analog converter by ladder algorithm
Become color and the brightness of the duty cycle adjustment LED of LED, it is first determined the relation of LED chromaticity coordinates and dutycycle, change
LED PWM duty cycle is driven, its LED chromaticity coordinate do not change substantially, and luminous flux correspondingly linear change and luminous flux
Ratio be equal to the ratio of dutycycle, so for the convenience of call for Votes in engineering, be approximately considered luminous flux and dutycycle into
Direct proportion function relation, has with reference to Jim Glassman blend of colors law:
Ym=DrYr+D6Y6+DbYb*(1);
According to colour mixture principle and cie color computational methods is added, dutycycle distinguishes Dr、Dg、DbWhen, after light source R, G, B mixed light
Chromaticity coordinate is met:
X in formulam、Ym、ZmIt is the tristimulus values for mixing light source M, Yr、Yg、YbFor the Y thorns under the full current work of light source R, G, B
Swash value;Cr=Yr/yr、Cg=Yg/yg、Cb=Yb/ybExpire the tristimulus values sum under current work for light source R, G, B, in CIE-
1931 standard colorimetric system moderate stimulation value Y are equal to luminous flux, under PWM light modulations, and dutycycle is the unique of control LED chromaticity coordinates
Factor, if desired luminous flux is Ym, desired chromaticity coordinate is (x, y), dutycycle as unknown number, then triple channel is accounted for
Sky than can convolution (1), (2) try to achieve:
The span of the luminous flux in triangle RGB is [0, Y in theoryr+Yg+Yb], but when using PWM light modulations,
Luminous flux is constrained by dutycycle, it is impossible to the span on realization theory, in dimming process, the mixing of different chromaticity coordinates
Light, the ratio of its RGB three primary colours is different, and only dutycycle ratio is 1:1:Its duty Bizet of 1 mixed light can reach simultaneously
100%, now the span of luminous flux is 0~Yr+Yg+Yb, the luminous flux span of other mixed lights is then less than this model
Enclose, every group of chromaticity coordinate has corresponding highlight flux, from practical significance, PWM dutycycle should meet Dr≤ 1, Dg
≤ 1, Db≤ 1, YmAs object function, (3) formula is carried out to deform and can obtain
The luminous flux of mixed light should meet (4)~(6) formula simultaneously, can by further colorimetry and algebraic manipulation
Know, when mixed light LED coordinates are located at close to the region of feux rouges, the largest duty cycle of feux rouges, now the light described by (4) formula is logical
Measure span minimum, it is expected that luminous flux only needs to meet (4) formula, remaining luminous flux need to only meet (5), (6) respectively
Formula, further, since there is clear and definite functional relation with correlated colour temperature Tcp in the chromaticity coordinate of daylight track, can be according to correlation
Colour temperature tries to achieve the chromaticity coordinate of correspondence daylight, then by dutycycle and the functional relation of chromaticity coordinate determined by (3) formula, directly
The functional relation of dutycycle and correlated colour temperature is set up, the chromaticity coordinate of daylight track has following relation:
In correlated colour temperature TcpIn the case of known, the chromaticity coordinate of typical daylight can be calculated by following formula.
As 4000K≤TcpDuring≤7000K:
As 7000K≤TcpDuring≤25000K:
Correlated colour temperature and luminous flux are set when using, you can corresponding chromaticity coordinate is calculated by (7), (8) formula, then
(3) formula, which is substituted into, with reference to expected luminous flux tries to achieve corresponding dutycycle.
Further, the bluetooth communication is directly driven by high voltage power supply, and bluetooth communication is furnished with identifier.
Further, described bluetooth communication uses BK3260 chips.
Further, a certain Channel Hopping Sequence under 79 hop patterns, the value of each input control signal is:
X-CL K 6_2;
A-A27-23·CL K 25-21;
B-A22_19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E-AI3,11,9,7,5,3,1;
F-16 X CL K27_7 mod79;
Y 1-CL K 1;
Y 2-32 X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, " A22-19 " table
Show master unit address the 22nd to the 19th, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
Further, if desired 4000 K correlated colour temperatures, 80 lm daylight, corresponding color is calculated according to (7), (8) formula
Product coordinate is (0.3823,0.3838), and substituting into (3) formula with reference to expected luminous flux tries to achieve corresponding dutycycle for Dr=68.64%,
Dg=83.64%, Db=14.46%.
The present invention transmits data using bluetooth communication, bluetooth security architecture be mainly characterized by it is open with
Flexibility uses the measure such as data encryption and user's authentication to ensure communication there is provided the communication between short distance peer layer
Security, frequency hopping is one of key technology that Bluetooth system is used, and is grouped corresponding to single time slot, and the frequency hopping rate of bluetooth is
Per second 1600 jump, and are grouped corresponding to multi-slot, and frequency hopping rate decreases, but (including paging and inquiry) is special when establishing the link
Indescribably a height of per second 3200 jump, use so high frequency hopping rate, Bluetooth system has sufficiently high antijamming capability and safety
Property, frequency band is divided into several frequency hopping channels by frequency hopping, in once connecting, and radio transceiver is according to certain code sequence
One other channel constantly is jumped to from a channel, only receiving-transmitting sides communicate according to this rule, and other interference sources can not
It can be disturbed according to same rule, compared with other are operated in the system of similar frequency bands, faster, packet is more for bluetooth frequency hopping
Short, this makes Bluetooth system communicate to connect more stable, traffic rate faster than other systems, while being not easily disturbed and cracking;
In addition, the present invention is by algorithm chip and circuit can by inputting, corresponding parameter is counter to be extrapolated directly by the LED light of needs
Corresponding dutycycle, is dynamically adjusted in the case where adjusting dutycycle to color, illumination, can from corresponding algorithm
Go out, PWM module adjusted by adjusting dutycycle the pattern of LED with light modulation more precisely, colors changing hue faster, light modulation
Color more beautiful, the pattern of light modulation have the advantages that more color changes than traditional mode, while light fixture heating is low, efficiency is more
Height, the LED change that the present invention is designed is more, and the collection of audio signal of the present invention, processing, to convert be to utilize mobile phone in itself
Microphone is gathered and signal processing module, is finally given stepped-up voltage signal of the output to mobile phone A PP modules, is easy to putting for signal
Greatly with transmission, and we are then that by mobile phone A PP mobile phone is gathered and is handled well this audio digital signals are utilized into bluetooth
Pattern is transferred to our bluetooth module, then this data signal is reduced into analog voltage signal control by ladder algorithm
The dutycycle of PWM control modules changes the change of LED brightness, and the slight change of audio signal passes through a series of processing and pass
Transport to PWM control modules, it is sufficient to cause the change of its dutycycle so as to which the change to LED brings more influences.
In the description of this specification, the description meaning of reference term " one embodiment ", " example " or " some examples " etc.
Refer at least one reality that the present invention is contained in reference to specific features, structure, material or the feature that the embodiment or example are described
Apply in example or example.In this manual, identical embodiment is not necessarily referring to the schematic representation of above-mentioned term or shown
Example.Moreover, specific features, structure, material or the feature of description can be in any one or more embodiments or example
Combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, it will be understood by those skilled in the art that:Not
In the case of departing from the principle and objective of the present invention a variety of change, modification, replacement and modification can be carried out to these embodiments, this
The scope of invention is limited by claim and its equivalent.
Claims (5)
1. a kind of APP music intelligent lamps of tunable optical toning, it is characterised in that including music signal acquisition module, signal transacting
Module, mobile phone A PP modules, bluetooth communication, digital analog converter, PWM control modules and LED, music signal acquisition module
Signal processing module is connected, signal processing module connects mobile phone A PP modules, and music signal acquisition module is specifically mobile phone Mike
Wind, signal processing module is specifically a staircase generator, and the audio signal that microphone is collected is converted into stepped-up voltage
Be transmitted further to mobile phone A PP modules after signal, described LED is RGB LEDs, mobile phone A PP modules and bluetooth communication without
Line is connected, bluetooth communication connection digital analog converter, digital analog converter connection PWM control modules, the connection of PWM control modules
LED, bluetooth communication outputs signal to PWM control moulds after receiving mobile phone A PP control signal by digital analog converter
Block, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, and Bluetooth communication hop algorithm is write
Enter mobile phone APP and bluetooth communication, to ensure mobile phone A PP and bluetooth communication consistent communication module ability of receiving and sending messages
It can be in communication with each other, bluetooth communication is carried out data transmission using bluetooth hop algorithm with mobile phone A PP modules, and Bluetooth communication is jumped
Frequency algorithm writes mobile phone A PP and bluetooth communication, to ensure that mobile phone A PP and receiving and sending messages for bluetooth communication unanimously lead to
Letter module can be just in communication with each other, and hop algorithm is that frequency band is divided into several frequency hopping channels, in once connecting, transceiving
Device constantly jumps to one other channel according to certain code sequence from a channel, and only receiving-transmitting sides are logical according to this rule
Letter, and other interference sources can not possibly be disturbed according to same rule, altogether in the presence of 10 kinds of frequency hop sequences, be divided into 79 jumps and 23
Jump, 79 jumps and 23 jumps respectively there are 5 kinds, and they are respectively:Call frequency hop sequences, call answering sequence, search sequence, inquiry response sequence
Row and Channel Hopping Sequence, each channel represent that the frequency hop sequences of each piconet differ by a pseudo-random hop sequence
Sample, frequency hopping selection scheme is made up of two parts:A sequence is selected, the sequence is mapped on Hopping frequencies;Choosing sequence
In the case of, input data, the data of input are divided into two groups, are local clock and current address respectively, mobile phone A PP modules with
Under the connection status of bluetooth communication, local clock (CLKN) is modified by a compensation equal with master clock (CLK),
Specifically, local clock is the clock signal produced on the MCU crystal oscillating circuits of bluetooth communication, and master clock refers to MCU
Receive clock signal during mobile communication, equal compensation refers to a compensation circuit of crystal oscillating circuit connection to the letter that receives
Number distortion compensation, it is ensured that signal stabilization, the input data of frequency hopping selection scheme can only use 27 of clock in connection status
MSB, and under calling and inquiry sub-state, by using whole 28 MSB of clock, inquiry state refers to that bluetooth module can be every
Whether clock inquiry every few seconds once connects mobile phone terminal and whether has new command, and call state refers to operating handset APP module controls
A kind of instruction of the change of lamp processed, under call state, local clock will be modified to estimate of the called unit to master unit;
The input data of current address is constituted by 28, i.e., whole LAP (bluetooth low address part) and UAP's (bluetooth high address part)
It is low 4, in connection status, master unit address can be used, calling unit address is then used in the case where calling sub- state, and work as to look into
When asking sub- state, will use with GIAC (general polling identification code) corresponding UAP/LAP, what is inputted under above-mentioned several states is local
Clock and current address export then one pseudo-random sequence of composition after mapping, and the mapping process of frequency hopping selection scheme is by once
Add operation, xor operation, arrangement operation, second addition computing and register selecting sequence are constituted, and an add operation is only at this
Add a constant on stage, and to 32 modulus, and for calling frequency hop sequences, an add operation is unnecessary, because it is only
Change state in this frequency range, in xor operation, if representing the output of an add operation with Z ', Z ' four LSB
Make the XOR of mould 2 with address bit A22-19 respectively, output is respectively Z0, Z1, Z2, Z3.Arrangement operation is the core of the algorithm
The heart, includes the switching from input 5 to output 5 for 79 hop patterns, during which uses the operation side that butterfly-unit is controlled by control word
Formula, and input and output mapping relations according to 79 jump and 23 jump both of which be divided into it is following two:For 79 hop patterns, frequency hopping
Selection scheme will select to take 32 frequency hopping bands of the gap for 64MHz, and access these frequency hoppings once with random order, then, choosing
Select a 32 different frequency hopping bands, and the like, for calling, calling scanning and the sub- state of call answering, it will use same
32 frequency hopping bands, the section is selected by address, and different units will have different exhalation frequency ranges;23 hop patterns are with 79 hop patterns
The digit of each module input signal cable and the number of end memory cell etc. slightly have difference, use unified hardware circuit or soft
Part program can produce the frequency hop sequences for meeting both of which requirement, and in same pattern, in order to produce under various states
Frequency hop sequences, it is only necessary to input the control signal A-F, X, Yl, Y2 that mobile phone A PP is received to Bluetooth chip take different values;
Data signal is reduced to analog signal to control PWM control modules to pass through change by digital analog converter by ladder algorithm
The color of the duty cycle adjustment LED of LED and brightness, it is first determined the relation of LED chromaticity coordinates and dutycycle, change driving
LED PWM duty cycle, its LED chromaticity coordinate does not change substantially, and the ratio of luminous flux correspondingly linear change and luminous flux
Value is equal to the ratio of dutycycle, so for the convenience of call for Votes in engineering, being approximately considered luminous flux and being directly proportional to dutycycle
Example functional relation, has with reference to Jim Glassman blend of colors law:
Ym=DrYr+DgYg+DbYb. (1);
According to colour mixture principle and cie color computational methods is added, dutycycle distinguishes Dr、Dg、DbWhen, the chromaticity after light source R, G, B mixed light
Coordinate is met:
<mrow>
<mfenced open = "{" close = "">
<mtable>
<mtr>
<mtd>
<mrow>
<msub>
<mi>x</mi>
<mi>m</mi>
</msub>
<mo>=</mo>
<mfrac>
<msub>
<mi>X</mi>
<mi>m</mi>
</msub>
<mrow>
<msub>
<mi>X</mi>
<mi>m</mi>
</msub>
<mo>+</mo>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
<mo>+</mo>
<msub>
<mi>Z</mi>
<mi>m</mi>
</msub>
</mrow>
</mfrac>
<mo>=</mo>
<mfrac>
<mrow>
<msub>
<mi>C</mi>
<mi>r</mi>
</msub>
<msub>
<mi>D</mi>
<mi>r</mi>
</msub>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>g</mi>
</msub>
<msub>
<mi>D</mi>
<mi>g</mi>
</msub>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>b</mi>
</msub>
<msub>
<mi>D</mi>
<mi>b</mi>
</msub>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>C</mi>
<mi>r</mi>
</msub>
<msub>
<mi>D</mi>
<mi>r</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>g</mi>
</msub>
<msub>
<mi>D</mi>
<mi>g</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>b</mi>
</msub>
<msub>
<mi>D</mi>
<mi>b</mi>
</msub>
</mrow>
</mfrac>
</mrow>
</mtd>
</mtr>
<mtr>
<mtd>
<mrow>
<msub>
<mi>y</mi>
<mi>m</mi>
</msub>
<mo>=</mo>
<mfrac>
<msub>
<mi>X</mi>
<mi>m</mi>
</msub>
<mrow>
<msub>
<mi>X</mi>
<mi>m</mi>
</msub>
<mo>+</mo>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
<mo>+</mo>
<msub>
<mi>Z</mi>
<mi>m</mi>
</msub>
</mrow>
</mfrac>
<mo>=</mo>
<mfrac>
<mrow>
<msub>
<mi>C</mi>
<mi>r</mi>
</msub>
<msub>
<mi>D</mi>
<mi>r</mi>
</msub>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>g</mi>
</msub>
<msub>
<mi>D</mi>
<mi>g</mi>
</msub>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>b</mi>
</msub>
<msub>
<mi>D</mi>
<mi>b</mi>
</msub>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>C</mi>
<mi>r</mi>
</msub>
<msub>
<mi>D</mi>
<mi>r</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>g</mi>
</msub>
<msub>
<mi>D</mi>
<mi>g</mi>
</msub>
<mo>+</mo>
<msub>
<mi>C</mi>
<mi>b</mi>
</msub>
<msub>
<mi>D</mi>
<mi>b</mi>
</msub>
</mrow>
</mfrac>
</mrow>
</mtd>
</mtr>
</mtable>
</mfenced>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>2</mn>
<mo>)</mo>
</mrow>
<mo>;</mo>
</mrow>
X in formulam、Ym、ZmIt is the tristimulus values for mixing light source M, Yr、Yg、YbFor the Y values under the full current work of light source R, G, B;
Cr=Yr/yr、Cg=Yg/yg、Cb=Yb/ybFor the tristimulus values sum under the full current work of light source R, G, B, marked in CIE-1931
Quasi- colorimeter system moderate stimulation value Y is equal to luminous flux, under PWM light modulations, and dutycycle is the single factor for controlling LED chromaticity coordinates,
If desired luminous flux is Ym, desired chromaticity coordinate is (x, y), dutycycle of the dutycycle as unknown number, then triple channel
Can convolution (1), (2) try to achieve:
<mrow>
<msub>
<mi>D</mi>
<mi>r</mi>
</msub>
<mo>=</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>yY</mi>
<mi>r</mi>
</msub>
</mrow>
</mfrac>
<mo>,</mo>
</mrow>
<mrow>
<msub>
<mi>D</mi>
<mi>g</mi>
</msub>
<mo>=</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>yY</mi>
<mi>g</mi>
</msub>
</mrow>
</mfrac>
<mo>,</mo>
</mrow>
<mrow>
<msub>
<mi>D</mi>
<mi>b</mi>
</msub>
<mo>=</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
</mrow>
<mrow>
<msub>
<mi>yY</mi>
<mi>b</mi>
</msub>
</mrow>
</mfrac>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>3</mn>
<mo>)</mo>
</mrow>
<mo>;</mo>
</mrow>
The span of the luminous flux in triangle RGB is [0, Y in theoryr+Yg+Yb], but when using PWM light modulations, light leads to
Amount is constrained by dutycycle, it is impossible to the span on realization theory, in dimming process, the mixed light of different chromaticity coordinates, its
The ratio of RGB three primary colours is different, and only dutycycle ratio is 1:1:Its duty Bizet of 1 mixed light can reach 100% simultaneously,
Now the span of luminous flux is 0~Yr+Yg+Yb, the luminous flux span of other mixed lights is then less than this scope, every group
Chromaticity coordinate has corresponding highlight flux, from practical significance, and PWM dutycycle should meet Dr≤ 1, Dg≤ 1, Db
≤ 1, YmAs object function, (3) formula is carried out to deform and can obtain
<mrow>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
<mo>&le;</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>yY</mi>
<mi>r</mi>
</msub>
</mrow>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
</mfrac>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>4</mn>
<mo>)</mo>
</mrow>
</mrow>
2
<mrow>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
<mo>&le;</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>yY</mi>
<mi>g</mi>
</msub>
</mrow>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
</mfrac>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>5</mn>
<mo>)</mo>
</mrow>
</mrow>
<mrow>
<msub>
<mi>Y</mi>
<mi>m</mi>
</msub>
<mo>&le;</mo>
<mo>&lsqb;</mo>
<mfrac>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>b</mi>
</msub>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
<mrow>
<mo>(</mo>
<msub>
<mi>y</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>-</mo>
<mi>x</mi>
<mo>)</mo>
<mo>+</mo>
<mo>(</mo>
<mi>y</mi>
<mo>-</mo>
<msub>
<mi>y</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
<mo>(</mo>
<msub>
<mi>x</mi>
<mi>g</mi>
</msub>
<mo>-</mo>
<msub>
<mi>x</mi>
<mi>r</mi>
</msub>
<mo>)</mo>
</mrow>
</mfrac>
<mo>&rsqb;</mo>
<mfrac>
<mrow>
<msub>
<mi>yY</mi>
<mi>b</mi>
</msub>
</mrow>
<msub>
<mi>y</mi>
<mi>b</mi>
</msub>
</mfrac>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>6</mn>
<mo>)</mo>
</mrow>
<mo>;</mo>
</mrow>
The luminous flux of mixed light should meet (4)~(6) formula simultaneously, by further colorimetry and algebraic manipulation, when
Mixed light LED coordinates be located at close to feux rouges region when, the largest duty cycle of feux rouges, now the luminous flux described by (4) formula take
It is worth scope minimum, it is expected that luminous flux only needs to meet (4) formula, remaining luminous flux need to only meet (5), (6) formula respectively i.e.
Can, further, since there is clear and definite functional relation with correlated colour temperature Tcp in the chromaticity coordinate of daylight track, can be according to correlated colour temperature
The chromaticity coordinate of correspondence daylight is tried to achieve, then by dutycycle and the functional relation of chromaticity coordinate determined by (3) formula, is directly set up
The functional relation of dutycycle and correlated colour temperature, the chromaticity coordinate of daylight track has following relation:
<mrow>
<msub>
<mi>y</mi>
<mi>D</mi>
</msub>
<mo>=</mo>
<mo>-</mo>
<mn>3.000</mn>
<msubsup>
<mi>x</mi>
<mi>D</mi>
<mn>2</mn>
</msubsup>
<mo>+</mo>
<mn>2.870</mn>
<msub>
<mi>x</mi>
<mi>D</mi>
</msub>
<mo>-</mo>
<mn>0.275</mn>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>7</mn>
<mo>)</mo>
</mrow>
</mrow>
In correlated colour temperature TcpIn the case of known, the chromaticity coordinate of typical daylight can be calculated by following formula.
As 4000K≤TcpDuring≤7000K:
<mrow>
<msub>
<mi>x</mi>
<mi>D</mi>
</msub>
<mo>=</mo>
<mo>-</mo>
<mn>4.607</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>9</mn>
</msup>
<msubsup>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
<mn>3</mn>
</msubsup>
</mfrac>
<mo>+</mo>
<mn>2.9678</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>6</mn>
</msup>
<msubsup>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
<mn>2</mn>
</msubsup>
</mfrac>
<mo>+</mo>
<mn>0.09911</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>3</mn>
</msup>
<msub>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
</msub>
</mfrac>
<mo>+</mo>
<mn>0.244063</mn>
<mo>,</mo>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>8</mn>
<mo>)</mo>
</mrow>
</mrow>
As 7000K≤TcpDuring≤25000K:
<mrow>
<msub>
<mi>x</mi>
<mi>D</mi>
</msub>
<mo>=</mo>
<mo>-</mo>
<mn>4.607</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>9</mn>
</msup>
<msubsup>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
<mn>3</mn>
</msubsup>
</mfrac>
<mo>+</mo>
<mn>2.9678</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>6</mn>
</msup>
<msubsup>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
<mn>2</mn>
</msubsup>
</mfrac>
<mo>+</mo>
<mn>0.09911</mn>
<mfrac>
<msup>
<mn>10</mn>
<mn>3</mn>
</msup>
<msub>
<mi>T</mi>
<mrow>
<mi>c</mi>
<mi>p</mi>
</mrow>
</msub>
</mfrac>
<mo>+</mo>
<mn>0.244063.</mn>
<mo>-</mo>
<mo>-</mo>
<mo>-</mo>
<mrow>
<mo>(</mo>
<mn>9</mn>
<mo>)</mo>
</mrow>
<mo>,</mo>
</mrow>
Correlated colour temperature and luminous flux are set when using, you can corresponding chromaticity coordinate is calculated by (7), (8) formula, in conjunction with
It is expected that luminous flux, which substitutes into (3) formula, tries to achieve corresponding dutycycle.
2. intelligent lamp as claimed in claim 1, its is special to be, the bluetooth communication is directly driven by high voltage power supply
Dynamic, bluetooth communication is furnished with identifier.
3. intelligent lamp as claimed in claim 1, it is characterised in that described bluetooth communication uses BK3260 chips.
4. intelligent lamp as claimed in claim 1, it is characterised in that a certain Channel Hopping Sequence under 79 hop patterns, each defeated
The value for entering control signal is:
X-CL K 6_2;
A-A27-23·CL K 25-21;
B-A22_19;
C-A8,6,4,2,0CL K 20_16;
D-A18-10·CL K 15_7;
E-AI3,11,9,7,5,3,1;
The X CL K27_7 mod79 of F 1;
Y 1—CL K 1;
Y 2-32X CL K1;
Wherein " " represents position XOR, and " CL K 6-2 " represent the 6th to the 2nd of master unit clock, and " A22-19 " represents master
The 22nd to the 19th of element address, takes address to input A=OX3716BB8A, and the initial value of main equipment bluetooth clock is
0X00000000, obtains signal frequency hop sequences by programming, have recorded the channel hopping frequency value of a clock cycle, i.e.,
227 continuous Hopping frequencies values.
5. intelligent lamp as claimed in claim 1, it is characterised in that if desired 4000K correlated colour temperatures, 80lm daylight, according to
(7), (8) formula calculates corresponding chromaticity coordinate for (0.3823,0.3838), and substituting into (3) formula with reference to expected luminous flux tries to achieve pair
The dutycycle answered is Dr=68.64%, Dg=83.64%, Db=14.46%.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710554310.1A CN107172792A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamps of tunable optical toning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710554310.1A CN107172792A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamps of tunable optical toning |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107172792A true CN107172792A (en) | 2017-09-15 |
Family
ID=59823451
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710554310.1A Pending CN107172792A (en) | 2017-07-10 | 2017-07-10 | A kind of APP music intelligent lamps of tunable optical toning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107172792A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111279797A (en) * | 2018-04-14 | 2020-06-12 | 常州匠心独具智能家居股份有限公司 | Color-changeable lighting system for furniture and application program for controlling the same |
CN111526651A (en) * | 2020-04-23 | 2020-08-11 | 北京智米科技有限公司 | Intelligent lamp control method and device and lamp |
CN111918440A (en) * | 2020-07-24 | 2020-11-10 | 音贝半导体有限公司 | System for intelligence speech control LED bulb and domestic appliance |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103068112A (en) * | 2012-12-20 | 2013-04-24 | 华南理工大学 | Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof |
CN104717806A (en) * | 2015-03-20 | 2015-06-17 | 北京科睿兆明光电科技有限公司 | Method for adjusting light and colors of LED lamp and light and color adjustable LED lamp system |
CN105578640A (en) * | 2015-12-15 | 2016-05-11 | 武良举 | Audio-based lamp control system and device and control method and application thereof |
-
2017
- 2017-07-10 CN CN201710554310.1A patent/CN107172792A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103068112A (en) * | 2012-12-20 | 2013-04-24 | 华南理工大学 | Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof |
CN104717806A (en) * | 2015-03-20 | 2015-06-17 | 北京科睿兆明光电科技有限公司 | Method for adjusting light and colors of LED lamp and light and color adjustable LED lamp system |
CN105578640A (en) * | 2015-12-15 | 2016-05-11 | 武良举 | Audio-based lamp control system and device and control method and application thereof |
Non-Patent Citations (2)
Title |
---|
宋鹏程等: "基于PWM 的三基色LED 的调光调色方法", 《光学学报》 * |
汪振飞,刘军: "蓝牙跳频算法及性能分析", 《今日科苑》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111279797A (en) * | 2018-04-14 | 2020-06-12 | 常州匠心独具智能家居股份有限公司 | Color-changeable lighting system for furniture and application program for controlling the same |
CN111526651A (en) * | 2020-04-23 | 2020-08-11 | 北京智米科技有限公司 | Intelligent lamp control method and device and lamp |
CN111918440A (en) * | 2020-07-24 | 2020-11-10 | 音贝半导体有限公司 | System for intelligence speech control LED bulb and domestic appliance |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100386000C (en) | Light modulating LED lighting apparatus | |
CN103068112B (en) | Method of light-emitting diode (LED) lamp smart lighting adjustment and system thereof | |
CN201766739U (en) | Intelligent home LED lighting system based on ZigBee and ARM techniques | |
CN107231728A (en) | A kind of PWM light modulations toning LED | |
CN107371296A (en) | A kind of PWM light modulation toning LEDs of music signal control | |
CN204046868U (en) | A kind of lighting device | |
CN103607800A (en) | Intelligent dimming module and intelligent dimming LED lamp and control method thereof | |
CN204291046U (en) | A kind of tele-control system of intelligent terminal | |
CN104735870B (en) | Pairing method and control method of intelligent Bluetooth LED integration lighting device | |
CN104717806A (en) | Method for adjusting light and colors of LED lamp and light and color adjustable LED lamp system | |
CN107172792A (en) | A kind of APP music intelligent lamps of tunable optical toning | |
CN109496035A (en) | A kind of lampion realizes maximum brightness color matching method, shading process and system automatically | |
CN104159377A (en) | Wireless intelligent LED lighting system based on 2.4 GHz | |
CN107172762A (en) | A kind of APP intelligent lamps of tunable optical toning | |
CN112584573A (en) | Seven-primary-color LED mixed light source and drive control circuit thereof | |
CN207340230U (en) | A kind of LED light sync control device | |
CN204377224U (en) | Smart bluetooth LED lamp | |
CN107071957A (en) | LED light modulating devices and system based on encoded signal | |
CN107148122A (en) | A kind of APP intelligent lamps | |
CN107318192A (en) | A kind of APP music intelligent lamp | |
CN207442877U (en) | A kind of intelligent gateway applied in wireless lighting systems | |
CN106131998A (en) | A kind of domestic intelligent method for controlling lamp | |
CN207676133U (en) | The control system of home equipment | |
CN108260264A (en) | A kind of colorful energy-saving lamp control device based on three primary colours palette | |
CN108430137A (en) | A kind of intelligent bulbs and its control system and control method based on bluetooth |
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 |