Weak signal detection algorithm based on gain compensation
Technical Field
The invention relates to the technical field of weak signal detection, in particular to a weak signal detection algorithm based on gain compensation.
Background
With the development of society and technology in China, the detection of various weak signals is more and more emphasized by people. The weak signal is an extremely weak useful signal deeply buried in background noise, which is small and weak, and is not easy to be received, sensed or received by equipment, and may cause uncertainty of a final result, how to obtain a part of signals required by the user, and some amplification circuits are particularly important.
As shown in fig. 1, the differential amplifier circuit has a strong ability to suppress common-mode input signals, but has no significant effect on differential-mode signals, so that the differential amplifier circuit generally performs an input stage and an intermediate stage of integrated operation, and can suppress the effect, such as temperature noise, on the circuit caused by the change of external conditions. In small signal processing, signals are generally led to pass through a differential amplification circuit, so that the signal-to-noise ratio is improved. The amplification factor of the circuit a = R2/R1=313 times. Normally R1= R3, R2= R4 should be maintained. The signals input to the differential amplifier are not processed to "isolate" the effects between the front and back stages, and moreover, the traditional amplifier is bandwidth-intensive, and the amplified small signals extracted directly from the output without algorithmic optimization may have distortion problems.
Disclosure of Invention
The invention aims to provide a weak signal detection algorithm based on gain compensation, which is used for amplifying a weak signal by a circuit and performing discrete resonance point gain compensation on the bandwidth of an amplifier, so that the problems that the detection of a tiny signal is not available or is incomplete and the bandwidth of a traditional amplifier is limited are solved.
The technical scheme adopted by the invention is as follows:
the weak signal detection algorithm based on gain compensation is characterized in that:
the detection algorithm is as follows: a follower is added to each input end of a differential amplifier in the weak signal amplifying circuit to play a role in impedance matching, and then the weak signals after differential amplification are sent to a single chip microcomputer to carry out gain compensation.
In the algorithm, a signal is extracted from an amplifier and sent to a single chip microcomputer, Fourier decomposition is carried out on the signal, and gain compensation is carried out on discrete points in a full waveform.
In the algorithm, the single chip microcomputer carries out gain compensation on the plus and minus n times points of the interference point in a discrete resonance point gain compensation mode.
The weak signal amplifying circuit comprises a differential amplifier, wherein the 4 th end of the differential amplifier is simultaneously connected with a resistor R1 and a resistor R3, and the 3 rd end of the differential amplifier is simultaneously connected with a resistor R2 and a resistor R4;
the other end of the resistor R3 is connected with the 1 st end of the differential amplifier, and the other end of the resistor R4 is connected with the 2 nd end of the differential amplifier;
the 5 th terminal of the differential amplifier is connected to the VBAT terminal, and is connected to the GND terminal through a capacitor C5.
The other end of the resistor R1 and the other end of the resistor R2 are connected with a follower respectively.
The node at the other end of the resistor R2, where the follower is connected to the end DGND, is connected to the node between the resistor R4 and the 2 nd end of the differential amplifier.
The invention has the following advantages:
the method of the invention adds a follower at each input end of the differential amplifier, and utilizes the characteristics of high input impedance and low output impedance to make the differential amplifier play a role of impedance matching in the circuit, so that the next stage of amplifying circuit can work better, and then the weak signal is sent to the singlechip for gain compensation after differential amplification.
In the algorithm, a signal is extracted from an amplifier and sent to a single chip microcomputer, and a discrete resonance point gain compensation mode is adopted, so that the full waveform is not compensated, and an interference point is emphasized. And performing Fourier decomposition on the signal, and compensating the gain at a point of plus or minus n times of the interference point so as to counteract the influence of the bandwidth of the amplifier.
Drawings
Fig. 1 is a block diagram of a conventional differential amplifier circuit.
FIG. 2 is a circuit schematic of the detection algorithm of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific embodiments.
The invention relates to a weak signal detection algorithm based on gain compensation, which comprises the following steps: a follower (amplifier with one time amplification) is added at each input end of a differential amplifier in the weak signal amplification circuit to play a role in impedance matching, and then the weak signals subjected to differential amplification are sent to a single chip microcomputer (stm 32 single chip microcomputer) to be subjected to gain compensation.
The weak signal amplifying circuit comprises a differential amplifier, wherein the 4 th end of the differential amplifier is simultaneously connected with a resistor R1 and a resistor R3, and the 3 rd end of the differential amplifier is simultaneously connected with a resistor R2 and a resistor R4; the other end of the resistor R3 is connected with the 1 st end of the differential amplifier, and the other end of the resistor R4 is connected with the 2 nd end of the differential amplifier; the 5 th terminal of the differential amplifier is connected to the VBAT terminal, and is connected to the GND terminal through a capacitor C5.
The other end of the resistor R1 and the other end of the resistor R2 are connected with a follower respectively. The node at the other end of the resistor R2, where the follower is connected to the end DGND, is connected to the node between the resistor R4 and the 2 nd end of the differential amplifier.
In the algorithm, a signal is extracted from an amplifier and sent to a single chip microcomputer, Fourier decomposition is carried out on the signal, and gain compensation is carried out on discrete points in a full waveform. The single chip microcomputer carries out gain compensation on the plus and minus n octaves of the interference point, namely the point of n-th harmonic (n is less than or equal to 10) by adopting a discrete resonance point gain compensation mode.
The method adds a follower at each input end of the differential amplifier, and utilizes the characteristics of high input impedance and low output impedance of the differential amplifier to enable the differential amplifier to play a role of impedance matching in a circuit, so that a next-stage amplifying circuit can work better, then weak signals are sent to a single chip microcomputer to carry out gain compensation after differential amplification, full waveforms are not compensated, discrete resonance points are compensated, positive and negative n-th harmonics of interference points are compensated, and the influence of operational amplifier bandwidth is eliminated).
In the algorithm, a signal is extracted from an amplifier and sent to a single chip microcomputer, and a discrete resonance point gain compensation mode is adopted, so that the full waveform is not compensated, and an interference point is emphasized. And performing Fourier decomposition on the signal, and compensating the gain at a point of plus or minus n times of the interference point so as to counteract the influence of the bandwidth of the amplifier.
The invention is not limited to the examples, and any equivalent changes to the technical solution of the invention by a person skilled in the art after reading the description of the invention are covered by the claims of the invention.