Disclosure of Invention
The invention aims to provide a vehicle-mounted sound effect processing method. According to the invention, under the condition that the input audio signal is too large or too small, the voltage amplitude of the audio signal is optimized through linkage switching of the built-in module, so that the loudspeaker outputs the volume in a normal voltage amplitude interval, and the listening experience of a user is improved.
The technical scheme of the invention is as follows: a vehicle-mounted sound effect processing method is applied to a vehicle-mounted sound effect system, and the system comprises a main circuit consisting of an audio source module, a power amplifier module and a loudspeaker module; the method is characterized in that: the method further comprises the following steps:
a controller;
one end of the main circuit voltage monitoring module is connected with the main circuit, and the other end of the module is connected with the controller; the module is used for monitoring the voltage amplitude information on the main circuit in real time and sending the voltage amplitude information to the controller;
the first switch device is arranged on the main circuit and is connected with the controller; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is in a normal voltage amplitude interval, the controller sends a first signal to enable the first switch device to be connected, and the loudspeaker outputs original volume;
the voltage reduction module is internally provided with a second switching device, the second switching device is connected with the controller, and the voltage reduction module is connected with the first switching device in parallel; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is higher than a normal voltage amplitude interval, the controller sends a second signal, the second signal controls the second switch device to be switched on and the first switch device to be switched off, the voltage reduction module is automatically connected into the main circuit, the voltage amplitude of the main circuit is reduced through partial voltage, and the loudspeaker outputs reduced volume;
the pre-amplification module is internally provided with a third switching device, the third switching device is connected with the controller, and the pre-amplification module is connected with the first switching device in parallel; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is lower than a normal voltage amplitude interval, the controller sends a third signal, the third signal controls the first switching device and the second switching device to be disconnected, meanwhile, the third signal controls the third switching device to be connected, so that the pre-amplification module is connected to the main circuit, the input voltage amplitude of the main circuit is pre-amplified, and the loudspeaker outputs enhanced volume.
In the above vehicle-mounted sound effect processing method, the controller has a first signal source, and the first signal source is respectively connected to the first switch device, the second switch device and the third switch device; the first signal is at a first level
The second signal is at the second level
The third signal is at a third level
;
When the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is in a normal voltage amplitude interval, a first signal source of the controller outputs a first level
(ii) a A first level
Controlling the first and second switching devices to conduct at the same time as the first level
The third switching device is controlled to be switched off, the first switching device and the second switching device enable the voltage reduction module to be in short circuit, the third switching device enables the pre-amplification module to be in open circuit, and the loudspeaker outputs original volume;
when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is higher than the normal voltage amplitude interval, the first signal source of the controller outputs a second level
(ii) a Second level
Controlling the second switching device to conduct while the second level is on
The first switching device and the third switching device are controlled to be switched off simultaneously, the first switching device and the second switching device enable the voltage reduction module to be automatically connected into the main circuit, the third switching device enables the pre-amplification module to be switched off, and the loudspeaker outputs weakened volume;
when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is lower than the normal voltage amplitude interval, the first signal source of the controller outputs a third level
(ii) a Third level
Controlling the first switching device and the second switching device to be turned off while the third level is maintained
The third switching device is controlled to be conducted, the second switching device enables the voltage reduction module to be disconnected, the first switching device and the third switching device enable the pre-amplification module to be connected into the main circuit, and the loudspeaker outputs the enhanced volume.
In the foregoing method for processing vehicle audio, the first switch device includes a first NMOS switch N1 connected to a first signal source of the controller, and the first signal source is connected to a gate of the first NMOS switch N1; the drain of the first NMOS switch N1 is connected to the relay switch KM1, the switching end of the relay switch KM1 is arranged on the main circuit, and the other end of the relay switch KM1 is connected to the power VVC 4; the source electrode of the first NMOS switch N1 is connected with a resistor R3, and the other end of the resistor R3 is grounded;
the second switch device comprises a second NMOS switch N2 connected with a first signal source of the controller, and the first signal source is connected with the grid electrode of a second NMOS switch N2; the drain of the second NMOS switch N2 is connected to the relay switch KM2, the switch end of the relay switch KM2 is arranged on the circuit of the voltage step-down module, and the other end of the relay switch KM2 is connected to the power VVC 5; the source electrode of the second NMOS switch N2 is connected with the resistor R4, and the other end of the resistor R4 is grounded;
the third switching device comprises a PMOS switch P connected with a first signal source of the controller, and the first signal source is connected with the grid electrode of the PMOS switch P; the source electrode of the PMOS switch P is connected with a relay switch KM3, the switch end of a relay switch KM3 is arranged on a circuit of the pre-amplification module, and the other end of the relay switch KM3 is connected with a power supply VVC 6; the drain of the PMOS switch P is connected with the resistor R11, and the other end of the resistor R11 is grounded.
In the above-mentioned car audio processing method, the conducting level of the first NMOS switch N1 is
The conduction level of the second NMOS switch N2 is
The conduction level of the PMOS switch P is
And is and
(ii) a The first level
Satisfy the requirement of
Second level of
Satisfy the requirement of
Third level
Satisfy the requirement of
;
A first level
Controlling the first NMOS switch N1 and the second NMOS switch N2 to be conducted, and controlling the relay switch KM1 and the relay switch KM2 to be conducted in an electrified way; a first level
The PMOS switch P is controlled to be switched off, the relay switch KM3 is controlled to be switched off, the voltage reduction module is short-circuited by the relay switch KM1 and the relay switch KM2, the pre-amplification module is switched off by the relay switch KM3, and the loudspeaker outputs the original volume;
second level
The second NMOS switch N2 is controlled to be conducted, and the relay switch KM2 is electrified and conducted; second level
The first NMOS switch N1 and the PMOS switch P are controlled to be disconnected, the relay switch KM1 and the relay switch KM3 are controlled to be disconnected, the relay switch KM1 and the relay switch KM2 enable the voltage reduction module to be automatically connected into the main circuit, the relay switch KM3 enables the pre-amplification module to be disconnected, and the loudspeaker outputs weakened volume;
third level
The PMOS switch P is controlled to be conducted, and the relay switch KM3 is electrified and conducted; third level
The first NMOS switch N1 and the second NMOS switch N2 are controlled to be disconnected, the relay switch KM1 and the relay switch KM2 are controlled to be disconnected, the relay switch KM2 enables the voltage reduction module to be disconnected, the relay switch KM1 and the relay switch KM3 enable the pre-amplification module to be connected into the main circuit, and the loudspeaker outputs the enhanced volume.
In the foregoing method for processing vehicle sound effects, the voltage-reducing module includes a resistor R6, one end of the resistor R6 is disposed between the audio source module and the first switch device, the other end of the resistor R6 is connected to the anode of the diode D2, and the cathode of the diode D2 is connected between the first switch device and the power amplifier module.
In the vehicle-mounted sound effect processing method, the preamplifier module includes a resistor R5 connected to the audio source module, the resistor R5 is connected to a forward input end of the preamplifier, an output end of the preamplifier is connected to a third switching device, the third switching device is connected to an anode of a diode D1, and a cathode of the diode D1 is connected between the first switching device and the power amplifier module; the reverse input end of the pre-amplification module is connected with a resistor R2, and the other end of the resistor R2 is grounded.
In the above-mentioned method for processing sound effects for a vehicle,
the main circuit is also provided with a fourth switching device, the fourth switching device comprises a third NMOS switch N3 connected with a second signal source of the controller, the second signal source is connected with the grid electrode of the third NMOS switch N3, the drain electrode of the third NMOS switch N3 is connected with a relay switch KM4, the switching end of the relay switch KM4 is arranged on the main circuit, and the other end of the relay switch KM4 is connected with a power supply VVC 7; the source electrode of the third NMOS switch N3 is connected with the resistor R12, and the other end of the resistor R12 is grounded;
the conducting level of the third NMOS switch N3 is
When the main circuit voltage monitored by the main circuit is in an overvoltage interval, the second signal source of the controller sends out a fourth level
And is and
(ii) a The fourth level controls the third NMOS switch N3 to be turned off, and the relay switch KM4 is turned off, so that the main circuit is turned off and the speaker stops outputting.
In the vehicle-mounted sound effect processing method, the main circuit is further provided with a power switch K1 and an active switch K2, and the power switch K1 is linked with a vehicle power supply; a K1 monitoring module is connected between the power switch K1 and the power amplifier module, a K2 monitoring module is connected between the active switch K2 and the preamplifier module, and the K1 monitoring module and the K2 monitoring module are both connected with the controller;
when the third NMOS switch N3 is turned off, and the K1 monitoring module monitors that the power switch K1 is in a connected state, the K2 monitoring module monitors that the active switch K2 is turned off; after the active switch K2 is closed, the second signal source of the controller sends out a fifth level
And is and
the third NMOS switch N3 is turned on, the main circuit is connected, and the speaker recovers output;
when the third NMOS switch N3 is turned off and the K1 monitoring module detects that the power switch K1 is turned off; the second signal source of the controller sends the fifth level only when the active switch K2 is turned off and the power switch K1 and the active switch K2 are turned on
The third NMOS switch N3 is turned on, the main circuit is connected, and the speaker resumes output.
In the vehicle sound effect processing method, the main circuit voltage monitoring module includes a first monitoring point P0 disposed on the main circuit, the first monitoring point P0 is connected to a resistor R8 and a controller through a circuit, and the other end of the resistor R8 is connected to a power VVC 3.
In the foregoing method for processing vehicle sound effects, the K1 monitoring module includes a second monitoring point P1 disposed between the power switch K1 and the power amplifier module, the second monitoring point P1 is connected to a resistor R9, and the other end of the resistor R9 is connected to a controller power VVC 2; the K2 monitoring module comprises a third monitoring point P2 arranged between the active switch K2 and the preamplifier module, the third monitoring point P2 is connected with a resistor R10 and a controller, and the other end of the resistor R10 is connected with a power VVC 1.
Compared with the prior art, the invention has the following advantages:
1. the invention monitors the voltage amplitude information on the main circuit in real time through a main circuit voltage monitoring module and sends the voltage amplitude information to the controller; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is in a normal voltage amplitude interval, the controller sends a first signal to enable the first switch device to be connected, and the loudspeaker outputs original volume. When the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is higher than a normal voltage amplitude interval, the controller sends a second signal, the second signal controls the second switch device to be switched on and the first switch device to be switched off, the voltage reduction module is automatically connected into the main circuit, the voltage amplitude of the main circuit is reduced through partial voltage, and the loudspeaker outputs reduced volume; when the main circuit voltage monitored by the main circuit voltage monitoring module is lower than a normal voltage interval, the controller sends a third signal, the third signal controls the first switching device and the second switching device to be disconnected, meanwhile, the third signal controls the third switching device to be connected, so that the pre-amplification module is connected to the main circuit, the input voltage amplitude of the main circuit is pre-amplified, and the loudspeaker outputs enhanced volume. Therefore, the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is used for judging whether the input audio signal is normal, the audio signal is too large or the audio signal is too small, and the audio signal is optimized through linkage switching of three different modes in the same circuit according to different conditions, so that the loudspeaker outputs the volume in a normal interval, and the listening experience of a user is improved.
2. As a further preference, the controller has a first signal source, which is connected to the first switching device, the second switching device and the third switching device, respectively; the first signal is at a first level
The second signal is at the second level
The third signal is at a third level
(ii) a The pass level serves as a trigger signal for turning on and off the first, second, and third switching devices. Still further, the first switch device, the second switch device and the third switch device are relay switches connected by an NMOS switch and a PMOS switch, respectively, and the NMOS switch and the PMOS switch are controlled to be turned on and off according to the level of the first signal, so as to control the relay switches to be turned on and off, that is, the first switch device, the second switch device and the third switch device to be turned on and off. The first switch device, the second switch device and the third switch device are driven simultaneously by sending out the same level through the same signal source, three different main circuit voltage intervals just correspond to the three level intervals of the first signal source, and when the level value of the first signal source changes, the voltage amplitude of the audio signal is optimized through linkage switching of the built-in module, so that the loudspeaker outputs the volume in the normal voltage amplitude interval, and the listening experience of a user is improved. The scheme not only greatly improves the switching speed and the linkage among the modules, but also has higher integration level, small circuit scale and smaller volume, and is suitable for large-scale popularization and application.
3. Preferably, the main circuit is further provided with a fourth switching device, and the fourth switching device comprises a third signal source connected with the controllerThe NMOS switch N3 is connected with a second signal source and the grid electrode of a third NMOS switch N3, the drain electrode of the third NMOS switch N3 is connected with a relay switch KM4, the switching end of the relay switch KM4 is arranged on the main circuit, and the other end of the relay switch KM4 is connected with a
power supply VVC 7; the source electrode of the third NMOS switch N3 is connected with the resistor R12, and the other end of the resistor R12 is grounded; the conducting level of the third NMOS switch N3 is
When the main circuit voltage monitored by the main circuit is in an overvoltage interval, the second signal source of the controller sends out a fourth level
And is and
(ii) a The fourth level controls the third NMOS switch N3 to be turned off, and the relay switch KM4 is turned off, so that the main circuit is turned off and the speaker stops outputting. As the protection device of the invention, when the voltage amplitude of the main circuit is in an overvoltage interval, the third NMOS switch N3 is switched off, namely the main circuit is switched off, so that the experience discomfort and hearing loss of a user caused by overlarge volume are avoided. In addition, the invention also specifically improves the starting method of the third NMOS switch N3, the main circuit is also provided with a power switch K1 and an active switch K2, and the power switch K1 is linked with the automobile power supply; a K1 monitoring module is connected between the power switch K1 and the loudspeaker, a K2 monitoring module is connected between the active switch and the loudspeaker, and the K1 monitoring module and the K2 monitoring module are both connected with the controller; when the third NMOS switch N3 is turned off, and the K1 monitoring module monitors that the power switch K1 is in a connected state, the K2 monitoring module monitors that the active switch K2 is turned off; after the active switch K2 is closed, the second signal source of the controller sends out a fifth level
And is and
to turn on the second NMOS switch, the main circuit is connectedOn, the loudspeaker recovers the output; when the third NMOS switch N3 is turned off and the K1 monitoring module detects that the power switch K1 is turned off; the active switch K2 is turned off, and then the power switch K1 and the active switch K2 are turned on, so that the second signal source of the controller sends out the fifth level
The third NMOS switch N3 is turned on, the main circuit is connected, and the speaker resumes output. That is, when the main circuit overvoltage causes the third NMOS switch N3 to turn off, when the vehicle power is turned on, that is, the power switch K1 is turned on, the third NMOS switch N3 is turned on only by manually turning on the active switch K2, if the third NMOS switch N3 is turned off, the vehicle power is just turned off, that is, the power switch K1 is not turned on, the vehicle power is restarted, that is, the power switch K1 is turned on, the third NMOS switch N3 is not turned on, the active switch K2 must be manually turned off, at this time, the active switch K2 and the power switch K1 are turned on, the third NMOS switch N3 is turned on, which is to avoid that when the vehicle power is turned off, the main circuit voltage is still in an overvoltage state after restarting, the active switch K2 needs to be manually intervened to be turned off, and when the active switch K2 is turned on again, the third NMOS switch N3 is turned on, which solves the problem that when the third NMOS switch N3 is turned off, and the active switch K2 is turned on at the moment, if the automobile power supply is turned on, the problem of sound with overlarge volume is automatically played, and experience discomfort and hearing damage caused by the overlarge volume of a user are avoided.
Detailed Description
The invention is further illustrated by the following figures and examples, which are not to be construed as limiting the invention.
Example 1: a vehicle-mounted sound effect processing method is applied to a vehicle-mounted sound effect system as shown in figure 1, and the system comprises an audio source module 1, a resistor R1 connected with the audio source module 1, a resistor R1 connected with the positive input end of a power amplifier module 2, a resistor R2 connected with the reverse input end of the power amplifier module 2, and the other end of the resistor R2 connected with the ground; the output end of the power amplifier module 2 is connected with a resistor R7, and the other end of the resistor R7 is connected with a loudspeaker module 3; the audio source module, the power amplifier module and the loudspeaker module form a main circuit. The audio signal docked by the audio source module 1 may be a broadcast audio signal, a vehicle-mounted multimedia device audio signal, a bluetooth voice communication signal, a vehicle-mounted vocal accompaniment device audio signal, or the like. The power amplifier module 2 may adopt a conventional class a audio power amplifier or a class b audio power amplifier, the specific circuit structure of the class a audio power amplifier is shown in fig. 2, and the specific circuit structure of the class b audio power amplifier is shown in fig. 3.
The vehicle-mounted sound effect processing method further comprises hardware such as a controller 4, a main circuit voltage monitoring module 5, a first switch device 6, a second switch device 10, a pre-amplification module 7 and a third switch device 8, and the controller can be realized by a conventional control chip, for example, a DSP chip, such as TMS320VC5503/06/07/09a of texas instruments Ti.
One end of a main circuit voltage monitoring module 5 is connected with the main circuit, and the other end of the module is connected with the controller 4; the module is used for monitoring the voltage information on the main circuit in real time and sending the voltage information to the controller. Specifically, the main circuit voltage monitoring module preferably includes a first monitoring point P0 disposed on the main circuit, the first monitoring point P0 is electrically connected to a resistor R8 and a controller, and the other end of the resistor R8 is connected to the power VVC 3. After the voltage difference between the power VVC3 and the main circuit is divided by the resistor R8, the voltage information received by the controller can reflect the voltage information on the main circuit.
The first switching device 6 is arranged on the main circuit, and the first switching device 6 is connected with the controller 4; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is in a normal voltage interval. For example, dividing the volume interval from 0 to the maximum volume value of "Max vol" into four parts on average, the voltage amplitude corresponding to the middle 2/4 segment may be defined as the normal voltage interval, the front 1/4 segment may be defined as the lower than normal voltage interval, and the rear 1/4 segment may be defined as the higher than normal voltage interval; it should be noted that, the volume interval is divided into equal parts, and which section is the normal voltage interval, which is obtained according to different application scenarios, different numbers of application persons, and different application hardware, for example, in an application scenario of a vehicle, a part of speaker volume is covered by noisy ambient sound, so that the normal voltage interval in the vehicle scenario is higher than the upper limit voltage amplitude and the lower limit voltage amplitude in an installed scenario. When the application scene is changed to a scene such as an earphone, the upper limit amplitude voltage and the lower limit amplitude voltage of the normal voltage interval become lower, and the reasonable normal volume interval and the normal voltage interval of different application scenes can be obtained through large-scale sampling or analysis. When the voltage of the main circuit is in a normal voltage interval, the controller sends a first signal to enable the first switch device and the second switch device to be communicated, the first switch device and the second switch device enable the voltage reduction module to be in a short circuit, the third switch device enables the pre-amplification module to be in a broken circuit, and the loudspeaker outputs original volume; the first switching device may be a switch driven by a controller signal, such as a relay, an optocoupler, or a MOS transistor.
A voltage reduction module 9, a second switch device 10 is arranged in the voltage reduction module, the second switch device 10 is connected with the controller 4, and the voltage reduction module 9 is connected with the first switch device 6 in parallel; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module is higher than the normal voltage amplitude interval, the controller 4 sends a second signal which controls the second switch device 10 to be switched on and the first switch device 6 to be switched off, the voltage reduction module is automatically connected to the main circuit, the voltage amplitude of the main circuit is reduced through partial voltage, and the loudspeaker outputs reduced volume; preferably, the voltage-reducing module includes a resistor R6, the resistance of the resistor R6 can be set according to the requirement of voltage reduction, one end of the resistor R6 is disposed between the audio source module 1 and the first switching device 6, the other end of the resistor R6 is connected to the anode of a diode D2, and the cathode of the diode D2 is connected between the first switching device and the power amplifier module.
The pre-amplification module 7 is internally provided with a third switching device 8, the third switching device 8 is connected with the controller 4, and the pre-amplification module 7 is connected with the first switching device 6 in parallel; when the main circuit voltage amplitude monitored by the main circuit voltage monitoring module 5 is lower than the normal voltage amplitude interval, the controller 4 sends a third signal, the third signal controls the first switching device 6 and the second switching device 10 to be switched off, and simultaneously the third signal controls the third switching device 8 to be switched on, so that the pre-amplification module 7 is connected to the main circuit, the input voltage amplitude of the main circuit is pre-amplified, and the loudspeaker outputs enhanced volume. As a further preference, the pre-amplifier module comprises a resistor R5 connected to the audio source module, the resistor R5 is connected to the positive input terminal of the pre-amplifier, the output terminal of the pre-amplifier is connected to a third switching device, the third switching device is connected to the positive electrode of a diode D1, and the negative electrode of the diode D1 is connected between the first switching device and the power amplifier module; the reverse input end of the pre-amplification module is connected with a resistor R2, and the other end of the resistor R2 is grounded.
Example 2: as a specific preference of
embodiment 1, as shown in fig. 4, the controller has a first signal source S1, the first signal source S1 is connected to the first switching device, the second switching device and the third switching device respectively; the first signal is at a first level
The second signal is at the second level
The third signal is at a third level
;
The first switching device comprises a first NMOS switch N1 connected with a first signal source S1 of the controller, and a first signal source S1 is connected with the grid electrode of the first NMOS switch N1; the drain of the first NMOS switch N1 is connected to the relay switch KM1, the drain of the first NMOS switch N1 is connected to the coil circuit of the relay switch KM1, the switching end of the relay switch KM1 is arranged on the main circuit, and the other end of the relay switch KM1 is connected to the
power VVC 4; the source electrode of the first NMOS switch N1 is connected with a resistor R3, and the other end of the resistor R3 is grounded; the conducting level of the first NMOS switch N1 is
Here, the conduction level of the first NMOS switch N1
Means when the gate voltage is
The voltage difference between the gate and the source is the conduction voltage difference, and the voltage difference can be adjusted by the resistor R3. That is, when the voltage of the gate of the first NMOS switch N1 is
When the voltage difference between the gate and the source reaches the conduction voltage difference, typically 5V-10V, the level emitted by the first signal source S1 is higher than or equal to
When the voltage difference between the grid and the source is larger than or equal to the conduction voltage difference, the first NMOS switch N1 is turned on, the coil circuit of the relay switch KM1 is energized, the switch end of the relay switch KM1 is closed, and the first switch device is turned on.
The second switching device includes a second NMOS switch N2 connected to a first signal source S1 of the controller, and the first signal source S1 is connected to the gate of the second NMOS switch N2Connecting; the drain of the second NMOS switch N2 is connected to the relay switch KM2, the switch end of the relay switch KM2 is arranged on the circuit of the voltage step-down module, and the other end of the relay switch KM2 is connected to the
power VVC 5; the source electrode of the second NMOS switch N2 is connected with the resistor R4, and the other end of the resistor R4 is grounded; the conducting level of the second NMOS switch N2 is
Here, the conduction level of the second NMOS switch N2
Means when the gate voltage is
The voltage difference between the gate and the source is the conduction voltage difference, and the voltage difference can be adjusted by the resistor R4. That is, when the voltage of the gate of the second NMOS switch N2 is
When the voltage difference between the grid and the source reaches the conduction voltage difference, generally 5V-10V, when the level emitted by the first signal source is higher than or equal to the level emitted by the first signal source
When the voltage difference between the grid and the source is larger than or equal to the conduction voltage difference, the second NMOS switch N2 is turned on, the coil circuit of the relay switch KM2 is energized, the switch end of the relay switch KM2 is closed, and the second switch device is turned on.
The third switching device comprises a PMOS switch P connected with a first signal source of the controller, and the first signal source is connected with the grid electrode of the PMOS switch P; the source electrode of the PMOS switch P is connected with a relay switch KM3, the switch end of a relay switch KM3 is arranged on a circuit of the pre-amplification module, and the other end of the relay switch KM3 is connected with a
power supply VVC 6; the drain of the PMOS switch P is connected with the resistor R11, and the other end of the resistor R11 is grounded. The conduction level of the PMOS switch P is
The conduction level of the PMOS switch P referred to herein
Means when the gate voltage is
When the voltage difference between the grid and the source is smaller than or equal to the conduction voltage difference, the voltage difference can be adjusted by the power value of the VVC6, generally, when the voltage difference between the grid and the source of the PMOS switch P is smaller than or equal to 6V, the PMOS switch P is conducted, the coil circuit of the relay switch KM3 is electrified, the switch end of the relay switch KM3 is closed, and the third switching device is conducted.
As mentioned above, the first NMOS switch N1 has a turn-on level
The conduction level of the second NMOS switch N2 is
The conduction level of the PMOS switch P is
And is and
(ii) a The first level
Satisfy the requirement of
Second level of
Satisfy the requirement of
Third level
Satisfy the requirement of
;
A first level
Controlling the first NMOS switch N1 and the second NMOS switch N2 to be conducted, and controlling the relay switch KM1 and the relay switch KM2 to be conducted in an electrified way; a first level
The PMOS switch P is controlled to be switched off, the relay switch KM3 is controlled to be switched off, the voltage reduction module is short-circuited by the relay switch KM1 and the relay switch KM2, the pre-amplification module is switched off by the relay switch KM3, and the loudspeaker outputs the original volume;
second level
The second NMOS switch N2 is controlled to be conducted, and the relay switch KM2 is electrified and conducted; second level
The first NMOS switch N1 and the PMOS switch P are controlled to be disconnected, the relay switch KM1 and the relay switch KM3 are controlled to be disconnected, the relay switch KM1 and the relay switch KM2 enable the voltage reduction module to be automatically connected into the main circuit, the relay switch KM3 enables the pre-amplification module to be disconnected, and the loudspeaker outputs weakened volume;
third level
The PMOS switch P is controlled to be conducted, and the relay switch KM3 is electrified and conducted; third level
The first NMOS switch N1 and the second NMOS switch N2 are controlled to be disconnected, the relay switch KM1 and the relay switch KM2 are controlled to be disconnected, the relay switch KM2 enables the voltage reduction module to be disconnected, the relay switch KM1 and the relay switch KM3 enable the pre-amplification module to be connected into the main circuit, and the main circuit is connected with the pre-amplification moduleThe microphone outputs an enhanced volume.
Example 3: as another preferred embodiment of the present invention, as shown in fig. 5, a fourth switching device is further disposed on the main circuit, the fourth switching device includes a third NMOS switch N3 connected to a second signal source S2 of the controller, the second signal source S2 is connected to a gate of the third NMOS switch N3, a drain of the third NMOS switch N3 is connected to a relay switch KM4, a switching end of the relay switch KM4 is disposed on the main circuit, and another end of the relay switch KM4 is connected to the power VVC 7; the source electrode of the third NMOS switch N3 is connected with the resistor R12, and the other end of the resistor R12 is grounded;
the conducting level of the third NMOS switch N3 is
As mentioned above, the conduction level of the third NMOS switch N3 is referred to herein
Means when the gate voltage is
When the voltage difference between the gate and the source reaches its turn-on voltage difference, this voltage difference can be adjusted by the resistor R12. That is, when the voltage at the gate of the third NMOS switch N3 is
When the voltage difference between the gate and the source reaches the conduction voltage difference, typically 5V-10V, the level emitted by the second signal source S2 is higher than or equal to
When the voltage difference between the gate and the source is greater than or equal to the conduction voltage difference, the third NMOS switch N3 is turned on, the coil circuit of the relay switch KM3 is energized, the switch terminal of the relay switch KM3 is turned off, and the third switching device is turned on.
When the main circuit voltage monitored by the main circuit is in the overvoltage interval, the second signal source S2 of the controller sends out a fourth level
And is and
(ii) a The fourth level controls the third NMOS switch N3 to be turned off, and the relay switch KM4 is turned off, so that the main circuit is turned off and the speaker stops outputting.
The main circuit is also provided with a power switch K1 and an active switch K2, wherein the power switch K1 is linked with an automobile power supply; a K1 monitoring module 12 is connected between the power switch K1 and the power amplifier module, a K2 monitoring module 13 is connected between the active switch K2 and the preamplifier module, and the K1 monitoring module and the K2 monitoring module are both connected with the controller;
when the third NMOS switch N3 is turned off, and the K1 monitoring module monitors that the power switch K1 is in a connected state, the K2 monitoring module monitors that the active switch K2 is turned off; after the active switch K2 is closed, the second signal source S2 of the controller sends out a fifth level
And is and
the third NMOS switch N3 is turned on, the main circuit is connected, and the speaker recovers output;
when the third NMOS switch N3 is turned off and the K1 monitoring module detects that the power switch K1 is turned off; the second signal source S2 of the controller sends out the fifth level only when the active switch K2 is turned off and the power switch K1 and the active switch K2 are turned on
The third NMOS switch N3 is turned on, the main circuit is connected, and the speaker resumes output.
The K1 monitoring module comprises a second monitoring point P1 arranged between a power switch K1 and the power amplifier module, the second monitoring point P1 is connected with a resistor R9, and the other end of the resistor R9 is connected with a controller power VVC 2; the K2 monitoring module comprises a third monitoring point P2 arranged between the active switch K2 and the preamplifier module, the third monitoring point P2 is connected with a resistor R10 and a controller, and the other end of the resistor R10 is connected with a power VVC 1. The on and off of the active switch K2 will affect the voltage value at the point P2, and similarly, the off and on of the power switch K1 will also affect the voltage value at the point P1, and the on and off conditions of the active switch K2 and the power switch K1 can be monitored by monitoring the change of the voltage value through the controller.