Dynamic large-range voltage real-time measurement system and method
Through the dynamic large-range voltage real-time measurement system, the combination of channel switching self-adjustment circuit and AD sampling circuit is used to solve the problem that traditional systems cannot adapt to large-range voltage changes, and realize high-precision and high-real-time voltage sampling, which is suitable for A wide range of voltage occasions.
Patent Information
- Application Number
- CN202411246787.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-11-29
AI Technical Summary
Traditional voltage real-time monitoring systems cannot adapt to dynamic large-scale voltage changes, especially in high-voltage occasions, and cannot effectively monitor when the voltage change rate is fast.
A dynamic large-range voltage real-time measurement system was designed, using a channel switching self-adjustment circuit and an AD sampling circuit. The sampling ratio is automatically switched through the preset comparison voltage value, and voltage detection is carried out in combination with a microprocessor to achieve high voltage and low voltage. Adaptive sampling of voltage.
It realizes voltage acquisition from millivolts to kV levels, avoids the risk of device damage, improves sampling accuracy and real-time performance, and is suitable for voltage occasions with high DV/DT variations. The circuit structure is simple and reliable.
Smart Images

Figure CN119044592A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of voltage real-time detection systems, and in particular to a dynamic large-range voltage real-time measurement system and method. Background Art
[0002] In the industrial production process, real-time voltage monitoring is required to ensure the normal operation of equipment and the stability of the production process. The complexity and scale of modern power systems are increasing, and real-time monitoring of voltage in the system is required to ensure power supply quality and system stability. Traditional methods are usually designed for a specific voltage range and cannot cover a large dynamic range of voltage changes. They cannot meet the real-time monitoring needs of a large range of voltage changes. In addition, in the same system, the voltage changes range from millivolts to kilovolts, and the voltage change rate is fast. Traditional methods cannot follow the changes in input voltage for adaptive high-precision voltage sampling. Summary of the invention
[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. To this end, one object of the present invention is to provide a dynamic large-range voltage real-time measurement system and method, which can collect a large input voltage range and is suitable for wide-range high voltage occasions.
[0004] In a first aspect, the present invention provides a dynamic large-range voltage real-time measurement system, comprising:
[0005] The channel switching self-adjusting circuit is connected to the voltage to be detected, and compares the voltage to be detected with a preset comparison voltage value to automatically switch the corresponding sampling ratio circuit;
[0006] An AD sampling circuit is connected to a sampling ratio circuit corresponding to the channel switching self-adjusting circuit, performs sampling according to a corresponding preset sampling ratio, and implements AD conversion on a voltage value output by the channel switching self-adjusting circuit;
[0007] The microprocessor circuit is connected to the AD sampling circuit, confirms the current sampling ratio of the voltage to be detected, and obtains the voltage value to be detected by calculating the voltage value output by the AD sampling circuit.
[0008] Preferably, the channel switching self-adjusting circuit comprises: an input H-bridge circuit, a reference circuit and an H-bridge control circuit.
[0009] The reference circuit provides a comparison voltage value, compares the voltage to be detected with the comparison voltage value, and outputs a high level or a low level to the H-bridge control circuit;
[0010] The H-bridge control circuit summarizes the high level or low level returned by the reference circuit, and outputs the high level or low level to the input H-bridge circuit through an OR operation;
[0011] The input H-bridge circuit is connected to the voltage to be detected, and the corresponding sampling ratio circuit is automatically switched according to the high level or low level provided by the H-bridge control circuit, and is connected to the sampling port corresponding to the AD sampling circuit.
[0012] Preferably, the input H-bridge circuit includes a resistor R1, a relay K1, a resistor R7, a chip Q1, a resistor R2, a relay K2 and a resistor R8, the resistor R1 and the resistor R7 are connected in series to form a first sampling circuit, the resistor R2 and the resistor R8 are connected in series to form a second sampling circuit, the first sampling circuit and the second sampling circuit are connected in parallel to form a total sampling circuit, one end of the total sampling circuit is connected to the voltage to be detected, and the other end of the total sampling circuit is grounded, the switch end of the relay K1 is arranged between the resistor R1 and the resistor R7, and the relay The switch end of K2 is arranged between the resistor R2 and the resistor R8, the switch end of the relay K1 is provided with a first sampling point at one end away from the voltage to be detected, the switch end of the relay K2 is provided with a second sampling point at one end away from the voltage to be detected, the port 1 and the port 3 of the chip Q1 are externally connected to the high level or low level provided by the H-bridge control circuit, the port 4 and the port 6 of the chip Q1 are externally connected to a 12V voltage, the port 2 of the chip Q1 is grounded through the coil of the relay K1, and the port 5 of the chip Q1 is grounded through the coil of the relay K2.
[0013] Preferably, the reference circuit includes a resistor R3, a resistor R5, a resistor R9, a resistor R10, a comparator U1A and a comparator U1B, the resistor R9 and the resistor R10 are connected in series to form a first reference value circuit, one end of the first reference value circuit is connected to a 5V voltage, and the other end of the first reference value circuit is grounded, a first reference value point is set between the resistor R9 and the resistor R10, and a port 6 of the comparator U1B is connected to the first reference value point, the resistor R3 and the resistor R5 are connected in series to form a second reference value circuit, one end of the second reference value circuit is connected to a 5V voltage, and the other end of the second reference value circuit is grounded, a second reference value point is set between the resistor R3 and the resistor R5, a port 2 of the comparator U1A is connected to the second reference value point, a port 3 of the comparator U1A is connected to the second sampling point, a port 5 of the comparator U1B is connected to the first sampling point, and a port 1 of the comparator U1A and a port 7 of the comparator U1B are respectively connected to the H-bridge control circuit.
[0014] Preferably, the H-bridge control circuit includes an OR gate U2, a comparator U3A, a resistor R4 and a resistor R6, port 1 of the OR gate U2 is connected to port 1 of the comparator U1A, port 2 of the OR gate U2 is connected to port 7 of the comparator U1B, port 4 of the OR gate U2 is connected to port 3 of the comparator U3A, the resistor R4 and the resistor R6 are connected in series to form a third reference value circuit, one end of the third reference value circuit is connected to a 5V voltage, and the other end of the third reference value circuit is grounded, and port 1 of the comparator U3A is respectively connected to port 1 and port 3 of the chip Q1 and the corresponding ports of the AD sampling circuit.
[0015] In a second aspect, the present invention proposes a dynamic large-range voltage real-time measurement method, comprising any one of the above-mentioned dynamic large-range voltage real-time measurement systems, and the method steps are as follows:
[0016] S1: The whole system is powered on, the voltage to be detected is connected to the channel switching self-adjusting circuit, and S2 is executed;
[0017] S2: The switch ends of relay K1 and relay K2 are both disconnected, comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S3 is executed;
[0018] S3: If the voltage value of the first sampling point is less than the comparison voltage value preset by the comparator U1B, execute step S4; otherwise, execute step S5;
[0019] S4: The AD sampling circuit samples the voltage value of the first sampling point and the low level output of the comparator U3A. The microprocessor circuit obtains the voltage value to be detected through calculation and determines whether the voltage to be detected has been detected. If so, execute S9;
[0020] S5: comparator U1A outputs a low level and comparator U1B outputs a high level to OR gate U2, OR gate U2 outputs a high level to comparator U3A, comparator U3A outputs a high level to chip Q1, chip Q1 turns on the coil of relay K2, turns off the coil of relay K1, closes the switch end of relay K2, opens the switch of relay K1, and the voltage to be measured is connected to comparator U1A through the second sampling circuit, and step S6 is executed;
[0021] S6: The AD sampling circuit samples the voltage value of the second sampling point and the high level output of the comparator U3A. The microprocessor circuit obtains the voltage value to be detected through calculation and determines whether the voltage to be detected has been detected. If so, execute S9;
[0022] S7: If the voltage value of the second sampling point is less than the comparison voltage value preset by the comparator U1A, execute step S8, otherwise execute step S6;
[0023] S8: comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S4 is executed;
[0024] S9: The detection of the voltage to be detected is completed, and the voltage to be detected is detected in real time.
[0025] Preferably, the voltage value of the first sampling point is:
[0026]
[0027] The voltage value of the second sampling point:
[0028]
[0029] Preferably, the comparator U1A sets the reference value comparison voltage as:
[0030]
[0031] Comparator U1B sets the reference value comparison voltage as:
[0032]
[0033] Among them, V ref_A Multiply the sampling ratio of the second sampling point by V ref_B Multiply by the sampling ratio of the first sampling point.
[0034] The beneficial effects of the present invention are:
[0035] (1) The input voltage range that can be collected is large, ranging from mV level to KV level voltage, which is suitable for a wide range of high voltage occasions;
[0036] (2) The sampling voltage has high accuracy. The sampling channel can be automatically switched according to the input voltage variation range. That is, high voltage is sampled with a high sampling ratio, and low voltage is sampled with a low sampling ratio. This avoids the risk of device damage when a single sampling ratio is used to sample high voltage. It also solves the problem of inaccurate low voltage sampling caused by a single sampling ratio.
[0037] (3) It can collect voltages with high dv / dt changes, and the sampling is real-time. The voltage sampling channel self-adjustment in the present invention is completely switched by the hardware circuit, and the switching speed is nanosecond level. The switching speed is fast and can be used for sampling in voltages with high dv / dt changes, and the sampling is real-time.
[0038] (4) The circuit structure is simple, the devices are conventional, the logic is clear, the reliability is high, and the practicability is strong. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In the attached picture:
[0040] Figure 1 A signal flow chart of a dynamic large-range voltage real-time measurement system proposed by the present invention;
[0041] Figure 2 This is a schematic diagram of the sampling channel switching self-adjusting circuit proposed by the present invention;
[0042] Figure 3 The AD sampling circuit schematic diagram proposed by the present invention;
[0043] Figure 4 The schematic diagram of the microprocessor circuit proposed by the present invention;
[0044] Figure 5 A logic block diagram of a dynamic large-range voltage real-time measurement method proposed by the present invention;
[0045] Figure 6 This is a flow chart of the true value state changes in each step of the circuit with sampling ratios of 1:10 and 1:100 proposed by the present invention.
[0046] In the figure: 1-channel switching self-adjusting circuit, 2-AD sampling circuit, 3-microprocessor circuit;
[0047] 11-input H-bridge circuit, 12-reference circuit, 13-H-bridge control circuit. DETAILED DESCRIPTION
[0048] Reference Figure 1 , a dynamic large-range voltage real-time measurement system, comprising:
[0049] The channel switching self-adjusting circuit 1 is connected to the voltage to be detected, and compares the voltage to be detected with a preset comparison voltage value to automatically switch the corresponding sampling ratio circuit;
[0050] The AD sampling circuit 2 is connected to the sampling ratio circuit corresponding to the channel switching self-adjusting circuit 1, performs sampling according to the corresponding preset sampling ratio, and implements AD conversion on the voltage value output by the channel switching self-adjusting circuit 1;
[0051] The microprocessor circuit 3 is connected to the AD sampling circuit 2, confirms the current sampling ratio of the voltage to be detected, and calculates the voltage value output by the AD sampling circuit 2 to obtain the voltage value to be detected.
[0052] Reference Figure 2 The channel switching self-adjusting circuit 1 includes: an input H-bridge circuit 11, a reference circuit 12 and an H-bridge control circuit 13.
[0053] The reference circuit 12 provides a comparison voltage value, compares the voltage to be detected with the comparison voltage value, and outputs a high level or a low level to the H-bridge control circuit 13;
[0054] The H-bridge control circuit 13 collects the high level or low level returned by the reference circuit 12, and outputs the high level or low level to the input H-bridge circuit 11 through an OR operation;
[0055] The input H-bridge circuit 11 is connected to the voltage to be detected, automatically switches the corresponding sampling ratio circuit according to the high level or low level provided by the H-bridge control circuit 13, and is connected to the sampling port corresponding to the AD sampling circuit 2.
[0056] The input H-bridge circuit 11 includes a resistor R1, a relay K1, a resistor R7, a chip Q1, a resistor R2, a relay K2 and a resistor R8. The resistor R1 and the resistor R7 are connected in series to form a first sampling circuit, the resistor R2 and the resistor R8 are connected in series to form a second sampling circuit, the first sampling circuit and the second sampling circuit are connected in parallel to form a total sampling circuit, one end of the total sampling circuit is connected to the voltage to be detected, and the other end of the total sampling circuit is grounded, the switch end of the relay K1 is set between the resistor R1 and the resistor R7, the switch end of the relay K2 is set between the resistor R2 and the resistor R8, the switch end of the relay K1 is far away from the voltage to be detected and a first sampling point is set, the switch end of the relay K2 is far away from the voltage to be detected and a second sampling point is set, the port 1 and the port 3 of the chip Q1 are externally connected to the high level or low level provided by the H-bridge control circuit 13, the port 4 and the port 6 of the chip Q1 are externally connected to a 12V voltage, the port 2 of the chip Q1 is grounded through the coil of the relay K1, and the port 5 of the chip Q1 is grounded through the coil of the relay K2.
[0057] The reference circuit 12 includes a resistor R3, a resistor R5, a resistor R9, a resistor R10, a comparator U1A and a comparator U1B. The resistors R9 and R10 are connected in series to form a first reference value circuit. One end of the first reference value circuit is connected to a 5V voltage, and the other end of the first reference value circuit is grounded. A first reference value point is set between the resistors R9 and R10. Port 6 of the comparator U1B is connected to the first reference value point. The resistors R3 and R5 are connected in series to form a second reference value circuit. One end of the second reference value circuit is connected to a 5V voltage, and the other end of the second reference value circuit is grounded. A second reference value point is set between the resistors R3 and R5. Port 2 of the comparator U1A is connected to the second reference value point. Port 3 of the comparator U1A is connected to the second sampling point. Port 5 of the comparator U1B is connected to the first sampling point. Port 1 of the comparator U1A and port 7 of the comparator U1B are respectively connected to the H-bridge control circuit 13.
[0058] The H-bridge control circuit 13 includes an OR gate U2, a comparator U3A, a resistor R4 and a resistor R6. Port 1 of the OR gate U2 is connected to port 1 of the comparator U1A, port 2 of the OR gate U2 is connected to port 7 of the comparator U1B, port 4 of the OR gate U2 is connected to port 3 of the comparator U3A, and resistors R4 and R6 are connected in series to form a third reference value circuit. One end of the third reference value circuit is connected to a 5V voltage, and the other end of the third reference value circuit is grounded. Port 1 of the comparator U3A is respectively connected to port 1 and port 3 of the chip Q1 and the corresponding ports of the AD sampling circuit 2.
[0059] A dynamic large-range voltage real-time measurement method, the method steps are as follows:
[0060] S1: The whole system is powered on, the voltage to be detected is connected to the channel switching self-adjusting circuit 1, and S2 is executed;
[0061] S2: The switch ends of relay K1 and relay K2 are both disconnected, comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S3 is executed;
[0062] S3: If the voltage value of the first sampling point is less than the comparison voltage value preset by the comparator U1B, execute step S4; otherwise, execute step S5;
[0063] S4: AD sampling circuit 2 samples the voltage value of the first sampling point and the low level output of comparator U3A, and microprocessor circuit 3 obtains the voltage value to be detected through calculation, and determines whether the voltage to be detected is detected. If so, execute S9;
[0064] S5: comparator U1A outputs a low level and comparator U1B outputs a high level to OR gate U2, OR gate U2 outputs a high level to comparator U3A, comparator U3A outputs a high level to chip Q1, chip Q1 turns on the coil of relay K2, turns off the coil of relay K1, closes the switch end of relay K2, opens the switch of relay K1, and the voltage to be measured is connected to comparator U1A through the second sampling circuit, and step S6 is executed;
[0065] S6: AD sampling circuit 2 samples the voltage value of the second sampling point and the high level output of comparator U3A, and microprocessor circuit 3 obtains the voltage value to be detected through calculation, and determines whether the voltage to be detected is detected. If so, execute S9;
[0066] S7: If the voltage value of the second sampling point is less than the comparison voltage value preset by the comparator U1A, execute step S8, otherwise execute step S6;
[0067] S8: comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S4 is executed;
[0068] S9: The detection of the voltage to be detected is completed, and the voltage to be detected is detected in real time.
[0069] Voltage value of the first sampling point:
[0070]
[0071] The voltage value of the second sampling point:
[0072]
[0073] Comparator U1A sets the reference value comparison voltage as:
[0074]
[0075] Comparator U1B sets the reference value comparison voltage as:
[0076]
[0077] Among them, V ref_A Multiply the sampling ratio of the second sampling point by V ref_B Multiply by the sampling ratio of the first sampling point.
[0078] In order to more clearly illustrate the scheme and effect of this implementation, examples are given in conjunction with the accompanying drawings:
[0079] Vin is the input voltage to be sampled.
[0080] Chip Q1 is a component composed of a P-MOS and an N-MOS, which respectively control the contact and conduction of relay K1 and relay K2. The P-MOS and N-MOS gates of chip Q1 are controlled by the output signal CTL_Q1 of comparator U3A. When CTL_Q1 outputs a high level (+12V), the N-MOS in chip Q1 is turned on. When CTL_Q1 outputs a low level (-12V), the P-MOS in chip Q1 is turned on.
[0081] In this embodiment, the resistor R1, the relay K1, and the resistor R7 form a sampling channel with a sampling ratio of 10:1, and the sampling voltage is Samp_1 / 10.
[0082]
[0083] In this embodiment, the resistor R2, the relay K2, and the resistor R8 form a sampling channel with a sampling ratio of 100:1, and the sampling voltage is Samp_1 / 100.
[0084]
[0085] The sampling voltages Samp_1 / 10 and Sam_1 / 100 are respectively connected to the two analog sampling input interfaces of the AD conversion chip.
[0086] The resistor R1 , the relay K1 , the resistor R7 , the chip Q1 , the resistor R2 , the relay K2 , and the resistor R8 together form an H-bridge circuit 11 .
[0087] Comparator U1A and comparator U1B are used for switching voltage settings that require switching input sampling ratios.
[0088] Comparator U1A sets the reference voltage:
[0089]
[0090] The corresponding switching voltage is 0.4*100=40V;
[0091] Comparator U1B sets the reference voltage:
[0092]
[0093] The corresponding switching voltage is 4*10=40V;
[0094] That is, when the input voltage is greater than the set switching voltage (40V), the input voltage is considered a high voltage and is applicable to the 100:1 sampling channel. Similarly, when the input voltage is less than the set switching voltage, the input voltage is considered a low voltage and is applicable to the 10:1 sampling channel. The preset reference voltage is 40V, which can also be adjusted according to the actual input voltage range.
[0095] Comparator U1A and comparator U1B form an input H-bridge switching voltage reference circuit.
[0096] U2 is an OR gate, and the output signal is U2_Y. The high level of U2_Y is +5V, and the low level is 0V.
[0097] U3A is a comparator that receives the output signal U2_Y of the OR gate U2, and the MOS control signal CTL_Q1 level flips. The negative phase level of U3A is set to +2.5V. When U2_Y is at a high level, the output of comparator U3A, CTL_Q1, is at a high level (+12V), then the N-MOS in chip Q1 conducts. When U2_Y is at a low level, the output of comparator U3A, CTL_Q1, is at a low level (-12V), then the P-MOS in chip Q1 conducts.
[0098] The truth tables of comparator U1A, comparator U1B, chip U2, comparator U3A, and chip Q1 are as follows:
[0099]
[0100] Refer to Figure 6 :
[0101] A1: When the low-voltage power supply is powered on and the input voltage Vin = 0, the circuit is in a static state:
[0102] For the reference comparator U1A, the output signals Out_A and Out_B of comparator U1B are both low. After passing through the logic OR gate U2, the output signal U2_Y is low. The comparator U3A outputs -12V and controls the P-MOS transistor in chip Q1 to conduct and the N-MOS transistor to cut off. K1 is pulled in and K2 is disconnected. The sampling ratio is 10:1. At this time, the sampled voltages Smp_1 / 10 and Smp_1 / 100 of the AD sampling input signal are both 0, and the output of comparator U3A, CTL_Q1, is at a low level.
[0103] A2: During the dynamic measurement process of the circuit, as the voltage rises and 0 < Vin < the switching voltage, the sampling voltage ratio is 10:1:
[0104] Since the input voltage has not reached the sampling ratio switching voltage of the preset value, the reference comparator U1A, comparator U1B, H-bridge control circuit, and H-bridge circuit state remain unchanged. The sampling ratio is 10:1 to adapt to low-voltage sampling. At this time, the AD sampling input voltage:
[0105]
[0106] Smp_1 / 100 is 0, the comparator U3A output CTL_Q1 is low level, the sampling voltage is connected to the AD conversion chip for sampling, and the input voltage sampling result is transmitted to the microprocessor through the AD conversion chip.
[0107] A3: Circuit dynamic measurement process, the input voltage rises from low voltage, when Vin> switching voltage, the circuit dynamically switches, and the sampling voltage ratio is 100:1;
[0108] When the input voltage exceeds the preset value, the sampling ratio switches the reference voltage. The output Out_A of the input voltage reference comparator U1A remains unchanged, the output Out_B of the comparator U1B is high, the output of U2 is high, and the output of comparator U3A is +12V. The P-MOS tube of the control chip Q1 is cut off, the N-MOS tube is turned on, K1 is disconnected, and K2 is turned on. The sampling ratio is switched to 100:1 (as the states of relays K1 and K2 are switched, the output Out_A of the voltage reference comparator U1A is high, the output Out_B of U1B is low, and the output of U2 is still high) to adapt to high voltage sampling. At this time, the AD sampling input voltage Smp_1 / 10 is 0.
[0109]
[0110] The sampling voltage is connected to the AD conversion chip for sampling, and the input voltage sampling result is transmitted to the microprocessor through the AD conversion chip.
[0111] A4: Circuit dynamic measurement process, the input voltage drops from high voltage, when Vin < switching voltage, the state switches:
[0112] The output signals Out_A and Out_B of the reference comparator U1A and comparator U1B are both low. After passing through the logic OR gate U2, the output signal U2_Y is low. The comparator U3A outputs -12V, and controls the chip Q1 P-MOS tube to be turned on, the N-MOS tube to be turned off, K1 to be energized, and K2 to be disconnected. The voltage division ratio is 10:1. At this time, the AD sampling input voltage Smp_1 / 10 is one tenth of the Vin voltage, and Smp_1 / 100 is 0. The sampling voltage is connected to the AD conversion chip for sampling, and the input voltage sampling result is transmitted to the microprocessor through the AD conversion chip.
[0113] In summary, the present invention:
[0114] (1) Wide range of input voltage that can be collected:
[0115] The voltage can be sampled from mV level to KV level, which is suitable for a wide range of high voltage occasions.
[0116] (2) The sampling voltage has high accuracy.
[0117] The sampling channel can be automatically switched according to the input voltage variation range, that is, high voltage is sampled with a high sampling ratio, and low voltage is sampled with a low sampling ratio. This avoids the risk of device damage when a single sampling ratio is used to sample high voltage, and also solves the problem of inaccurate low voltage sampling caused by a single sampling ratio.
[0118] (3) It can collect voltages with high dv / dt changes, and the sampling is highly real-time.
[0119] If the processor detects the current input voltage range and controls the switching of the sampling channel, the switching speed is at least in milliseconds, and it is impossible to collect highly changing voltages and ensure the real-time sampling. In the present invention, the voltage sampling channel is self-adjusted completely by the hardware circuit, and the switching speed is in nanoseconds. The switching speed is fast and can be used for sampling in situations where the voltage has high dv / dt changes, and the sampling real-time performance is high.
[0120] (4) The circuit structure is simple, the devices are conventional, the logic is clear, the reliability is high, and the practicability is strong.
Claims
1. A dynamic large-range voltage real-time measurement system, characterized in that: include: A channel switching self-adjusting circuit (1) is connected to a voltage to be detected, and compares the voltage to be detected with a preset comparison voltage value to automatically switch a corresponding sampling ratio circuit; An AD sampling circuit (2) is connected to a sampling ratio circuit corresponding to the channel switching self-adjusting circuit (1), performs sampling according to a corresponding preset sampling ratio, and implements AD conversion on a voltage value output by the channel switching self-adjusting circuit (1); The microprocessor circuit (3) is connected to the AD sampling circuit (2), confirms the current sampling ratio of the voltage to be detected, and obtains the voltage value to be detected by calculating the voltage value output by the AD sampling circuit (2).
2. A dynamic large-range voltage real-time measurement system according to claim 1, characterized in that: The channel switching self-adjusting circuit (1) comprises: an input H-bridge circuit (11), a reference circuit (12) and an H-bridge control circuit (13). The reference circuit (12) provides a comparison voltage value, compares the voltage to be detected with the comparison voltage value, and outputs a high level or a low level to the H-bridge control circuit (13); The H-bridge control circuit (13) collects the high level or low level returned by the reference circuit (12), and outputs the high level or low level to the input H-bridge circuit (11) through an OR operation; An input H-bridge circuit (11) is connected to the voltage to be detected, automatically switches the corresponding sampling ratio circuit according to the high level or low level provided by the H-bridge control circuit (13), and is connected to the sampling port corresponding to the AD sampling circuit (2).
3. A dynamic large-range voltage real-time measurement system according to claim 2, characterized in that: The input H-bridge circuit (11) comprises a resistor R1, a relay K1, a resistor R7, a chip Q1, a resistor R2, a relay K2 and a resistor R8, wherein the resistor R1 and the resistor R7 are connected in series to form a first sampling circuit, the resistor R2 and the resistor R8 are connected in series to form a second sampling circuit, the first sampling circuit and the second sampling circuit are connected in parallel to form a total sampling circuit, one end of the total sampling circuit is connected to a voltage to be detected, and the other end of the total sampling circuit is grounded, the switch end of the relay K1 is arranged between the resistor R1 and the resistor R7, and the relay K2 The switch end of the chip Q1 is arranged between the resistor R2 and the resistor R8, the switch end of the relay K1 is arranged with a first sampling point at one end away from the voltage to be detected, the switch end of the relay K2 is arranged with a second sampling point at one end away from the voltage to be detected, the port 1 and the port 3 of the chip Q1 are externally connected to the high level or low level provided by the H-bridge control circuit (13), the port 4 and the port 6 of the chip Q1 are externally connected to a 12V voltage, the port 2 of the chip Q1 is grounded through the coil of the relay K1, and the port 5 of the chip Q1 is grounded through the coil of the relay K2.
4. A dynamic large-range voltage real-time measurement system according to claim 3, characterized in that: The reference circuit (12) comprises a resistor R3, a resistor R5, a resistor R9, a resistor R10, a comparator U1A and a comparator U1B, wherein the resistor R9 and the resistor R10 are connected in series to form a first reference value circuit, one end of the first reference value circuit is connected to a 5V voltage, and the other end of the first reference value circuit is grounded, a first reference value point is provided between the resistor R9 and the resistor R10, and a port 6 of the comparator U1B is connected to the first reference value point, the resistor R3 and the resistor R5 are connected in series to form a second reference value circuit, one end of the second reference value circuit is connected to a 5V voltage, and the other end of the second reference value circuit is grounded, a second reference value point is provided between the resistor R3 and the resistor R5, a port 2 of the comparator U1A is connected to the second reference value point, a port 3 of the comparator U1A is connected to a second sampling point, a port 5 of the comparator U1B is connected to a first sampling point, and a port 1 of the comparator U1A and a port 7 of the comparator U1B are respectively connected to the H-bridge control circuit (13).
5. A dynamic wide range voltage real-time measurement system according to claim 4, characterized in that: The H-bridge control circuit (13) comprises an OR gate U2, a comparator U3A, a resistor R4 and a resistor R6, wherein port 1 of the OR gate U2 is connected to port 1 of the comparator U1A, port 2 of the OR gate U2 is connected to port 7 of the comparator U1B, port 4 of the OR gate U2 is connected to port 3 of the comparator U3A, the resistor R4 and the resistor R6 are connected in series to form a third reference value circuit, one end of the third reference value circuit is connected to a 5V voltage, and the other end of the third reference value circuit is grounded, and port 1 of the comparator U3A is respectively connected to port 1 and port 3 of the chip Q1 and the corresponding port of the AD sampling circuit (2).
6. A dynamic large-range voltage real-time measurement method, characterized in that: A detection system comprising any one of claims 1 to 5, wherein the method steps are as follows: S1: The whole system is powered on, the voltage to be detected is connected to the channel switching self-adjusting circuit (1), and S2 is executed; S2: The switch ends of relay K1 and relay K2 are both disconnected, comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S3 is executed; S3: If the voltage value of the first sampling point is less than the comparison voltage value preset by the comparator U1B, execute step S4; otherwise, execute step S5; S4: the AD sampling circuit (2) performs sampling based on the voltage value of the first sampling point and the low level output of the comparator U3A, and the microprocessor circuit (3) obtains the voltage value to be detected through calculation, and determines whether the voltage to be detected has been detected. If so, execute S9; S5: comparator U1A outputs a low level and comparator U1B outputs a high level to OR gate U2, OR gate U2 outputs a high level to comparator U3A, comparator U3A outputs a high level to chip Q1, chip Q1 turns on the coil of relay K2, turns off the coil of relay K1, closes the switch end of relay K2, opens the switch of relay K1, and the voltage to be measured is connected to comparator U1A through the second sampling circuit, and step S6 is executed; S6: the AD sampling circuit (2) performs sampling based on the voltage value of the second sampling point and the high level output of the comparator U3A, and the microprocessor circuit (3) obtains the voltage value to be detected through calculation, and determines whether the voltage to be detected has been detected. If so, execute S9; S7: If the voltage value of the second sampling point is less than the comparison voltage value preset by the comparator U1A, execute step S8, otherwise execute step S6; S8: comparator U1A and comparator U1B both output low level to OR gate U2, OR gate U2 outputs low level to comparator U3A, comparator U3A outputs low level to chip Q1, chip Q1 turns on the coil of relay K1, the switch end of relay K1 is closed, the voltage to be measured is connected to comparator U1B through the first sampling circuit, and step S4 is executed; S9: The detection of the voltage to be detected is completed, and the voltage to be detected is detected in real time.
7. A method for real-time measurement of dynamic large-range voltage according to claim 6, characterized in that: Voltage value of the first sampling point: The voltage value of the second sampling point:
8. A method for real-time measurement of dynamic wide range voltage according to claim 6, characterized in that: Comparator U1A sets the reference value comparison voltage as: Comparator U1B sets the reference value comparison voltage as: Among them, V ref_A Multiply the sampling ratio of the second sampling point by V ref_B Multiply by the sampling ratio of the first sampling point.
