Sensor compensation method, signal acquisition system and readable storage medium
By dynamically adjusting the operational amplifier's gain and feedback loop, the sensor's signal deviation problem caused by mechanical shock, aging, and other factors is resolved, improving the accuracy and consistency of the sensor's measurement results.
Patent Information
- Application Number
- CN202510892650.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-30
- Publication Date
- 2025-09-30
Smart Images

Figure CN120721140A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sensor technology, and in particular to a sensor compensation method, a signal acquisition system, and a readable storage medium. Background Art
[0002] In the field of signal acquisition, the raw signals output by data acquisition sensors (such as pressure sensors and accelerometers) are often extremely weak. To facilitate subsequent circuit processing, analog-to-digital conversion, or data analysis, operational amplifiers are often used to amplify these raw small signals for subsequent data acquisition and processing.
[0003] However, in actual operation, sensors can experience slight deviations in their output voltage signals due to factors such as mechanical shock, long-term aging, or slight deviations in their installation position. Furthermore, the sensor's position within the structure and its installation accuracy must be precise, and any errors can lead to inconsistent performance between individual sensors. These deviations are multiplied during the small signal extraction and amplification process, significantly impacting the accuracy and reliability of the entire sensing system. Therefore, addressing this sensor signal output deviation to improve accuracy and consistency has become a pressing technical challenge in this field. Summary of the Invention
[0004] The main purpose of this application is to provide a sensor compensation method, a signal acquisition system and a readable storage medium, aiming to solve the technical problem that the current sensor has signal output deviation, resulting in low measurement accuracy and consistency of the sensor.
[0005] To achieve the above objectives, the present application provides a sensor compensation method, which is applied to a signal acquisition system. The signal acquisition system includes an operational amplifier and a data acquisition sensor. The operational amplifier is used to perform operational amplification and output on a sensor voltage signal. The data acquisition sensor is used to provide the sensor voltage signal. The sensor compensation method includes the following steps:
[0006] Acquiring a signal amplitude of an output voltage signal of the operational amplifier;
[0007] The amplification gain corresponding to the operational amplifier is adjusted based on the signal amplitude to compensate for the deviation of the data acquisition sensor, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
[0008] In one embodiment, the signal acquisition system further includes a feedback loop connected to an input terminal and an output terminal of the operational amplifier. The step of adjusting the amplification gain corresponding to the operational amplifier based on the signal amplitude includes:
[0009] If the signal amplitude falls within a preset saturation amplitude range, reducing the feedback resistance in the feedback loop to reduce the corresponding amplification gain of the operational amplifier;
[0010] If the signal amplitude falls within a preset normal amplitude range, the feedback resistance in the feedback loop is increased to increase the corresponding amplification gain of the operational amplifier.
[0011] In one embodiment, before the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier, the method further includes:
[0012] Get the ambient temperature;
[0013] Obtaining an initial feedback resistance corresponding to the ambient temperature based on a preset mapping relationship, wherein the mapping relationship is a correspondence between temperature values of different gears and feedback resistances;
[0014] The feedback resistance of the feedback loop is adjusted to the initial feedback resistance, and the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier is continued.
[0015] In one embodiment, the operational amplifier includes a first input terminal and a second input terminal, the first input terminal is used to input the sensing voltage signal, and the second input terminal is used to input a reference voltage signal. After the step of adjusting the amplification gain of the operational amplifier based on the signal amplitude, the method further includes:
[0016] Adjusting the reference voltage signal inputted at the second input terminal so that the output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when the data acquisition sensor is in a static state;
[0017] The preset reference voltage signal is an ideal voltage signal output by the operational amplifier when the signal acquisition system has no input excitation.
[0018] In one embodiment, before the step of adjusting the reference voltage signal inputted at the second input terminal, the method further comprises:
[0019] When it is detected that the data acquisition sensor is in a static state, detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal;
[0020] If they are inconsistent, the step of adjusting the reference voltage signal inputted at the second input terminal is performed.
[0021] In one embodiment, before the step of detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when the data acquisition sensor is detected to be in a static state, the method further includes:
[0022] monitoring whether the output voltage signal of the operational amplifier remains unchanged within a preset time length, or monitoring whether a signal deviation of the output voltage signal of the operational amplifier is less than a preset threshold within a preset time length, wherein the signal deviation is a signal variance or a signal standard deviation;
[0023] If so, determining that the data acquisition sensor is in a static state;
[0024] If not, it is determined that the data acquisition sensor is not in a static state.
[0025] In one embodiment, the step of adjusting the reference voltage signal inputted at the second input terminal includes:
[0026] When it is determined that the data acquisition sensor is in a static state, obtaining a signal difference between a current output voltage signal of the operational amplifier and a preset reference voltage signal;
[0027] If the signal difference is less than or equal to a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a first step length;
[0028] If the signal difference is greater than a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a second step length, wherein the second step length is greater than the first step length;
[0029] After adjusting the reference voltage signal, return to the step of obtaining the signal difference between the current output voltage signal of the operational amplifier and the preset reference voltage signal until the current output voltage signal of the operational amplifier is consistent with the preset reference voltage signal.
[0030] In addition, to achieve the above-mentioned purpose, the present application also provides a signal acquisition system, which includes an operational amplifier, a data acquisition sensor and a control unit;
[0031] The data acquisition sensor is used to provide a sensing voltage signal;
[0032] The operational amplifier is used to perform operational amplification and output the sensing voltage signal;
[0033] The control unit is used to obtain the signal amplitude of the output voltage signal of the operational amplifier; and adjust the amplification gain of the operational amplifier based on the signal amplitude, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range, and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
[0034] In one embodiment, the signal acquisition system further includes a digital potentiometer and a feedback loop, the operational amplifier includes a first input terminal, a second input terminal and an output terminal, the first input terminal is used to input the sensing voltage signal, the second input terminal is used to input a reference voltage signal, the feedback loop is connected between the first input terminal and the output terminal, and the control unit adjusts the feedback resistance in the feedback loop through the digital potentiometer.
[0035] In addition, to achieve the above-mentioned purpose, the present application also provides a readable storage medium, which is a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to implement the steps of the sensor compensation method as described above.
[0036] The present application also provides a computer program product, comprising a computer program, which implements the steps of the above-mentioned sensor compensation method when executed by a processor.
[0037] One or more technical solutions proposed in this application have at least the following technical effects:
[0038] The present application obtains the signal amplitude of the output voltage signal of the operational amplifier. When the output voltage signal amplitude is monitored to fall within a preset saturation amplitude range (i.e., the signal amplitude is too large), the operational amplifier gain is reduced to avoid the risk of excessive signal amplitude, reduce clipping distortion caused by excessive amplification of the sensor's positive deviation (e.g., output is too high), and ensure the complete identifiability of the signal. Conversely, when the output voltage signal amplitude is monitored to fall within a preset cutoff amplitude range (i.e., the signal amplitude is too small), the operational amplifier gain is increased to reduce the sensor's negative deviation (e.g., output is too low or sensitivity is reduced) or the phenomenon that weak signals may be submerged by noise due to insufficient amplification, thereby improving the signal-to-noise ratio and effective resolution. Therefore, even if the sensor signal output has deviations due to external factors such as mechanical shock, aging, or installation position, this adaptive dynamic gain adjustment mechanism can be used to compensate for the sensor output deviation, offset the transmission and amplification effects of the deviation in the amplification chain, and thus improve the accuracy of the sensor measurement results. And through this dynamic adjustment mechanism of "reducing if too large, increasing if too small", the goal of "signal moderation" is achieved, that is, the amplitude of the operational amplifier output voltage signal is stabilized within an optimal operating range away from the risks of saturation clipping and low resolution, so that the final outputs of different sensors under the same input conditions can converge to a consistent level, thereby improving the consistency between individual sensors. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0040] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 This is a flow chart of the first embodiment of the sensor compensation method of the present application;
[0042] Figure 2 This is a flow chart of a second embodiment of the sensor compensation method of the present application;
[0043] Figure 3 This is a flow chart of the third embodiment of the sensor compensation method of the present application;
[0044] Figure 4 This is a schematic diagram of the system structure of the signal acquisition system of this application;
[0045] Figure 5Schematic diagram of the specific architecture of the signal acquisition system in the embodiment of the present application.
[0046] The purpose, features and advantages of this application will be further explained with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0047] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.
[0048] Some existing small-signal sensor units are susceptible to sensitivity deviation or zero-point drift due to environmental influences. Other factors, such as installation deviation and mechanical shock, can cause deviations in the output voltage signal. These small deviations can multiply exponentially during the small-signal extraction and amplification process, significantly impacting the accuracy of the sensing system. This is a major cause of unstable measurement results from many sensors. Furthermore, the sensor's position within the structure and its mounting require high precision, and these errors often lead to poor consistency between individual sensors.
[0049] Based on this, the main solution of this application is: by obtaining the signal amplitude of the output voltage signal of the operational amplifier; adjusting the amplification gain corresponding to the operational amplifier based on the signal amplitude to compensate for the deviation of the data acquisition sensor, wherein the adjustment of the amplification gain includes lowering the amplification gain when the signal amplitude belongs to the preset saturation amplitude range, and increasing the amplification gain when the signal amplitude belongs to the preset cutoff amplitude range.
[0050] The present application obtains the signal amplitude of the output voltage signal of the operational amplifier. When the output voltage signal amplitude is monitored to fall within a preset saturation amplitude range (i.e., the signal amplitude is too large), the operational amplifier gain is reduced to avoid the risk of excessive signal amplitude, reduce clipping distortion caused by excessive amplification of the sensor's positive deviation (e.g., output is too high), and ensure the complete identifiability of the signal. Conversely, when the output voltage signal amplitude is monitored to fall within a preset cutoff amplitude range (i.e., the signal amplitude is too small), the operational amplifier gain is increased to reduce the sensor's negative deviation (e.g., output is too low or sensitivity is reduced) or the phenomenon that weak signals may be submerged by noise due to insufficient amplification, thereby improving the signal-to-noise ratio and effective resolution. Therefore, even if the sensor signal output has deviations due to external factors such as mechanical shock, aging, or installation position, this adaptive dynamic gain adjustment mechanism can be used to compensate for the sensor output deviation, offset the transmission and amplification effects of the deviation in the amplification chain, and thus improve the accuracy of the sensor measurement results. And through this dynamic adjustment mechanism of "reducing if too large, increasing if too small", the goal of "signal moderation" is achieved, that is, the amplitude of the operational amplifier output voltage signal is stabilized within an optimal operating range away from the risks of saturation clipping and low resolution, so that the final outputs of different sensors under the same input conditions can converge to a consistent level, thereby improving the consistency between individual sensors.
[0051] It should be noted that the execution entity of each embodiment of the sensor compensation method of the present application may be a signal acquisition system that can realize the above functions, such as an ADC (Analog-to-Digital Converter) signal acquisition system.
[0052] Based on this, the present application proposes a sensor compensation method of the first embodiment, which is applied to a signal acquisition system, wherein the signal acquisition system includes an operational amplifier and a data acquisition sensor, wherein the operational amplifier is used to perform operational amplification and output on the sensor voltage signal, and the data acquisition sensor is used to provide the sensor voltage signal, Figure 1 As shown, the sensor compensation method includes the following steps S10 to S20:
[0053] Step S10, obtaining the signal amplitude of the output voltage signal of the operational amplifier;
[0054] The data acquisition sensor may be a pressure sensor, an acceleration sensor, etc., which is not specifically limited in this embodiment. For example, the data acquisition sensor is a pressure sensor to illustrate and describe this embodiment.
[0055] The operational amplifier performs operational amplification on the sensing voltage signal and outputs the signal. Specifically, the sensing voltage signal is input to the operational amplifier through an input terminal of the operational amplifier, and the output terminal of the operational amplifier outputs the signal after operational amplification.
[0056] The sensor voltage signal originates from a data acquisition sensor, specifically the voltage signal output by a pressure sensor, or it can be a voltage signal obtained by signal conditioning the voltage signal output by the pressure sensor. Signal conditioning refers to the preprocessing of the raw sensor signal to meet the input requirements of subsequent circuits (such as operational amplifiers) or to improve signal quality. This includes, but is not limited to, one or more of the following: DC biasing, signal filtering, and voltage divider network amplitude modulation.
[0057] Among them, DC bias refers to superimposing a constant DC voltage component on the signal to adjust the baseline (or zero) of the signal to a specific level (such as the center point of the input common-mode range of the operational amplifier); signal filtering refers to the use of electronic circuits (such as resistors, capacitors, inductors or active filters) to selectively allow or suppress specific frequency components in the signal to pass through in order to remove noise, interference or unnecessary frequency components; voltage divider network amplitude modulation refers to the use of a voltage divider network composed of resistors or other impedance elements to reduce the signal amplitude at a specific ratio.
[0058] The signal amplitude is the amplitude of the operational amplifier's output voltage signal. Specifically, it can be the maximum absolute value of the operational amplifier's output voltage signal's deviation from the zero reference point. The zero reference point can be the DC voltage level corresponding to the operational amplifier's output voltage signal when the measured physical quantity is zero (or the measurement reference point). For example, assuming the pressure sensor's measurement range is [-5N, 5N], and the corresponding output voltage range after the operational amplifier is set to [0V, 5V], when there is no external pressure acting on the pressure sensor, that is, when the external pressure is 0, the corresponding operational amplifier output voltage signal is set to a DC voltage level of 2.5V. In this case, the zero reference point can be 2.5V.
[0059] In addition, the signal acquisition system may further include a signal filtering module, which is used to filter the output signal of the operational amplifier and obtain the signal amplitude of the filtered output signal, and continue to execute subsequent steps based on the signal amplitude, so as to suppress the influence of high-frequency noise or interference on signal amplitude detection through filtering, and prevent gain misadjustment due to noise fluctuations, thereby improving the system's robustness and signal acquisition stability in an interference environment.
[0060] Step S20, adjusting the amplification gain corresponding to the operational amplifier based on the signal amplitude to compensate for the deviation of the data acquisition sensor, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range, and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
[0061] The amplification gain (abbreviated as gain) refers to the ratio of the output signal voltage to the input signal voltage of the operational amplifier, and is used to measure the amplifier's ability to amplify the input signal.
[0062] The operational amplifier's corresponding gain is adjusted based on the signal amplitude. Specifically, when the signal amplitude falls within a preset saturation amplitude range, the operational amplifier's gain is reduced; and when the signal amplitude falls within a preset cutoff amplitude range, the operational amplifier's gain is increased. Furthermore, when the signal amplitude falls outside the preset saturation amplitude range and the preset cutoff amplitude range (hereinafter, the portion outside these two ranges is referred to as the preset linear amplitude range), the operational amplifier's gain may not be adjusted.
[0063] Among them, the preset saturation amplitude interval refers to the interval in which the output signal voltage approaches or reaches the maximum output voltage range of the operational amplifier. At this time, the signal may be saturated or clipped due to exceeding the linear operating range of the operational amplifier, resulting in the output signal being unable to accurately reflect the changes in the input signal; the preset cutoff amplitude interval refers to the interval in which the output signal voltage approaches or is lower than the minimum effective output voltage range of the operational amplifier. At this time, the signal may not be effectively collected or processed due to the amplitude being too small, and may even be submerged by noise. The preset linear amplitude interval refers to the interval in which the output signal voltage is within the linear operating range of the operational amplifier. At this time, the signal amplitude will neither cause saturation distortion or clipping, nor be unable to be effectively collected or processed due to the amplitude being too small. For example, assuming that the output voltage range of the operational amplifier is [0V, 5V] and its zero-point reference voltage is 2.5V (that is, the output voltage range of the operational amplifier can be equivalently expressed as [-2.5V, +2.5V]), the preset saturation amplitude interval can be set to an interval less than 0.5V or greater than 4.5V (that is, equivalent to an interval less than -2V or greater than +2V), the preset cutoff amplitude interval can be set to [2V, 3V] (that is, equivalent to an interval [-0.5V, +0.5V]), and the preset linear amplitude interval can be set to an interval [0.5V, 2V] or [3V, 4.5V] (that is, equivalent to [-2V, -0.5V], [+0.5V, +2V]).
[0064] This embodiment obtains the signal amplitude of the output voltage signal of the operational amplifier. When the output voltage signal amplitude is detected to fall within a preset saturation amplitude range (i.e., the signal amplitude is too large), the operational amplifier gain is reduced to avoid the risk of excessive signal amplitude, reduce clipping distortion caused by over-amplification of positive sensor deviations (e.g., high output), and ensure complete signal recognizability. Conversely, when the output voltage signal amplitude is detected to fall within a preset cutoff amplitude range (i.e., the signal amplitude is too small), the operational amplifier gain is increased to reduce negative sensor deviations (e.g., low output or decreased sensitivity) or the phenomenon that weak signals may be submerged by noise due to insufficient amplification, thereby improving the signal-to-noise ratio and effective resolution. Therefore, even if the sensor signal output deviates due to external factors such as mechanical shock, aging, or installation position, this adaptive dynamic gain adjustment mechanism can compensate for the sensor output deviation, offsetting the transmission and amplification effects of the deviation in the amplification chain, and thereby improving the accuracy of the sensor measurement results. And through this dynamic adjustment mechanism of "reducing if too large, increasing if too small", the goal of "signal moderation" is achieved, that is, the amplitude of the operational amplifier output voltage signal is stabilized within an optimal operating range away from the risks of saturation clipping and low resolution, so that the final outputs of different sensors under the same input conditions can converge to a consistent level, thereby improving the consistency between individual sensors.
[0065] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to above and will not be described in detail. On this basis, the signal acquisition system further includes a feedback loop connected to the input and output terminals of the operational amplifier, and the step of adjusting the amplification gain of the operational amplifier based on the signal amplitude includes:
[0066] Step A10: if the signal amplitude falls within a preset saturation amplitude range, reducing the feedback resistance in the feedback loop to reduce the corresponding amplification gain of the operational amplifier;
[0067] The feedback loop is a closed circuit comprising a feedback resistor network connected in series between the input and output of an operational amplifier. Specifically, the feedback loop can be coupled between the input receiving the sense voltage signal and the output of the operational amplifier. For example, if the sense voltage signal is input to the operational amplifier via the inverting input, the feedback loop can be connected between the inverting input and the output of the operational amplifier.
[0068] The operation of adjusting the amplifier gain based on the signal amplitude is achieved by dynamically adjusting the equivalent resistance of the feedback resistor network (i.e., the feedback resistor). When the signal amplitude falls into the preset saturation amplitude range, the feedback resistor value in the feedback loop is reduced by driving the analog switch array or digital potentiometer. The reduction in feedback resistance causes the operational amplifier gain to decrease, thus preventing the output from entering a saturated clipping state when a strong input signal is input.
[0069] Step A20: If the signal amplitude belongs to the preset normal amplitude range, then the feedback resistance in the feedback loop is increased to increase the corresponding amplification gain of the operational amplifier.
[0070] Similarly, when the signal amplitude falls within a preset cutoff amplitude range, the feedback resistor in the feedback loop can be increased by driving an analog switch array or digital potentiometer. This increase in feedback resistance increases the operational amplifier gain, allowing the weak input signal to be fully amplified to the quantizer's effective detection range. It should be noted that when the signal amplitude is within the preset linear amplitude range, the feedback resistor value can be maintained unchanged, thereby maintaining the operational amplifier gain.
[0071] This embodiment achieves adaptive adjustment of the amplification gain by dynamically adjusting the feedback resistor. When a strong input signal triggers a saturation risk, the gain is reduced to avoid output clipping distortion. When a weak input signal approaches the noise floor, the gain is increased to enhance signal resolution capability. This allows a single operational amplifier to maintain its output within the effective range under input signals of different amplitudes. This overcomes the saturation distortion problem of fixed gain under strong signals and the deterioration of the signal-to-noise ratio under weak signals, thereby ensuring the linear accuracy of signal acquisition within the full amplitude range.
[0072] In one possible implementation, refer to Figure 2 As shown, before the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier, the method further includes:
[0073] Step B10, obtaining the ambient temperature;
[0074] It should be noted that the signal acquisition system may also include a temperature sensor, and the ambient temperature may specifically be a physical quantity acquired by the temperature sensor. Furthermore, the temperature sensor is preferably located adjacent to the installation location of the data acquisition sensor to acquire an ambient temperature that accurately reflects the actual operating environment of the data acquisition sensor.
[0075] Step B20, obtaining an initial feedback resistance corresponding to the ambient temperature based on a preset mapping relationship, wherein the mapping relationship is a correspondence between temperature values of different gears and feedback resistances;
[0076] The mapping relationship between temperature and feedback resistance can be pre-configured and stored. The mapping relationship can be expressed as a mapping table or a mapping function. The mapping relationship can define the association rules between different ranges of temperature levels and their corresponding unique feedback resistors.
[0077] Furthermore, the preset mapping relationship is established through laboratory temperature calibration and is specifically expressed as a discrete temperature-resistance lookup table or a continuous piecewise linear function. For example, the temperature range division divides the system operating temperature range (such as -40°C to 85°C) into several continuous intervals, each associated with a unique initial feedback resistance value, such as mapping the -20°C to 0°C range to 82kΩ and the 25°C to 50°C range to 100kΩ.
[0078] Step B30: adjusting the feedback resistance of the feedback loop to the initial feedback resistance, and continuing to execute the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier.
[0079] After obtaining the initial feedback resistance corresponding to the ambient temperature, the feedback resistance in the feedback loop is adjusted to the initial feedback resistance. Similarly, the feedback resistance in the feedback loop can be adjusted to the initial feedback resistance by driving an analog switch array or a digital potentiometer.
[0080] In this embodiment, the feedback resistor in the feedback loop is first adjusted based on the temperature. On the one hand, temperature compensation can be achieved to reduce the sensitivity deviation or zero drift of the sensor caused by the ambient temperature. On the other hand, the feedback resistor in the feedback loop is first adjusted to a reference resistance value that matches the current ambient temperature based on the temperature, so that the feedback resistance can be dynamically fine-tuned in a small range based on the signal amplitude of the output voltage signal on the basis of the initial feedback resistance, thereby reducing the gain switching frequency and adjustment amplitude, thereby reducing the risk of transient oscillation caused by large resistance adjustment, improving system stability and reducing power consumption.
[0081] Based on the first and / or second embodiments of the present application, in the third embodiment of the present application, the same or similar contents as those of the first and second embodiments can be referred to above and will not be described in detail. On this basis, the operational amplifier includes a first input terminal and a second input terminal, the first input terminal is used to input the sensing voltage signal, and the second input terminal is used to input the reference voltage signal. After the step of adjusting the amplification gain of the operational amplifier based on the signal amplitude, the method further includes:
[0082] Step C10, adjusting the reference voltage signal inputted at the second input terminal so that the output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when the data acquisition sensor is in a static state;
[0083] In this embodiment, the first input terminal is the inverting input terminal of the operational amplifier, and the second input terminal is the non-inverting input terminal of the operational amplifier, so as to compensate for the offset of the sensor through the reference voltage signal input through the non-inverting input terminal.
[0084] The reference voltage signal can be a stable reference level signal, which can be used to compensate for sensor offset via the reference voltage signal input to the non-inverting input terminal. Furthermore, the reference voltage signal can be a programmable DC level signal generated by a digital-to-analog converter, whose amplitude can be dynamically adjusted based on the feedback resistor to maintain static output zero point stability.
[0085] The preset reference voltage signal refers to the ideal voltage signal that the signal acquisition system sets the output of the operational amplifier when there is no input excitation. This value can be solidified through calibration before leaving the factory. For example, for bipolar measurement scenarios (such as the pressure range of -5N to +5N), the output voltage range of the operational amplifier is set to [0V, 5V]. The preset reference voltage signal can be set to a 2.5V DC level signal to map -5N to +5N to an output of 0V to 5V, with the zero point (0N) accurately corresponding to 2.5V, maximizing the use of the positive and negative voltage swings (-2.5V to +2.5V); for unipolar measurement scenarios (such as the tension range of 0N to 5N), the output voltage range of the operational amplifier is set to [0V, 5V]. The preset reference voltage can be set to a 0V DC level signal to correspond the zero point (0N) to the 0V output and the full scale (5N) to the 5V output, avoiding negative voltage redundancy.
[0086] It should be noted that the signal acquisition system has no input excitation, that is, the data acquisition sensor is static. Specifically, the static state of the data acquisition sensor refers to the state when the measured physical quantity acting on the data acquisition sensor (such as for a pressure sensor, the pressure acting on the pressure sensor) is at zero.
[0087] Considering that under identical input conditions (i.e., identical sensor voltage signals and reference voltage signals), adjustment of the feedback resistor can cause a level shift in the output signal, this embodiment adjusts the reference voltage signal after adjusting the feedback resistor to compensate for the level shift caused by the feedback resistor change. Specifically, when the data acquisition sensor is static, the output voltage signal of the operational amplifier is adjusted to a preset reference voltage signal. This ensures that the system's electrical zero point remains constant even after dynamic adjustment of the feedback resistor, eliminating zero-point drift errors introduced by feedback resistor adjustment.
[0088] In one possible implementation, refer to Figure 3 As shown, before the step of adjusting the reference voltage signal inputted at the second input terminal, the method further includes:
[0089] Step D10, when it is detected that the data acquisition sensor is in a static state, detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal, wherein the preset reference voltage signal is an ideal voltage signal set by the signal acquisition system to output the operational amplifier when there is no input excitation;
[0090] It should be noted that, when it is detected that the data acquisition sensor is not in a static state, the reference voltage signal may not be adjusted until it is detected that the data acquisition sensor is in a static state, and then the reference voltage is adjusted.
[0091] In addition, further, even if the operational amplifier has not adjusted the gain, that is, the feedback resistor has not been adjusted, it is possible to detect whether the current output voltage signal of the operational amplifier is inconsistent with the preset reference voltage signal when the data acquisition sensor is detected to be in a static state, and adjust the reference voltage signal when it is inconsistent, so that when the zero point of the sensor drifts due to temperature, DC bias voltage (refers to the fixed DC component contained in the sensor output signal. If the output signal of the sensor contains a DC bias voltage, the amplifier will also amplify this DC component, resulting in a zero point offset of the output signal) or other factors, the reference voltage signal is adjusted to ensure that the zero value reference point of the output voltage signal is near the preset reference voltage signal, thereby achieving compensation for the zero point drift of the sensor.
[0092] The output voltage signal being consistent with the preset reference voltage signal may specifically mean that the absolute difference between the current output voltage signal and the preset reference voltage signal does not exceed a certain difference threshold.
[0093] Step D20: If they are not consistent, then the step of adjusting the reference voltage signal inputted by the second input terminal is performed.
[0094] If the data acquisition sensor is in a static state, but the current output voltage signal of the operational amplifier is consistent with the preset reference voltage signal, the reference voltage signal does not need to be adjusted.
[0095] If the data acquisition sensor is in a static state and the current output voltage signal of the operational amplifier is inconsistent with the preset reference voltage signal, the reference voltage signal is adjusted. Furthermore, after each adjustment, the current output voltage signal of the operational amplifier is detected to determine whether it is inconsistent with the preset reference voltage signal. If not, the adjustment is continued until a preset adjustment termination condition is met. The preset adjustment termination condition may include, for example, that the output voltage signal and the preset reference voltage signal continuously meet a consistency determination criterion, the number of adjustments is greater than or equal to a certain upper threshold, or the total adjustment duration exceeds a maximum allowable duration, etc. This embodiment does not impose any specific limitations on this.
[0096] The reference voltage signal may be adjusted in a stepwise manner, or a proportional-integral control algorithm, a binary approximation or an adaptive step adjustment strategy may be used, and this embodiment does not impose any specific restrictions on this.
[0097] This embodiment achieves zero offset compensation for the sensor by detecting the consistency of the operational amplifier output voltage signal with a preset reference voltage signal when the data acquisition sensor is static, and adjusting the reference voltage signal when inconsistency is detected. The reference voltage signal is also adjusted when the data acquisition sensor is static to avoid interference of dynamic operating condition signals in the compensation process. At the same time, regardless of whether the feedback resistor changes, the mechanism can autonomously capture and eliminate zero offset caused by temperature drift, sensor DC bias and aging factors, and accurately lock the output of the operational amplifier to the preset reference voltage signal through adjustment of the reference voltage signal, thereby maintaining the mapping relationship between the electrical zero point and the physical zero point throughout the life cycle of the sensor, achieving baseline stability with a low drift rate.
[0098] In a possible implementation, before the step of detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when detecting that the data acquisition sensor is in a static state, the method further includes:
[0099] Step E10, monitoring whether the output voltage signal of the operational amplifier remains unchanged within a preset time period, or monitoring whether a signal deviation of the output voltage signal of the operational amplifier within the preset time period is less than a preset threshold, wherein the signal deviation is a signal variance or a signal standard deviation;
[0100] Step E20: If yes, determine that the data acquisition sensor is in a static state;
[0101] Step E30: If not, determine that the data acquisition sensor is not in a static state.
[0102] It is understood that when the data acquisition sensor is static, due to the absence of external input excitation, the sensor's output typically remains constant or changes very slightly. Correspondingly, after the signal passes through the operational amplifier, the output voltage signal of the operational amplifier typically also remains constant or changes very slightly. Based on this, when the output voltage signal of the operational amplifier remains constant or the signal deviation is less than a preset threshold within a predetermined detection time, the data acquisition sensor is determined to be static; otherwise, the data acquisition sensor is determined to be not static.
[0103] Based on the first, second, and / or third embodiments of the present application, in the fourth embodiment of the present application, the same or similar contents as those of the first, second, and third embodiments can be referred to above and will not be described in detail. On this basis, the step of adjusting the reference voltage signal inputted by the second input terminal includes:
[0104] Step F10, when it is determined that the data acquisition sensor is in a static state, obtaining a signal difference between a current output voltage signal of the operational amplifier and a preset reference voltage signal;
[0105] When it is determined that the data acquisition sensor is in a static state, the current output voltage signal of the operational amplifier can be sampled by the analog-to-digital converter (ADC), and the signal difference between it and the preset reference voltage signal can be calculated. The signal difference can be specifically the algebraic deviation between the two signals. The current output voltage signal is denoted as Vout, and the preset reference voltage signal is denoted as Vbase. Then, in this embodiment, the signal difference ΔV is expressed as ΔV=Vout-Vbase.
[0106] Step F20, if the signal difference is less than or equal to a preset difference threshold, adjusting the reference voltage signal inputted from the second input terminal with the first step length;
[0107] If the signal difference is less than or equal to the preset difference threshold, a smaller first step length is used to fine-tune the reference voltage signal inputted at the second input terminal.
[0108] It should be noted that the adjustment direction of the signal difference may be opposite to the sign of the signal difference (ie, when ΔV>0, the reference voltage signal is reduced, and vice versa).
[0109] Step F30, if the signal difference is greater than a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a second step length, wherein the second step length is greater than the first step length;
[0110] If the signal difference is greater than the preset difference threshold, a larger second step size is used to adjust the reference voltage signal so as to quickly approach the reference point when the deviation is large and reduce the number of adjustments.
[0111] Step F40, after adjusting the reference voltage signal, return to the step of obtaining the signal difference between the current output voltage signal of the operational amplifier and the preset reference voltage signal until the current output voltage signal of the operational amplifier is consistent with the preset reference voltage signal.
[0112] After completing a reference voltage signal adjustment, step F10 can be re-executed to obtain a new signal difference, and the process can be iterated until the signal difference approaches zero (i.e., the output voltage signal is consistent with the preset reference voltage signal). Furthermore, to reduce signal oscillation, after each adjustment, a preset signal settling time (e.g., 10 times the op amp response time) can be waited before sampling to obtain the current output voltage signal of the operational amplifier.
[0113] This embodiment calculates the signal difference ΔV between the output voltage signal (Vout) and the preset reference voltage (Vbase) signal under static conditions of the data acquisition sensor, and adaptively adjusts the reference voltage signal based on the comparison result of ΔV and the preset threshold: when ΔV is less than or equal to the threshold, small step size fine-tuning is adopted to suppress overshoot; when ΔV is greater than the threshold, large step size is adopted to quickly approach the reference point, thereby reducing the number of zero-point compensation iterations, and adaptively switching the step size mode - fine step size progressive fine-tuning is adopted when the deviation is small, and switching to large step size for rapid crossing to avoid invalid iterations when the deviation is large, thereby achieving coordinated optimization of the speed and stability of the convergence process.
[0114] In addition, the present application also proposes a signal acquisition system, referring to Figure 4 As shown, the signal acquisition system includes an operational amplifier 10, a data acquisition sensor 20 and a control unit 30;
[0115] The data acquisition sensor 10 is used to provide a sensing voltage signal;
[0116] The operational amplifier 20 is used to perform operational amplification and output the sensing voltage signal;
[0117] The control unit 30 is used to obtain the signal amplitude of the output voltage signal of the operational amplifier; and adjust the amplification gain of the operational amplifier based on the signal amplitude, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range, and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
[0118] In one embodiment, the signal acquisition system further includes a digital potentiometer and a feedback loop, the operational amplifier includes a first input terminal, a second input terminal and an output terminal, the first input terminal is used to input the sensing voltage signal, the second input terminal is used to input a reference voltage signal, the feedback loop is connected between the first input terminal and the output terminal, and the control unit adjusts the feedback resistance in the feedback loop through the digital potentiometer.
[0119] In one embodiment, the control unit 30 is further configured to:
[0120] If the signal amplitude falls within a preset saturation amplitude range, reducing the feedback resistance in the feedback loop to reduce the corresponding amplification gain of the operational amplifier;
[0121] If the signal amplitude falls within a preset normal amplitude range, the feedback resistance in the feedback loop is increased to increase the corresponding amplification gain of the operational amplifier.
[0122] In one embodiment, the control unit 30 is further configured to:
[0123] Get the ambient temperature;
[0124] Obtaining an initial feedback resistance corresponding to the ambient temperature based on a preset mapping relationship, wherein the mapping relationship is a correspondence between temperature values of different gears and feedback resistances;
[0125] The feedback resistance of the feedback loop is adjusted to the initial feedback resistance, and the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier is continued.
[0126] In one embodiment, the control unit 30 is further configured to:
[0127] Adjusting the reference voltage signal inputted at the second input terminal so that the output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when the data acquisition sensor is in a static state;
[0128] The preset reference voltage signal is an ideal voltage signal output by the operational amplifier when the signal acquisition system has no input excitation.
[0129] In one embodiment, the control unit 30 is further configured to:
[0130] When it is detected that the data acquisition sensor is in a static state, detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal;
[0131] If they are inconsistent, the step of adjusting the reference voltage signal inputted at the second input terminal is performed.
[0132] In one embodiment, the control unit 30 is further configured to:
[0133] monitoring whether the output voltage signal of the operational amplifier remains unchanged within a preset time length, or monitoring whether a signal deviation of the output voltage signal of the operational amplifier is less than a preset threshold within a preset time length, wherein the signal deviation is a signal variance or a signal standard deviation;
[0134] If so, determining that the data acquisition sensor is in a static state;
[0135] If not, it is determined that the data acquisition sensor is not in a static state.
[0136] In one embodiment, the control unit 30 is further configured to:
[0137] When it is determined that the data acquisition sensor is in a static state, obtaining a signal difference between a current output voltage signal of the operational amplifier and a preset reference voltage signal;
[0138] If the signal difference is less than or equal to a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a first step length;
[0139] If the signal difference is greater than a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a second step length, wherein the second step length is greater than the first step length;
[0140] After adjusting the reference voltage signal, return to the step of obtaining the signal difference between the current output voltage signal of the operational amplifier and the preset reference voltage signal until the current output voltage signal of the operational amplifier is consistent with the preset reference voltage signal.
[0141] For example, in order to help understand the technical concept or technical principle of the signal acquisition system of the embodiment of the present application, a specific embodiment is now listed. In this specific embodiment, referring to Figure 5 As shown, the signal acquisition system includes a sensor unit (i.e., a data acquisition sensor), a signal conditioning module, an operational amplifier, a filtering module, a control unit, a temperature sensor, a digital potentiometer, and a feedback loop. The output end of the sensor unit is connected to the input end of the signal conditioning module, and the output end of the signal conditioning module is connected to the inverting input end and the non-inverting input end of the operational amplifier for inputting a reference voltage signal Vref. The feedback loop is arranged between the inverting input end and the output end of the operational amplifier. The control unit is connected to the temperature sensor, and the control unit communicates with the digital potentiometer through an SPI (Serial Peripheral Interface) or an IIC (Inter-Integrated Circuit). The feedback resistance in the feedback loop is adjusted by controlling the digital potentiometer. The sensor unit outputs a sensor signal, which is input to the operational amplifier after passing through the signal conditioning module (DC bias, signal filtering, voltage divider network amplitude modulation, etc.). The output voltage signal of the operational amplifier is given to the control unit through the filtering module.
[0142] The control unit dynamically adjusts the amplification gain of the operational amplifier in real time according to the collected ambient temperature and the signal amplitude of the output signal of the filter module, thereby performing temperature compensation and mechanical installation calibration compensation.
[0143] At the same time, the control unit determines whether the sensor is in a static state, and when it is determined that the sensor is in a static state, obtains the ADC reference value of the sensor in a static state (i.e., the preset reference voltage signal). At this time, the control module dynamically adjusts the output DAC (i.e., Figure 3 The Vref (shown as Vref) is fed to the non-inverting input of the operational amplifier. The non-inverting input Vref is used to dynamically adjust the output signal reference voltage. By adjusting the reference voltage signal, the zero-value reference point of the output signal is ensured to be around the midpoint of the control unit's ADC module. This ensures that both the positive and negative voltage signals output by the sensor are within the ADC range, thus maximizing the effective measurement range. This addresses the effects of the sensor's own zero-point drift and the amplifier's temperature drift on the drift of the reference value of the amplified output signal, ensuring that the output signal reference value is always around the midpoint of the ADC value, allowing the acquisition of positive and negative voltage signals output by the sensor without clipping.
[0144] It should be noted that the above examples are only used to assist in understanding the present embodiment and do not constitute a limitation on the signal acquisition system of the present embodiment. More simple transformations based on this technical concept are all within the scope of protection of this application.
[0145] The signal acquisition system provided in the embodiments of this application utilizes the sensor compensation method described in the aforementioned embodiments, resolving the technical issue of signal output deviations in existing sensors, which results in low sensor measurement accuracy and consistency. Compared to the prior art, the signal acquisition system provided in this application achieves the same beneficial effects as the sensor compensation method described in the aforementioned embodiments. Other technical features of this signal acquisition system are the same as those disclosed in the aforementioned embodiments and are not further elaborated here.
[0146] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0147] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0148] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, and the computer-readable program instructions are used to execute the sensor compensation method in the above-mentioned embodiment.
[0149] The computer-readable storage medium provided in the embodiments of the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0150] The computer-readable storage medium may be included in the signal acquisition system; or it may exist independently without being assembled into the signal acquisition system.
[0151] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the signal acquisition system, the signal acquisition system is enabled to: obtain the signal amplitude of the output voltage signal of the operational amplifier; adjust the amplification gain corresponding to the operational amplifier based on the signal amplitude to compensate for the deviation of the data acquisition sensor, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
[0152] Computer program code for performing the operations of the present application may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0153] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented by a dedicated hardware-based system that performs the specified function or operation, or can be implemented by a combination of dedicated hardware and computer instructions.
[0154] The modules described in the embodiments of the present application may be implemented in software or hardware, wherein the name of a module does not necessarily limit the module itself.
[0155] The computer-readable storage medium provided in this application stores computer-readable program instructions (i.e., a computer program) for executing the aforementioned sensor compensation method. This computer-readable storage medium can address the current technical issues of sensor signal output deviation, which results in low measurement accuracy and consistency. Compared to the prior art, the beneficial effects of the computer-readable storage medium provided in this application are similar to those of the sensor compensation method provided in the aforementioned embodiments and are not further elaborated here.
[0156] In addition, an embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of the sensor compensation method described above when executed by a processor.
[0157] The specific implementation of the computer program product of the present application is basically the same as the above-mentioned embodiments of the sensor compensation method, and will not be repeated here.
[0158] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0159] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0160] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software sensor, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a signal acquisition system (which can be a mobile phone, computer, server or network equipment, etc.) to execute the methods described in each embodiment of the present application.
[0161] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A sensor compensation method, characterized in that: The sensor compensation method is applied to a signal acquisition system, the signal acquisition system including an operational amplifier and a data acquisition sensor, the operational amplifier being used to perform operational amplification and output on a sensor voltage signal, and the data acquisition sensor being used to provide the sensor voltage signal. The sensor compensation method includes the following steps: Acquiring a signal amplitude of an output voltage signal of the operational amplifier; The amplification gain corresponding to the operational amplifier is adjusted based on the signal amplitude to compensate for the deviation of the data acquisition sensor, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
2. The sensor compensation method according to claim 1, wherein: The signal acquisition system further includes a feedback loop connected to an input terminal and an output terminal of the operational amplifier. The step of adjusting the amplification gain corresponding to the operational amplifier based on the signal amplitude includes: If the signal amplitude falls within a preset saturation amplitude range, reducing the feedback resistance in the feedback loop to reduce the corresponding amplification gain of the operational amplifier; If the signal amplitude falls within a preset normal amplitude range, the feedback resistance in the feedback loop is increased to increase the corresponding amplification gain of the operational amplifier.
3. The sensor compensation method according to claim 2, wherein: Before the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier, the method further includes: Get the ambient temperature; Obtaining an initial feedback resistance corresponding to the ambient temperature based on a preset mapping relationship, wherein the mapping relationship is a correspondence between temperature values of different gears and feedback resistances; The feedback resistance of the feedback loop is adjusted to the initial feedback resistance, and the step of obtaining the signal amplitude of the output voltage signal of the operational amplifier is continued.
4. The sensor compensation method according to claim 2, wherein: The operational amplifier includes a first input terminal and a second input terminal, the first input terminal is used to input the sensing voltage signal, and the second input terminal is used to input a reference voltage signal. After the step of adjusting the amplification gain of the operational amplifier based on the signal amplitude, the method further includes: Adjusting the reference voltage signal inputted at the second input terminal so that the output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when the data acquisition sensor is in a static state; The preset reference voltage signal is an ideal voltage signal output by the operational amplifier when the signal acquisition system has no input excitation.
5. The sensor compensation method according to claim 4, wherein: Before the step of adjusting the reference voltage signal inputted at the second input terminal, the method further includes: When it is detected that the data acquisition sensor is in a static state, detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal; If they are inconsistent, the step of adjusting the reference voltage signal inputted at the second input terminal is performed.
6. The sensor compensation method according to claim 5, wherein: Before the step of detecting whether the current output voltage signal of the operational amplifier is consistent with a preset reference voltage signal when it is detected that the data acquisition sensor is in a static state, the method further includes: monitoring whether the output voltage signal of the operational amplifier remains unchanged within a preset time length, or monitoring whether a signal deviation of the output voltage signal of the operational amplifier is less than a preset threshold within a preset time length, wherein the signal deviation is a signal variance or a signal standard deviation; If so, determining that the data acquisition sensor is in a static state; If not, it is determined that the data acquisition sensor is not in a static state.
7. The sensor compensation method according to claim 5, wherein: The step of adjusting the reference voltage signal inputted by the second input terminal comprises: When it is determined that the data acquisition sensor is in a static state, obtaining a signal difference between a current output voltage signal of the operational amplifier and a preset reference voltage signal; If the signal difference is less than or equal to a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a first step length; If the signal difference is greater than a preset difference threshold, adjusting the reference voltage signal inputted by the second input terminal with a second step length, wherein the second step length is greater than the first step length; After adjusting the reference voltage signal, return to the step of obtaining the signal difference between the current output voltage signal of the operational amplifier and the preset reference voltage signal until the current output voltage signal of the operational amplifier is consistent with the preset reference voltage signal.
8. A signal acquisition system, characterized in that: The signal acquisition system includes an operational amplifier, a data acquisition sensor and a control unit; The data acquisition sensor is used to provide a sensing voltage signal; The operational amplifier is used to perform operational amplification and output the sensing voltage signal; The control unit is used to obtain the signal amplitude of the output voltage signal of the operational amplifier; and adjust the amplification gain of the operational amplifier based on the signal amplitude, wherein the adjustment of the amplification gain includes reducing the amplification gain when the signal amplitude belongs to a preset saturation amplitude range, and increasing the amplification gain when the signal amplitude belongs to a preset cutoff amplitude range.
9. The signal acquisition system according to claim 8, wherein: The signal acquisition system also includes a digital potentiometer and a feedback loop. The operational amplifier includes a first input terminal, a second input terminal and an output terminal. The first input terminal is used to input the sensing voltage signal, and the second input terminal is used to input the reference voltage signal. The feedback loop is connected between the first input terminal and the output terminal. The control unit adjusts the feedback resistance in the feedback loop through the digital potentiometer.
10. A readable storage medium, characterized in that: The readable storage medium comprises a computer-readable storage medium, wherein a sensor compensation program is stored on the computer-readable storage medium. When the sensor compensation program is executed by a processor, the steps of the sensor compensation method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Operation amplifying circuit
CN102045029A
Semiconductor integrated circuit, sensor reading device, and sensor reading method
CN109075753A
Automatic gain control system based on underwater background intensity
CN110113018A
Radar intermediate frequency signal adaptive regulation and control system and method
CN113534124A
Digital circuit and control method thereof
CN115765658A