A vehicle-mounted speaker diagnostic circuit and method
By designing a diagnostic circuit for vehicle speakers and utilizing spectrum analysis and impedance curve measurement, the problem of the inability to quantitatively detect speaker harmonic distortion and resonant frequency in existing technologies has been solved, enabling accurate quantitative diagnosis of speaker sound quality and identification of hidden faults.
Patent Information
- Application Number
- CN202611457940.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-18
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies cannot accurately quantify and detect the harmonic distortion and resonant frequency of vehicle speakers, making it difficult to identify latent sound quality faults.
A diagnostic circuit for vehicle speakers was designed, including a power supply module, an audio driver module, a voltage and current sampling module, and a main control module. Through spectrum analysis and impedance curve measurement, the circuit enables quantitative detection of speaker harmonic distortion and resonant frequency.
It can accurately identify sound quality problems of loudspeakers, such as hidden faults like damage or voice coil misalignment, and achieve quantitative diagnosis of acoustic performance, thus improving the accuracy and efficiency of testing.
Smart Images

Figure CN123185508A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle-mounted low-voltage electrical appliance testing technology, and in particular to a vehicle-mounted speaker diagnostic circuit and method. Background Technology
[0002] With the rapid development of automotive electrification and intelligence, the number and complexity of in-vehicle low-voltage electrical components (such as speakers, lights, window motors, door locks, etc.) are constantly increasing. The accuracy and efficiency of fault diagnosis directly affect the safety, comfort, and after-sales maintenance costs of the entire vehicle. In the vehicle off-line inspection and after-sales repair stages, quickly and accurately locating low-voltage electrical faults is a key aspect of improving product quality and user experience. In particular, the in-vehicle speaker system, as an important component of the vehicle's infotainment system, directly affects the user's driving experience. However, latent speaker faults (such as voice coil misalignment, diaphragm damage, and loose magnetic circuits) are often difficult to detect through simple continuity tests. Quantitative testing of acoustic performance indicators such as harmonic distortion and resonant frequency is required for accurate diagnosis.
[0003] In the prior art, Chinese utility model patent with publication number CN216956223U discloses an electrical fault detection fixture. This detection fixture sets indicators that are compatible with the voltage and current specifications of the electrical appliance to be tested on two or more detection branches, and uses a control switch to switch the detection branches to detect the on / off state of the faulty electrical appliance.
[0004] However, the existing indicators are merely indicator lights, which can only simply identify the on / off state of a circuit. They cannot quantitatively detect acoustic performance indicators such as harmonic distortion and resonant frequency of audio devices like speakers, nor can they identify latent sound quality faults. Therefore, there is an urgent need for a diagnostic circuit capable of quantitatively detecting harmonic distortion and resonant frequency of vehicle speakers to overcome the technical bottleneck of traditional testing equipment that can only determine on / off states but cannot identify latent acoustic performance faults. Summary of the Invention
[0005] This invention provides a diagnostic circuit and method for vehicle speakers to solve the technical problem that existing technologies can only identify the on / off state through indicator lights, making it difficult to quantify and detect acoustic performance indicators such as harmonic distortion and resonant frequency of the speaker, thus making it difficult to identify latent sound quality faults.
[0006] Firstly, a diagnostic circuit for an in-vehicle speaker is provided, including: The power module is used to provide the power supply voltage; An audio driver module is connected to the power module and the speaker under test; A voltage and current sampling module is connected to the audio driver module and the speaker; The main control module is connected to the power supply module, the audio driver module, and the voltage and current sampling module, and is configured as follows: Send an excitation control signal to the audio driver module to make the speaker work; The voltage at the output of the audio driver module and the current flowing through the speaker are collected by the voltage and current sampling module. The harmonic distortion and resonant frequency of the speaker are determined based on the voltage at the output of the audio driver module and the current flowing through the speaker.
[0007] In some embodiments, the main control module determines the harmonic distortion of the loudspeaker, including: The harmonic distortion of the speaker is determined by performing spectral analysis on the waveform of the voltage at the output of the audio driver module.
[0008] In some embodiments, the main control module performs spectral analysis based on the waveform of the voltage to determine the harmonic distortion of the loudspeaker, including: Perform a Fast Fourier Transform on the waveform of the voltage at the output of the audio driver module to extract the fundamental amplitude V1 and the amplitudes of each harmonic V2, V3...V1. n ; According to the formula THD=(√(V2²+V3²+…+V…), n 2)) / V1×100% calculates the total harmonic distortion (THD), and uses the total harmonic distortion (THD) as the harmonic distortion of the loudspeaker.
[0009] In some embodiments, the main control module determines the resonant frequency of the loudspeaker, including: The impedance curve of the speaker is determined based on the ratio of the voltage at the output terminal of the audio driver module to the current flowing through the speaker, and the peak frequency of the impedance curve is determined as the resonant frequency of the speaker.
[0010] In some embodiments, the power module includes an adjustable power supply unit and an LDO voltage regulator unit; The adjustable power supply unit is used to output a continuously adjustable DC voltage; The LDO voltage regulator unit is connected to the adjustable power supply unit and is used to convert the input voltage into a stable main control power supply voltage and audio power supply voltage.
[0011] In some embodiments, the audio driver module includes an audio power amplifier unit and a filtering unit; The audio power amplifier unit is connected to the main control module and is used to amplify the excitation control signal; The filtering unit is connected to the audio power amplifier unit and is used to filter and shape the amplified signal. The filtering unit includes a bass filter circuit and a midrange filter circuit.
[0012] In some embodiments, the voltage and current sampling module includes a voltage sampling divider network and a current sampling resistor; The voltage sampling divider network is connected in parallel across the speaker to collect the voltage at the output of the audio driver module; The current sampling resistor is connected in series in the circuit of the speaker to collect the current flowing through the speaker.
[0013] In some embodiments, the vehicle speaker diagnostic circuit further includes: The result output module, which is connected to the main control module, is used to display the detection results of the harmonic distortion and the resonant frequency, and to issue an alarm indication when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range.
[0014] In some embodiments, the result output module includes an LCD display and indicator lights; The LCD display screen is used to display the harmonic distortion and the resonant frequency values; The indicator light is used to issue an alarm indication when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range.
[0015] Secondly, a diagnostic method for vehicle speakers is provided, including the following steps: Sending excitation control signals to the audio driver module to make the speaker work; The voltage at the output of the audio driver module and the current flowing through the speaker are collected by the voltage and current sampling module. The harmonic distortion and resonant frequency of the speaker are determined based on the voltage at the output of the audio driver module and the current flowing through the speaker.
[0016] The beneficial effects of the technical solution provided by this invention include: This invention provides a diagnostic circuit for vehicle speakers. Its power supply module, audio driver module, voltage and current sampling module, main control module, and speaker form a closed-loop detection link. The main control module sends an excitation control signal, the audio driver module amplifies and drives the speaker, the voltage and current sampling module collects the voltage and current feedback signals from the speaker, and the main control module receives the feedback signals and outputs the results of harmonic distortion and resonant frequency. This allows for the quantitative determination of speaker harmonic distortion and resonant frequency, replacing the traditional, simplistic solution of only detecting the continuity of indicator lights. It effectively identifies hidden faults such as speaker damage, voice coil misalignment, and amplifier clipping, achieving precise quantitative diagnosis of the acoustic performance of vehicle speakers. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the structure of a vehicle speaker diagnostic circuit provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the power module provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of the audio driver module provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the voltage and current sampling module provided in an embodiment of the present invention; Figure 5 This is another schematic diagram of a vehicle speaker diagnostic circuit provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of the structure of the result output module provided in an embodiment of the present invention; Figure 7 This is a flowchart illustrating a vehicle speaker diagnostic method provided in an embodiment of the present invention. Detailed Implementation
[0019] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0020] This invention provides a diagnostic circuit for vehicle speakers, which solves the technical problem that existing technologies can only identify the on / off state through indicator lights, making it difficult to quantify and detect acoustic performance indicators such as harmonic distortion and resonant frequency of the speaker, thus making it difficult to identify latent sound quality faults.
[0021] like Figure 1 As shown, this embodiment of the invention provides a vehicle speaker diagnostic circuit, including: a power supply module, an audio driver module, a voltage and current sampling module, and a main control module.
[0022] The power module is used to provide the power supply voltage. Specifically, the input terminal of the power module is connected to the vehicle low-voltage power supply (VBUS), and the output terminals are connected to the audio driver module and the main control module, respectively, to provide a stable operating voltage for each module. Preferably, the input voltage range of the power module is 3V to 24V, covering all operating voltage scenarios of the vehicle's low-voltage electrical appliances.
[0023] The audio driver module is connected to the power supply module and the speaker under test. Specifically, the audio driver module receives the excitation control signal sent by the main control module, generates a corresponding audio test signal based on the excitation control signal, amplifies the audio test signal, and outputs it to the speaker to drive the speaker to produce sound. The output terminal of the audio driver module is the speaker driver port, and the voltage at its output terminal is the driving voltage applied across the speaker.
[0024] The voltage and current sampling module is connected to the audio driver module and the speaker. Specifically, the voltage and current sampling module is used to collect the voltage signal at the output of the audio driver module and the current signal flowing through the speaker. The voltage signal reflects the real-time voltage waveform across the speaker, and the current signal reflects the real-time drive current flowing through the speaker coil. The voltage and current sampling module outputs the collected voltage and current signals to the main control module.
[0025] The main control module is connected to the power supply module, the audio driver module, and the voltage and current sampling module, and is configured as follows: The main control module sends an excitation control signal to the audio driver module to activate the speaker. Specifically, the main control module generates a corresponding excitation control signal based on the user-selected test mode (such as a fixed single-frequency test mode or a swept-frequency test mode). This excitation control signal can be a fixed-frequency sine wave signal or a continuously swept-frequency sine wave signal. The audio driver module amplifies the power of this excitation control signal to drive the speaker.
[0026] The main control module receives the voltage at the output of the audio driver module and the current flowing through the speaker, which are collected by the voltage and current sampling module. Specifically, the main control module can receive the voltage and current signals output by the voltage and current sampling module in real time through the built-in ADC sampling channel, and obtain the voltage waveform data and current waveform data of the speaker under the action of the excitation signal.
[0027] The harmonic distortion and resonant frequency of the speaker are determined based on the voltage at the output of the audio driver module and the current flowing through the speaker. Specifically, the main control module is a microcontroller (MCU) with a built-in ADC sampling channel and a DSP processing unit.
[0028] The vehicle speaker diagnostic circuit in this embodiment of the invention forms a closed-loop detection link between its power supply module, audio drive module, voltage and current sampling module, main control module, and speaker. The main control module sends an excitation control signal, the audio drive module amplifies and drives the speaker, the voltage and current sampling module collects the voltage and current feedback signals of the speaker, and the main control module receives the feedback signals and outputs the results of harmonic distortion and resonant frequency. It quantifies and determines the harmonic distortion and resonant frequency of the speaker, which can replace the traditional simple solution of only detecting the continuity of the indicator light. It can effectively identify hidden faults such as speaker damage, voice coil misalignment, and power amplifier clipping, and achieve accurate quantitative diagnosis of the acoustic performance of the vehicle speaker.
[0029] As an optional implementation, in one embodiment of the invention, the main control module determines the harmonic distortion of the loudspeaker, including: The harmonic distortion of the speaker is determined by performing spectral analysis on the waveform of the voltage at the output of the audio driver module.
[0030] Specifically, when a loudspeaker exhibits nonlinear distortion, its output waveform under a sinusoidal excitation signal is no longer a standard sine wave, but a distorted waveform containing the fundamental component and higher harmonic components such as the second and third orders. The main control module performs spectral analysis on the acquired voltage waveform, converting the time-domain voltage waveform into a frequency-domain spectrum, thereby separating the fundamental component and each harmonic component, and thus quantifying and evaluating the degree of nonlinear distortion of the loudspeaker. In a specific implementation, the main control module controls the audio driver module to output a standard sine wave signal with a fixed frequency (e.g., 1kHz) as the excitation signal, causing the loudspeaker to operate under the drive of this pure sine wave signal. The voltage and current sampling module acquires the voltage waveform across the loudspeaker. Due to the nonlinear characteristics of the loudspeaker, this voltage waveform contains the fundamental component and each harmonic component. The main control module performs spectral analysis on this voltage waveform (e.g., Fast Fourier Transform, FFT) to obtain the spectral distribution of the voltage signal, and then extracts the fundamental and harmonic amplitudes, thereby calculating the harmonic distortion. This harmonic distortion can objectively reflect the degree of sound quality distortion of the loudspeaker, thereby effectively identifying hidden faults such as loudspeaker damage, voice coil misalignment, and power amplifier clipping.
[0031] This invention achieves quantitative detection of loudspeaker harmonic distortion through sinusoidal excitation and voltage waveform spectrum analysis, solving the technical problem that existing technologies can only determine on / off states but cannot quantitatively evaluate loudspeaker sound quality distortion.
[0032] Furthermore, the main control module performs spectrum analysis based on the voltage waveform to determine the harmonic distortion of the loudspeaker, including: Perform a Fast Fourier Transform on the waveform of the voltage at the output of the audio driver module to extract the fundamental amplitude V1 and the amplitudes of each harmonic V2, V3...V1.n ; According to the formula THD=(√(V2²+V3²+…+V…), n 2)) / V1×100% calculates the total harmonic distortion (THD), and uses the total harmonic distortion (THD) as the harmonic distortion of the loudspeaker.
[0033] Specifically, the main control module performs a Fast Fourier Transform (FFT) on the waveform of the voltage output from the audio driver module, converting the time-domain voltage waveform into a frequency-domain spectrum. In the frequency-domain spectrum, the fundamental component and each harmonic component can be clearly separated. The main control module extracts the fundamental amplitude V1 (i.e., the amplitude of the 1kHz main signal) and the amplitudes of each harmonic V2, V3…V… n Then, calculate the total harmonic distortion (THD) using the following formula: THD=(√(V2²+V3²+…+V n ²)) / V1×100%; Where V1 is the fundamental amplitude, V2, V3...V n Let n be the amplitude of each harmonic, and n be the maximum harmonic order involved in the calculation.
[0034] Finally, the main control module uses the calculated total harmonic distortion (THD) as the harmonic distortion of the loudspeaker.
[0035] For example, in this embodiment of the invention, the extracted harmonics are the 2nd to 10th harmonics, i.e., n=10. For the sound quality evaluation of vehicle speakers, the 2nd to 10th harmonics are sufficient to cover the main nonlinear distortion components, ensuring detection accuracy while avoiding the computational burden caused by excessively high harmonics. In this embodiment of the invention, the fixed-frequency sine wave test signal is a 1kHz standard sine wave signal. 1kHz is a commonly used standard test frequency in the audio field, effectively reflecting the nonlinear distortion characteristics of the speaker in the mid-frequency range.
[0036] In practical applications, the device has a standard threshold for the built-in car speaker (e.g., THD < 1% is acceptable). The main control module compares the calculated THD value with the standard threshold. If the THD value exceeds the threshold, it is determined that the speaker has a sound quality defect.
[0037] This invention achieves accurate quantitative detection of loudspeaker harmonic distortion through FFT spectrum analysis and THD formula calculation, providing quantifiable technical indicators for loudspeaker sound quality evaluation.
[0038] As an optional implementation, in one embodiment of the invention, the main control module determines the resonant frequency of the loudspeaker, including: The impedance curve of the speaker is determined based on the ratio of the voltage at the output terminal of the audio driver module to the current flowing through the speaker, and the peak frequency of the impedance curve is determined as the resonant frequency of the speaker.
[0039] Specifically, the resonant frequency of a loudspeaker is the characteristic frequency at which the loudspeaker diaphragm mechanically resonates, at which point the voice coil's mechanical resonance causes its impedance to reach a maximum value. Therefore, by measuring the loudspeaker's impedance values at different frequencies, plotting the impedance curve, and locating the frequency corresponding to the impedance peak, the loudspeaker's resonant frequency can be determined.
[0040] In this embodiment of the invention, the main control module controls the audio driver module to output a swept-frequency sinusoidal test signal (such as a continuous linear swept-frequency signal from 20Hz to 20kHz) to drive the speaker point by point. At each frequency point, the voltage and current sampling module synchronously collects the voltage V at the output terminal of the audio driver module and the current I flowing through the speaker. The main control module calculates the load impedance Z=V / I at each frequency point in real time. After the frequency sweep is completed, the main control module traverses the impedance data of all swept-frequency points and automatically locates the frequency corresponding to the maximum impedance value, which is the resonant frequency of the speaker.
[0041] In practical applications, the main control module compares the measured resonant frequency with the nominal resonant frequency of the vehicle's speaker. If the deviation exceeds a preset threshold, it determines that the speaker's diaphragm, spring, magnetic circuit, and other mechanical components are damaged. The LCD synchronously outputs the measured resonant frequency value. This embodiment of the invention achieves automatic quantitative detection of the speaker's resonant frequency, effectively identifying hidden damage faults in the speaker's diaphragm, spring, magnetic circuit, and other mechanical components.
[0042] As an optional implementation, in one embodiment of the invention, such as Figure 2 As shown, the power module includes an adjustable power supply unit and an LDO (Low Dropout Regulator) unit. The adjustable power supply unit outputs a continuously adjustable DC voltage. The LDO unit is connected to the adjustable power supply unit and converts the input voltage into a stable main control power supply voltage and audio power supply voltage. The LDO is a low dropout linear regulator.
[0043] The adjustable power supply unit outputs a continuously adjustable DC voltage. Its input is connected to the vehicle's low-voltage power supply (VBUS), and its output is a continuously adjustable DC voltage. Preferably, the adjustable power supply unit allows for continuous voltage adjustment via a knob, with an adjustment range of 3V to 24V, covering 99% of the usage scenarios for low-voltage electrical components in the vehicle. The LDO voltage regulator unit is connected to the adjustable power supply unit and converts the input voltage into a stable main control power supply voltage (VCC_MCU) and an audio power supply voltage (VCC_AUDIO). Specifically, the LDO voltage regulator unit includes two LDO regulators: one LDO regulator converts the output voltage of the adjustable power supply unit into a stable main control power supply voltage (VCC_MCU), providing a stable operating voltage for the main control module; the other LDO regulator converts the output voltage of the adjustable power supply unit into a stable audio power supply voltage (VCC_AUDIO), providing a clean audio power supply voltage for the audio driver module. The voltage regulation process of the LDO voltage regulator unit can effectively filter out power supply ripple and noise, ensure the purity of the test excitation waveform, and avoid power supply noise interference that distorts the test results.
[0044] This invention achieves a continuously adjustable power supply voltage output from 3V to 24V through the cooperation of an adjustable power supply unit and an LDO voltage regulator unit. The LDO voltage regulator ensures the stability and purity of the power supply, providing a reliable power supply foundation for speaker quantification testing.
[0045] As an optional implementation, in one embodiment of the invention, such as Figure 3 As shown, the audio driver module includes an audio power amplifier unit and a filtering unit.
[0046] The audio amplifier unit is connected to the main control module and is used to amplify the excitation control signal. The audio amplifier unit receives the excitation control signal (such as a fixed-frequency sine wave signal or a swept-frequency sine wave signal) output by the main control module, amplifies the excitation control signal, and outputs it to drive the speaker to work normally. Optionally, the audio amplifier unit can use a Class AB or Class D audio amplifier chip, which features high fidelity and low distortion.
[0047] The filtering unit is connected to the audio amplifier unit and is used to filter and shape the amplified signal. The filtering unit includes a bass filter circuit and a midrange filter circuit. The bass filter circuit filters the low-frequency signal and outputs it to the woofer (SPK_SW) driver channel; the midrange filter circuit filters the mid-frequency signal and outputs it to the midrange speaker (SPK_MID) driver channel. Optionally, the audio driver module includes a left channel speaker driver channel, a right channel speaker driver channel, a woofer driver channel, and a midrange speaker driver channel, each with independent output. Each driver channel outputs independently, allowing individual detection of any speaker without interference.
[0048] As an optional implementation, in one embodiment of the invention, such as Figure 4 As shown, the voltage and current sampling module includes a voltage sampling divider network and a current sampling resistor.
[0049] The voltage sampling divider network is connected in parallel across the speaker to collect the voltage at the output of the audio driver module. Specifically, the voltage sampling divider network is composed of precision resistors, which divide and sample the voltage across the speaker, converting the high voltage into a voltage range suitable for the input of the main control module's ADC sampling channel, and outputting the sampled voltage to the ADC sampling channel of the main control module. Through the voltage sampling divider network, the main control module can acquire the voltage waveform data across the speaker load in real time.
[0050] The current sampling resistor is connected in series in the speaker's circuit to collect the current flowing through the speaker. The current sampling resistor is a precision low-resistance resistor connected in series in the speaker's drive circuit. When the drive current flows through the current sampling resistor, a voltage drop proportional to the current is generated across the resistor. The main control module collects this voltage drop through the ADC sampling channel and calculates the current flowing through the speaker according to Ohm's law.
[0051] The voltage sampling divider network and current sampling resistor constitute a dual-channel synchronous sampling structure for voltage and current. The main control module, through dual-channel synchronous sampling with its built-in ADC, simultaneously acquires the voltage signal output from the voltage sampling divider network and the current signal output from the current sampling resistor, achieving high-speed synchronous acquisition of speaker voltage and current. This provides accurate raw data for subsequent impedance calculations and harmonic analysis. This embodiment of the invention, through the cooperation of the voltage sampling divider network and the current sampling resistor, achieves dual-channel synchronous sampling of speaker voltage and current, providing a data foundation for the accurate calculation of harmonic distortion and resonant frequency.
[0052] As an optional implementation, in one embodiment of the invention, such as Figure 5As shown, the vehicle speaker diagnostic circuit further includes a result output module, which is connected to the main control module and is used to display the detection results of the harmonic distortion and the resonant frequency, and to issue an alarm indication when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range.
[0053] Specifically, the result output module receives harmonic distortion data and resonant frequency data output by the main control module and displays the test results to the user in a visual manner. Simultaneously, when the harmonic distortion or resonant frequency exceeds a preset threshold, the result output module issues an alarm, alerting the user that the speaker is faulty. This embodiment of the invention achieves intuitive display of test results and out-of-range alarms through the result output module, facilitating operators to quickly obtain the speaker's health status and improving testing efficiency and user experience.
[0054] Furthermore, such as Figure 6 As shown, the result output module includes an LCD display and indicator lights. The LCD display shows the values of the harmonic distortion and the resonant frequency. Specifically, the LCD display is connected to the main control module, which sends the calculated harmonic distortion and resonant frequency values to the LCD display for display. Operators can intuitively read the specific values of the speaker's harmonic distortion and resonant frequency through the LCD display to determine whether the speaker meets performance requirements.
[0055] The indicator light is used to issue an alarm when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range. Specifically, the indicator light is connected to the main control module. When the main control module determines that the harmonic distortion exceeds the preset threshold (e.g., THD ≥ 1%) or the resonant frequency exceeds the preset range, the main control module controls the indicator light to illuminate or flash, clearly alerting the operator that the speaker is faulty. Optionally, the indicator light is an LED indicator, displaying green in normal operation and red and flashing in faulty operation.
[0056] like Figure 7 As shown, this embodiment of the invention also provides a method for diagnosing vehicle speakers, including the following steps: Step S100: Send an excitation control signal to the audio driver module to make the speaker work.
[0057] Specifically, the main control module generates a corresponding excitation control signal based on the user-selected test mode (such as fixed single-frequency test mode or frequency sweep test mode) and sends this excitation control signal to the audio driver module. The audio driver module amplifies the excitation control signal and outputs it to the speaker to drive the speaker to produce sound. Optionally, in the fixed single-frequency test mode, the main control module generates a 1kHz standard sine wave signal as the excitation control signal; in the frequency sweep test mode, the main control module generates a continuous linear frequency sweep sine wave signal from 20Hz to 20kHz as the excitation control signal.
[0058] Step S200: Receive the voltage at the output of the audio driver module and the current flowing through the speaker from the voltage and current sampling module.
[0059] Specifically, during the operation of the speaker, the voltage and current sampling module synchronously collects the voltage signal at the output of the audio driver module and the current signal flowing through the speaker, and the main control module receives the voltage and current signals in real time through the built-in ADC sampling channel.
[0060] Step S300: Determine the harmonic distortion and resonant frequency of the speaker based on the voltage at the output of the audio driver module and the current flowing through the speaker.
[0061] Specifically, when determining harmonic distortion: the main control module performs a fast Fourier transform on the voltage waveform at the output of the audio driver module, converting the time-domain voltage waveform into a frequency-domain spectrum, and extracting the fundamental amplitude V1 and the amplitudes of each harmonic V2, V3...V... n Then, according to the formula THD=(√(V2²+V3²+…+V…), n 2)) / V1×100% calculates the total harmonic distortion (THD), and this THD value is used as the harmonic distortion of the loudspeaker.
[0062] When determining the resonant frequency: the main control module calculates the impedance value Z=V / I at each frequency point based on the ratio of the voltage V at the output terminal of the audio driver module to the current I flowing through the speaker, obtains the impedance curve of the speaker, and then determines the peak frequency of the impedance curve as the resonant frequency of the speaker.
[0063] In the description of this invention, it should be noted that the terms "upper," "lower," etc., indicating the orientation or positional relationship are based on the orientation or positional relationship shown in the accompanying drawings, and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Unless otherwise expressly specified and limited, the terms "installed," "connected," and "linked" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication between two elements. For those skilled in the art, the specific meaning of the above terms in this invention can be understood according to the specific circumstances.
[0064] It should be noted that in this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0065] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features of the invention herein.
Claims
1. A diagnostic circuit for a vehicle speaker, characterized in that, include: The power module is used to provide the power supply voltage; An audio driver module is connected to the power module and the speaker under test; A voltage and current sampling module is connected to the audio driver module and the speaker; The main control module is connected to the power supply module, the audio driver module, and the voltage and current sampling module, and is configured as follows: Send an excitation control signal to the audio driver module to make the speaker work; The voltage at the output of the audio driver module and the current flowing through the speaker are collected by the voltage and current sampling module. The harmonic distortion and resonant frequency of the speaker are determined based on the voltage at the output of the audio driver module and the current flowing through the speaker.
2. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, The main control module determines the harmonic distortion of the loudspeaker, including: The harmonic distortion of the speaker is determined by performing spectral analysis on the waveform of the voltage at the output of the audio driver module.
3. The vehicle speaker diagnostic circuit according to claim 2, characterized in that, The main control module performs spectrum analysis based on the voltage waveform to determine the harmonic distortion of the loudspeaker, including: Perform a Fast Fourier Transform on the waveform of the voltage at the output of the audio driver module to extract the fundamental amplitude V1 and the amplitudes of each harmonic V2, V3...V1. n ; According to the formula THD=(√(V2²+V3²+…+V…), n 2)) / V1×100% calculates the total harmonic distortion (THD), and uses the total harmonic distortion (THD) as the harmonic distortion of the loudspeaker.
4. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, The main control module determines the resonant frequency of the speaker, including: The impedance curve of the speaker is determined based on the ratio of the voltage at the output terminal of the audio driver module to the current flowing through the speaker, and the peak frequency of the impedance curve is determined as the resonant frequency of the speaker.
5. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, The power module includes an adjustable power supply unit and an LDO voltage regulator unit; The adjustable power supply unit is used to output a continuously adjustable DC voltage; The LDO voltage regulator unit is connected to the adjustable power supply unit and is used to convert the input voltage into a stable main control power supply voltage and audio power supply voltage.
6. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, The audio driver module includes an audio power amplifier unit and a filtering unit; The audio power amplifier unit is connected to the main control module and is used to amplify the excitation control signal; The filtering unit is connected to the audio power amplifier unit and is used to filter and shape the amplified signal. The filtering unit includes a bass filter circuit and a midrange filter circuit.
7. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, The voltage and current sampling module includes a voltage sampling divider network and a current sampling resistor; The voltage sampling divider network is connected in parallel across the speaker to collect the voltage at the output of the audio driver module; The current sampling resistor is connected in series in the circuit of the speaker to collect the current flowing through the speaker.
8. The vehicle speaker diagnostic circuit according to claim 1, characterized in that, Also includes: The result output module, which is connected to the main control module, is used to display the detection results of the harmonic distortion and the resonant frequency, and to issue an alarm indication when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range.
9. The vehicle speaker diagnostic circuit according to claim 8, characterized in that, The result output module includes an LCD display and indicator lights; The LCD display screen is used to display the harmonic distortion and the resonant frequency values; The indicator light is used to issue an alarm indication when the harmonic distortion exceeds a preset threshold or the resonant frequency exceeds a preset range.
10. A method for diagnosing vehicle loudspeakers, applied to the vehicle loudspeaker diagnostic circuit of claim 1, characterized in that, Includes the following steps: Sending excitation control signals to the audio driver module to make the speaker work; The voltage at the output of the audio driver module and the current flowing through the speaker are collected by the voltage and current sampling module. The harmonic distortion and resonant frequency of the speaker are determined based on the voltage at the output of the audio driver module and the current flowing through the speaker.
Citation Information
Patent Citations
Electric appliance fault detection tool
CN216956223U
