A circuit input voltage detection method with high anti-interference ability
By using voltage transformers, filtering processing and inversion compensation algorithms in circuit input voltage detection, the influence of wide-band noise and interference on electrical signals is solved, the accuracy and anti-interference ability of voltage detection are improved, and the accuracy of measurement results and the reliability of the system are ensured.
Patent Information
- Application Number
- CN202411538201.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-04-04
AI Technical Summary
When the existing circuit input voltage detection method faces wide-band noise and interference, it is difficult for the filter to effectively suppress it, resulting in electrical signal data errors and affecting the accurate calculation of current and voltage.
The voltage transformer is used to collect the voltage signal, and the high-frequency noise and interference are removed through filtering processing. The voltage signal is then converted into a digital signal, the current value is calculated using an inversion algorithm, and the current value is corrected by the inversion compensation algorithm, and the voltage value is finally calculated by Ohm's law.
It improves the accuracy and anti-interference ability of voltage detection, reduces measurement errors, adapts to different working environments and conditions, maintains the accuracy of measurement results, and improves the reliability and stability of the system.
Smart Images

Figure CN119757848A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voltage measurement, and in particular to a circuit input voltage detection method with high anti-interference capability. Background Art
[0002] Circuit input voltage detection with high anti-interference ability mainly refers to the technology or method that can effectively suppress or eliminate various external and internal interference factors in the process of circuit input voltage detection to ensure the accuracy and stability of voltage detection results. The core of circuit input voltage detection with high anti-interference ability lies in "high anti-interference ability". This means that in a complex electromagnetic environment, the detection circuit can maintain accurate perception of the input voltage and is not or less affected by interference factors such as external noise, electromagnetic radiation, power supply fluctuations, temperature changes, etc. This ability is crucial to ensure the stable operation of the circuit and improve the reliability and safety of the system. Circuit input voltage detection technology with high anti-interference ability is widely used in various occasions that require precise voltage detection, such as industrial automation control systems, power monitoring systems, communication equipment, medical electronic equipment, etc. In these fields, accurate voltage detection is the basis for ensuring stable operation of the system and achieving high-precision control.
[0003] In order to ensure its high anti-interference performance, the existing detection method for the circuit input voltage usually adds a capacitor filter element to the circuit to filter out high-frequency noise and interference signals. In the detection process, the sampling resistor needs to be connected in series to the input end of the circuit first to ensure that all currents to be measured pass through the resistor, so that the voltage across the resistor will be proportional to the current. A high-precision voltmeter is connected to the two ends of the sampling resistor to measure the voltage value thereon. The voltage value across the resistor is calculated using Ohm's law through the known resistance value of the sampling resistor and the corrected current digital signal, and finally the circuit input voltage value is obtained. When filtering out high-frequency noise and interference signals, the above method, because the frequency of the noise or interference may be distributed in a wide range, and the capacitor filter element is only optimized for a specific frequency range, at this time, it is difficult for the filter to target noise and interference of other frequencies. When the residual noise and interference transmit electrical signals, the transmitted electrical signal data will have a certain error, which will affect the calculation results of current and voltage.
[0004] Therefore, it is necessary to provide a new circuit input voltage detection method with high anti-interference ability to solve the above technical problems. Summary of the invention
[0005] In order to solve the technical problem that the frequency of the above-mentioned noise or interference may be distributed in a wider range, and the capacitor filter element is only optimized for a specific frequency range, at this time, it is difficult for the filter to target noise and interference of other frequencies, and the residual noise and interference will cause a certain error in the transmitted electrical signal data when transmitting electrical signals, which will affect the calculation results of current and voltage. The present invention provides a circuit input voltage detection method with high anti-interference ability.
[0006] The circuit input voltage detection method with high anti-interference capability provided by the present invention comprises the following steps:
[0007] S1: Connect the sampling resistor in series to the input end of the circuit to ensure that all the current to be measured passes through the resistor;
[0008] S2: Use a voltage transformer to connect the two ends of the sampling resistor to collect the voltage signal and record the parameters related to the measurement;
[0009] S3: filtering the collected voltage signal to remove high-frequency noise and interference components to improve the signal-to-noise ratio of the signal, and converting the filtered voltage signal into a digital signal;
[0010] S4: using an inversion algorithm on the processed voltage digital signal to calculate the current value;
[0011] S5: comparing the current value obtained by the inversion compensation algorithm with the original measured value, calculating the compensation amount, applying the compensation amount to the original measured value, and obtaining a corrected current value;
[0012] S6: Using the known resistance value of the sampling resistor and the corrected current digital signal, use Ohm's law to calculate the voltage value across the resistor, and finally obtain the circuit input voltage value.
[0013] Furthermore, the step S3 is performed by converting the filtered voltage signal into a digital signal using an analog-to-digital converter.
[0014] Furthermore, the specific steps of implementing the inversion algorithm in step S4 are:
[0015] S01: First, construct an inversion model. Ohm's law is used here. The specific expression is V=IR, where V is the voltage across the resistor, I is the current through the resistor, and R is the resistance value of the resistor. The inversion model expression is
[0016] S02: applying the inversion model to a series of test circuits with known current values, and comparing the difference between the current value output by the model and the actual current value. When the difference is large, the model needs to be calibrated or corrected;
[0017] S03: Apply the verified and calibrated inversion model to the circuit under test to measure the current value.
[0018] Furthermore, in step S5, the specific process of obtaining the corrected current value is as follows:
[0019] A1: The original current measurement value is recorded as Ir, and the current value obtained by the inversion compensation algorithm is recorded as Ic;
[0020] A2: Compare Ic with Ir to evaluate the difference between Ic and Ir. The comparison result is an important basis for verifying the effectiveness of the inversion compensation algorithm.
[0021] A3: Calculate the compensation amount, where the calculation formula is: compensation amount ΔI = Ic-Ir, and the calculated compensation amount ΔI is applied to the original measured value Ir to obtain the corrected current value Iz;
[0022] A4: Verify the corrected current value Iz.
[0023] Furthermore, the parameters related to the measurement recorded in step S2 include external ambient temperature parameters and external ambient humidity parameters.
[0024] Furthermore, in step S3, the collected voltage signal is filtered by using a filter to remove high-frequency noise and interference components.
[0025] Furthermore, in step S5, after the corrected current value is obtained, the result and compensation amount of each calibration are recorded by a recording device so as to provide reference and analysis for the subsequent current value and the like.
[0026] Furthermore, a capacitor filter element is connected in parallel at both ends of the sampling resistor to filter out high-frequency noise and interference signals.
[0027] Compared with the related art, the circuit input voltage detection method with high anti-interference ability provided by the present invention has the following beneficial effects:
[0028] 1. Connect a sampling resistor in series to the input end of the circuit, then use a voltage transformer to connect the two ends of the sampling resistor, collect voltage signals, filter the collected voltage signals, convert the filtered voltage signals into digital signals, use an inversion algorithm to calculate the current value, compare the current value obtained by the inversion compensation algorithm with the original measured value, calculate the compensation amount, apply the compensation amount to the original measured value, and obtain the corrected current value. The above filtering process preliminarily reduces noise and interference, and then performs an inversion algorithm on the current signal with preliminarily reduced noise and interference. The inversion algorithm processes the voltage digital signal to calculate the current value, greatly reduces the measurement error, and improves the measurement accuracy. The current value obtained by the inversion compensation algorithm is compared with the original measured value to calculate the compensation amount. The compensation amount represents the deviation between the original measured value and the true value. Applying it to the original measured value can further correct the error and further improve the measurement accuracy.
[0029] 2. Since the compensation processing is performed on the data measured in real time, it can adapt to different working environments and conditions. For areas with strong electromagnetic radiation or environments with large temperature changes, the accuracy of the measurement results can be maintained by adjusting the compensation amount. Through compensation processing, the measurement fluctuations and uncertainties caused by changes in the external environment can be reduced, so that stable measurement performance can be maintained in complex working environments, improving overall reliability and stability. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 A flowchart of a circuit input voltage detection method with high anti-interference capability provided by the present invention;
[0031] Figure 2 Provide a flowchart of the implementation of the inversion algorithm for the present invention;
[0032] Figure 3 The present invention is a flowchart of obtaining a corrected current value. DETAILED DESCRIPTION
[0033] The present invention will be further described below in conjunction with the accompanying drawings and implementation modes.
[0034] Please refer to Figure 1 , Figure 2 as well as Figure 3 ,in, Figure 1 A flowchart of a circuit input voltage detection method with high anti-interference capability provided by the present invention; Figure 2 Provide a flowchart of the implementation of the inversion algorithm for the present invention; Figure 3 The present invention is a flowchart of obtaining a corrected current value.
[0035] In the specific implementation process, Figure 1-Figure 3 As shown, a circuit input voltage detection method with high anti-interference capability includes the following steps:
[0036] S1: Connect the sampling resistor in series to the input end of the circuit to ensure that all the current to be measured passes through the resistor so that the current can be indirectly measured by measuring the voltage across the sampling resistor.
[0037] S2: Use a voltage transformer to connect the two ends of the sampling resistor to collect the voltage signal and record the parameters related to the measurement, including the external ambient temperature parameter and the external ambient humidity parameter. Through the external ambient temperature parameter and the external ambient humidity parameter, the influence of temperature on the voltage signal collection can be analyzed, so as to make necessary corrections during data processing to ensure the accuracy and reliability of the data;
[0038] S3: filtering the collected voltage signal to remove high-frequency noise and interference components to improve the signal-to-noise ratio of the signal, and converting the filtered voltage signal into a digital signal. The conversion of the filtered voltage signal into a digital signal is performed using an analog-to-digital converter. Converting the analog signal into a digital signal facilitates subsequent digital processing and analysis, thereby improving the degree of automation and accuracy of the measurement.
[0039] S4: using an inversion algorithm on the processed voltage digital signal to calculate the current value;
[0040] S5: comparing the current value obtained by the inversion compensation algorithm with the original measurement value, calculating the compensation amount, applying the compensation amount to the original measurement value, and obtaining the corrected current value. Specifically, through comparison and compensation, the measurement error can be further reduced, the accuracy of the measurement result can be improved, and the deviation in the measurement process can be automatically identified and corrected, making the measurement result more reliable;
[0041] S6: The voltage value across the resistor is calculated using Ohm's law through the known resistance value of the sampling resistor and the corrected current digital signal, and the circuit input voltage value is finally obtained. Specifically, the basic physical law of Ohm's law is directly used to obtain the circuit input voltage value through simple calculation. The above steps have accurately measured and corrected the current value, so the final circuit input voltage value also has high accuracy and reliability. At the same time, it also avoids the safety risks that may be caused by directly measuring high voltage.
[0042] It should be noted that: by connecting the sampling resistor in series at the input end of the circuit, and then using a voltage transformer to connect the two ends of the sampling resistor, the voltage signal is collected, the collected voltage signal is filtered, and the filtered voltage signal is converted into a digital signal. The processed voltage digital signal uses an inversion algorithm to calculate the current value, and the current value obtained by the inversion compensation algorithm is compared with the original measurement value, and the compensation amount is calculated. The compensation amount is applied to the original measurement value to obtain the corrected current value, wherein the above filtering process preliminarily reduces noise and interference, and then the inversion algorithm is performed on the current signal with preliminarily reduced noise and interference. The inversion algorithm processes the voltage digital signal and can calculate the current value, which greatly reduces the measurement error and improves the measurement accuracy. The current value obtained by the inversion compensation algorithm is compared with the original measurement value to calculate the compensation amount. The compensation amount represents the deviation between the original measurement value and the true value. Applying it to the original measurement value can further correct the error and further improve the measurement accuracy.
[0043] Since the compensation processing is performed on the real-time measured data, it can adapt to different working environments and conditions. For areas with strong electromagnetic radiation or environments with large temperature changes, the accuracy of the measurement results can be maintained by adjusting the compensation amount. Through compensation processing, the measurement fluctuations and uncertainties caused by changes in the external environment can be reduced, so that stable measurement performance can be maintained in complex working environments, and the overall reliability and stability can be improved;
[0044] The specific steps of implementing the inversion algorithm in step S4 are:
[0045] S01: First, construct an inversion model. Ohm's law is used here. The specific expression is V=IR, where V is the voltage across the resistor, I is the current through the resistor, and R is the resistance value of the resistor. The inversion model expression is
[0046] S02: applying the inversion model to a series of test circuits with known current values, and comparing the difference between the current value output by the model and the actual current value. When the difference is large, the model needs to be calibrated or corrected;
[0047] S03: applying the verified and calibrated inversion model to the circuit to be tested to measure the current value;
[0048] In specific implementation:
[0049] First: In the tested circuit, the resistance value is 1Ω, and three different current values are set: I1, I2 and I3, where I1 = 1A, I2 = 2A, I3 = 3A. The voltage values measured by the voltage transformer are V1 = 1V, V2 = 2V, and V3 = 3V. Substituting these inputs into the inversion model expression, we can get The current value output by the inversion model is completely consistent with the actual current value, which verifies the accuracy of the inversion model;
[0050] Second: In the tested circuit, the resistance of the resistor is 1Ω, the actual current value is I1=2A, and the voltage value measured by the voltage transformer is V1=1.9V. When it is brought into the inversion model, the output is Since the actual current value I1 = 2A, and the measured value of I1 (model) is 1.9A, the error is 0.1A. The error is corrected, and the actual resistance of the sampling resistor is measured by a high-precision ohmmeter, which is R2 = 0.93Ω. The actual resistance value of the replaced sampling resistor is brought into the inversion model to obtain The error between them is 0.06A, which is smaller than that before correction, indicating that the accuracy of the inversion model can be improved by calibrating the resistance value of the sampling resistor;
[0051] In step S5, the specific process of obtaining the corrected current value is as follows:
[0052] A1: The original current measurement value is recorded as Ir, and the current value obtained by the inversion compensation algorithm is recorded as Ic;
[0053] A2: Compare Ic with Ir to evaluate the difference between Ic and Ir. The comparison result is an important basis for verifying the effectiveness of the inversion compensation algorithm.
[0054] A3: Calculate the compensation amount, where the calculation formula is: compensation amount ΔI = Ic-Ir, and the calculated compensation amount ΔI is applied to the original measured value Ir to obtain the corrected current value Iz;
[0055] A4: Verify the corrected current value Iz;
[0056] In specific implementation:
[0057] The original current measurement value is recorded as Ir = 2.05A, and the current value obtained by the inverse compensation algorithm is Ic = 2A. Comparing Ic with Ir, we find that there is a difference between the two, that is, Ic-Ir = 2A-2.05A = -0.05A. Then the compensation amount ΔI = Ic-Ir = 2A-2.05A = -0.05A is calculated, and the calculated compensation amount is applied to the original measurement value Ir to obtain the corrected current value Iz = Ir = + ΔI = 2.05A + (-0.05A) = 2.00A. The actual current value is 2.00A, which is completely consistent with the corrected current value Iz = 2.00A. This shows that the inverse compensation algorithm effectively corrects the error in the original measurement value and improves the accuracy of the measurement result.
[0058] In step S3, the collected voltage signal is filtered by a filter to remove high-frequency noise and interference components. Specifically, in the circuit system, high-frequency noise and interference may come from various factors such as power supply fluctuations and electromagnetic radiation, which may have an adverse effect on the stable operation of the system. Through filtering, these interference factors can be effectively suppressed, and the anti-interference ability of the system can be improved, thereby enhancing the stability and reliability of the system.
[0059] In step S5, after the corrected current value is obtained, the result and compensation amount of each calibration are recorded by a recording device so as to provide reference and analysis for the subsequent current value, etc.; specifically, each calibration will obtain a set of specific compensation amounts, which are the optimization results for the current measurement environment and circuit state. These results are recorded and can be directly applied or referenced in subsequent measurements, thereby quickly obtaining more accurate measurement results.
[0060] A capacitor filter element is connected in parallel at both ends of the sampling resistor to filter out high-frequency noise and interference signals.
[0061] The circuits and controls involved in the present invention are all prior art and will not be described in detail here.
[0062] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic features of the present invention. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-restrictive. The scope of the present invention is defined by the attached claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention, and any figure mark in the claims should not be regarded as limiting the claims involved.
[0063] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.
Claims
1. A circuit input voltage detection method with high anti-interference capability, characterized in that: The following steps are involved: S1: Connect the sampling resistor in series to the input end of the circuit; S2: Use a voltage transformer to connect the two ends of the sampling resistor to collect the voltage signal and record the parameters related to the measurement; S3: filtering the collected voltage signal and converting the filtered voltage signal into a digital signal; S4: using an inversion algorithm on the processed voltage digital signal to calculate the current value; S5: comparing the current value obtained by the inversion compensation algorithm with the original measured value, calculating the compensation amount, applying the compensation amount to the original measured value, and obtaining a corrected current value; S6: Using the known resistance value of the sampling resistor and the corrected current digital signal, use Ohm's law to calculate the voltage value across the resistor, and finally obtain the circuit input voltage value; The specific steps of implementing the inversion algorithm in step S4 are: S01: construct inversion model; S02: applying the inversion model to a series of test circuits with known current values, and comparing the difference between the current value output by the model and the actual current value. When the difference is large, the model needs to be calibrated or corrected; S03: Apply the verified and calibrated inversion model to the circuit under test to measure the current value.
2. The circuit input voltage detection method with high anti-interference capability according to claim 1, characterized in that: The step S3 is performed by converting the filtered voltage signal into a digital signal using an analog-to-digital converter.
3. The circuit input voltage detection method with high anti-interference capability according to claim 2, characterized in that: In step S5, the specific process of obtaining the corrected current value is as follows: A1: Among them, The original current measurement value is recorded as Ir, and the current value obtained by the inversion compensation algorithm is recorded as Ic; A2: Compare Ic with Ir to evaluate the difference between Ic and Ir; A3: Calculate the compensation amount to obtain the corrected current value Iz; A4: Verify the corrected current value Iz.
4. The circuit input voltage detection method with high anti-interference capability according to claim 3 is characterized in that: The parameters related to the measurement recorded in step S2 include external ambient temperature parameters and external ambient humidity parameters.
5. The circuit input voltage detection method with high anti-interference capability according to claim 4, characterized in that: In step S3, the collected voltage signal is filtered by using a filter to remove high-frequency noise and interference components.
6. The circuit input voltage detection method with high anti-interference capability according to claim 5, characterized in that: In step S5, after the corrected current value is obtained, the result and compensation amount of each calibration are recorded by a recording device so as to provide reference and analysis for the subsequent current value and the like.
7. The circuit input voltage detection method with high anti-interference capability according to claim 6, characterized in that: A capacitor filter element is connected in parallel at both ends of the sampling resistor to filter out high-frequency noise and interference signals.
8. The circuit input voltage detection method with high anti-interference capability according to claim 7, characterized in that: The inversion model is constructed as follows: Using Ohm's law, the specific expression is V = IR, where V is the voltage across the resistor, I is the current through the resistor, and R is the resistance value of the resistor. The inversion model expression is