1. An operational amplifier-based sound sensing circuit is characterized by comprising a sound signal detection circuit, a primary amplification circuit, a signal processing circuit, a secondary amplification circuit and a shaping circuit;
the sound signal detection circuit is used for detecting a sound input signal and comprises a Microphone (MC), a resistor R1, a capacitor C1 and an NMOS transistor M1 serving as a switch; specifically, the positive terminal of the Microphone (MC) is connected with an input voltage Vin, the negative terminal of the Microphone (MC) is connected to the drain of the M1 through a resistor R1, the source of the M1 and the substrate are grounded, the gate of the M is connected with a control signal CE, and a capacitor C1 is connected across the positive terminal of the Microphone (MC) and the source of the M1;
the primary amplifying circuit is used for amplifying the detected sound input signal and comprises an operational amplifier 1 controlled by an enabling signal, resistors R2 and R3 and a capacitor C2; specifically, the enabling signal of the operational amplifier 1 is CE, the positive input end is connected to the negative end of the microphone MC, the output end is connected to the negative input end through the feedback resistor R2, meanwhile, the negative input end is connected to the ground filter capacitor C2 through the resistor R3, and the other end of the capacitor C2 is grounded;
the signal processing circuit is used for processing the amplified signal and comprises a coupling capacitor C3, diodes D1 and D2, an envelope detection capacitor C4 and a pull-down resistor R4; the specific processing mode is that the signal is firstly filtered to remove direct current components through a coupling capacitor C3, and then envelope detection is carried out on the signal through an envelope detection capacitor C4; specifically, one end of a coupling capacitor C3 is connected with the output end of the operational amplifier 1, the other end of the coupling capacitor C3 is connected with the negative end of a diode D1, the positive end of a D1 is grounded, one end of an envelope detection capacitor C4 is grounded, the other end of the envelope detection capacitor C4 is connected with the negative end of a diode D2, the positive end of a diode D2 is connected with the negative end of a D1, and a pull-down resistor R4 is connected to;
the secondary amplifying circuit is used for amplifying the processed signals and comprises an operational amplifier 2 controlled by an enabling signal, resistors R5 and R6; specifically, the enabling signal of the operational amplifier 2 is CE, the positive input end is connected to the negative end of D2, the output end is connected to the negative input end through a feedback resistor R5, and meanwhile, the negative input end is grounded through a resistor R6;
the shaping circuit is used for shaping the output signal of the secondary amplifying circuit and comprises a Schmitt shaping circuit with an enabling end and an inverter circuit; the Schmitt shaping circuit enables the signal to be CE, the input end of the Schmitt shaping circuit is connected with the output end of the secondary amplifier, the output end of the Schmitt shaping circuit is connected with the input end of the phase inverter, and finally, the output end of the phase inverter outputs the sound sensing signal;
vin supplies power to all devices in the circuit, and the range of voltage which can be input is 3-5V;
the CE signal controls the working states of the sound signal detection circuit, the two amplification circuits and the shaping circuit, when the CE is 1, the circuit is in the working state, and when the CE is 0, the circuit is in the closing state;
the capacitor C1 connected in parallel at two ends of the power supply is used for eliminating voltage fluctuation, the resistor R1 is used for controlling the current of the microphone, and the sound signal is sensed by the microphone MC and generates an analog signal which is transmitted to the first-stage amplifying circuit;
in the primary amplifying circuit, a resistor R2 and a resistor R3 form a voltage series negative feedback branch circuit, the voltage series negative feedback branch circuit and the operational amplifier 1 form an in-phase proportional operational circuit, an input analog signal is amplified by adjusting the resistance values of R2 and R3 and is transmitted to a signal processing circuit, a capacitor C2 is used for increasing the voltage following capacity, isolating earth elastic interference and adjusting the phase margin to prevent oscillation;
the coupling capacitor C3 is used for AC coupling the signal and eliminating the DC component in the signal, which makes the circuit not affected by white noise, only the AC signal generated when receiving the sound signal will pass through the capacitor C3;
the capacitor C4 and the diodes D1 and D2 are used for carrying out envelope detection on the signals after alternating current coupling, wherein the D1 and D2 are used for carrying out unidirectional filtering on the signals, the D1 filters negative envelopes to the ground, the D2 allows the positive envelopes to pass through the capacitor C4, low-frequency signals are detected and transmitted to a secondary amplification circuit, and the pull-down resistor R4 is used for inhibiting offset voltage;
in the secondary amplifying circuit, a voltage series negative feedback branch circuit is formed by resistors R5 and R6, an in-phase proportional operational circuit is formed by the resistors and the operational amplifier 2, and an input analog signal is amplified and transmitted to a shaping circuit by adjusting the resistance values of R5 and R6;
the Schmitt circuit in the shaping circuit is used for converting a signal with slowly changed edges output by the secondary amplifying circuit into a rectangular pulse signal with steep edges, when an input signal is less than 0.7V, the output of the Schmitt circuit is high, when the input signal is more than 0.7V, the output of the Schmitt circuit is low, and the subsequent phase inverter is matched for logically inverting the signal, so that an acoustic sensing signal obtained when the input signal is more than 0.7V is high, and an acoustic sensing signal obtained when the input signal is less than 0.7V is low;
in the first-stage amplifying circuit, resistors R2 and R3 form a voltage series negative feedback branch circuit, the voltage series negative feedback branch circuit and the operational amplifier 1 form an in-phase proportional operational circuit, and input analog signals are amplified and transmitted to a signal processing circuit by adjusting the resistance values of R2 and R3;
the amplification ratio of the operational amplifier 1 is:
the resistors R5 and R6 form a voltage series negative feedback branch circuit, form an in-phase proportional operational circuit together with the operational amplifier 2, amplify the input analog signal by adjusting the resistance values of R5 and R6, and transmit the amplified analog signal to the shaping circuit;
the amplification ratio of the operational amplifier 2 is:
the shaping circuit is used for converting the signal with slowly changed edges output by the secondary amplifying circuit into a rectangular pulse signal with steep edges, so that the acoustic sensing signal obtained when the input signal is more than 0.7V is high, and the acoustic sensing signal obtained when the input signal is less than 0.7V is low, and a clearer acoustic sensing signal is obtained.