CN112339654B - Music rhythm OLED multifunctional tail lamp and control method thereof - Google Patents

Music rhythm OLED multifunctional tail lamp and control method thereof Download PDF

Info

Publication number
CN112339654B
CN112339654B CN201910728964.0A CN201910728964A CN112339654B CN 112339654 B CN112339654 B CN 112339654B CN 201910728964 A CN201910728964 A CN 201910728964A CN 112339654 B CN112339654 B CN 112339654B
Authority
CN
China
Prior art keywords
light source
oled
frequency
audio signal
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.)
Active
Application number
CN201910728964.0A
Other languages
Chinese (zh)
Other versions
CN112339654A (en
Inventor
邹阳
孙徐佳
董锋格
任康成
唐杰
赵铭金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Changzhou Xingyu Automotive Lighting Systems Co Ltd
Original Assignee
Changzhou Xingyu Automotive Lighting Systems Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Changzhou Xingyu Automotive Lighting Systems Co Ltd filed Critical Changzhou Xingyu Automotive Lighting Systems Co Ltd
Priority to CN201910728964.0A priority Critical patent/CN112339654B/en
Publication of CN112339654A publication Critical patent/CN112339654A/en
Application granted granted Critical
Publication of CN112339654B publication Critical patent/CN112339654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q1/00Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor
    • B60Q1/26Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic
    • B60Q1/30Arrangement of optical signalling or lighting devices, the mounting or supporting thereof or circuits therefor the devices being primarily intended to indicate the vehicle, or parts thereof, or to give signals, to other traffic for indicating rear of vehicle, e.g. by means of reflecting surfaces
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/02Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using spectral analysis, e.g. transform vocoders or subband vocoders
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60QARRANGEMENT OF SIGNALLING OR LIGHTING DEVICES, THE MOUNTING OR SUPPORTING THEREOF OR CIRCUITS THEREFOR, FOR VEHICLES IN GENERAL
    • B60Q2400/00Special features or arrangements of exterior signal lamps for vehicles
    • B60Q2400/20Multi-color single source or LED matrix, e.g. yellow blinker and red brake lamp generated by single lamp
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Abstract

The invention discloses a music rhythm OLED multifunctional tail lamp and a control method thereof, wherein the music rhythm OLED multifunctional tail lamp comprises: the audio signal analysis module is used for acquiring and analyzing the audio signal to obtain frequency spectrum information; and the light source control module is in communication connection with the audio signal analysis module and is used for generating a light source control signal according to the frequency spectrum information and controlling the on-off of the OLED light source in real time according to the light source control signal, the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip. The technical problem that the function of the existing automobile lamp is single is effectively solved, and the rhythm of an audio signal is freely rhythmed on an automobile tail lamp through an OLED light source.

Description

Music rhythm OLED multifunctional tail lamp and control method thereof
Technical Field
The invention relates to the technical field of automotive electronics, in particular to a music rhythm OLED multifunctional tail lamp and a control method thereof.
Background
With the development of automobile electronic technology and the updating of light source technology, the automobile illumination also changes with the ground. The most original fuels (acetylene, candle, kerosene and the like) are changed into common halogen lamps and xenon lamps, wherein the halogen lamps have the defects of weak brightness, large heat generation, short service life and the like although the manufacturing cost is low, and the xenon lamps have the defects of complex structure, long starting time and poor fog penetrating capability. Therefore, the LED car light has been widely developed in the market due to its advantages of low cost, energy saving, fast response, long life, small volume, high brightness, etc., and the gas discharge (halogen, xenon) era has started to enter the end sound.
The Organic Light-Emitting Diode (OLED) has the advantages of being Light, thin, transparent and high in response speed, and can realize more flexible car lamp modeling in the aspect of process due to the ultrathin thickness, so that the car tail lamp is lighter and more diversified in shape, and the car has higher color value at night; on the other hand, the LED flat light source is a flat light source with uniform light emission and soft illumination, has a more uniform transparent effect, does not need a reflection structure to ensure the light effect, and can solve the problems of heat dissipation and glare frequently occurring in the LED lamp. Therefore, the application of the OLED in the field of automobile tail lamps has incomparable effect. The car light is the eyes of car, and the car light of car usually can only realize the effect of illumination at present, and the function is single.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides the OLED multifunctional tail lamp for the musical rhythm and the control method thereof, which effectively solve the technical problem of single function of the conventional automobile lamp and carry out the free rhythm on the automobile tail lamp by the OLED light source according to the rhythm of the audio signal.
In order to achieve the purpose, the invention is realized by the following technical scheme:
a music rhythm OLED multifunctional tail light comprises:
the audio signal analysis module is used for acquiring and analyzing the audio signal to obtain frequency spectrum information;
the light source control module is in communication connection with the audio signal analysis module and is used for generating a light source control signal according to the frequency spectrum information and controlling the on-off of the OLED light source in real time according to the light source control signal; the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip.
To achieve musical rhythm, it is necessary to analyze the frequency spectrum of the input sound source, and in digital signal processing, discrete Fourier Transform (DFT) is a commonly used transformation method and plays an important role in various digital signal processing systems. The fast Fourier transform is a fast and effective algorithm for reducing the DFT calculation times, signals are transformed to a frequency domain and corresponding spectrum analysis is carried out, and the more the number N of transformed sampling points is, the more the calculation amount of the FFT algorithm is saved. In the technical scheme, the FFT algorithm is integrated in the single chip microcomputer to realize the spectrum analysis of the audio signal, the peak value of each frequency band signal is obtained and converted into information such as the lighting rhythm, brightness, breathing speed and the like of the lamp, and the musical rhythm effect is realized. Flexible use and low cost.
Further preferably, the audio signal analysis module includes:
the audio signal acquisition unit is used for acquiring audio signals at a preset frequency;
the audio frequency spectrum analysis unit is connected with the audio signal acquisition unit and is used for performing fast Fourier transform on the audio signal acquired by the audio signal acquisition unit to obtain a spectrum signal, calculating a module value corresponding to each specific frequency in the audio signal and calculating a peak value forming frequency information corresponding to each specific frequency according to the calculated module value and the number of sampling points;
and the first Can communication unit is connected with the audio spectrum analysis unit and is used for sending the frequency information formed by the audio spectrum analysis unit to the light source control module.
In the technical scheme, the information after the spectrum analysis is transmitted to the light source control module through a Can bus, wherein the Can is short for a controller area network (Can), and is a multi-master bus, namely, each node machine Can be a host machine, and the node machines Can also communicate with each other.
Further preferably, the specific frequency is determined by a spectral analysis accuracy of the audio signal, and the spectral analysis accuracy is determined by a sampling frequency and a sampling point number.
Further preferably, the light source control module includes:
the second Can communication unit is used for receiving the frequency spectrum information sent by the audio signal analysis module and comparing the received frequency spectrum information with the frequency spectrum information of the previous sampling period;
the LED driving control unit is connected with the second Can communication unit and is used for generating a corresponding light source control signal according to the comparison result of the second Can communication unit and the rhythm to be executed;
and the LED constant current driving unit is connected with the LED driving control unit and used for generating an LED driving signal according to a light source control signal of the LED driving control unit and realizing the lighting operation of the OLED according to the LED driving signal.
Preferably, the rhythm to be executed includes a lighting rhythm and a lighting rhythm mode of the OLED light source, the LED driving control unit generates a light source control signal according to a difference between a peak value in the spectrum signal of the current period and a peak value in the spectrum information of the previous period and the rhythm to be executed, and the light source control signal includes a PWM duty ratio and a driving logic.
The invention also provides a control method of the OLED multifunctional tail lamp for musical rhythm, which comprises the following steps:
s10, acquiring and analyzing the audio signal to obtain frequency spectrum information;
s20, generating a light source control signal according to the frequency spectrum information, and controlling the on-off of an OLED light source in real time according to the light source control signal; the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip.
More preferably, step S10 includes:
s11, collecting audio signals at a preset frequency;
s12, carrying out fast Fourier transform on the audio signal acquired by the audio signal acquisition unit to obtain a frequency spectrum signal, calculating a module value corresponding to each specific frequency in the audio signal, and calculating a peak value corresponding to each specific frequency according to the calculated module value and the number of sampling points to form frequency information;
and S13, sending the frequency information in a Can communication mode.
Further preferably, the specific frequency is determined by a spectral analysis accuracy of the audio signal, the spectral analysis accuracy being determined by a sampling frequency and a number of sampling points.
More preferably, step S20 includes:
s21, receiving the spectrum information in a Can communication mode, and comparing the received spectrum information with the spectrum information in the previous sampling period;
s22, generating a corresponding light source control signal according to the comparison result and the rhythm to be executed;
and S23, generating an LED driving signal according to the light source control signal, and realizing the lighting operation of the OLED according to the LED driving signal.
Preferably, the pulse to be executed includes a lighting pulse and a lighting pulse manner of the OLED light source, and in step S22, a light source control signal is generated according to a difference between a peak value in the spectrum signal of the current period and a peak value in the spectrum information of the previous period and the pulse to be executed, where the light source control signal includes a PWM duty cycle and a driving logic.
According to the music rhythm OLED multifunctional tail lamp and the control method thereof, the FFT (fast Fourier transform algorithm) is used for carrying out spectrum analysis on the collected audio signals to obtain spectrum information; then, sending the frequency spectrum information to a light source control module of the tail lamp through a Can bus message; the light source control module analyzes the received Can message, converts the Can message to obtain a control signal of the OLED light source, and realizes stable driving and control of the OLED light source through the LED constant current driving unit. In the process, the FFT process has high analysis speed and high cost performance; the Can communication mode has strong fault-tolerant capability, high communication speed and more supporting nodes; the OLED is driven by a constant current mode, so that the reliability is high, the service life is long, and the brightness is uniform. The OLED organic light-emitting diode is used as a light source, the light-emitting area is large, the OLED organic light-emitting diode has the characteristics of self-luminescence and no need of a backlight source, and heat generated during working can be dissipated in time without a heat dissipation device. In addition, the OLED has the characteristics of real color, simple structure, flexible display and the like, and can achieve a very dazzling effect when being used on an automobile tail lamp.
The invention enhances the originality of the automobile tail lamp by adopting a low-cost scheme, can realize richer welcome functions or freely change rhythm effect along with the mood of an automobile owner, endows the tail lamp with a novel personalized and creative expression mode, and gives people a elegant rhythm sense by using a light-emitting mode of the automobile tail lamp to carry out rhythm, respiration and flow along with music rhythm, so that the effect of the whole automobile lamp is dynamic and full of individuality.
Drawings
A more complete understanding of the present invention, and the attendant advantages and features thereof, will be more readily understood by reference to the following detailed description when considered in conjunction with the accompanying drawings wherein:
FIG. 1 is a block diagram of a music rhythm OLED multifunctional tail lamp according to the present invention;
FIG. 2 is a block diagram of an audio signal analysis module according to the present invention;
FIG. 3 is a block diagram of a module for controlling a light source according to the present invention;
FIG. 4 is a diagram illustrating a control of the OLED chip performing a breathing function according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of six light-emitting regions included in each OLED light source in accordance with one embodiment of the present invention;
FIG. 6 is a flowchart of a method for controlling the OLED multifunctional tail light for musical rhythm according to the present invention.
Reference numerals:
10-an audio signal analysis module, 20-a light source control module, 11-an audio signal acquisition unit, 12-an audio frequency spectrum analysis unit, 13-a first Can communication unit, 21-a second Can communication unit, 22-an LED drive control unit and 23-an LED constant current drive unit.
Detailed Description
In order to make the contents of the present invention more comprehensible, the present invention is further described below with reference to the accompanying drawings. The invention is of course not limited to this particular embodiment, and general alternatives known to a person skilled in the art are also covered within the scope of the invention.
Fig. 1 is a block diagram of a music-rhythm OLED multifunctional tail light according to the present invention, and as can be seen from the figure, the music-rhythm OLED multifunctional tail light includes: the system comprises an audio signal analysis module 10 and a light source control module 20 which are in communication connection, wherein the audio signal analysis module 10 is used for collecting and analyzing an audio signal to obtain frequency spectrum information, the light source control module 20 is used for generating a light source control signal according to the frequency spectrum information obtained by the analysis of the audio signal analysis module 10, and controlling the on-off of an OLED light source in real time according to the light source control signal of the light source control module 20, the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip.
As shown in fig. 2, the audio signal analysis module 10 includes: the device comprises an audio signal acquisition unit 11, an audio frequency spectrum analysis unit 12 connected with the audio signal acquisition unit 11 and a first Can communication unit 13 connected with the audio frequency spectrum analysis unit 12, wherein the audio signal acquisition unit 11 is used for acquiring audio signals at a preset frequency, and the audio frequency spectrum analysis unit 12 is used for performing fast Fourier transform on the audio signals acquired by the audio signal acquisition unit 11 to obtain spectrum signals, calculating the mode values corresponding to specific frequencies in the audio signals and calculating the peak values corresponding to the specific frequencies according to the calculated mode values and the number of sampling points to form frequency information; the first Can communication unit 13 is configured to send the frequency information formed by the audio spectrum analysis unit 12 to the light source control module 20. Here, the specific frequency is determined by the spectral analysis accuracy of the audio signal, the spectral analysis accuracy is determined by the sampling frequency and the number of sampling points, specifically, the spectral analysis accuracy = sampling frequency/number of sampling points, and the specific frequency is set based on the spectral analysis accuracy, for example, the first frequency is set as the spectral analysis accuracy, the second frequency is set as the spectral analysis accuracy × 2, the third frequency is set as the spectral analysis accuracy × 3, and so on.
Specifically, the audio signal acquisition unit 11 transmits the analog signal of the audio frequency to an ADC (analog-to-digital conversion) port of an internal single chip via an audio interface (3.5 mm) to sample the voltage component in the audio signal at a certain frequency in real time, and stores the audio voltage information in an array. The sampling frequency is not particularly limited, and the sampling frequency is set to 20kHz (kilohertz).
After storing the collected audio voltage information, the audio spectrum analysis unit 12 starts to perform a fast fourier transform to convert the audio voltage information into features of different frequencies contained in the waveform to obtain a spectrum signal. The obtained frequency spectrum signal is expressed in the form of complex number a + bi (a is a real part, b is an imaginary part), after fast Fourier transform, the audio frequency spectrum analysis unit 12 respectively stores the real part and the imaginary part of the frequency in an array, square summation is respectively carried out on the numbers in the array of the real part and the imaginary part, then square summation is carried out on the numbers in the array of the real part and the imaginary part to obtain a module value of the frequency spectrum signal, and then the module value is multiplied by 1/2 of the number of sampling points to obtain the peak of a single frequency signal; and finally, combining the peak values of the frequency band signals to obtain frequency spectrum information. After obtaining the spectrum information, the first Can communication unit 13 transmits the spectrum signal to the light source control module 20 through the Can bus. The frequency components stored in the array are determined by the spectral analysis accuracy, so that the stored data is determined by the actual requirements. The audio signal acquisition unit acquires audio voltage signals by using an ADC port of the single chip microcomputer, and then carries out spectrum analysis by using the single chip microcomputer of the audio signal analysis module 10 to obtain the peak value of each frequency band signal, and the whole process uses few components and parts and is low in cost. The invention uses NXP S32K144 series single-chip microcomputer, which belongs to a vehicle scale microcontroller, and has strong anti-interference capability, high operation performance and low cost.
In one example, the audio signal acquisition unit comprises an S32K144 single chip microcomputer integrated with a fast fourier transform algorithm, and converts the acquired audio signal into amplitude information of a 64-band spectrum signal (the frequency of the last 64 points of 128 sampling points is the same as the frequency of the first 64 points). After the acquired audio signals are stored in 128 times of audio voltage information (the 128-point audio voltage signal is sampled in one period), the audio frequency spectrum analysis unit starts to execute one-time fast Fourier transform to convert the audio voltage information into characteristics of different frequencies contained in a waveform to obtain a frequency spectrum signal, and a real part and an imaginary part of the frequency are respectively stored in an array with a length of 128 Word. And then, respectively carrying out square summation on the numbers in the real part array and the imaginary part array, then squaring to obtain a module value of the frequency spectrum signal, and multiplying the module value by 1/2 of the number of the sampling points to obtain a peak value of the single frequency signal. And combining the peak values of the signals of all frequency bands to obtain frequency spectrum information. In this example, the sampling frequency is 20kHz, the number of sampling points is 128, the accuracy of the spectrum analysis is 20kHz/128=156.25hz, the spectrum data in the sampling array is frequency components multiplied by 156.25Hz, specifically, the first data in the array is a dc component of the spectrum signal, the second data is frequency information of 156.25Hz, the third data is frequency information of 312.5Hz, and so on. Here, the whole process of a sampling period is completed within several milliseconds, the sampling rate has a large space for improvement, the rate can completely meet the visual requirement of the musical rhythm function, and the rate is high.
Furthermore, in the process of audio analysis, firstly, a sampling table of Cos and Sin sine and cosine trigonometric functions is generated in a program storage area of a single chip microcomputer in an audio frequency spectrum analysis unit; and then, circularly triggering the ADC to sample by adopting a timer at a fixed frequency, after a group of 128-point voltage amplitude data is acquired, arranging the data acquired by the ADC according to a reverse order by a reed algorithm and calculating the number of butterfly operation stages, calculating Sin and Cos values by using a table look-up method and acquiring a twiddle factor by using an Euler formula to perform butterfly operation so as to complete fast Fourier transform, wherein the Sin and Cos values are calculated by using the table look-up method so as to reduce the calculated amount of a single chip microcomputer and improve the conversion speed. After FFT calculation is completed, the real part and the imaginary part are respectively subjected to square summation and square division to obtain a module value, and the module value is divided by 1/2 of the number of sampling points to obtain the peak value of the frequency spectrum signal. Finally, storing the peak values of the 128-point spectrum signals in an array in sequence, and sending useful spectrum information out through a Can bus.
As shown in fig. 3, the light source control module 20 includes: the second Can communication unit 21, the LED driving control unit 22 connected to the second Can communication unit 21, and the LED constant current driving unit 23 connected to the LED driving control unit 22, where the second Can communication unit 21 is configured to receive the spectrum information sent by the audio signal analysis module 10, and compare the received spectrum information with the spectrum information of the previous sampling period; the LED drive control unit 22 is used for generating a corresponding light source control signal according to the comparison result of the second Can communication unit and the rhythm to be executed; the LED constant current driving unit 23 is configured to generate an LED driving signal according to the light source control signal of the LED driving control unit 22, and implement a lighting operation on the OLED according to the light source control module LED driving signal.
Specifically, the Can transceivers of the first Can communication unit 13 and the second Can communication unit 21 use TCAN1042 chips of TI texas instruments, and a terminal resistor of 120 Ω (ohm) is used between Can H and Can L, so that the interference resistance is improved, and the bus is ensured to enter a hidden state quickly.
After receiving the spectrum information, the second Can communication unit 21 compares the received audio information with the audio information of the previous sampling period to obtain the peak value change of each frequency; then, the LED driving control module transmits the signal to the LED constant current driving unit 23 according to different PWM duty ratios and driving logics in rhythm manners such as lighting rhythm and brightness; finally, the LED constant current driving unit 23 performs constant current driving of the OLED by using the linear LED driving chip TPS92630 of TI, connects the output driving signal to the OLED light source through a flat cable to perform lighting of the OLED, controls the OLED to realize functions of breathing, flickering, random lighting, flowing water, musical rhythm, and the like, and has variable effects and flexible control.
Further, after receiving the Can bus message (frequency information), the one-chip microcomputer in the LED driving control unit 22 determines the function to be executed (breathing, random lighting, running water, circulation, flashing, rhythm, etc.) according to the message ID and the communication protocol related definition of the signal, and starts to execute the musical rhythm function if receiving the instruction to execute the musical rhythm function. By analyzing the peak value of the frequency spectrum signal and making a difference value with the peak value of each frequency band received last time, the rhythm and tone variation of music rhythm are analyzed, different PWM duty ratios are output, the LED constant current driving unit 23 is controlled by logic, and accordingly the OLED light source is controlled to achieve different lighting effects along with the rhythm and tone of music so as to achieve the function of music rhythm.
Specifically, the breathing function is that the single chip microcomputer IO port of the LED driving control unit 22 outputs a PWM waveform with a real-time changing duty ratio, and the LED constant current driving unit 23 adjusts the brightness of the OLED chip according to a certain curve, so that the breathing effect of gradually increasing brightness and gradually decreasing darkness is achieved. In one example, as shown in FIG. 4 (with the abscissa being time in units of s; and the ordinate being power in units of W), the OLED chips become progressively brighter over time. The water flowing function is that different OLED chips are sequentially lightened by the single-chip microcomputer IO port of the LED driving control unit 22, and the dynamic effect of flow display is achieved. The circulation function is to combine various different kinds of flowing water and breathing effects to form a group of specific effects to be displayed. The flashing function is a process of repeatedly turning off and on the OLED lamp at certain time intervals. The rhythm function is the process that the OLED chip lights up along with the rhythm of music.
In one example, the rear light of the vehicle includes 12 OLED light sources (corresponding to OLED light source 1, OLED light source 2, OLED light source 3, \ 8230;, OLED light source 12), each of which includes six light emitting regions as shown in FIG. 5, and each of the light emitting regions 3 includes 2 OLED chips arranged in a symmetrical pattern in a matrix. The frequencies corresponding to the 12 OLED light sources are respectively direct current components, 156.25Hz, 156.25X 2Hz, 156.25X 3Hz, \ 8230, 156.25X 11Hz, after the second Can communication unit 21 receives the frequency information, the function to be executed is determined to be rhythm through the message ID and the communication protocol related definition of the signal, the difference value between the peak value of the frequency spectrum signal and the peak value of each frequency band received last time is increased by 156.25Hz by 1dB, and the corresponding OLED light source 2 is controlled to lighten one more light-emitting region; if the peak value of the frequency component 156.25 × 2hz is increased by 4dB, controlling the OLED light source 3 to light one more region; the peak of the frequency component 156.25 x 3hz is reduced by 2dB, and the corresponding OLED light source 4 is controlled to light one area less, and so on. In other examples, the rhythm may be further rhythmed in other ways depending on the setting.
The invention also provides a control method of the music rhythm OLED multifunctional tail lamp, as shown in fig. 6, including:
s10, acquiring and analyzing the audio signal to obtain frequency spectrum information;
s20, generating a light source control signal according to the frequency spectrum information, and controlling the on-off of the OLED light source in real time according to the light source control signal; the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip.
Further, step S10 includes:
s11, collecting audio signals at a preset frequency;
s12, performing fast Fourier transform on the audio signal acquired by the audio signal acquisition unit to obtain a frequency spectrum signal, calculating a module value corresponding to each specific frequency in the audio signal, and calculating peak value forming frequency information corresponding to each specific frequency according to the calculated module value and the number of sampling points;
and S13, sending the frequency information in a Can communication mode.
The step S20 includes:
s21, receiving the spectrum information in a Can communication mode, and comparing the received spectrum information with the spectrum information in the previous sampling period;
s22, generating a corresponding light source control signal according to the comparison result and the rhythm to be executed;
and S23, generating an LED driving signal according to the light source control signal, and realizing the lighting operation of the OLED according to the LED driving signal.
Specifically, in step S11, the audio analog signal is transmitted to an ADC (analog-to-digital conversion) port of the single chip via the audio interface (3.5 mm), and the voltage component in the audio signal is sampled at a certain frequency in real time, and the audio voltage information is stored in an array. The sampling frequency is not particularly limited, and is set to 20kHz (kilohertz).
After the collected audio voltage information is stored, a fast Fourier transform is performed for converting the audio voltage information into the characteristics of different frequencies contained in the waveform to obtain a spectrum signal. The obtained frequency spectrum signal is expressed in the form of complex number a + bi (a is a real part, b is an imaginary part), after fast Fourier transform, the real part and the imaginary part of frequency are respectively stored in an array, the numbers in the array of the real part and the array of the imaginary part are respectively subjected to square summation and then are squared to obtain a module value of the frequency spectrum signal, and then the module value is multiplied by 1/2 of the number of sampling points to obtain a peak of a single frequency signal; and finally, combining the peak values of the frequency band signals to obtain frequency spectrum information. After obtaining the spectrum information, the spectrum signal is transmitted out through the Can bus. The frequency components stored in the array are determined by the accuracy of the spectral analysis, specifically, the accuracy = sampling frequency/number of sampling points, so that the stored data is determined by the actual requirements.
In one example, after the collected audio signal is stored in the 128 times of audio voltage information (the 128-point audio voltage signal is sampled in one period), a fast fourier transform is performed to convert the audio voltage information into the characteristics of different frequencies contained in the waveform to obtain a spectrum signal, and the real part and the imaginary part of the frequency are respectively stored in an array of 128Word lengths. And then, respectively carrying out square summation on the numbers in the real part array and the imaginary part array, then squaring to obtain a module value of the frequency spectrum signal, and multiplying the module value by 1/2 of the number of the sampling points to obtain a peak value of the single frequency signal. And combining the peak values of the signals of all frequency bands to obtain frequency spectrum information. In this example, the sampling frequency is 20kHz, the number of sampling points is 128, the accuracy of the spectrum analysis is 20kHz/128=156.25hz, the spectrum data in the sampling array are all frequency components multiplied by 156.25Hz, specifically, the first data in the array is a direct current component of the spectrum signal, the second data is frequency information of 156.25Hz, the third data is frequency information of 312.5Hz, and so on. Here, the whole process of a sampling period is completed within several milliseconds, the sampling rate has a great space for improvement, the rate can completely meet the visual requirement of the musical rhythm function, and the rate is high.
Furthermore, in the process of audio analysis, firstly, a sampling table of cosine and sine trigonometric functions of Cos and Sin is generated in a program storage area of a single chip microcomputer in an audio frequency spectrum analysis unit; and then, circularly triggering the ADC to sample by adopting a timer at a fixed frequency, after a group of 128-point voltage amplitude data is acquired, arranging the data acquired by the ADC according to a reverse order by a reed algorithm and calculating the number of butterfly operation stages, calculating Sin and Cos values by using a table look-up method and acquiring a twiddle factor by using an Euler formula to perform butterfly operation so as to complete fast Fourier transform, wherein the Sin and Cos values are calculated by using the table look-up method so as to reduce the calculated amount of a single chip microcomputer and improve the conversion speed. After FFT calculation is completed, the real part and the imaginary part are respectively subjected to square summation and square division to obtain a module value, and the module value is divided by 1/2 of the number of sampling points to obtain the peak value of the frequency spectrum signal. Finally, storing the peak values of the 128-point spectrum signals in an array in sequence, and sending useful spectrum information out through a Can bus.
In step S21, after receiving the spectrum information in the Can communication manner, immediately comparing the received audio information with the audio information of the previous sampling period to obtain a peak value change of each frequency; then, the LED drive control module transmits signals to the LED constant current drive unit in rhythm of lighting rhythm, brightness and other rhythm modes through different PWM duty ratios and drive logics; and finally, the LED constant current driving unit adopts a TI linear LED driving chip TPS92630 to perform OLED constant current driving, an output driving signal is connected to the OLED light source through a flat cable to perform OLED lighting work, and the OLED is controlled to realize functions of breathing, flickering, random lighting, flowing water, musical rhythm and the like, and the LED constant current driving unit is changeable in effect and flexible in control.
Further, after receiving a Can bus message (frequency information), the single chip in the LED driving control unit determines a function to be executed (breathing, random lighting, running, cycling, flashing, rhythm, etc.) according to the message ID and the communication protocol related definition of the signal, and starts to execute the music rhythm function if receiving an instruction to execute the music rhythm function. By analyzing the peak value of the frequency spectrum signal and making a difference value with the peak value of each frequency band received last time, the rhythm and tone variation of the music rhythm are analyzed, different PWM duty ratios are output, the LED constant current driving unit is controlled logically, and accordingly the OLED light source is controlled to follow the rhythm and tone of the music to achieve different lighting effects so as to achieve the function of the music rhythm.

Claims (2)

1. A music rhythm OLED multifunctional tail lamp is characterized by comprising:
the audio signal analysis module is used for acquiring and analyzing the audio signal to obtain frequency spectrum information;
the light source control module is in communication connection with the audio signal analysis module and is used for generating a light source control signal according to the frequency spectrum information and controlling the on-off of the OLED light source in real time according to the light source control signal; the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip;
the audio signal analysis module comprises:
the audio signal acquisition unit is used for acquiring audio signals at a preset frequency;
the audio frequency spectrum analysis unit is connected with the audio signal acquisition unit and is used for performing fast Fourier transform on the audio signal acquired by the audio signal acquisition unit to obtain a spectrum signal, calculating a module value corresponding to each specific frequency in the audio signal and calculating peak value forming frequency information corresponding to each specific frequency according to the calculated module value and the number of sampling points;
the first Can communication unit is connected with the audio spectrum analysis unit and used for sending the frequency information formed by the audio spectrum analysis unit to the light source control module;
the specific frequency is determined by the spectral analysis precision of the audio signal, and the spectral analysis precision is determined by the sampling frequency and the number of sampling points;
the light source control module comprises:
the second Can communication unit is used for receiving the frequency spectrum information sent by the audio signal analysis module and comparing the received frequency spectrum information with the frequency spectrum information of the previous sampling period;
the LED driving control unit is connected with the second Can communication unit and used for generating a corresponding light source control signal according to the comparison result of the second Can communication unit and the rhythm to be executed;
the LED constant current driving unit is connected with the LED driving control unit and used for generating an LED driving signal according to a light source control signal of the LED driving control unit and realizing the lighting operation of the OLED according to the LED driving signal;
the rhythm to be executed comprises an illumination rhythm and an illumination rhythm mode of the OLED light source, the LED drive control unit generates a light source control signal according to the difference value between the peak value in the spectrum signal of the current period and the peak value of the spectrum information of the previous period and the rhythm to be executed, and the light source control signal comprises a PWM duty ratio and a drive logic;
the automobile tail light comprises 12 OLED light sources, each OLED light source comprises six light emitting areas, and each OLED light source corresponds to a specific frequency.
2. A control method of a music rhythm OLED multifunctional tail lamp is characterized by comprising the following steps:
s10, acquiring and analyzing the audio signal to obtain frequency spectrum information;
s20, generating a light source control signal according to the frequency spectrum information, and controlling the on-off of an OLED light source in real time according to the light source control signal; the OLED light source comprises OLED chips respectively corresponding to specific frequencies in the audio signal, and each specific frequency corresponds to at least one OLED chip;
the step S10 includes:
s11, collecting audio signals at a preset frequency;
s12, carrying out fast Fourier transform on the audio signal acquired by the audio signal acquisition unit to obtain a frequency spectrum signal, calculating a module value corresponding to each specific frequency in the audio signal, and calculating a peak value corresponding to each specific frequency according to the calculated module value and the number of sampling points to form frequency information;
s13, sending out frequency information in a Can communication mode;
the specific frequency is determined by the spectral analysis precision of the audio signal, and the spectral analysis precision is determined by the sampling frequency and the number of sampling points;
the step S20 includes:
s21, receiving the frequency spectrum information in a Can communication mode, and comparing the received frequency spectrum information with the frequency spectrum information of the previous sampling period;
s22, generating a corresponding light source control signal according to the comparison result and the rhythm to be executed;
s23, generating an LED driving signal according to the light source control signal, and realizing the lighting operation of the OLED according to the LED driving signal;
in step S22, a light source control signal is generated according to a difference between a peak value in the spectrum signal of the current period and a peak value in the spectrum information of the previous period and the rhythm to be executed, where the light source control signal includes a PWM duty cycle and a driving logic;
the automobile tail light comprises 12 OLED light sources, each OLED light source comprises six light emitting areas, and each OLED light source corresponds to a specific frequency.
CN201910728964.0A 2019-08-08 2019-08-08 Music rhythm OLED multifunctional tail lamp and control method thereof Active CN112339654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910728964.0A CN112339654B (en) 2019-08-08 2019-08-08 Music rhythm OLED multifunctional tail lamp and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910728964.0A CN112339654B (en) 2019-08-08 2019-08-08 Music rhythm OLED multifunctional tail lamp and control method thereof

Publications (2)

Publication Number Publication Date
CN112339654A CN112339654A (en) 2021-02-09
CN112339654B true CN112339654B (en) 2022-10-14

Family

ID=74367478

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910728964.0A Active CN112339654B (en) 2019-08-08 2019-08-08 Music rhythm OLED multifunctional tail lamp and control method thereof

Country Status (1)

Country Link
CN (1) CN112339654B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113707110B (en) * 2021-06-15 2023-12-01 浙江意博高科技术有限公司 Intelligent illumination control method and system
CN113613369B (en) * 2021-08-11 2023-09-08 深圳市智岩科技有限公司 Light effect control method, device, equipment and storage medium
CN113853046A (en) * 2021-08-31 2021-12-28 东风汽车集团股份有限公司 Music frequency-based automobile light control method, equipment and storage medium
CN114449474A (en) * 2022-01-29 2022-05-06 重庆长安汽车股份有限公司 Bluetooth protocol-based music light show implementation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2519616B2 (en) * 1991-09-30 1996-07-31 株式会社ジャルコ Ornamental light flashing device that uses a PLL circuit to shine along with music
CN104219849A (en) * 2014-09-16 2014-12-17 深圳市华海技术有限公司 Method and device for controlling light-emitting equipment on basis of audio signal
CN106332393B (en) * 2015-06-30 2019-02-15 芋头科技(杭州)有限公司 A kind of music light regular movements system and method
CN107306462A (en) * 2016-04-19 2017-10-31 齐鲁工业大学 A kind of LED battle array Audio presentation device and its Fourier modes fuzzy control method
CN109561540A (en) * 2017-09-26 2019-04-02 广州小鹏汽车科技有限公司 A kind of automobile and vehicle-mounted OLED lamp lamp-lighting method and system based on note

Also Published As

Publication number Publication date
CN112339654A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
CN112339654B (en) Music rhythm OLED multifunctional tail lamp and control method thereof
AU2011310149B2 (en) LED illumination apparatus and LED illumination system
CN103607823A (en) LED light emitting device
KR100343026B1 (en) Apparatus and frame to which the illum inting apparatus is attached
CN109089355A (en) A kind of car bulb control method and system based on music signal
CN104566176B (en) LED music aquatic animals lamps
CN103997810A (en) Multi-mode room ceiling lamp
CN102811525A (en) LED lamp and control circuit thereof
CN113199984A (en) Multi-color rhythm atmosphere lamp control system and method based on CAN control
CN204962331U (en) Intelligent LED lamp
CN106678734A (en) Intelligent dimming system and method of light guide pipe illumination device
CN211671016U (en) Intelligent front ceiling lamp module and system integrating light control in vehicle
CN200997711Y (en) Self-adaptive energy-saving controllable sub-system for illuminating network
KR19980042851A (en) Lighting device and frame to which it is mounted
CN110116671B (en) Lamp group control method and device and vehicle
CN116301534A (en) Method and device for generating lamp effect animation parameters of vehicle exterior lamp
CN115534844A (en) Vehicle-mounted atmosphere lamp music rhythm control method and system
CN214627423U (en) Off-line pronunciation intelligence LED lamp area controller based on bluetooth
CN115742949B (en) Music rhythm atmosphere lamp and vehicle
CN114684013A (en) Intelligent adjusting system and control method for atmosphere lamp in vehicle
CN114286481A (en) Energy-saving control method for vehicle illuminating lamp instrument
CN108064099A (en) Intelligent lighting system, control method and intelligent illuminating system
JP2001244087A (en) Control circuit for lighting device of light emitting diode
CN202014394U (en) Wireless light adjustment device and lamp fitting control system of intelligent LED lamp fitting
CN205142611U (en) LED flowing water lamp music of discolouing christmas tree

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
GR01 Patent grant
GR01 Patent grant