Sampling correction circuit and current sensor
By designing the sampling correction circuit in the current sensor, and using the current sampling module and correction module to automatically output the compensation voltage under a constant magnetic field, the zero point drift problem is solved, the measurement accuracy is improved and the cost is reduced, and it is suitable for closed loops under harsh climate conditions. Magnetic balanced current sensor.
Patent Information
- Application Number
- CN202420284618.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-05
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2034-02-05
AI Technical Summary
Existing zero-point correction methods are complex, costly and low in accuracy. Especially in harsh climate conditions, closed-loop magnetically balanced current sensors are prone to zero-point drift, leading to measurement errors and system instability.
A sampling correction circuit is designed, including a current sampling module and a correction module. By detecting the deviation voltage at the output end of the current sampling module when the Hall element is located in a constant magnetic field, it automatically outputs a compensation voltage to offset the deviation, achieves zero point correction, and The input end of the current sampling module is provided with a waveform adjustment module to adjust the waveform of the sampling current signal.
It reduces the complexity and cost of zero point correction, improves the accuracy of measurement results, avoids zero point drift, and is not affected by changes in the external magnetic field.
Smart Images

Figure CN221826966U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of measurement, in particular to a sampling correction circuit and a current sensor. Background Art
[0002] Under severe climatic conditions, closed-loop magnetic balance current sensors may experience zero-point drift, leading to system instability, measurement errors, and even system failures, so they need to be zero-point calibrated.
[0003] Existing zero-point calibration methods may include: zero magnetic field zeroing method and temperature compensation zeroing method. However, the zero magnetic field zeroing voltage division method requires the sensor to be placed in a specific zero magnetic field environment for zero magnetic field zeroing, which requires additional equipment and conditions to create such an environment, increasing the complexity and cost of zeroing; and in actual applications, the magnetic field in the environment may still change and drift. This may cause the zero-point calibration of the sensor to be inaccurate or unstable. Therefore, the existing zero-point calibration method has technical problems such as complex structure, high cost, and low accuracy.
[0004] The above contents are only used to assist in understanding the technical solution of the present utility model and do not constitute an admission that the above contents are prior art. Utility Model Content
[0005] The main purpose of the utility model is to provide a sampling correction circuit and a current sensor, aiming to solve the technical problems of the existing zero point correction method having a complex structure, high cost and low accuracy.
[0006] To achieve the above object, the utility model provides a sampling correction circuit, which includes: a current sampling module and a correction module;
[0007] The in-phase input terminal and the inverting input terminal of the current sampling module are both connected to the Hall element, and the correction module is respectively connected to the in-phase input terminal and the output terminal of the current sampling module;
[0008] The correction module is used to output a compensation voltage to the in-phase input terminal of the current sampling module when the Hall element is located in a constant magnetic field and a deviation voltage not equal to zero potential is detected at the output terminal of the current sampling module;
[0009] The current sampling module is used to output a correction voltage having the same voltage value and opposite polarity as the deviation voltage when receiving the compensation voltage.
[0010] Optionally, the correction module includes: a zero position detection submodule and a compensation submodule;
[0011] The zero-position detection submodule is connected to the output end of the current sampling module and the compensation submodule respectively, and the compensation submodule is connected to the in-phase input end of the current sampling module;
[0012] The zero position detection submodule is used to convert the deviation voltage into a voltage error signal when detecting the presence of the deviation voltage at the output end of the current sampling module, and transmit the voltage error signal to the compensation submodule;
[0013] The compensation submodule is used to generate the compensation voltage according to the voltage error signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module.
[0014] Optionally, the zero position detection submodule includes: a voltage detection unit and a voltage comparison unit;
[0015] The voltage detection unit is connected to the output ends of the voltage comparison unit and the current sampling module respectively, and the voltage comparison unit is connected to the compensation submodule;
[0016] The voltage detection unit is used to transmit the deviation voltage to the voltage comparison unit when detecting that the deviation voltage exists at the output end of the current sampling module;
[0017] The voltage comparison unit is used to compare the deviation voltage with the zero potential, and transmit the corresponding voltage error signal to the compensation submodule according to the comparison result.
[0018] Optionally, the voltage detection unit includes: a voltage acquisition subunit and a switch subunit;
[0019] The voltage acquisition subunit is connected to the output ends of the switch subunit and the current sampling module respectively, and the switch subunit is connected to the voltage comparison unit;
[0020] The voltage acquisition subunit is used to transmit a connection signal to the switch subunit when detecting the presence of the deviation voltage at the output end of the current sampling module;
[0021] The switch subunit is used to connect the connection loop between the voltage comparison unit and the voltage acquisition subunit when receiving the connection signal, so as to transmit the deviation voltage to the voltage comparison unit.
[0022] Optionally, the compensation submodule includes: a micro-control unit and a voltage output unit;
[0023] The micro-control unit is connected to the voltage comparison unit and the voltage output unit respectively;
[0024] The micro-control unit is used to convert the voltage error signal into a switch control signal, and transmit the switch control signal to the voltage output unit;
[0025] The voltage output unit is used to generate the compensation voltage according to the switch control signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module.
[0026] Optionally, the voltage output unit includes: an adjustable resistance subunit and a voltage follower;
[0027] The adjustable resistor subunit is connected to the micro-control unit and the in-phase input terminal of the voltage follower respectively, and the inverting input terminal and output terminal of the voltage follower are both connected to the in-phase input terminal of the current sampling module;
[0028] The adjustable resistor subunit is used to determine the input voltage-dividing resistor of the voltage follower according to the switch control signal, and determine the input voltage of the voltage follower according to the power supply voltage and the input voltage-dividing resistor;
[0029] The voltage follower is used to determine the compensation voltage according to the input voltage, and output the compensation voltage to the in-phase input terminal of the current sampling module; the voltage values of the input voltage and the compensation voltage are the same.
[0030] Optionally, the adjustable resistor subunit includes: first and second resistors, an adjustment capacitor and a switch resistor array; the switch resistor array is composed of a plurality of pairs of resistors and switch tubes; the switch control signal includes: an on signal and an off signal;
[0031] The switch tube is used to conduct the bypass loop of the paired connected resistor when receiving the conduction signal;
[0032] The switch tube is further used to disconnect the bypass loop of the paired connected resistor when receiving the shutdown signal;
[0033] A first end of a first resistor is connected to the power supply voltage, a second end of the first resistor is respectively connected to a first end of the regulating capacitor, a non-inverting input end of the voltage follower and a first end of the second resistor, a second end of the second resistor is connected to a first end of the switch resistor array, and a second end of the switch resistor array is connected to the micro-control unit;
[0034] The second end of the regulating capacitor and the third end of the switch resistor array are both grounded.
[0035] Optionally, the sampling correction circuit further includes: a waveform adjustment module;
[0036] The waveform adjustment module is arranged at the input end of the current sampling module;
[0037] The waveform adjustment module is used to cut the compensation voltage and / or the Hall voltage input by the Hall element to the current sampling module, so as to adjust the waveform of the sampling current signal output by the current sampling module.
[0038] Optionally, the waveform adjustment module includes: a first waveform adjustment submodule and a second waveform adjustment submodule; the first waveform adjustment submodule and the second waveform adjustment submodule include: a differential unit, an integral unit and / or a proportional unit.
[0039] In addition, to achieve the above-mentioned purpose, the utility model also proposes a current sensor, which includes a Hall element and the above-mentioned sampling correction circuit.
[0040] In the utility model, a sampling correction circuit and a current sensor are disclosed, and the sampling correction circuit includes: a current sampling module and a correction module; the in-phase input terminal and the inverting input terminal of the current sampling module are both connected to the Hall element, and the correction module is respectively connected to the in-phase input terminal and the output terminal of the current sampling module; the correction module is used to output a compensation voltage to the in-phase input terminal of the current sampling module when the Hall element is located in a constant magnetic field and detects that there is a deviation voltage that is not equal to zero potential at the output terminal of the current sampling module; the current sampling module is used to output a correction voltage with the same voltage value and opposite polarity as the deviation voltage when receiving the compensation voltage. The utility model can introduce a closed-loop feedback correction module on the basis of the existing current sampling module, so that when it detects that there is a deviation voltage in the current sampling module, it automatically outputs the compensation voltage, thereby ensuring that the current sampling module outputs a correction voltage with the same value and opposite polarity as the deviation voltage at zero point, thereby realizing the zero-position output of the current sampling module at zero point. Therefore, compared with the existing zero-point correction method, the utility model does not require a complex zero magnetic field environment, has a low cost, and will not become unstable with the change of the magnetic field of the external environment, so that it can effectively offset the zero-point drift and improve the accuracy of the measurement results. In the utility model, the sampling correction circuit also includes: a waveform adjustment module; the waveform adjustment module is arranged at the input end of the current sampling module; the waveform adjustment module is used to cut the compensation voltage and / or the Hall voltage of the Hall element input current sampling module to adjust the waveform of the sampling current signal output by the current sampling module. Further, in the utility model, the waveform adjustment module includes: a first waveform adjustment submodule and a second waveform adjustment submodule; the first waveform adjustment submodule and the second waveform adjustment submodule include: a differential unit, an integral unit and / or a proportional unit. Therefore, the circuit structure proposed by the utility model is scalable and has high circuit compatibility, and can effectively adjust the signal output waveform according to actual conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1It is a first functional module diagram of the first embodiment of the sampling and correction circuit of the utility model;
[0042] Figure 2 It is a second functional module diagram of the first embodiment of the sampling and correction circuit of the utility model;
[0043] Figure 3 It is a structural schematic diagram of the first embodiment of the sampling correction circuit of the utility model;
[0044] Figure 4 It is a first functional module diagram of the second embodiment of the sampling and correction circuit of the utility model;
[0045] Figure 5 It is a second functional module diagram of the second embodiment of the sampling and correction circuit of the utility model;
[0046] Figure 6 It is a third functional module diagram of the second embodiment of the sampling and correction circuit of the utility model;
[0047] Figure 7 It is a fourth functional module diagram of the second embodiment of the sampling and correction circuit of the utility model;
[0048] Figure 8 It is a fifth functional module diagram of the second embodiment of the sampling and correction circuit of the utility model;
[0049] Fig. 9 It is a schematic structural diagram of the second embodiment of the sampling correction circuit of the utility model.
[0050] Description of Figure Numbers:
[0051] Label name Label name R1~R2 First to second resistor C1 Adjusting capacitor VCC Supply voltage G Gate S Source D Drain U2 Voltage Follower S Switch subunit
[0052] The realization of the purpose, functional features and advantages of the utility model will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0053] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0054] The technical solution of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments in the present invention, all embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0055] It should be noted that the descriptions of "first", "second", etc. in the embodiments of the present utility model are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present utility model.
[0056] Reference Figure 1 , Figure 1 This is a first functional module diagram of the first embodiment of the sampling and correction circuit of the utility model.
[0057] like Figure 1 As shown, the sampling and correction circuit described in this embodiment includes: a current sampling module 10 and a correction module 20;
[0058] The in-phase input terminal and the inverting input terminal of the current sampling module 10 are both connected to the Hall element 1, and the correction module 20 is respectively connected to the in-phase input terminal and the output terminal of the current sampling module 10;
[0059] The correction module 20 is used to output a compensation voltage to the in-phase input terminal of the current sampling module 10 when the Hall element 1 is located in a constant magnetic field and a deviation voltage not equal to zero potential is detected at the output terminal of the current sampling module 10;
[0060] The current sampling module 10 is used to output a correction voltage having the same voltage value and opposite polarity as the deviation voltage when receiving the compensation voltage.
[0061] It should be noted that the sampling correction circuit proposed in this embodiment can be applied in a Hall sampling environment, that is, this embodiment can be used to automatically calibrate the Hall sampling current signal. Specifically, in this embodiment, the input end of the current sampling module 10 is connected to the Hall element 1 placed in the measurement magnetic field environment, and is used to generate a corresponding sampling current signal according to the Hall voltage signal transmitted by the Hall element 1. The current sampling module may include an operational amplifier (OPA, operation amplifier), a resistor and a capacitor, etc. The in-phase input end of the current sampling module 10 corresponds to the positive signal input end of the operational amplifier, and the inverting input end of the current sampling module 10 corresponds to the negative signal input end of the operational amplifier.
[0062] It is easy to understand that when there is no current in the environment to be measured, the measurement magnetic field in which the Hall element 1 is located will not change, which is equivalent to the Hall element 1 being located in a constant magnetic field. Therefore, when the Hall element 1 is located in a constant magnetic field, the output voltage of the current sampling module 10 should be zero potential, and if there is an output voltage at the output end of the current sampling module 10 that is not equal to zero potential, it indicates that the current sampling module has a zero point offset phenomenon, and it needs to be zero-point corrected.
[0063] Different from the existing method of performing zero point correction by adjusting the magnetic field environment of the Hall element 1, in this embodiment, if the correction module 20 detects that there is a deviation voltage not equal to zero potential at the output end of the current sampling module 10 when the Hall element 1 is located in a constant magnetic field, the correction module 20 will output a compensation voltage to the in-phase input end of the current sampling module 10 according to the deviation voltage. When the current sampling module 10 receives the compensation voltage, the output end thereof may output a correction voltage corresponding to the deviation voltage, which has the same voltage value and opposite polarity as the deviation voltage, and thus can directly offset the deviation voltage, thereby realizing zero point drift compensation of the current sampling module 10.
[0064] In summary, this embodiment can introduce a closed-loop feedback correction module 20 on the basis of the existing current sampling module 10, so that when a deviation voltage is detected at the output end of the current sampling module 10, the correction module 20 automatically outputs a compensation voltage opposite to the deviation voltage, thereby ensuring that the current sampling module 10 outputs a correction voltage with the same value and opposite polarity as the deviation voltage, thereby achieving zero-position output of the current sampling module 10 at zero point. Compared with the existing zero-point correction method, this embodiment does not require a complex zero magnetic field environment, has a lower cost, and the correction effect will not become unstable with the change of the magnetic field of the external environment, and can effectively offset the zero-point drift and improve the accuracy of the measurement results.
[0065] Further, as an implementable method, in this embodiment, the sampling correction circuit further includes: a waveform adjustment module;
[0066] The waveform adjustment module is arranged at the input end of the current sampling module 10;
[0067] The waveform adjustment module is used to cut the compensation voltage and / or the Hall voltage input by the Hall element 1 to the current sampling module 10 to adjust the waveform of the sampling current signal output by the current sampling module 10 .
[0068] It is easy to understand that in this embodiment, in order to adjust the waveform of the sampled current signal output by the current sampling module 10 and reduce the measurement error. In this embodiment, a device for adjusting the output waveform, i.e., the above-mentioned waveform adjustment module, may be provided at the input end of the current sampling module 10 to accurately control the output of the sampling correction circuit. Since the current sampling module 10 has two input ends, i.e., the above-mentioned in-phase input end and the inverting input end, a waveform adjustment device may be provided at each of the two input ends in this embodiment. Further, as an implementable embodiment, in this embodiment, the waveform adjustment module includes: a first waveform adjustment submodule 301 and a second waveform adjustment submodule 302; the first waveform adjustment submodule 301 and the second waveform adjustment submodule 302 include: a differential unit, an integral unit and / or a proportional unit.
[0069] It should be understood that, in this embodiment, the first waveform adjustment submodule 301 and the second waveform adjustment submodule 302 are waveform adjustment devices respectively arranged at the in-phase input terminal and the inverting input terminal of the current sampling module 10. Figure 2 Take this as an example to illustrate: Figure 2 The second functional module of the first embodiment of the sampling and correction circuit of the utility model is as follows: Figure 2 As shown, the first waveform adjustment submodule 301 can be arranged between the correction module 20 and the in-phase input terminal of the current sampling module 10, and the second waveform adjustment submodule 302 can be arranged between the inverting input terminal and the output terminal of the current sampling module 10. The first waveform adjustment submodule 301 and the second waveform adjustment submodule 302 can be used to cut the input value of the current sampling module 10, that is, the above-mentioned compensation voltage and / or Hall voltage, so as to adjust the waveform of the sampled current signal output by the current sampling module 10.
[0070] It should be noted that both the first waveform adjustment submodule 301 and the second waveform adjustment submodule 302 may include: a differential unit, an integral unit and / or a proportional unit, that is, each waveform adjustment submodule may selectively include at least one of the three waveform adjustment units, each waveform adjustment unit is connected in parallel, and the specifications may be the same or different. Preferably, both waveform adjustment submodules may have three waveform adjustment units. Among them, the differential unit can adjust the slope of the rising edge of the waveform to control the rate of change of the waveform; the proportional unit can adjust the proportion of the output waveform to control the amplitude or gain of the waveform; the integral unit can compensate the waveform to eliminate the offset or drift in the waveform. The specific structure can be referred to. Figure 3 , Figure 3 Schematic diagram of the structure of the first embodiment of the sampling correction circuit of the utility model. Figure 3 U1 is the operational amplifier in the current sampling module.
[0071] It is understandable that a switch circuit may also be configured on the waveform adjustment submodule, and one or more of the three waveform adjustment units may be selectively turned on through the switch circuit. Such a configuration may provide greater flexibility and adjustability, so that the waveform adjustment submodule may selectively use different waveform adjustment units according to specific needs. Specifically, in this embodiment, a switch circuit may be formed according to relays, switch tubes, or other suitable switch elements to achieve selection and switching of the waveform adjustment units.
[0072] In addition, in this embodiment, a waveform detection unit may be configured at the connection between the correction module 20 and the current sampling module 10, and at the output end of the current sampling module 10, so as to control the switch circuit of the waveform adjustment submodule according to the detection result of the waveform detection unit, and further control the first waveform adjustment submodule 301 and the second waveform adjustment submodule 302. Therefore, the circuit structure proposed in this embodiment has scalability, high circuit compatibility, and can effectively adjust the signal output waveform according to actual conditions.
[0073] In the present embodiment, a sampling correction circuit is disclosed, and the sampling correction circuit includes: a current sampling module and a correction module; the in-phase input terminal and the inverting input terminal of the current sampling module are both connected to the Hall element, and the correction module is respectively connected to the in-phase input terminal and the output terminal of the current sampling module; the correction module is used to output a compensation voltage to the in-phase input terminal of the current sampling module when the Hall element is located in a constant magnetic field and a deviation voltage not equal to zero potential is detected at the output terminal of the current sampling module; the current sampling module is used to output a correction voltage with the same voltage value and opposite polarity as the deviation voltage when receiving the compensation voltage. In the present embodiment, a correction module of closed-loop feedback can be introduced on the basis of the existing current sampling module, so that when the deviation voltage is detected in the current sampling module, the compensation voltage is automatically output, thereby ensuring that the current sampling module outputs a correction voltage with the same value and opposite polarity as the deviation voltage, thereby realizing the zero-position output of the current sampling module at zero point. Therefore, compared with the existing zero-point correction method, the present embodiment does not require a complex zero magnetic field environment, has a low cost, and will not become unstable with the change of the magnetic field of the external environment, can effectively offset the zero-point drift, and improve the accuracy of the measurement result. In this embodiment, the sampling correction circuit also includes: a waveform adjustment module; the waveform adjustment module is arranged at the input end of the current sampling module; the waveform adjustment module is used to cut the compensation voltage and / or the Hall voltage of the Hall element input to the current sampling module to adjust the waveform of the sampled current signal output by the current sampling module. Further, in this embodiment, the waveform adjustment module includes: a first waveform adjustment submodule and a second waveform adjustment submodule; the first waveform adjustment submodule and the second waveform adjustment submodule include: a differential unit, an integral unit and / or a proportional unit. Therefore, the circuit structure proposed in this embodiment is scalable and has high circuit compatibility, and can effectively adjust the signal output waveform according to actual conditions.
[0074] Reference Figure 4 , Figure 4 This is a first functional module diagram of the second embodiment of the sampling and correction circuit of the utility model.
[0075] Based on the above first embodiment, a second embodiment of the sampling correction circuit of the utility model is proposed. Figure 4 As shown, in this embodiment, the correction module 20 includes: a zero position detection submodule 21 and a compensation submodule 22;
[0076] The zero position detection submodule 21 is connected to the output end of the current sampling module 10 and the compensation submodule 22 respectively, and the compensation submodule 22 is connected to the in-phase input end of the current sampling module 10;
[0077] The zero position detection submodule 21 is used to convert the deviation voltage into a voltage error signal when detecting the presence of the deviation voltage at the output end of the current sampling module 10, and transmit the voltage error signal to the compensation submodule 22;
[0078] The compensation submodule 22 is used to generate the compensation voltage according to the voltage error signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module 10 .
[0079] It is understandable that, in this embodiment, the correction module 20 can be divided into a zero position detection submodule 21 for detecting the voltage at the output end of the current sampling module 10 and a compensation submodule 22 for determining the compensation voltage according to the detection result of the zero position detection submodule 21. Specifically, when a zero point drift occurs, a non-zero deviation, i.e., the above-mentioned deviation voltage, will be generated at the output end of the current sampling module 10. The zero position detection submodule 21 will detect the deviation voltage and can convert it into a voltage error signal. When the compensation submodule 22 receives this voltage error signal, it can output a compensation voltage opposite to the zero point deviation voltage to finally achieve the zero point zero position output of the current sampling module 10.
[0080] It is easy to understand that a first waveform adjustment module may also be provided between the compensation submodule 22 and the current sampling module 10. The specific structure is as follows: Figure 5 As shown, Figure 5 This is a second functional module diagram of the second embodiment of the sampling and correction circuit of the utility model, which can be applied to any of the following functional module diagrams and will not be described in detail later.
[0081] Further, refer to Figure 6 , Figure 6 This is a third functional module diagram of the second embodiment of the sampling and correction circuit of the utility model. In this embodiment, the zero position detection submodule 21 includes: a voltage detection unit 211 and a voltage comparison unit 212;
[0082] The voltage detection unit 211 is connected to the voltage comparison unit 212 and the output end of the current sampling module 10 respectively, and the voltage comparison unit 212 is connected to the compensation submodule 22;
[0083] The voltage detection unit 211 is used to transmit the deviation voltage to the voltage comparison unit 212 when detecting that the deviation voltage exists at the output end of the current sampling module 10;
[0084] The voltage comparison unit 212 is used to compare the deviation voltage with a zero potential, and transmit the corresponding voltage error signal to the compensation submodule 22 according to the comparison result.
[0085] It is easy to understand that the deviation voltage can be a voltage signal greater than zero potential or a voltage signal less than zero potential, and the compensation submodule 22 needs to output a compensation voltage with a polarity opposite to the deviation voltage. Therefore, in this embodiment, the voltage detection unit 211 can be responsible for collecting the output voltage of the current sampling module 10, and the voltage comparison unit 212 is responsible for comparing the deviation voltage with the zero potential, and transmitting the corresponding voltage error signal to the compensation submodule 22 according to the comparison result. For example, when the deviation voltage is greater than zero, the voltage error signal can be a high-level signal, and the voltage comparison unit 212 can output a high-level signal to the compensation submodule 22; when the deviation voltage is less than zero, the voltage error signal can be a low-level signal, and the voltage comparison unit 212 can output a low-level signal to the compensation submodule 22.
[0086] In practical applications, the voltage comparison unit 212 may be a voltage comparator, and the negative signal input terminal of the comparator is grounded, that is, the negative signal input terminal is connected to zero potential; and the positive signal input terminal of the comparator may be connected to the voltage detection unit 211. Therefore, when the deviation voltage delivered by the voltage detection unit 211 is greater than zero, the voltage comparison unit 212 may deliver a high-level signal to the compensation submodule 22; when the deviation voltage delivered by the voltage detection unit 211 is less than or equal to zero, the voltage comparison unit 212 may deliver a low-level signal to the compensation submodule 22.
[0087] It is easy to understand that in the above situation, when the voltage detection unit 211 detects that the output voltage of the current sampling module 10 is less than or equal to zero, the voltage comparison unit 212 will output the same low-level signal to the compensation sub-module 22, thereby making it easy for the compensation sub-module 22 to remain in the compensation working state when zero point correction is not required, thereby increasing system power consumption.
[0088] Further, in this embodiment, the voltage detection unit 211 includes: a voltage acquisition subunit and a switch subunit;
[0089] The voltage acquisition subunit is connected to the switch subunit and the output end of the current sampling module 10 respectively, and the switch subunit is connected to the voltage comparison unit 212;
[0090] The voltage acquisition subunit is used to transmit a connection signal to the switch subunit when detecting the presence of the deviation voltage at the output end of the current sampling module 10;
[0091] The switch subunit is used to connect the connection loop between the voltage comparison unit 212 and the voltage acquisition subunit when receiving the connection signal, so as to transmit the deviation voltage to the voltage comparison unit 212 .
[0092] It can be understood that in order to avoid the compensation submodule 22 being in the compensation working state when zero point correction is not required, the present embodiment can distinguish between the zero potential and the non-zero potential of the output end of the current sampling module 10 through the above-mentioned switch subunit. Specifically, in the present embodiment, the voltage acquisition subunit is responsible for real-time acquisition of the output voltage of the current sampling module 10 and compares it with the zero potential. When it detects that the output end of the current sampling module 10 is at zero potential, it will not transmit a connection signal to the switch subunit. At this time, the input end of the voltage comparison unit 212 is not connected to the voltage acquisition subunit, and there is no signal input to the input end of the voltage comparison unit 212, so the voltage comparison unit 212 will not output a signal to the compensation submodule 22. When the voltage acquisition subunit detects that the output end of the current sampling module 10 is at a non-zero potential, that is, when there is a deviation voltage, the switch subunit can be opened, and a connection signal is correspondingly transmitted to the switch subunit. When receiving the connection signal, the switch subunit switches on the connection loop between the voltage comparison unit 212 and the voltage acquisition subunit to transmit the deviation voltage to the voltage comparison unit 212 , and the voltage comparison unit 212 then transmits the corresponding voltage error signal to the compensation submodule 22 .
[0093] Therefore, this embodiment can transmit a signal to the voltage comparison unit 212 only when there is a non-zero potential deviation voltage at the output end of the current sampling module 10 based on the switch subunit, thereby avoiding the compensation submodule 22 from working at zero potential. It is easy to understand that the switch subunit can be connected to the positive signal input end of the comparator or the negative signal input end of the comparator, and this embodiment does not limit the connection method between the switch subunit and the voltage comparison unit 212.
[0094] Further, refer to Figure 7 , Figure 7 This is a fourth functional module diagram of the second embodiment of the sampling and correction circuit of the utility model. In this embodiment, the compensation submodule 22 includes: a micro-control unit 221 and a voltage output unit 222;
[0095] The micro-control unit 221 is connected to the voltage comparison unit 212 and the voltage output unit 222 respectively;
[0096] The micro-control unit 221 is used to convert the voltage error signal into a switch control signal, and transmit the switch control signal to the voltage output unit 222;
[0097] The voltage output unit 222 is used to generate the compensation voltage according to the switch control signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module 10 .
[0098] It is understandable that the micro-control unit 221 can determine the switch control signal corresponding to the compensation voltage to be output according to the size of the detected voltage error signal, and then send the switch control signal to the voltage output unit 222 to achieve accurate compensation voltage output.
[0099] Further, refer to Figure 8 , Figure 8 This is a fifth functional module diagram of the second embodiment of the sampling and correction circuit of the utility model. In this embodiment, the voltage output unit 222 includes: an adjustable resistance subunit 2221 and a voltage follower 2222;
[0100] The adjustable resistor subunit 2221 is connected to the micro-control unit 221 and the in-phase input terminal of the voltage follower 2222 respectively, and the inverting input terminal and the output terminal of the voltage follower 2222 are both connected to the in-phase input terminal of the current sampling module 10;
[0101] The adjustable resistor subunit 2221 is used to determine the input voltage-dividing resistance of the voltage follower 2222 according to the switch control signal, and determine the input voltage of the voltage follower 2222 according to the power supply voltage and the input voltage-dividing resistance;
[0102] The voltage follower 2222 is used to determine the compensation voltage according to the input voltage, and output the compensation voltage to the in-phase input terminal of the current sampling module 10; the voltage values of the input voltage and the compensation voltage are the same.
[0103] It should be noted that, in this embodiment, the voltage output unit 222 may include an operational amplifier whose output end is connected to the inverting input end as feedback, that is, the above-mentioned voltage follower 2222, and an adjustable RC circuit located at the same-phase input end of the voltage follower 2222, that is, the above-mentioned adjustable resistor sub-unit 2221, and the adjustable resistor sub-unit 2221 can control the input voltage divider resistance of the voltage follower 2222.
[0104] It is easy to understand that the output voltage of the voltage follower 2222 is the same as the voltage value of the input voltage. Therefore, when the power supply voltage is determined, the present embodiment can adjust the input voltage of the voltage follower 2222 by adjusting the voltage divider resistor at the input end of the voltage follower 2222, that is, the above-mentioned input voltage divider resistor, so as to control the magnitude of the compensation voltage output by the voltage follower 2222 to the in-phase input end of the current sampling module 10, that is, the voltage values of the input voltage and the compensation voltage are the same. Therefore, in the present embodiment, after the micro-control unit 221 generates a corresponding switch control signal according to the determined resistance value, and inputs the switch control signal to the adjustable resistance sub-unit 2221, the magnitude of the voltage divider resistor connected to the input end of the voltage follower 2222 can be controlled, so as to achieve the purpose of zero adjustment.
[0105] It should be understood that, in order to achieve precise resistance regulation, further, in this embodiment, the adjustable resistance subunit 2221 includes: first to second resistors R1-R2, an adjustment capacitor C1 and a switch resistor array; the switch resistor array is composed of a plurality of pairs of resistors and switch tubes; the switch regulation signal includes: an on signal and an off signal;
[0106] The switch tube is used to conduct the bypass loop of the paired connected resistor when receiving the conduction signal;
[0107] The switch tube is further used to disconnect the bypass loop of the paired connected resistor when receiving the shutdown signal;
[0108] A first end of the first resistor R1 is connected to the power supply voltage VCC, a second end of the first resistor R1 is respectively connected to the first end of the regulating capacitor C1, the in-phase input end of the voltage follower 2222U2 and the first end of the second resistor R2, a second end of the second resistor R2 is connected to the first end of the switch resistor array, and a second end of the switch resistor array is connected to the micro-control unit 221;
[0109] The second end of the regulating capacitor C1 and the third end of the switch resistor array are both grounded.
[0110] It is understandable that, in this embodiment, the resistor part in the adjustable resistor subunit 2221 can be composed of a fixed resistor, namely the first resistor and the second resistor mentioned above; and a resistor-switch tube structure, namely the switch resistor array mentioned above, and the switch resistor array is composed of a plurality of pairs of resistors and switch tubes. Fig. 9 Take this as an example to illustrate. Fig. 9 FIG. 1 is a schematic diagram of the structure of the second embodiment of the sampling correction circuit of the utility model. Fig. 9As shown, the resistors in any pair of resistor-switch tubes in the switch resistor array will be bypassed when the paired switch tube is turned on. At this time, there is no bypassed resistor in the voltage-dividing resistor at the input end of the voltage follower 2222; and when the paired switch tube is turned off, the resistor can be normally connected to the voltage-dividing loop at the input end of the voltage follower 2222. At the same time, the control end ( Figure 8 The gate G of the MOS tube in the figure) is connected to the micro-control unit 221. Therefore, in this embodiment, combined with the switch resistor array structure, the micro-control unit 221 can first calculate the resistance value that needs to be adjusted according to the size of the detected voltage error signal, and then determine the number of switch tubes that need to be turned on according to the adjusted resistance value, and finally generate a corresponding switch control signal (i.e., the above-mentioned turn-on signal and turn-off signal), and output the switch control signal to the switch tube in the switch array unit, so as to control the number of resistors in the voltage divider loop connected to the input end of the voltage follower 2222, thereby adjusting the input voltage of the voltage follower 2222. Therefore, in this embodiment, the input voltage divider resistance of the voltage follower 2222 can be precisely adjusted through the micro-control unit 221 and the switch resistor array, so as to accurately output a compensation voltage that can offset the deviation voltage, thereby achieving the purpose of zero adjustment.
[0111] In the specific implementation, Fig. 9 The zero point calibration process of this embodiment is described by taking the example as an example. Fig. 9 As shown, the voltage error signal is generated by comparing the output terminal voltage detected by the voltage comparison unit 212 with the zero potential. When the voltage error signal is a high level signal, it means that the input voltage divider resistance of the voltage follower 2222 is large, the input voltage divider is high, and the micro-control unit 221 can control the switch tube in the switch resistor array (such as Figure 8 The MOS tube in the current sampling module 10 is turned on to reduce the input voltage-dividing resistance, thereby reducing the zero-position voltage error at the output end of the current sampling module 10. When the output end voltage collected in real time by the current sampling module 10 is zero, that is, when the voltage error signal is 0, the switch subunit S is disconnected, so as to achieve the effect of quickly eliminating the error and making the output signal of the current sampling module 10 close to zero.
[0112] When the voltage error signal is compared with the zero potential through the comparator, and the voltage error signal is a low-level signal, it means that the input voltage-dividing resistance of the voltage follower 2222 is small and the input voltage-dividing resistance is low. The micro-control unit 221 can control the switch tube in the switch resistor array to be cut off, so that the input voltage-dividing resistance increases, thereby reducing the zero-position voltage error at the output end of the current sampling module 10. When the output voltage collected in real time by the current sampling module 10 is zero, the switch subunit S is disconnected, thereby quickly eliminating the error and making the output signal close to zero.
[0113] It is easy to understand that, in addition to the above structure, the first resistor R1 and / or the second resistor R2 in the input voltage-dividing resistor circuit of the voltage follower 2222 can also be adjustable resistors. Therefore, when performing voltage calibration, this embodiment can also adjust the input voltage divider of the voltage follower 2222 by adjusting the resistance values of the first resistor and the second resistor, so that the output end of the current sampling module 10 can be accurately returned to zero, thereby improving the sampling accuracy.
[0114] Therefore, the control of the resistance value in this embodiment can be achieved by using a variety of different structures (i.e., fixed resistor + switch resistor array, adjustable resistor + fixed input voltage divider resistor, or adjustable resistor + switch resistor array). That is, in this embodiment, the compensation submodule 22 has a variety of different topological structures for implementing the zero adjustment operation of the circuit to choose from, and these topological structures can be determined according to specific application requirements to achieve accurate zero adjustment function.
[0115] In summary, the sampling correction circuit proposed in this embodiment can quickly and accurately adjust the input voltage-dividing resistor through the switch tube. At the same time, the voltage correction compensation part of this embodiment can be implemented with low-power and common components, which can not only reduce the overall device cost of the circuit, but also make the circuit consume less energy during operation, thereby significantly reducing the power consumption of the entire circuit system. Therefore, compared with the existing structure, this embodiment can significantly reduce the circuit cost and improve the correction accuracy.
[0116] In this embodiment, the correction module includes: a zero-position detection submodule and a compensation submodule; the zero-position detection submodule is connected to the output end of the current sampling module and the compensation submodule respectively, and the compensation submodule is connected to the in-phase input end of the current sampling module; the zero-position detection submodule is used to convert the deviation voltage into a voltage error signal when the deviation voltage is detected at the output end of the current sampling module, and transmit the voltage error signal to the compensation submodule; the compensation submodule is used to generate a compensation voltage according to the voltage error signal, and output the compensation voltage to the in-phase input end of the current sampling module. The zero-position detection submodule includes: a voltage detection unit and a voltage comparison unit; the voltage detection unit is connected to the output end of the voltage comparison unit and the current sampling module respectively, and the voltage comparison unit is connected to the compensation submodule; the voltage detection unit is used to transmit the deviation voltage to the voltage comparison unit when the deviation voltage is detected at the output end of the current sampling module; the voltage comparison unit is used to compare the deviation voltage with the zero potential, and transmit the corresponding voltage error signal to the compensation submodule according to the comparison result. The voltage detection unit includes: a voltage acquisition subunit and a switch subunit; the voltage acquisition subunit is connected to the output end of the switch subunit and the current sampling module respectively, and the switch subunit is connected to the voltage comparison unit; the voltage acquisition subunit is used to transmit a connection signal to the switch subunit when the output end of the current sampling module is detected to have a deviation voltage; the switch subunit is used to conduct the connection loop between the voltage comparison unit and the voltage acquisition subunit when receiving the connection signal, so as to transmit the deviation voltage to the voltage comparison unit. The compensation submodule includes: a micro-control unit and a voltage output unit; the micro-control unit is connected to the voltage comparison unit and the voltage output unit respectively; the micro-control unit is used to convert the voltage error signal into a switch control signal, and transmit the switch control signal to the voltage output unit; the voltage output unit is used to generate a compensation voltage according to the switch control signal, and output the compensation voltage to the in-phase input end of the current sampling module. The voltage output unit includes: an adjustable resistor subunit and a voltage follower; the adjustable resistor subunit is connected to the in-phase input terminals of the micro-control unit and the voltage follower respectively, and the inverting input terminal and the output terminal of the voltage follower are both connected to the in-phase input terminal of the current sampling module; the adjustable resistor subunit is used to determine the input voltage divider resistance of the voltage follower according to the switch control signal, and determine the input voltage of the voltage follower according to the power supply voltage and the input voltage divider resistance; the voltage follower is used to determine the compensation voltage according to the input voltage, and output the compensation voltage to the in-phase input terminal of the current sampling module; the voltage values of the input voltage and the compensation voltage are the same.The adjustable resistor subunit includes: first to second resistors, capacitors and switch resistor arrays; the switch resistor array is composed of several pairs of resistors and switch tubes; the switch control signal includes: a conduction signal and a shutdown signal; the switch tube is used to conduct the bypass loop of the paired connected resistors when receiving the conduction signal; the switch tube is also used to disconnect the bypass loop of the paired connected resistors when receiving the shutdown signal; the first end of the first resistor is connected to the power supply voltage, the second end of the first resistor is respectively connected to the first end of the capacitor, the in-phase input end of the voltage follower and the first end of the second resistor, the second end of the second resistor is connected to the first end of the switch resistor array, and the second end of the switch resistor array is connected to the micro-control unit; the second end of the capacitor and the third end of the switch resistor array are both grounded. In this embodiment, the switch tube in the switch resistor array can be used to adjust the input voltage divider resistor of the voltage follower in the correction module. Specifically, in this embodiment, the micro-control unit determines the adjustment scale of the resistor according to the comparison result between the deviation voltage and the zero potential, and controls the working state of the switch tube based on the determined resistance adjustment value to change the value of the input voltage divider resistor, thereby accurately outputting the compensation voltage to achieve accurate calibration of the sampling circuit. At the same time, the voltage correction compensation part of this embodiment uses low-power and common components, which can not only reduce the overall device cost of the circuit, but also make the circuit consume less energy during operation, which can significantly reduce the power consumption of the entire circuit system. Therefore, compared with the existing zero point correction method, this embodiment can significantly reduce the circuit cost and improve the correction accuracy.
[0117] To achieve the above purpose, the utility model also proposes a current sensor, which includes the Hall element and the sampling correction circuit as described above. The specific structure of the sampling correction circuit refers to the above embodiment. Since the sampling correction circuit device adopts all the technical solutions of all the above embodiments, it at least has all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.
[0118] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A sampling correction circuit, characterized in that: The sampling and correction circuit comprises: a current sampling module and a correction module; The in-phase input terminal and the inverting input terminal of the current sampling module are both connected to the Hall element, and the correction module is respectively connected to the in-phase input terminal and the output terminal of the current sampling module; The correction module is used to output a compensation voltage to the in-phase input terminal of the current sampling module when the Hall element is located in a constant magnetic field and a deviation voltage not equal to zero potential is detected at the output terminal of the current sampling module; The current sampling module is used to output a correction voltage having the same voltage value and opposite polarity as the deviation voltage when receiving the compensation voltage.
2. The sampling correction circuit according to claim 1, characterized in that: The correction module includes: a zero position detection submodule and a compensation submodule; The zero-position detection submodule is connected to the output end of the current sampling module and the compensation submodule respectively, and the compensation submodule is connected to the in-phase input end of the current sampling module; The zero position detection submodule is used to convert the deviation voltage into a voltage error signal when detecting the presence of the deviation voltage at the output end of the current sampling module, and transmit the voltage error signal to the compensation submodule; The compensation submodule is used to generate the compensation voltage according to the voltage error signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module.
3. The sampling correction circuit according to claim 2, characterized in that: The zero position detection submodule comprises: a voltage detection unit and a voltage comparison unit; The voltage detection unit is connected to the output ends of the voltage comparison unit and the current sampling module respectively, and the voltage comparison unit is connected to the compensation submodule; The voltage detection unit is used to transmit the deviation voltage to the voltage comparison unit when detecting that the deviation voltage exists at the output end of the current sampling module; The voltage comparison unit is used to compare the deviation voltage with the zero potential, and transmit the corresponding voltage error signal to the compensation submodule according to the comparison result.
4. The sampling correction circuit as claimed in claim 3, characterized in that: The voltage detection unit includes: a voltage acquisition subunit and a switch subunit; The voltage acquisition subunit is connected to the output ends of the switch subunit and the current sampling module respectively, and the switch subunit is connected to the voltage comparison unit; The voltage acquisition subunit is used to transmit a connection signal to the switch subunit when detecting the presence of the deviation voltage at the output end of the current sampling module; The switch subunit is used to connect the connection loop between the voltage comparison unit and the voltage acquisition subunit when receiving the connection signal, so as to transmit the deviation voltage to the voltage comparison unit.
5. The sampling correction circuit according to claim 4, characterized in that: The compensation submodule includes: a micro-control unit and a voltage output unit; The micro-control unit is connected to the voltage comparison unit and the voltage output unit respectively; The micro-control unit is used to convert the voltage error signal into a switch control signal, and transmit the switch control signal to the voltage output unit; The voltage output unit is used to generate the compensation voltage according to the switch control signal, and output the compensation voltage to the non-inverting input terminal of the current sampling module.
6. The sampling correction circuit according to claim 5, characterized in that: The voltage output unit includes: an adjustable resistance subunit and a voltage follower; The adjustable resistor subunit is connected to the micro-control unit and the in-phase input terminal of the voltage follower respectively, and the inverting input terminal and output terminal of the voltage follower are both connected to the in-phase input terminal of the current sampling module; The adjustable resistor subunit is used to determine the input voltage-dividing resistor of the voltage follower according to the switch control signal, and determine the input voltage of the voltage follower according to the power supply voltage and the input voltage-dividing resistor; The voltage follower is used to determine the compensation voltage according to the input voltage, and output the compensation voltage to the in-phase input terminal of the current sampling module; the voltage values of the input voltage and the compensation voltage are the same.
7. The sampling correction circuit according to claim 6, characterized in that: The adjustable resistor subunit includes: first and second resistors, an adjustment capacitor and a switch resistor array; the switch resistor array is composed of a plurality of pairs of resistors and switch tubes; the switch control signal includes: an on signal and an off signal; The switch tube is used to conduct the bypass loop of the paired connected resistor when receiving the conduction signal; The switch tube is further used to disconnect the bypass loop of the paired connected resistor when receiving the shutdown signal; A first end of a first resistor is connected to the power supply voltage, a second end of the first resistor is respectively connected to a first end of the regulating capacitor, a non-inverting input end of the voltage follower and a first end of the second resistor, a second end of the second resistor is connected to a first end of the switch resistor array, and a second end of the switch resistor array is connected to the micro-control unit; The second end of the regulating capacitor and the third end of the switch resistor array are both grounded.
8. The sampling correction circuit according to claim 1, characterized in that: The sampling correction circuit also includes: a waveform adjustment module; The waveform adjustment module is arranged at the input end of the current sampling module; The waveform adjustment module is used to cut the compensation voltage and / or the Hall voltage input by the Hall element to the current sampling module to adjust the waveform of the sampling current signal output by the current sampling module.
9. The sampling correction circuit as claimed in claim 8, characterized in that: The waveform adjustment module includes: a first waveform adjustment submodule and a second waveform adjustment submodule; the first waveform adjustment submodule and the second waveform adjustment submodule include: a differential unit, an integral unit and / or a proportional unit.
10. A current sensor, characterized in that: The current sensor comprises the Hall element and the sampling correction circuit according to any one of claims 1 to 9.
