CN105319990B - A kind of method of audio signal control output optical signal - Google Patents
A kind of method of audio signal control output optical signal Download PDFInfo
- Publication number
- CN105319990B CN105319990B CN201510809378.0A CN201510809378A CN105319990B CN 105319990 B CN105319990 B CN 105319990B CN 201510809378 A CN201510809378 A CN 201510809378A CN 105319990 B CN105319990 B CN 105319990B
- Authority
- CN
- China
- Prior art keywords
- mrow
- frequency
- msub
- tristimulus values
- electrical signal
- 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.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B17/00—Systems involving the use of models or simulators of said systems
- G05B17/02—Systems involving the use of models or simulators of said systems electric
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/30—Nc systems
- G05B2219/33—Director till display
- G05B2219/33198—Laser, light link, infrared
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
- Optical Communication System (AREA)
Abstract
A kind of method of audio signal control output optical signal divides according to the international standard pitch in music to the frequency of voice, the frequency partition for the audio signal that people is sent is 22 sections, and will be seen that optical wavelength range and audiorange are divided into corresponding 22 sections in proportion, by the way that CIE color of waves figure is carried out into coordinate transform.The real-time audio signal A that people is sent is changed into analog electrical signal B outputs by devices such as microphones, the electric signal B of output improves a DC level by adder, it is input to again in single-chip microcomputer or analog-digital converter, this analog electrical signal C is sampled, digitized, is clocked out carrying out the contrast of Digital size.Ratio according to obtained tristimulus values exports three voltages and lights the analog optical signal that three three primary colors lasers obtain a color and changed with intensity with analog electrical signal is inputted.
Description
Technical field
The present invention relates to optical field and digital control field, more particularly to mcu programming field and laser performance neck
Domain.
Background technology
Miniature laser and LED technology mature, the application of laser performance is also more and more diversified, performance form also by
Large-scale stage turns to middle-size and small-size place, but the effect of existing laser performance and stage laser lamp is mostly by pre-set journey
Sequence controls the lightness of laser or LED, color and change in pattern, and such system lacks real-time, with devices such as single-chip microcomputers
Part realizes judgement to live signal and corresponding output control voltage, can preferably increase the real-time of system.
The content of the invention
The present invention is a kind of method that the frequency of voice signal and loudness is corresponding with output light color and brightness.
The first step, the frequency of voice is divided according to the international standard pitch in music, the audio that people is sent
The frequency partition of signal is 22 sections, and will be seen that optical wavelength range 380nm -780nm and audiorange are pressedRatio
Example is divided into corresponding 22 sections, by the way that CIE color of waves figure is carried out into coordinate transform, finds primaries corresponding to each section
The tristimulus values a, b, c (decimally represent 8 binary systems) of ripple, by 22 sections of the frequency partition of audio signal with it is visible
Tristimulus values a corresponding to 22 sections of optical band division and each wave band, b, c are corresponded, and by this include audio frequency,
The table 1 that visible wavelength, visible wavelength correspond to tristimulus values writes single-chip microcomputer.
The audio frequency of table 1 and the optical wavelength table of comparisons
Wherein in the gauge outfit of table 1, audio is the frequency of input audio signal, and unit Hz, light wave is visible wavelength, mark
The tristimulus values of quasi- CIE color of waves figure represents that tristimulus values a, b, c are that CIE color of waves figure is carried out with LED light wavelength with X, Y, Z
After coordinate transform.
Second step, it is defeated that real-time audio signal A that people is sent by devices such as microphones is changed into analog electrical signal B
Go out, the electric signal B of output improves a DC level by adder, then is input in single-chip microcomputer or analog-digital converter, to this
Analog electrical signal C is sampled, digitized, and is clocked out carrying out the contrast of Digital size, subsequent to the clock is than previous clock
Numeral is recorded as just greatly, and subsequent to the clock is negative than previous clock numeral small records, and at the time of record positive and negative deflection each time, by
This analog electrical signal C frequency is calculated in the time interval Δ t deflected twiceWhen the processing to electric signal B is fortune
During with halfwave rectifier method, the time difference of positive and negative deflection and the relation of frequency are thenDeflect simulation electricity corresponding to the moment
Signal C size is recorded as peak value, and two peak values average to obtain the intensity size U of this analog electrical signal C corresponding to frequency ν.
Corresponding visible wavelength place section and this are found from several tables 1 by obtained analog electrical signal C frequency ν and intensity U
Tristimulus values a, b, c corresponding to visible wavelength section.
3rd step, export three voltages according to the tristimulus values a, b, c that are obtained in second step ratio and light three three originals
Color laser (or LED) obtains analog optical signal of the color with intensity with input analog electrical signal change, the simulation of input
Signal frequency is ν, and intensity U, the input voltage maximum changing range of three primary colors laser is respectively V1、V2、V3, by Mike
The maximum voltage that wind is input in single-chip microcomputer is 5V, tristimulus values a, b, c, it is necessary to three voltages of output are X, Y, Z, and X,
Y, Z are that device allows the minimum of input to add Δ X, Δ Y, Δ Z;
5 (Δ X+ Δ Y+ Δ Z)=U (V1+V2+V3) ①
ΔX:ΔY:Δ Z=a:b:c ②
:
I.e.:
3rd step can also be according to the tristimulus values a obtained in second step, and b, c ratio export the arteries and veins of three different duties
Rush voltage and light three three primary colors lasers (or LED) and obtain the simulation of a color and intensity with input analog electrical signal change
Optical signal, the analog electrical signal frequency ν intensity of input is U, and three primary colors laser maximum input voltage scope is respectively V1、V2、
V3, it is 5V by the maximum voltage in microphone input to single-chip microcomputer, a, b, c, one clock cycle of tristimulus values are T, by three
Values is multiplied by T/255 respectively, obtains three dutycycles, the high level of this three voltages is respectively the minimum work electricity of RGB lamp
Pressure adds UV1/ 5, UV2/ 5, UV3/5。
Brief description of the drawings
Fig. 1 is the procedure chart of signal transmission.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in table 1, Fig. 1, audio signal in present embodiment is behaved sent audio, and frequency arrives in 100Hz
Between 1.2KHz, specifically realize according to the following steps:
At certain moment, it is 500Hz that the audio signal A that microphone collects, which is converted into its frequency after electric signal, peak value for ±
100mV, this analog electrical signal B amplify voltage by an integration module LM386, amplify 10 times, are ± 1V, then pass through an addition
One 2V DC voltage is added on electric signal by device, and the analog electrical signal C exported frequency is 500Hz, two peak values
Respectively 1V and 3V, this signal are input to output digit signals D in ADC and deflected twice by calculating to single-chip microcomputer, single-chip microcomputer
Time difference Δ t and the magnitude of voltage for deflecting the moment, pass through formula
Table look-up 1, obtain 500Hz and correspond to a length of 445nm of light wave, corresponding tristimulus values a=153, b=51, c=255.
The permission input voltage of LED RGB three primary colors fluorescent tubes is respectively 1.8V to 2V, 3.2V to 3.4V, 3.2V to 3.4V,
That is V1=0.2V, V2=0.2V, V3=0.2V, is 5V by the maximum voltage in microphone input to single-chip microcomputer, and Α=2V is then calculated
Obtain:
Three telecommunications for needing to export
Number size is:1.88V, 3.23V, 3.33V.
Claims (1)
- A kind of 1. method of audio signal control output optical signal, it is characterised in that:The first step, the frequency of voice is divided according to the international standard pitch in music, the audio signal that people is sent Frequency partition be 22 sections, and will be seen that optical wavelength range 380nm -780nm and audiorange are pressedRatio point For corresponding 22 sections, by the way that CIE color of waves figure is carried out into coordinate transform, three primary colors light wave corresponding to each section is found Tristimulus values a, b, c, 8 binary systems are decimally represented, by 22 sections of the frequency partition of audio signal and visible light wave Tristimulus values a corresponding to 22 sections of section division and each wave band, b, c are corresponded, and this is included into audio frequency, visible The table 1 that optical wavelength, visible wavelength correspond to tristimulus values writes single-chip microcomputer;The audio frequency of table 1 and the optical wavelength table of comparisonsWherein in the gauge outfit of table 1, audio is the frequency of input audio signal, and unit Hz, light wave is visible wavelength, standard The tristimulus values of CIE color of wave figures represents that tristimulus values a, b, c are that CIE color of waves figure is carried out with LED light wavelength with X, Y, Z After coordinate transform;Second step, the real-time audio signal A that people is sent is changed into analog electrical signal B outputs, output by microphone device Electric signal B improve a DC level by adder, then be input in single-chip microcomputer or analog-digital converter, to this analog telecommunications Number C is sampled, digitized, and is clocked out carrying out the contrast of Digital size, subsequent to the clock note bigger than the numeral of previous clock At the time of recording as just, subsequent to the clock is negative than previous clock numeral small records, and record positive and negative deflection each time, by deflecting twice Time interval Δ t this analog electrical signal C frequency is calculatedWhen the processing to electric signal B is whole with half-wave During stream method, the time difference of positive and negative deflection and the relation of frequency are thenDeflect the big of analog electrical signal C corresponding to the moment Small records are peak value, and two peak values average to obtain the intensity size U of this analog electrical signal C corresponding to frequency ν;Pass through what is obtained Section and this visible wavelength where analog electrical signal C frequency ν and intensity U finds corresponding visible wavelength from several tables 1 Tristimulus values a corresponding to section, b, c;3rd step, light three three primary colors according to the tristimulus values a, b, c that are obtained in second step ratio three voltages of output and swash Light device or LED obtain analog optical signal of the color with intensity with input analog electrical signal change, the analog electrical signal of input Frequency is ν, and intensity U, the input voltage maximum changing range of three primary colors laser is respectively V1、V2、V3, by microphone input Maximum voltage into single-chip microcomputer is 5V, it is necessary to which three voltages of output are X, Y, Z, and X, Y, Z are by tristimulus values a, b, c Device allows the minimum of input to add Δ X, Δ Y, Δ Z;5 (Δ X+ Δ Y+ Δ Z)=U (V1+V2+V3) ①ΔX:ΔY:Δ Z=a:b:c ②:<mrow> <mi>&Delta;</mi> <mi>Y</mi> <mo>=</mo> <mfrac> <mrow> <mi>b</mi> <mi>U</mi> <mrow> <mo>(</mo> <msub> <mi>V</mi> <mn>1</mn> </msub> <mo>+</mo> <msub> <mi>V</mi> <mn>2</mn> </msub> <mo>+</mo> <msub> <mi>V</mi> <mn>3</mn> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <mn>5</mn> <mrow> <mo>(</mo> <mi>a</mi> <mo>+</mo> <mi>b</mi> <mo>+</mo> <mi>c</mi> <mo>)</mo> </mrow> </mrow> </mfrac> </mrow><mrow> <mi>&Delta;</mi> <mi>Z</mi> <mo>=</mo> <mfrac> <mrow> <mi>c</mi> <mi>U</mi> <mrow> <mo>(</mo> <msub> <mi>V</mi> <mn>1</mn> </msub> <mo>+</mo> <msub> <mi>V</mi> <mn>2</mn> </msub> <mo>+</mo> <msub> <mi>V</mi> <mn>3</mn> </msub> <mo>)</mo> </mrow> </mrow> <mrow> <mn>5</mn> <mrow> <mo>(</mo> <mi>a</mi> <mo>+</mo> <mi>b</mi> <mo>+</mo> <mi>c</mi> <mo>)</mo> </mrow> </mrow> </mfrac> </mrow>I.e.:3rd step can also be according to the tristimulus values a obtained in second step, and b, c ratio export the pulse electricity of three different duties The bright three three primary colors lasers of pressure point or LED obtain a color to be believed with intensity with the simulated light of input analog electrical signal change Number, the analog electrical signal frequency ν intensity of input is U, and three primary colors laser maximum input voltage scope is respectively V1、V2、V3, by Maximum voltage in microphone input to single-chip microcomputer is 5V, and a, b, c, one clock cycle of tristimulus values are T, by tristimulus values T/255 is multiplied by respectively, obtains three dutycycles, the high level of this three voltages is respectively that RGB lamp minimum adds UV1/ 5, UV2/ 5, UV3/5。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510809378.0A CN105319990B (en) | 2015-11-19 | 2015-11-19 | A kind of method of audio signal control output optical signal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510809378.0A CN105319990B (en) | 2015-11-19 | 2015-11-19 | A kind of method of audio signal control output optical signal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105319990A CN105319990A (en) | 2016-02-10 |
CN105319990B true CN105319990B (en) | 2018-03-30 |
Family
ID=55247602
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510809378.0A Expired - Fee Related CN105319990B (en) | 2015-11-19 | 2015-11-19 | A kind of method of audio signal control output optical signal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105319990B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112331227B (en) * | 2020-09-17 | 2022-05-24 | 武汉大学 | Method for simulating human voice by laser |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2579056A1 (en) * | 1985-03-18 | 1986-09-19 | Omega Electronics Sa | DEVICE FOR SUPPLYING A CHANGING COLOR LIGHT EMITTING ELEMENT |
CN1097854A (en) * | 1993-11-23 | 1995-01-25 | 刘显钢 | Sound-control colour-changed lamp and sensual pleasure transcoder |
CN2671285Y (en) * | 2003-12-09 | 2005-01-12 | 陈振杰 | Control system of digital musical landscape light |
TW200531614A (en) * | 2004-03-11 | 2005-09-16 | Giga Byte Tech Co Ltd | Method and device for controlling flashing of cold cathode fluorescent lamp with digital audio source of main board |
CN2792086Y (en) * | 2005-08-17 | 2006-06-28 | 周志邦 | General sound-controlld LED colour-changing lamp |
CN102802321A (en) * | 2012-09-03 | 2012-11-28 | 武汉巨正环保科技有限公司 | Intelligent drive control device for LED lamps |
CN102843815A (en) * | 2011-06-24 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Music color lamp for computer case |
CN103889109A (en) * | 2014-02-17 | 2014-06-25 | 武汉阿拉丁科技有限公司 | Driving device of emotional control of LED light color and brightness change |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8008561B2 (en) * | 2003-01-17 | 2011-08-30 | Motorola Mobility, Inc. | Audio file format with mapped lighting effects and method for controlling lighting effects using an audio file format |
FI20060259A0 (en) * | 2006-03-17 | 2006-03-17 | Noveltech Solutions Oy | Arrangement for optics audio microphone |
-
2015
- 2015-11-19 CN CN201510809378.0A patent/CN105319990B/en not_active Expired - Fee Related
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2579056A1 (en) * | 1985-03-18 | 1986-09-19 | Omega Electronics Sa | DEVICE FOR SUPPLYING A CHANGING COLOR LIGHT EMITTING ELEMENT |
CN1097854A (en) * | 1993-11-23 | 1995-01-25 | 刘显钢 | Sound-control colour-changed lamp and sensual pleasure transcoder |
CN2671285Y (en) * | 2003-12-09 | 2005-01-12 | 陈振杰 | Control system of digital musical landscape light |
TW200531614A (en) * | 2004-03-11 | 2005-09-16 | Giga Byte Tech Co Ltd | Method and device for controlling flashing of cold cathode fluorescent lamp with digital audio source of main board |
CN2792086Y (en) * | 2005-08-17 | 2006-06-28 | 周志邦 | General sound-controlld LED colour-changing lamp |
CN102843815A (en) * | 2011-06-24 | 2012-12-26 | 鸿富锦精密工业(深圳)有限公司 | Music color lamp for computer case |
CN102802321A (en) * | 2012-09-03 | 2012-11-28 | 武汉巨正环保科技有限公司 | Intelligent drive control device for LED lamps |
CN103889109A (en) * | 2014-02-17 | 2014-06-25 | 武汉阿拉丁科技有限公司 | Driving device of emotional control of LED light color and brightness change |
Also Published As
Publication number | Publication date |
---|---|
CN105319990A (en) | 2016-02-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111526644B (en) | Control method and device for light display | |
WO2017000810A1 (en) | System for controlling lighting display effect | |
CN105657901B (en) | Audio-video signal and lamp light control system | |
US11368789B2 (en) | Passive headset with dynamically controlled LEDS | |
CN105704864A (en) | Atmosphere illuminating system and method based on music contents | |
CN102123546A (en) | Full-color acousto-optic conversion control method and system | |
CN104507237A (en) | Voice-operated lighting scene effect realization method | |
CN102595704B (en) | Nightscape lighting sound and light synchronous control system and control method thereof | |
CN105319990B (en) | A kind of method of audio signal control output optical signal | |
CN113727501B (en) | Sound-based light dynamic control method, device, system and storage medium | |
US20130269503A1 (en) | Audio-optical conversion device and conversion method thereof | |
CN105810226B (en) | A kind of method and system of control musical effect | |
TW202244892A (en) | Method for controlling flickering of multiple lights by stereo sound recording which can produce light changes corresponding to music rhythms and human voices | |
KR101693109B1 (en) | Light emitting speaker, light emitting speaker system, and driving method of light emitting speaker | |
CN105487580A (en) | Real-time output optical wavelength and intensity control system of audio signal | |
CN103179765A (en) | Stage light effect control system | |
CN108135050A (en) | A kind of pickup LED toning lamps | |
CN205902039U (en) | Luminance is along with isolychn of music regular movements | |
US20150216014A1 (en) | Theatrical effects controller with color correction | |
US8508330B1 (en) | Adaptive filter for lighting assembly control signals | |
CN209762988U (en) | novel music atmosphere lamps and lanterns | |
US20150223307A1 (en) | Theatrical effects controller with ultrasonic output | |
CN207897176U (en) | Fountain sound control and 512 color lamp mixed type control devices | |
Luo et al. | A RGB LED driving structure and signal processing based on tone-to-color conversion | |
CN207884927U (en) | Fountain sound control color lamp |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180330 Termination date: 20201119 |