Voltage regulating circuit, electric signal detection circuit and electronic equipment
By combining the resistance branch, operation branch and adjustment branch in the voltage regulation circuit, the resistance value is automatically adjusted to calibrate the voltage, which solves the problem of reference voltage offset caused by temperature drift and achieves automatic calibration and versatility.
Patent Information
- Application Number
- CN202210878159.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-25
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-07-25
AI Technical Summary
In the existing technology, the reference voltage offset problem caused by temperature drift requires manual intervention for calibration, which is less effective and not versatile.
A voltage regulating circuit including a resistor branch, an operation branch and an adjustment branch is designed. The operation branch performs calculations based on the reference voltage and the interface voltage, and outputs a signal to adjust the resistance value of the resistor branch to achieve automatic voltage calibration. , suitable for different products and circuits.
It realizes automatic voltage calibration when problems such as temperature drift occur, without manual intervention, improves the calibration effect, and has versatility in different application scenarios.
Smart Images

Figure CN115185328B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electronic circuits, and in particular to a voltage regulating circuit, an electrical signal detection circuit and an electronic device. Background Art
[0002] At present, in the process of using many products and circuits, the reference voltage in the products and circuits often shifts due to temperature drift and other problems, resulting in abnormal use of the products and circuits. For example, for a circuit that uses an op amp to detect voltage, due to the existence of temperature drift, it may cause voltage to exist at the input end of the op amp before voltage acquisition is performed, resulting in inaccurate detected voltage.
[0003] Therefore, it is necessary to calibrate the product and circuit to reduce or eliminate problems such as temperature drift. However, traditional calibration methods usually require users to set the corresponding voltage according to the actual application scenario to implement the calibration process. Since manual intervention is required, the calibration effect is poor and the practicality is also poor. Summary of the invention
[0004] The present application aims to provide a voltage regulating circuit, an electrical signal detection circuit and an electronic device, which can realize automatic calibration of voltage and can be used in different products and circuits and have strong practicality.
[0005] To achieve the above-mentioned purpose, in a first aspect, the present application provides a voltage regulating circuit, which is used to regulate the voltage of the first interface, and the voltage regulating circuit includes a resistance branch, an operation branch and an adjustment branch. The resistance branch is connected to the first power supply, and the resistance branch is configured as a branch with an adjustable resistance value, and outputs an adjustable voltage based on the voltage of the first power supply to adjust the voltage of the first interface. The operation branch is respectively connected to the first reference voltage, the first interface and the adjustment branch, and the operation branch is configured to perform an operation based on the first reference voltage and the voltage of the first interface, and output a first signal to the adjustment branch based on the operation result. The adjustment branch is connected to the resistance branch, and the adjustment branch is configured to adjust the resistance value of the resistance branch based on the first signal, so as to adjust the voltage of the first interface through the voltage output by the resistance branch, so that the first reference voltage and the voltage of the first interface meet a preset corresponding relationship.
[0006] In an optional manner, a first end of the resistance branch is connected to a first power source, and a second end of the resistance branch is grounded. The resistance branch includes M resistors connected in series, the M resistors connected in series include at least one adjustable resistor, and a connection point between an Nth resistor and an N+1th resistor in the M resistors connected in series is a first connection point, and the resistance branch outputs a voltage from the first connection point, wherein M is an integer ≥ 2, and N ≤ M-1.
[0007] In an optional manner, the operation branch includes a first comparator, a first input end of the first comparator is connected to the first interface, a second input end of the first comparator is connected to the first reference voltage, and an output end of the first comparator is connected to the adjustment branch for outputting a first signal.
[0008] In an optional manner, the adjustment branch includes a switch unit, an operation unit and an execution unit. The switch unit is connected between the operation unit and the operation branch, and the switch unit is configured to be turned on in response to a first signal and input the first signal to the operation unit. The operation unit is respectively connected to the second reference voltage and the execution unit, and the operation unit is configured to operate the first signal and the second reference voltage when the switch unit is turned on to output the second signal to the execution unit. The execution unit is connected to the resistance branch, and the execution unit is configured to adjust the resistance value of the resistance branch in response to the second signal.
[0009] In an optional manner, the switch unit includes a first switch. A first end of the first switch is connected to the operation branch for inputting the first signal, and a second end of the first switch is connected to the operation unit.
[0010] In an optional manner, the operation unit includes a second comparator. A first input terminal of the second comparator is connected to the switch unit, a second input terminal of the second comparator is connected to the second reference voltage, and an output terminal of the second comparator is connected to the execution unit.
[0011] In an optional manner, the execution unit includes a motor, a control end of the motor is connected to the computing unit, and a running end of the motor is connected to the resistance branch.
[0012] In an optional manner, the voltage regulating circuit further includes a capacitor branch and a voltage following branch. The capacitor branch is connected to the resistor branch, and the capacitor branch is configured to filter the voltage output by the resistor branch. The voltage following branch is connected to the resistor branch, and the voltage following branch is configured to output a following voltage based on the voltage output by the resistor branch, so as to adjust the voltage of the first interface by following the voltage, wherein the following voltage is equal to the voltage output by the resistor branch.
[0013] In an optional manner, the capacitor branch includes a first capacitor, a first end of the first capacitor is connected to an end of the output voltage of the resistor branch, and a second end of the first capacitor is grounded, wherein the first capacitor is a filter capacitor.
[0014] In an optional manner, the voltage follower branch includes a first operational amplifier. A first input terminal of the first operational amplifier is connected to one end of the output voltage of the resistor branch, and a second input terminal of the first operational amplifier is connected to an output terminal of the first operational amplifier. The output terminal of the first operational amplifier is used to output a follower voltage.
[0015] In a second aspect, the present application provides a voltage regulating circuit, which is used to regulate the voltage of the first interface, and the voltage regulating circuit includes a resistor branch and a controller. The resistor branch is connected to the first power supply, and the resistor branch is configured as a branch with an adjustable resistance value, and outputs an adjustable voltage based on the voltage of the first power supply to regulate the voltage of the first interface. The controller is connected to the resistor branch and the first interface, and the controller is configured to: obtain a first reference voltage and a current first voltage of the first interface, and obtain a preset correspondence between the voltage of the first interface and the first reference voltage; based on the first voltage, the first reference voltage and the preset correspondence, adjust the resistance value of the resistor branch to adjust the voltage of the first interface through the voltage output by the resistor branch, so that the first reference voltage and the voltage of the first interface meet the preset correspondence.
[0016] In an optional manner, based on the first voltage, the first reference voltage and a preset corresponding relationship, the resistance value of the resistor branch is adjusted, including: if the first voltage and the first reference voltage do not satisfy the preset corresponding relationship, calculating the difference between the first voltage and the first reference voltage; if the difference is greater than the second reference voltage, adjusting the resistance value of the resistor branch to reduce the voltage output by the resistor branch; if the difference is less than the second reference voltage, adjusting the resistance value of the resistor branch to increase the voltage output by the resistor branch.
[0017] In an optional manner, the preset corresponding relationship is: the absolute value of the difference between the voltage of the first interface and the first reference voltage is not greater than the first difference threshold.
[0018] In a third aspect, the present application provides an electrical signal detection circuit, comprising an electrical signal sampling branch, an amplifying branch, and a voltage regulating circuit as in the second aspect, wherein the output end of the amplifying branch is a first interface. The first end of the electrical signal sampling branch is connected to the first end of the amplifying branch, and the second end of the electrical signal sampling branch is connected to the second end of the amplifying branch. The electrical signal sampling branch is configured to detect the electrical signal, and based on the detected electrical signal, a voltage is generated at the first end and the second end of the electrical signal sampling branch to generate a voltage at the first end and the second end of the amplifying branch. The amplifying branch is configured to amplify the voltage difference between the first end and the second end of the amplifying branch and then output it to cooperate with the subsequent circuit to detect the electrical signal, and the voltage output by the amplifying branch is the voltage of the first interface. The output end of the voltage regulating circuit is connected to the first end of the amplifying branch, and the controller in the voltage regulating circuit is specifically used to: when the electrical signal sampling branch does not detect the electrical signal, adjust the resistance value of the resistance branch in the voltage regulating circuit to adjust the voltage of the first end of the amplifying branch through the voltage output by the resistance branch, so that the voltage output by the amplifying branch and the first reference voltage satisfy a preset corresponding relationship, wherein when the voltage output by the amplifying branch and the first reference voltage satisfy the preset corresponding relationship, the absolute value of the difference between the voltages of the first end and the second end of the amplifying branch is not greater than a second difference threshold.
[0019] In an optional manner, the electrical signal detection circuit also includes at least one of a first waveform adjustment branch and a second waveform adjustment branch. The first waveform adjustment branch is connected between the output end of the resistance branch and the first end of the amplification branch, and the first waveform adjustment branch is configured to adjust the waveform of the first end of the amplification branch. The second waveform adjustment branch is connected between the second end of the amplification branch and the output end of the amplification branch, and the first waveform adjustment branch is configured to adjust the waveform of the second end of the amplification branch. Among them, the adjustment methods of the first waveform adjustment branch and the second waveform adjustment branch both include at least one of integral adjustment, proportional adjustment, and differential adjustment.
[0020] In an optional manner, the first waveform adjustment branch includes at least one of the following three parts: a second capacitor, a first resistor, and a first circuit composed of a third capacitor and a second resistor. The second capacitor is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch, and the second capacitor is used to achieve differential adjustment. The first resistor is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch, and the first resistor is used to achieve proportional adjustment. The third capacitor is connected in series with the second resistor, and the first circuit is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch, and the circuit composed of the third capacitor and the second resistor in series is used to achieve integral adjustment.
[0021] In an optional manner, the second waveform adjustment branch includes at least one of the following three parts: a fourth capacitor, a third resistor, and a second circuit consisting of a fifth capacitor and a fourth resistor. The fourth capacitor is connected between the second end and the output end of the amplification branch, and the fourth capacitor is used to achieve differential adjustment. The third resistor is connected between the second end and the output end of the amplification branch, and the third resistor is used to achieve proportional adjustment. The fifth capacitor is connected in series with the fourth resistor, and the second circuit is connected between the second end and the output end of the amplification branch, and the circuit consisting of the fifth capacitor and the fourth resistor in series is used to achieve integral adjustment.
[0022] In an optional manner, the electrical signal sampling branch includes a Hall sensor, a fifth resistor and a sixth resistor. The first end of the Hall sensor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first end of the amplification branch, the second end of the Hall sensor is connected to the first end of the sixth resistor, and the second end of the sixth resistor is connected to the second end of the amplification branch.
[0023] In an optional manner, the amplification branch includes a second operational amplifier, a first input terminal of the second operational amplifier is connected to a first terminal of the electrical signal sampling branch, a second input terminal of the second operational amplifier is connected to a second terminal of the electrical signal sampling branch, and an output terminal of the second operational amplifier is an output terminal of the amplification branch.
[0024] In a fourth aspect, the present application provides an electronic device, which includes the voltage regulating circuit as in the first aspect and the second aspect, or the electrical signal detection circuit as in the third aspect.
[0025] The beneficial effects of the present application are as follows: the voltage regulating circuit provided by the present application is used to regulate the voltage of the first interface, and the voltage regulating circuit includes a resistance branch, an operation branch and an adjustment branch. Among them, the resistance branch is connected to the first power supply, the operation branch is respectively connected to the first reference voltage, the first interface and the adjustment branch, and the adjustment branch is connected to the resistance branch. When the voltage of the first interface deviates due to problems such as temperature drift, that is, when the first reference voltage and the voltage of the first interface do not meet the preset corresponding relationship, the operation branch can be operated according to the first reference voltage and the voltage of the first interface, and output a first signal to the adjustment branch based on the operation result, so that the adjustment branch adjusts the resistance value of the resistance branch according to the first signal to adjust the voltage output by the resistance branch. Thus, by adjusting the voltage of the first interface through the voltage output by the resistance branch, the first reference voltage and the voltage of the first interface can meet the preset corresponding relationship again. Through the above method, the automatic voltage calibration process can be realized when problems such as temperature drift occur. Since no manual intervention is required, it has a better calibration effect and can be applied to different application scenarios, that is, it can be used in different products and circuits and is highly practical. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0027] Figure 1 A schematic diagram of the structure of a voltage regulating circuit provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of the structure of a voltage regulating circuit provided in another embodiment of the present application;
[0029] Figure 3 A schematic diagram of the structure of a voltage regulating circuit provided in yet another embodiment of the present application;
[0030] Figure 4 A schematic diagram of the circuit structure of a voltage regulating circuit provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of the circuit structure of a voltage regulating circuit provided in another embodiment of the present application;
[0032] Figure 6 A schematic diagram of the circuit structure of a voltage regulating circuit provided in yet another embodiment of the present application;
[0033] Figure 7 A schematic diagram of the structure of a voltage regulating circuit provided in yet another embodiment of the present application;
[0034] Figure 8 A flowchart of a method executed by a controller provided in an embodiment of the present application;
[0035] Fig. 9 A schematic diagram of the structure of an electrical signal detection circuit provided in an embodiment of the present application;
[0036] Fig.10 A schematic diagram of the structure of an electrical signal detection circuit provided in another embodiment of the present application;
[0037] Fig.11 A schematic diagram of the circuit structure of an electrical signal detection circuit provided in an embodiment of the present application;
[0038] Fig.12 A schematic diagram of the circuit structure of an electrical signal detection circuit provided in another embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0040] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the structure of the voltage regulating circuit provided in the embodiment of the present application. Figure 1 As shown, the voltage regulating circuit 100 is used to regulate the voltage of the first interface J1, that is, the voltage regulating circuit 100 can indirectly or directly regulate the voltage of the first interface J1. For example, when the output end of the voltage regulating circuit 100 is directly connected to the first interface J1, the voltage regulating circuit 100 can directly regulate the voltage of the first interface J1. For another example, when the output end of the voltage regulating circuit 100 is connected to the second interface, and the voltage of the first interface J1 is determined by the voltage of the second interface, and the second interface and the first interface J1 are different interfaces, the voltage output by the voltage regulating circuit 100 is used to directly regulate the voltage of the second interface, and then the voltage of the first interface J1 is regulated by the voltage of the second interface, so as to achieve an indirect regulation process of the voltage of the first interface J1.
[0041] The voltage regulating circuit 100 includes a resistance branch 10, a calculation branch 20 and an adjustment branch 30. The resistance branch 10 is connected to the first power supply V1, the calculation branch 30 is respectively connected to the first reference voltage Vref1, the first interface J1 and the adjustment branch 30, and the adjustment branch 30 is connected to the resistance branch 10. Specifically, the first end of the resistance branch 10 is connected to the first power supply V1, the third end of the resistance branch 10 is connected to the second end of the adjustment branch 30, the first end of the calculation branch 20 is connected to the first interface J1, the second end of the calculation branch 20 is connected to the first reference voltage Vref1, and the third end of the calculation branch 20 is connected to the first end of the adjustment branch 30.
[0042] In this embodiment, the resistance branch 10 is configured as a branch with adjustable resistance value, and the resistance branch 10 outputs an adjustable voltage based on the voltage of the first power supply V1 to adjust the voltage of the first interface J1. The operation branch 20 is configured to perform an operation based on the first reference voltage Vref1 and the voltage of the first interface J1, and output a first signal to the adjustment branch 30 based on the operation result. The adjustment branch 30 is configured to adjust the resistance value of the resistance branch 10 based on the first signal, so as to adjust the voltage of the first interface J1 through the voltage output by the resistance branch 10, so that the first reference voltage Vref1 and the voltage of the first interface J1 meet a preset corresponding relationship.
[0043] Among them, the preset corresponding relationship is the relationship that the first reference voltage Vref1 and the voltage of the first interface J1 should satisfy under normal circumstances. The preset corresponding relationship and the first reference voltage Vref1 can be set accordingly according to different user needs or application scenarios, and the embodiment of the present application does not impose specific restrictions on this.
[0044] For example, in one embodiment, the preset corresponding relationship is set such that the absolute value of the difference between the first reference voltage Vref1 and the voltage of the first interface J1 is not greater than the first difference threshold, that is, the first reference voltage Vref1 is close to or equal to the voltage of the first interface J1. In this case, the first reference voltage Vref1 can be set to the voltage required by the user. For example, in one embodiment, if the user wants to keep the voltage of the first interface J1 at 0v, the first reference voltage Vref1 can be set to 0v, and the preset corresponding relationship can be set such that the first reference voltage Vref1 is equal to the voltage of the first interface J1. Then, when the voltage of the first interface J1 is affected by temperature drift and causes it to be not 0v, the voltage of the first interface J1 can be adjusted by the voltage regulating circuit 100 to be equal to the first reference voltage Vref1 again, that is, the voltage of the first interface J1 is adjusted to 0v, thereby achieving the purpose of keeping the voltage of the first interface J1 at 0v.
[0045] In practical applications, the first reference voltage Vref1 and the voltage of the first interface J1 meet the preset corresponding relationship, which can correspond to the voltage of the first interface J1 not being affected by temperature drift and other problems. In other words, when the voltage of the first interface J1 is affected by temperature drift and other problems, the first reference voltage Vref1 and the voltage of the first interface J1 do not meet the preset corresponding relationship. At this time, the operation branch 20 first operates the first reference voltage Vref1 and the first interface J1, wherein the operation may include subtraction operation, comparison operation and other operation methods. Then, the operation branch 20 outputs a first signal to the adjustment branch 30 according to the result of the operation, so that the adjustment branch 30 adjusts the resistance value of the resistance branch 10 according to the first signal. Since the voltage of the first power supply V1 remains unchanged, the resistance value of the resistance branch 10 changes, that is, the voltage output by the output end of the resistance branch 10 changes. The voltage output by the resistance branch 10 further causes the voltage of the first interface J1 to change, realizing the adjustment process of the voltage of the first interface J1, so as to adjust the first reference voltage Vref1 and the voltage of the first interface J1 to meet the preset corresponding relationship again. Thus, the process of automatically calibrating the voltage is realized when abnormalities such as temperature drift occur. Moreover, no manual intervention is required, and a better calibration effect is achieved. At the same time, it can also be applied to different application scenarios, that is, it can be used in different products and circuits, and has strong practicality.
[0046] In one embodiment, please refer to Figure 2 , Figure 2 This is a schematic diagram of the structure of a voltage regulating circuit provided by another embodiment of the present application. Figure 2 As shown, the regulating branch 30 includes a switch unit 31 , a computing unit 32 and an execution unit 33 .
[0047] The switch unit 31 is connected between the operation unit 32 and the operation branch 20, the operation unit 32 is respectively connected to the second reference voltage Vref1 and the execution unit 33, and the execution unit 33 is connected to the resistance branch 10. Specifically, the first end of the switch unit 31 is connected to the third end of the operation branch 20, the second end of the switch unit 31 is connected to the first end of the operation unit 32, the second end of the operation unit 32 is connected to the second reference voltage Vref2, the third end of the operation unit 32 is connected to the first end of the execution unit 33, the second end of the execution unit 33 is connected to the third end of the resistance branch 10, and the output end of the resistance branch 10 is used to output an adjustable voltage.
[0048] Specifically, the switch unit 31 is configured to be turned on in response to the first signal, and input the first signal to the operation unit 32. The operation unit 32 is configured to operate the first signal and the second reference voltage Vref2 when the switch unit 31 is turned on, wherein the operation may include a subtraction operation, a comparison operation, and the like. The operation unit 32 outputs a second signal to the execution unit 33 according to the result of the operation. The execution unit 33 is configured to adjust the resistance value of the resistance branch 10 in response to the second signal.
[0049] In this embodiment, when the voltage of the first interface J1 is not affected by temperature drift and other problems, that is, the voltage of the first interface J1 is in a normal state and does not need to be calibrated. The operation branch 20 can output a third signal after operation based on the voltage of the first interface J1 and the first reference voltage Vref1 to disconnect the switch unit 31. At this time, the connection between the operation unit 32 and the operation branch 20 is disconnected, the operation unit 32 does not output a signal to the execution unit 33, and the execution unit 33 does not perform an action, thereby preventing the voltage of the first interface J1 from being misregulated.
[0050] When the voltage of the first interface J1 is affected by temperature drift and other problems, the operation branch 20 outputs a first signal to turn on the switch unit 31. At this time, the operation unit 32 is connected to the operation branch 20, and the first signal output by the operation branch 20 is input into the operation unit 32 after passing through the switch unit 31. The operation unit 32 operates according to the first signal and the second reference voltage Vref2, and then outputs a second signal to the execution unit 33. Then, the execution unit 33 determines the size and direction of the adjustment of the resistance branch 10 according to the second signal, and adjusts the resistance branch 10 accordingly to adjust the voltage output by the output end of the resistance branch 10, so as to adjust the first reference voltage Vref1 and the voltage of the first interface J1 to meet the preset corresponding relationship again, thereby achieving the purpose of reducing or eliminating temperature drift and other problems.
[0051] In this embodiment, both the operation unit 32 and the operation branch 20 can be implemented through a variety of different operation schemes, and the embodiment of the present application does not impose specific restrictions on this. At the same time, the operation schemes of the operation unit 32 and the operation branch 20 can be the same or different.
[0052] For example, in one embodiment, the operation branch 20 can be implemented by a subtraction operation, and the operation unit 32 is used to perform a comparison operation. The specific implementation process is as follows: the operation branch 20 is used to calculate the difference between the voltage of the first interface J1 and the first reference voltage Vref1, and is recorded as the voltage error signal Ve. If the absolute value of the voltage error signal Ve is greater than the first preset difference (for example, zero), it can correspond to the first reference voltage Vref1 and the voltage of the first interface J1 not satisfying the preset corresponding relationship, then it is determined that the resistance value of the resistance branch 10 needs to be adjusted. At this time, the operation branch 20 outputs a first signal to the switch unit 31 to turn on the switch unit 31. Among them, the first signal is a signal associated with the voltage error signal Ve, such as the first signal can be the voltage error signal Ve, the first signal can also be a signal proportional to the voltage error signal Ve, etc. Then, the first signal is input to the operation unit 32, and the operation unit 32 is used to compare the size relationship between the first signal and the second reference voltage Vref2, and output the second signal execution unit 33 according to the size relationship. The execution unit 33 performs a corresponding operation according to the received second signal, that is, adjusts the resistance value of the resistance branch 10 .
[0053] In addition, the second reference voltage Vref2 can also be set according to actual application conditions, and the embodiment of the present application does not impose any specific restrictions on this. At the same time, the second reference voltage Vref2 can be the same as the first reference voltage Vref1, or can be different.
[0054] In one embodiment, please refer to Figure 3 , Figure 3 This is a schematic diagram of the structure of a voltage regulating circuit provided by another embodiment of the present application. Figure 3 As shown, the voltage regulating circuit 100 further includes a capacitor branch 40 and a voltage follower branch 50 .
[0055] The capacitor branch 40 is connected to the resistor branch 10, specifically, a first end of the capacitor branch 40 is connected to an output end of the resistor branch 10. The capacitor branch 40 is configured to filter the voltage output by the resistor branch 10.
[0056] The voltage follower branch 50 is connected to the resistor branch 10, specifically, the first end of the voltage follower branch 50 is connected to the output end of the resistor branch 10, and the second end of the voltage follower branch 50 is used to output a following voltage, wherein the following voltage is equal to the voltage output by the resistor branch 10. The voltage follower branch 50 is used to output a following voltage based on the voltage output by the resistor branch 10.
[0057] In order to better understand this application, Figure 4 The circuit structure shown is taken as an example to illustrate the working principle of the voltage regulating circuit 100.
[0058] In one embodiment, if Figure 4 As shown, a first end of the resistance branch 10 is connected to the first power source V1 , and a second end of the resistance branch 10 is grounded GND.
[0059] The resistor branch 10 includes M resistors connected in series, namely, resistor Ra1, resistor Ra2, . . . resistor RaM.
[0060] The M resistors connected in series include at least one adjustable resistor. In this embodiment, the resistor RaM is taken as an adjustable resistor for example, and the resistance value of the resistor RaM can be adjusted by the execution unit 33. Of course, other resistors can also be set as adjustable resistors, such as Figure 5 As shown, the adjustable resistor is resistor R1, and the resistance value of resistor R1 can be adjusted by the execution unit 33. The present application does not limit which resistor the adjustable resistor is, nor does it limit the number and connection position of the adjustable resistor. For example, in one embodiment, M=3, then the resistor branch 10 includes resistors Ra1, Ra2 and Ra3 connected in series, wherein resistor Ra3 is an adjustable resistor.
[0061] The connection point between the Nth resistor and the N+1th resistor among the M series-connected resistors is the first connection point P1, and the first connection point P1 is the output end of the resistor branch 10, that is, the resistor branch 10 outputs a voltage from the first connection point P1, wherein M is an integer ≥ 2, and N ≤ M-1. Figure 4 In the circuit structure shown, N=1 is taken as an example, that is, the first connection point P1 is the connection point between the first resistor Ra1 and the second resistor Ra2. Of course, in other embodiments, the first connection point P1 can be a connection between any two resistors, such as the connection point between the second resistor Ra2 and the third resistor Ra3. The voltage at the first connection point P1 is the voltage output by the resistor branch 10.
[0062] It is understandable that different resistors are set as adjustable resistors, and the adjustment methods of the adjustable resistors are different. For example, if one adjustable resistor is included in the M series resistors, if the adjustable resistor is connected between the first power supply V1 and the first connection point P1, for example, the resistor Ra1 is an adjustable resistor, then when the resistance value of the resistor Ra1 increases, the voltage of the first connection point P1 decreases; when the resistance value of the resistor Ra1 decreases, the voltage of the first connection point P1 increases. In other words, if you want to increase the voltage of the first connection point P1, you should adjust the resistance value of the resistor Ra1 to a smaller value; if you want to reduce the voltage of the first connection point P1, you should adjust the resistance value of the resistor Ra1 to a larger value.
[0063] If an adjustable resistor is connected between the first connection point P1 and the ground GND, for example, the resistor RaM is an adjustable resistor, then when the resistance value of the resistor RaM increases, the voltage of the first connection point P1 increases; when the resistance value of the resistor RaM decreases, the voltage of the first connection point P1 decreases. In other words, if the voltage of the first connection point P1 is to be increased, the resistance value of the resistor RaM should be increased; if the voltage of the first connection point P1 is to be decreased, the resistance value of the resistor RaM should be decreased.
[0064] In summary, in this embodiment, by adjusting the resistance value of the adjustable resistor among the M series-connected resistors, the voltage of the first connection point P1 can be adjusted, that is, the output voltage of the output end of the resistor branch 10 can be adjusted, thereby achieving the purpose of adjusting the voltage of the first interface J1.
[0065] In one embodiment, please continue to refer to Figure 4 The capacitor branch 40 includes a first capacitor C1. The first end of the first capacitor C1 is connected to the first end of the output voltage of the resistor branch 10, that is, the first end of the first capacitor C1 is connected to the first connection point P1, and the second end of the first capacitor C1 is grounded GND.
[0066] Specifically, the first capacitor C1 is used as a filter capacitor to filter the voltage at the first connection point P1, thereby improving the stability of the voltage at the first connection point P1.
[0067] In another embodiment, the voltage follower branch 50 includes a first operational amplifier U1. The first input terminal of the first operational amplifier U1 is connected to the first end of the output voltage of the resistor branch 10, that is, the first input terminal of the first operational amplifier U1 is connected to the first connection point P1, and the second input terminal of the first operational amplifier U1 is connected to the output terminal of the first operational amplifier U1. In this embodiment, the first input terminal of the first operational amplifier U1 is taken as the non-inverting input terminal, and the second input terminal of the first operational amplifier U1 is taken as the inverting input terminal.
[0068] The output terminal of the first operational amplifier U1 is used to output a follower voltage, so as to adjust the voltage of the first interface through the follower voltage. The input voltage of the first input terminal of the first operational amplifier U1 is equal to the output voltage of the first operational amplifier U1, that is, the output voltage of the first operational amplifier U1 (i.e., the follower voltage) is equal to the voltage of the first connection point P1. The first operational amplifier U1 is in a high-resistance state relative to its front-stage circuit (e.g., the first resistor unit 31), and the first operational amplifier U1 is in a low-resistance state relative to its rear-stage circuit (i.e., the circuit connected to the interface J2), thereby isolating the front-stage circuit from the rear-stage circuit, reducing the mutual influence between the front-stage circuit and the rear-stage circuit, and is conducive to improving the stability of the voltage regulating circuit 100.
[0069] Figure 4 A structure of the operation branch 20 is also exemplarily shown in FIG. Figure 4As shown, the operation branch 20 includes a subtractor U2.
[0070] Among them, the first input end of the subtractor U2 is connected to the first interface J1, the first input end of the subtractor U2 is used to input the voltage of the first interface J1, the second input end of the subtractor U2 is connected to the first reference voltage Vref1, and the output end of the subtractor U2 is connected to the switch unit 31, for outputting the first signal or the third signal to the switch unit 31.
[0071] Specifically, the operation performed by the subtractor U2 is a subtraction operation, that is, calculating the difference between the voltage of the first interface J1 and the first reference voltage Vref1, and outputting a first signal or a third signal to the switch unit 31 according to the difference to control the on or off of the switch unit 31. Wherein, if the absolute value of the difference between the voltage of the first interface J1 and the first reference voltage Vref1 is not greater than the first preset difference, the third signal is output to control the switch unit 31 to be off; if the absolute value of the difference between the voltage of the first interface J1 and the first reference voltage Vref1 is greater than the first preset difference, the first signal is output to control the switch unit 31 to be on. The specific process of the operation branch 20 performing the subtraction operation has been described in the above embodiment, and will not be repeated here.
[0072] It should be noted that in other embodiments, other methods can also be used to implement the function of the operation branch 20. It only needs to be able to determine whether the first detection voltage and the first reference voltage Vref1 satisfy a preset corresponding relationship (for example, the absolute value of the difference between the voltage of the first interface J1 and the first reference voltage Vref1 is not greater than the first preset difference), and be able to generate a corresponding signal to control the switch unit 31.
[0073] For example, in some other embodiments, Figure 6 As shown, the operation branch 20 includes a first comparator U3.
[0074] The first input end of the first comparator U3 is connected to the first interface J1, the first input end of the first comparator U3 is used to input the voltage of the first interface J1, the second input end of the first comparator U3 is connected to the first reference voltage Vref1, and the output end of the first comparator U3 is connected to the switch unit 31, and is used to output the first signal or the third signal to the switch unit 31. In this embodiment, the first input end of the first comparator U3 is a non-inverting input end, and the second input end of the first comparator U3 is an inverting input end.
[0075] Specifically, the operation performed by the first comparator U3 is a comparison operation, that is, comparing the magnitude relationship between the voltage of the first interface J1 and the first reference voltage Vref1, and outputting the first signal or the third signal to the switch unit 31 according to the comparison result to control the on or off of the switch unit 31. Specifically, when the voltage of the first interface J1 is equal to the first reference voltage Vref1, the output of the first comparator U3 is zero, and the first comparator U3 outputs the third signal to the switch unit 31 to turn off the switch unit 31. When the voltage of the first interface J1 is not equal to the first reference voltage Vref1, the output of the first comparator U3 is not zero, and the first comparator U3 outputs the first signal to the switch unit 31 to turn on the switch unit 31. Therefore, in this embodiment, the first signal corresponds to the high level signal or the low level signal output by the first comparator U3, and the third signal corresponds to the output of the first comparator U3 is zero.
[0076] Please refer back to Figure 4 In one embodiment, the switch unit 31 includes a first switch S1 , wherein a first end of the first switch S1 is connected to a third end of the operation branch 20 , and a second end of the first switch S1 is connected to a first end of the operation unit 32 .
[0077] Specifically, when the first switch S1 receives the first signal, the first switch S1 is closed and inputs the first signal to the operation unit 32 ; when the first switch S1 receives the third signal, the first switch S1 is opened.
[0078] It should be noted that the first switch S1 can be any controllable switch, for example, it can be a MOSFET device, an insulated gate bipolar transistor (IGBT) device, an integrated gate commutated thyristor (IGCT) device, a turn-off thyristor (GTO) device, a silicon-controlled rectifier (SCR) device, a junction gate field effect transistor (JFET) device, a MOS controlled thyristor (MCT) device, a gallium nitride (GaN)-based power device, a silicon carbide (SiC)-based power device, etc.
[0079] Figure 4 A structure of the operation unit 32 is also exemplarily shown in FIG. Figure 4 As shown, the operation unit 32 includes a second comparator U4.
[0080] The first input terminal of the second comparator U4 is connected to the second terminal of the switch unit 31, the second input terminal of the second comparator U4 is connected to the second reference voltage Vref2, and the output terminal of the second comparator U4 is connected to the first terminal of the execution unit 33. In this embodiment, the first input terminal of the second comparator U4 is the non-inverting input terminal, and the second input terminal of the second comparator U4 is the inverting input terminal.
[0081] Specifically, when the first switch S1 is closed, the first signal is input to the first input terminal of the second comparator U4. If the voltage of the first signal is greater than the second reference voltage Vref2, the output terminal of the second comparator U4 outputs a high-level signal, that is, the second signal is a high-level signal; if the voltage of the first signal is less than the second reference voltage Vref2, the output terminal of the second comparator U4 outputs a low-level signal, that is, the second signal is a low-level signal. Then, the execution unit 33 can determine how to adjust the resistance value of the resistor branch 10 according to the level of the received second signal. For example, in one embodiment, if the second signal received by the execution unit 33 is a high-level signal, the resistance value of the resistor branch 10 is increased; conversely, if the second signal received by the execution unit 33 is a low-level signal, the resistance value of the resistor branch 10 is decreased.
[0082] Figure 4 A structure of the execution unit 33 is also exemplarily shown in FIG. Figure 4 As shown, the execution unit 33 includes a motor M1 , wherein a control end of the motor M1 is connected to a third end of the operation unit 32 , and a running end of the motor M1 is connected to a second end of the resistance branch 10 .
[0083] In this embodiment, the motor M1 rotates forward or reversely according to the received second signal to adjust the resistance value of the resistance branch 10 to increase or decrease.
[0084] It should be noted that, in this embodiment, the execution unit 334 is taken as the motor M1 as an example, and in other embodiments, other implementation methods may also be used, as long as the resistance value of the resistance branch 10 can be adjusted based on the second signal. For example, in other embodiments, the adjustable resistor in the resistance branch 10 adopts an adjustable resistor, and the adjustable resistor is controlled by the input signal to adjust its resistance value. Then the execution unit 33 may include a controller, and after receiving the second signal, the controller outputs a corresponding signal to the adjustable resistor according to the second signal, so as to adjust the resistance value of the adjustable resistor, thereby adjusting the resistance value of the resistance branch 10.
[0085] The following Figure 4 The principle of the overall circuit structure shown is explained as follows. Take the example that the motor M1 rotates forward to increase the resistance value of the adjustable resistor RaM in the first resistor unit 31 and the motor M1 rotates reversely to decrease the resistance value of the adjustable resistor RaM.
[0086] When the voltage of the first interface J1 is not affected by temperature drift and other problems, the voltage of the first interface J1 satisfies the preset corresponding relationship with the first reference voltage Vref1, the subtractor U2 outputs a third signal to disconnect the first switch S1, the second comparator U4 does not output a signal to control the motor M1, and the resistance value of the resistance branch 10 maintains the current value.
[0087] When the voltage of the first interface J1 is affected by temperature drift and other problems, the voltage of the first interface J1 and the first reference voltage Vref1 do not satisfy the preset corresponding relationship, indicating that it is necessary to adjust the resistance value of the resistance branch 10. The subtractor U2 outputs a first signal to turn on the first switch S1, and then the first signal is input to the non-inverting input terminal of the second comparator U4 through the first switch S1.
[0088] At this time, when the voltage of the first signal is greater than the second reference voltage Vref2, it means that the voltage of the first interface J1 is larger, that is, the resistance value of the current adjustable resistor RaM is larger, and the voltage on the first connection point P1 is higher. And because the voltage of the first signal is greater than the second reference voltage Vref2, the voltage of the in-phase input terminal of the second comparator U4 is greater than the voltage of the inverting input terminal, and the second signal output by the second comparator U4 is a high-level signal. After receiving the high-level signal, the motor M1 reverses to reduce the resistance value of the adjustable resistor RaM, thereby reducing the voltage division on the adjustable resistor RaM. The voltage on the first connection point P1 decreases, and the follower voltage output by the voltage follower branch 50 also decreases, and the voltage of the first interface J1 is reduced.
[0089] When the voltage of the first signal is less than the second reference voltage Vref2, it means that the voltage of the first interface J1 is small, that is, the resistance value of the current adjustable resistor RaM is small, and the voltage on the first connection point P1 is low. And because the voltage of the first signal is less than the second reference voltage Vref2, the voltage of the in-phase input terminal of the second comparator U4 is less than the voltage of the inverting input terminal, and the second signal output by the second comparator U4 is a low-level signal. After receiving the low-level signal, the motor M1 rotates forward to increase the resistance value of the adjustable resistor RaM, thereby increasing the voltage division on the adjustable resistor RaM. The voltage on the first connection point P1 increases, and the follower voltage output by the voltage follower branch 50 also increases, and the voltage of the first interface J1 is increased.
[0090] In summary, when the voltage of the first interface J1 is not affected by temperature drift and other problems, the current resistance value of the resistance branch 10 is kept unchanged. When the voltage of the first interface J1 is affected by temperature drift and other problems, if the voltage of the first interface J1 increases, the voltage of the first interface J1 can be reduced by reducing the resistance value of the adjustable resistor RaM; if the voltage of the first interface J1 decreases, the voltage of the first interface J1 can be increased by increasing the resistance value of the adjustable resistor RaM. Thus, the automatic calibration process of the voltage is realized, and no manual intervention is required, with a better calibration effect. At the same time, it can be applied to different application scenarios, that is, it can be used in different products and circuits, and it is more practical.
[0091] Please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of the voltage regulating circuit provided in the embodiment of the present application. Figure 7 As shown, the voltage regulating circuit 100 is used to regulate the voltage of the first interface J1. Similarly, the voltage regulating circuit 100 can indirectly or directly regulate the voltage of the first interface J1. The specific implementation process can refer to the description of the above embodiment, which will not be repeated here.
[0092] The voltage regulating circuit 100 includes a resistor branch 10 and a controller 60. The resistor branch 10 is connected to the first power source V1, specifically, the first end of the resistor branch 10 is connected to the first power source V1. The resistor branch 10 is configured as a branch with adjustable resistance value, and the resistor branch 10 can output an adjustable voltage based on the voltage of the first power source to adjust the voltage of the first interface J1. That is, when the voltage of the first power source V1 remains unchanged, by adjusting the resistance value of the resistor branch 10, the voltage outputted from the output end of the resistor branch 10 can be adjusted.
[0093] The controller 60 is connected to the resistor branch 10 and the first interface J1 respectively. The controller 60 can be a microcontroller unit (MCU) or a digital signal processing (DSP) controller.
[0094] The controller 60 includes at least one processor 61 and a memory 62, wherein the memory 62 may be built in the controller 60 or externally located outside the controller 60, and the memory 62 may also be a remotely located memory connected to the controller 60 via a network.
[0095] The memory 62, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 62 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 62 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 62 may optionally include a memory remotely arranged relative to the processor 61, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0096] The processor 61 performs various functions of the terminal and processes data by running or executing software programs and / or modules stored in the memory 62 and calling data stored in the memory 62, thereby monitoring the terminal as a whole.
[0097] The processor 61 may be one or more, Figure 7 A processor 61 is taken as an example. The processor 61 and the memory 62 may be connected via a bus or other means. The processor 61 may include a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a controller, a field programmable gate array (FPGA) device, etc. The processor 61 may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration.
[0098] Please refer to Figure 7 and Figure 8 , Figure 8 A flowchart of a method performed by the controller 60 provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the method executed by the controller 60 includes the following steps:
[0099] Step 81: Obtain a first reference voltage and a current first voltage of a first interface, and obtain a preset corresponding relationship between the voltage of the first interface and the first reference voltage.
[0100] Step 82: Based on the first voltage, the first reference voltage and the preset corresponding relationship, adjust the resistance value of the resistance branch to adjust the voltage of the first interface through the voltage output by the resistance branch, so that the first reference voltage and the voltage of the first interface satisfy the preset corresponding relationship.
[0101] In one embodiment, the preset corresponding relationship is: the absolute value of the difference between the voltage of the first interface and the first reference voltage is not greater than the first difference threshold. The preset corresponding relationship has been described in detail in the above embodiment, and will not be repeated here. In addition, the first reference voltage can refer to the description of the first reference voltage Vref1 in the above embodiment, and will not be repeated here.
[0102] In this embodiment, after obtaining the first voltage, the first reference voltage and the preset corresponding relationship, it can be determined whether the first voltage satisfies the preset corresponding relationship with the first reference voltage, so as to determine whether to adjust the resistance value of the resistance branch. Then, after determining that the resistance value of the resistance branch needs to be adjusted, the voltage of the first interface can be adjusted by adjusting the voltage output by the resistance branch so that the first reference voltage and the voltage of the first interface meet the preset corresponding relationship again. Thus, the process of automatically calibrating the voltage of the first interface is realized. Moreover, no manual intervention is required, and a better calibration effect is achieved. At the same time, it can also be applied to different application scenarios, that is, it can be used in different products and circuits, and has strong practicality.
[0103] In one embodiment, the process of adjusting the resistance value of the resistance branch based on the first voltage, the first reference voltage and the preset corresponding relationship in step 82 includes the following steps: if the first voltage and the first reference voltage do not satisfy the preset corresponding relationship, the difference between the first voltage and the first reference voltage is calculated. If the difference is greater than the second reference voltage, the resistance value of the resistance branch is adjusted to reduce the voltage output by the resistance branch. If the difference is less than the second reference voltage, the resistance value of the resistance branch is adjusted to increase the voltage output by the resistance branch.
[0104] The resistance branch is Figure 4 Take the resistor branch 10 in the example, where the resistor RaM in the resistor branch is an adjustable resistor, and the controller 60 can adjust the resistance value of the resistor RaM to adjust the output voltage of the resistor branch 10.
[0105] Specifically, when the difference between the first voltage and the first reference voltage is greater than the second reference voltage, it can be determined that the first voltage is larger, that is, the resistance value of the current resistor RaM is larger, and the output voltage of the resistor branch 10 is higher. Then the controller 60 can adjust the resistance value of the resistor RaM to reduce the voltage division on the resistor RaM, so as to correspondingly reduce the voltage of the first interface J1.
[0106] When the difference between the first voltage and the first reference voltage is less than the second reference voltage, it can be determined that the first voltage is smaller, that is, the resistance value of the current resistor RaM is smaller, and the output voltage of the resistor branch 10 is lower. Then the controller 60 can increase the resistance value of the resistor RaM, thereby increasing the voltage division on the resistor RaM, so as to increase the voltage of the first interface J1 accordingly.
[0107] In summary, when the voltage of the first interface J1 increases, the controller 60 can adjust the resistance value of the resistor RaM to reduce the voltage of the first interface J1; when the voltage of the first interface J1 decreases, the controller 60 can adjust the resistance value of the resistor RaM to increase the voltage of the first interface J1. Thus, the automatic voltage calibration process is achieved.
[0108] It should be understood that the implementation process of the voltage regulating circuit in the method embodiment and the beneficial effects produced can refer to the corresponding description in the above-mentioned voltage regulating circuit embodiment, and for the sake of brevity, they will not be repeated here.
[0109] Please refer to Fig. 9 , Fig. 9 This is a schematic diagram of the structure of the electrical signal detection circuit provided in the embodiment of the present application. Fig. 9 As shown, the electrical signal detection circuit 1000 includes an electrical signal sampling branch 200, an amplifying branch 300 and Figure 7 In the voltage regulating circuit 100 shown, the output end of the amplifying branch 300 is the first interface J1 , that is, the voltage regulating circuit 100 is used to regulate the voltage at the output end of the amplifying branch 300 .
[0110] The first end of the electrical signal sampling branch 200 is connected to the first end of the amplifying branch 300 , the second end of the electrical signal sampling branch 200 is connected to the second end of the amplifying branch 300 , and the output end of the voltage regulating circuit 100 is connected to the first end of the amplifying branch 300 .
[0111] Specifically, the electrical signal sampling branch 200 is configured to detect the electrical signal, and based on the detected electrical signal, a voltage is generated at the first end and the second end of the electrical signal sampling branch 200, so as to generate a voltage at the first end and the second end of the amplifying branch 300. The amplifying branch 300 is configured to amplify the voltage difference between the first end and the second end of the amplifying branch 300 and then output it, so as to cooperate with the subsequent circuit to detect the electrical signal, wherein the voltage output by the amplifying branch 300 is the voltage of the first interface J1.
[0112] The controller 60 in the voltage regulating circuit 100 is specifically used to: when the electrical signal sampling branch 200 does not detect an electrical signal, adjust the resistance value of the resistance branch 10 in the voltage regulating circuit 100, so as to adjust the voltage of the first end of the amplifying branch 300 through the voltage output by the resistance branch 10, so that the voltage output by the amplifying branch 300 and the first reference voltage Vref1 meet a preset corresponding relationship, wherein when the voltage output by the amplifying branch 300 and the first reference voltage Vref1 meet a preset corresponding relationship, the absolute value of the difference between the voltage at the first end and the second end of the amplifying branch 300 is not greater than the second difference threshold. In this embodiment, the voltage regulating circuit 100 is used to perform interval adjustment on the voltage of the first interface J1, that is, the voltage output by the voltage regulating circuit 100 is used to adjust the voltage at the first end of the amplifying branch 300, and then the voltage at the first end of the amplifying branch 300 is adjusted to the voltage of the first interface J1.
[0113] The post-stage circuit refers to a circuit connected to the amplifying branch 20 , and the circuit is capable of receiving a first detection voltage and determining the size of a detection electrical signal according to the first detection voltage.
[0114] Secondly, the electrical signal may include at least one of current, voltage and magnetic induction intensity.
[0115] Furthermore, the second difference threshold value can be set according to the actual application situation, and the embodiment of the present application does not impose specific restrictions on this. For example, in one embodiment, the second difference threshold value is set to be close to zero, or the second difference threshold value is set to zero, and then the voltage at the first end of the amplifying branch 300 is adjusted by the voltage regulating circuit 100, so that the voltage at the first end and the second end of the amplifying branch 300 can be equal, and there is no zero drift phenomenon at this time, so that the electrical signal detection circuit 1000 has a higher detection accuracy.
[0116] Zero drift can also be called temperature drift. Zero drift can be described as: when the input signal of the amplifier or amplifying circuit is zero, due to the influence of factors such as temperature changes and unstable power supply voltage, the static operating point changes and is amplified and transmitted, causing the output voltage of the amplifier or amplifying circuit to deviate from the original fixed value and drift up and down.
[0117] In this embodiment, when the electrical signal sampling branch 200 does not detect an electrical signal, neither the first end nor the second end of the electrical signal sampling branch 200 generates a voltage. At this time, if the zero drift phenomenon does not occur, the difference between the voltages at the first end and the second end of the amplifying branch 300 is not greater than (i.e., less than or equal to) the first difference threshold. If the zero drift phenomenon occurs, the difference between the voltages at the first end and the second end of the amplifying branch 300 increases and is greater than the first difference threshold. At this time, the voltage regulating circuit 100 can adjust the voltage output by the resistor branch 10 (i.e., the output voltage at the output end of the voltage regulating circuit 100) by adjusting the resistance value of the resistor branch 10. Since the output end of the voltage regulating circuit 100 is connected to the first end of the amplifying branch 300, the voltage at the first end of the amplifying branch 300 is correspondingly adjusted. Since the voltage at the first end and the second end of the amplifier branch 300 determines the output voltage thereof, the voltage at the first end of the amplifier branch 300 can be adjusted to adjust the output voltage of the amplifier branch 300, so that the output voltage of the amplifier branch 300 satisfies the preset corresponding relationship with the first reference voltage Vref1. At the same time, the voltage at the output of the amplifier branch 300 satisfies the preset corresponding relationship with the first reference voltage Vref1, which means that the voltage difference between the first end and the second end of the amplifier branch 300 is adjusted to be no greater than the second difference threshold, and the influence of the zero drift is reduced or even eliminated.
[0118] Then, after reducing or eliminating the zero drift, the electrical signal is detected by the electrical signal sampling branch 200. Specifically, the electrical signal sampling branch 200 generates a voltage at the first end and the second end of the electrical signal sampling branch 200 based on the detected electrical signal, so as to generate a voltage at the first end and the second end of the amplifying branch 300, so that the voltage at the first end and the second end of the amplifying branch 300 outputs a first detection voltage, and then the relevant parameters of the detected electrical signal can be determined according to the first detection voltage in cooperation with the relevant subsequent circuits to realize the process of electrical signal detection.
[0119] Therefore, in the process of detecting electrical signals, even if zero-point drift occurs due to harsh climatic conditions, the solution provided in the embodiment of the present application can reduce the impact of zero-point drift, thereby realizing the process of detecting electrical signals more reliably and stably, which is conducive to improving the accuracy of detecting electrical signals.
[0120] In one embodiment, in order to improve the stability of the waveform during the electrical signal detection process, the electrical signal detection circuit 1000 may further include at least one of a first waveform adjustment branch and a second waveform adjustment branch.
[0121] Please combine Fig. 9 Reference Fig.10 , Fig.10 In the embodiment, the electrical signal detection circuit 1000 includes the first waveform adjustment branch 400 and the second waveform adjustment branch 500. In other embodiments, only the first waveform adjustment branch 400 or the second waveform adjustment branch 500 may be included.
[0122] The first waveform adjustment branch 400 is connected between the output end of the voltage regulation circuit 100 and the first end of the amplification branch 300 , and the second waveform adjustment branch 500 is connected between the second end of the amplification branch 300 and the output end of the amplification branch 300 .
[0123] The first waveform adjustment branch 400 is configured to adjust the waveform of the first end of the amplifying branch 300. The second waveform adjustment branch 500 is configured to adjust the waveform of the second end of the amplifying branch 300. The adjustment methods of the first waveform adjustment branch 400 and the second waveform adjustment branch 500 both include at least one of integral adjustment, proportional adjustment, and differential adjustment.
[0124] The following Fig.11 The working principle of the electrical signal detection circuit 1000 is described by taking the circuit structure shown as an example.
[0125] In one embodiment, the first waveform adjustment branch 400 includes at least one of the following three parts: a second capacitor, a first resistor, and a first circuit consisting of a third capacitor and a second resistor.
[0126] Among them, Fig.11 In the structure shown, the first waveform adjustment branch 400 includes the first circuit composed of the second capacitor C2, the first resistor R1, the third capacitor C3 and the second resistor R2. In other embodiments, the first waveform adjustment branch 400 may also include the second capacitor C2, or the first resistor R1, or the first circuit, or the second capacitor C2 and the first resistor R1, or the second capacitor C2 and the first circuit, or the first resistor R1 and the first circuit.
[0127] The second capacitor C2 is connected between the output end of the voltage regulating circuit 100 and the first end of the amplifying branch 300 , that is, the second capacitor C2 is connected between the output end of the voltage follower branch 50 in the above embodiment and the first end of the amplifying branch 300 .
[0128] The second capacitor C2 is used to achieve differential regulation. The introduction of differential action can speed up the system response and effectively reduce overshoot, that is, it can adjust the slope of the rising edge of the waveform to improve the dynamic characteristics of the system, thereby increasing the stability of the system.
[0129] The first resistor R1 is connected between the output end of the voltage regulating circuit 100 and the first end of the amplifying branch 300 , that is, the first resistor R1 is connected between the output end of the voltage follower branch 50 in the above embodiment and the first end of the amplifying branch 300 .
[0130] The first resistor R1 is used to implement proportional regulation to adjust the proportion of the waveform, thereby reducing the deviation of the waveform and shortening the regulation time.
[0131] The third capacitor C3 is connected in series with the second resistor R2, and the first circuit formed by the third capacitor C3 and the second resistor R2 in series is connected between the output end of the voltage regulating circuit 30 and the first end of the amplifying branch 20, that is, the first circuit is connected between the output end of the voltage follower branch 50 in the above embodiment and the first end of the amplifying branch 300.
[0132] The circuit formed by the third capacitor C3 and the second resistor R2 connected in series is used to realize integral regulation. The introduction of the integral effect can compensate the waveform to eliminate the steady-state error, thereby improving the accuracy of the waveform.
[0133] Likewise, in another embodiment, the second waveform adjustment branch 500 may include at least one of the following three parts: a fourth capacitor, a third resistor, and a second circuit consisting of a fifth capacitor and a fourth resistor.
[0134] Please continue to refer to Fig.11 , among which, in Fig.11 In the structure shown, the second waveform adjustment branch 500 includes the second circuit composed of the fourth capacitor C4, the third resistor R3, the fifth capacitor C5 and the fourth resistor R4. In other embodiments, the second waveform adjustment branch 500 may also include the fourth capacitor C4, or the third resistor R3, or the second circuit, or the fourth capacitor C4 and the third resistor R3, or the fourth capacitor C4 and the second circuit, or the third resistor R3 and the second circuit.
[0135] The fourth capacitor C4 is connected between the second end and the output end of the amplifying branch 300 .
[0136] The fourth capacitor C4 is used to achieve differential regulation. The introduction of differential action can speed up the system response and effectively reduce overshoot, that is, it can adjust the slope of the rising edge of the waveform to improve the dynamic characteristics of the system, thereby increasing the stability of the system.
[0137] The third resistor R3 is connected between the second end of the amplifying branch 300 and the output end.
[0138] The third resistor R3 is used to implement proportional regulation to adjust the proportion of the waveform, thereby reducing the deviation of the waveform and shortening the regulation time.
[0139] The fifth capacitor C5 is connected in series with the fourth resistor R4 , and a second circuit formed by the fifth capacitor C5 and the fourth resistor R4 in series is connected between the second end and the output end of the amplifying branch 300 .
[0140] The circuit formed by the fifth capacitor C5 and the fourth resistor R4 connected in series is used to implement integral regulation. The introduction of the integral effect can compensate the waveform to eliminate the steady-state error, thereby improving the accuracy of the waveform.
[0141] In this embodiment, by adding a first circuit consisting of a second capacitor C2, a first resistor R1, a third capacitor C3 and a second resistor R2, and a second circuit consisting of a fourth capacitor C4, a third resistor R3, a fifth capacitor C5 and a fourth resistor R4, a stable waveform can be effectively provided, which is conducive to making the electrical signal detection circuit 1000 suitable for different application scenarios and having strong adaptability and practicality.
[0142] Fig.11 A structure of the electrical signal sampling branch 200 is also exemplarily shown. Fig.11 As shown, the electrical signal sampling branch 200 includes a Hall sensor U6, a fifth resistor R5, a sixth resistor R6, a seventh resistor R7 and an eighth resistor R8.
[0143] Among them, the first end of the Hall sensor U6 is connected to the first end of the fifth resistor R5, the second end of the fifth resistor R5 is connected to the first end of the amplification branch 300, the second end of the Hall sensor U6 is connected to the first end of the sixth resistor R6, the second end of the sixth resistor R6 is connected to the second end of the amplification branch 20, the third end of the Hall sensor U6 is connected to the first end of the seventh resistor R7, the second end of the seventh resistor R7 is connected to the first power supply V1, the fourth end of the Hall sensor U6 is connected to the eighth resistor R8, and the second end of the eighth resistor R8 is grounded GND.
[0144] In this embodiment, the first power supply V1 is used to power the Hall sensor U6. When the Hall sensor U6 detects an electrical signal, the Hall sensor U6 can respond to the magnetic induction intensity corresponding to the electrical signal and output a corresponding current flowing through the fifth resistor R5 and the sixth resistor R6 to generate a voltage at the second end of the fifth resistor R5 and the second end of the sixth resistor R6, that is, to generate a voltage at the first end and the second end of the amplification branch 20.
[0145] Specifically, if the electrical signal detected by the electrical signal detection circuit 1000 is the magnetic induction intensity of the electromagnetic field, the Hall sensor U6 can generate a voltage at the first end and the second end of the amplifying branch 300 in response to the magnetic induction intensity, so that the amplifying branch 300 outputs a first detection voltage, so that the subsequent circuit can determine the magnitude of the detected magnetic induction intensity according to the first detection voltage; if the electrical signal detected by the electrical signal detection circuit 1000 is a current, the Hall sensor U6 can generate a voltage at the first end and the second end of the amplifying branch 300 in response to the magnetic induction intensity of the electromagnetic field generated by the current, so that the amplifying branch 300 outputs a first detection voltage. 0 outputs a first detection voltage, so that the subsequent circuit can determine the magnitude of the magnetic induction intensity according to the first detection voltage, and can further determine the magnitude of the detected current according to the corresponding relationship between the magnetic induction intensity and the current; if the electrical signal detected by the electrical signal detection circuit 1000 is a voltage, a resistor with a known resistance value can be configured on the detected circuit to convert the voltage into a current. Similarly, after the subsequent circuit determines the magnetic induction intensity according to the first detection voltage, the magnitude of the detected current can be determined according to the corresponding relationship between the magnetic induction intensity and the current, and then further combined with the resistance value of the known resistor, the magnitude of the detected voltage can be determined.
[0146] Fig.11 A structure of the amplification branch 300 is also exemplarily shown in FIG. Fig.11 As shown, the amplifying branch 20 includes a second operational amplifier U5.
[0147] Among them, the first input end of the second operational amplifier U5 is connected to the first end of the electrical signal sampling branch 10, the second input end of the second operational amplifier U5 is connected to the second end of the electrical signal sampling branch 20, and the output end of the second operational amplifier U5 is the output end of the amplification branch 300, that is, the first interface J1. In this embodiment, the first input end of the second operational amplifier U5 is the in-phase input end, and the second input end of the second operational amplifier U5 is the inverting input end.
[0148] Specifically, the second operational amplifier U5 is used to amplify the difference between the voltage at its non-inverting input terminal and the voltage at its inverting input terminal and then output the amplified difference.
[0149] When the Hall sensor U6 does not detect the electrical signal, if there is no zero drift, the difference between the voltage at the in-phase input terminal and the voltage at the inverting input terminal of the second operational amplifier U5 should be no greater than the second difference threshold, and the voltage at the output terminal of the second operational amplifier U5 (i.e., the first interface J1) is no greater than the preset voltage value. Even, the difference between the voltage at the in-phase input terminal and the voltage at the inverting input terminal of the second operational amplifier U5 is zero, that is, the voltage at the in-phase input terminal of the second operational amplifier U5 is equal to the voltage at the inverting input terminal, and the voltage at the first interface J1 is zero.
[0150] When the Hall sensor U6 does not detect the electrical signal, if zero drift occurs, the difference between the voltage at the in-phase input terminal and the voltage at the inverting input terminal of the second operational amplifier U5 will be greater than the second difference threshold, so that the voltage at the first interface J1 is correspondingly greater than the preset voltage value. In this case, the first reference voltage Vref1 can be set to a preset voltage value, and the voltage regulating circuit 100 obtains the voltage at the first interface J1. Since the voltage at the first interface J1 is greater than the preset voltage value, that is, the voltage at the first interface J1 is greater than the first reference voltage Vref1, that is, the absolute value of the difference between the voltage at the first interface J1 and the first reference voltage Vref1 is greater than the first difference threshold, the voltage at the first interface J1 does not satisfy the preset corresponding relationship with the first reference voltage Vref1. The voltage regulating circuit 100 adjusts the voltage of the non-inverting input terminal of the second operational amplifier U5 by adjusting the resistance value of the resistance branch 10, so that the difference between the voltage of the non-inverting input terminal of the second operational amplifier U5 and the voltage of the inverting input terminal is not greater than the second difference threshold, so that the voltage of the first interface J1 is not greater than the preset voltage value, so that the absolute value of the difference between the voltage of the first interface J1 and the first reference voltage Vref1 is not greater than the first difference threshold, and the voltage of the first interface J1 and the first reference voltage Vref1 meet the preset corresponding relationship. Thereafter, if the Hall sensor U6 is used to detect the electrical signal, since the influence of the zero drift is reduced or eliminated, the electrical signal detection can be realized more reliably, the stability is higher, and the detection result is more accurate.
[0151] It should be noted that if Fig.11 The circuit structure of the electrical signal detection circuit 1000 shown is only an example, and the electrical signal detection circuit 1000 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application-specific integrated circuits.
[0152] For example, in one embodiment, switches may be added to each part of the first waveform adjustment branch 400 to select and use each function in the first waveform adjustment branch 400 .
[0153] like Fig.12 As shown, the first waveform adjustment branch 400 further includes a second switch S2, a third switch S3 and a fourth switch S4.
[0154] Among them, when the second switch S2 is turned on, the second capacitor C2 is connected to the circuit to provide a differential adjustment function; when the second switch S2 is turned off, the second capacitor C2 is also disconnected from the circuit and stops providing the differential adjustment function. When the third switch S3 is turned on, the first resistor R1 is connected to the circuit to play a proportional adjustment function; when the third switch S3 is turned off, the first resistor R1 is also disconnected from the circuit and stops providing the differential adjustment function. When the fourth switch S4 is turned on, the third capacitor C3 and the second resistor R2 are connected to the circuit to provide an integral adjustment function; when the fourth switch S4 is turned off, the third capacitor C3 and the second resistor R2 are also disconnected from the circuit and stop providing the integral adjustment function.
[0155] Furthermore, a waveform acquisition branch may be provided at the in-phase input terminal of the second operational amplifier U5 to acquire the waveform at the in-phase input terminal of the second operational amplifier U5, and then the required closed switch (including the second switch S2, the third switch S3 and the fourth switch S4) may be automatically selected according to the acquired waveform. For example, if the steady-state error of the detected waveform is too large, the fourth switch S4 may be controlled to close to reduce the steady-state error.
[0156] Based on the same method, switches may also be added to each part of the second waveform regulating branch 500 to select and use each function in the second waveform regulating branch 500 .
[0157] like Fig.12 As shown, the second waveform adjustment branch 500 further includes a fifth switch S5, a sixth switch S6 and a seventh switch S7.
[0158] Among them, when the seventh switch S7 is turned on, the fourth capacitor C4 is connected to the circuit to provide a differential adjustment function; when the seventh switch S7 is turned off, the fourth capacitor C4 is also disconnected from the circuit and stops providing the differential adjustment function. When the sixth switch S6 is turned on, the third resistor R3 is connected to the circuit to play a proportional adjustment function; when the sixth switch S6 is turned off, the third resistor R3 is also disconnected from the circuit and stops providing the differential adjustment function. When the fifth switch S5 is turned on, the fifth capacitor C5 and the fourth resistor R4 are connected to the circuit to provide an integral adjustment function; when the fifth switch S5 is turned off, the fifth capacitor C5 and the fourth resistor R4 are also disconnected from the circuit and stop providing the integral adjustment function.
[0159] Furthermore, a waveform acquisition branch can also be set at the inverting input terminal of the second operational amplifier U5 to acquire the waveform of the inverting input terminal of the second operational amplifier U5, and then the required closed switch (including the fifth switch S5, the sixth switch S6 and the seventh switch S7) can be automatically selected according to the acquired waveform. For example, if the detected waveform ratio is small, the sixth switch S6 can be controlled to close to increase the waveform ratio.
[0160] It should be noted that in Figure 9-12In the embodiment shown, the electrical signal detection circuit 1000 includes Figure 7 Of course, in other embodiments, the voltage regulating circuit 100 in the electrical signal detection circuit 1000 may also be Figure 1-Figure 6 The voltage regulating circuit 100 shown in FIG. Figure 9-12 The embodiments shown are similar and will not be described again here.
[0161] An embodiment of the present application further provides an electronic device, which includes the voltage regulating circuit 100 in any embodiment of the present application, or the electrical signal detection circuit 1000 in any embodiment of the present application.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Under the concept of the present application, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present application as described above, which are not provided in detail for the sake of simplicity. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. An electrical signal detection circuit, characterized in that: It includes an electrical signal sampling branch, an amplifying branch and a voltage regulating circuit, wherein the output end of the amplifying branch is a first interface; The voltage regulating circuit is used to regulate the voltage of the first interface, and the voltage regulating circuit includes: a resistance branch connected to the first power supply, the resistance branch being configured as a branch with adjustable resistance value, and outputting an adjustable voltage based on the voltage of the first power supply to adjust the voltage of the first interface; A controller is connected to the resistance branch and the first interface, and the controller is configured as follows: Acquire a first reference voltage and a current first voltage of the first interface, and acquire a preset corresponding relationship between the voltage of the first interface and the first reference voltage; Based on the first voltage, the first reference voltage and the preset corresponding relationship, adjusting the resistance value of the resistance branch, so as to adjust the voltage of the first interface through the voltage output by the resistance branch, so that the first reference voltage and the voltage of the first interface satisfy the preset corresponding relationship; The first end of the electrical signal sampling branch is connected to the first end of the amplifying branch, and the second end of the electrical signal sampling branch is connected to the second end of the amplifying branch. The electrical signal sampling branch is configured to detect the electrical signal and generate a voltage at the first end and the second end of the electrical signal sampling branch based on the detected electrical signal, so as to generate a voltage at the first end and the second end of the amplifying branch; The amplifying branch is configured to amplify the voltage difference between the first end and the second end of the amplifying branch and then output it to cooperate with the subsequent circuit to detect the electrical signal, and the voltage output by the amplifying branch is the voltage of the first interface; The output end of the voltage regulating circuit is connected to the first end of the amplifying branch, and the controller in the voltage regulating circuit is specifically used to: when the electrical signal sampling branch does not detect the electrical signal, adjust the resistance value of the resistance branch in the voltage regulating circuit to adjust the voltage of the first end of the amplifying branch through the voltage output by the resistance branch, so that the voltage output by the amplifying branch and the first reference voltage satisfy the preset corresponding relationship, wherein, when the voltage output by the amplifying branch and the first reference voltage satisfy the preset corresponding relationship, the absolute value of the difference between the first end and the second end of the amplifying branch is not greater than the second difference threshold.
2. The electrical signal detection circuit according to claim 1, characterized in that: The adjusting the resistance value of the resistance branch based on the first voltage, the first reference voltage and the preset corresponding relationship includes: If the first voltage and the first reference voltage do not satisfy the preset corresponding relationship, calculating the difference between the first voltage and the first reference voltage; If the difference is greater than a second reference voltage, adjusting the resistance value of the resistance branch to reduce the voltage output by the resistance branch; If the difference is smaller than the second reference voltage, the resistance value of the resistance branch is adjusted to increase the voltage output by the resistance branch.
3. The electrical signal detection circuit according to any one of claims 1 to 2, characterized in that: The preset corresponding relationship is: an absolute value of a difference between the voltage of the first interface and the first reference voltage is not greater than a first difference threshold.
4. The electrical signal detection circuit according to claim 1, characterized in that: The electrical signal detection circuit further includes at least one of a first waveform adjustment branch and a second waveform adjustment branch; The first waveform adjustment branch is connected between the output end of the resistance branch and the first end of the amplification branch, and the first waveform adjustment branch is configured to adjust the waveform of the first end of the amplification branch; The second waveform adjustment branch is connected between the second end of the amplifying branch and the output end of the amplifying branch, and the second waveform adjustment branch is configured to adjust the waveform of the second end of the amplifying branch; Among them, the adjustment methods of the first waveform adjustment branch and the second waveform adjustment branch both include at least one of integral adjustment, proportional adjustment, and differential adjustment.
5. The electrical signal detection circuit according to claim 4, characterized in that: The first waveform adjustment branch includes at least one of the following three parts: a second capacitor, a first resistor, and a first circuit composed of a third capacitor and a second resistor; The second capacitor is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch, and the second capacitor is used to realize differential regulation; The first resistor is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch, and the first resistor is used to achieve proportional regulation; The third capacitor is connected in series with the second resistor, and the first circuit is connected between the output end of the voltage regulating circuit and the first end of the amplifying branch. The circuit formed by the third capacitor and the second resistor in series is used to realize integral regulation.
6. The electrical signal detection circuit according to claim 5, characterized in that: The second waveform adjustment branch includes at least one of the following three parts: a fourth capacitor, a third resistor, and a second circuit consisting of a fifth capacitor and a fourth resistor; The fourth capacitor is connected between the second end and the output end of the amplifying branch, and the fourth capacitor is used to achieve differential regulation; The third resistor is connected between the second end and the output end of the amplifying branch, and the third resistor is used to achieve proportional adjustment; The fifth capacitor is connected in series with the fourth resistor, and the second circuit is connected between the second end and the output end of the amplifying branch. The circuit formed by the fifth capacitor and the fourth resistor in series is used to realize integral regulation.
7. The electrical signal detection circuit according to claim 1, characterized in that: The electrical signal sampling branch includes a Hall sensor, a fifth resistor and a sixth resistor; The first end of the Hall sensor is connected to the first end of the fifth resistor, the second end of the fifth resistor is connected to the first end of the amplifying branch, the second end of the Hall sensor is connected to the first end of the sixth resistor, and the second end of the sixth resistor is connected to the second end of the amplifying branch.
8. The electric signal detection circuit according to claim 7, characterized in that: The amplification branch includes a second operational amplifier; The first input terminal of the second operational amplifier is connected to the first terminal of the electrical signal sampling branch, the second input terminal of the second operational amplifier is connected to the second terminal of the electrical signal sampling branch, and the output terminal of the second operational amplifier is the output terminal of the amplification branch.
9. An electronic device, characterized in that: The invention comprises the electrical signal detection circuit as described in any one of claims 1 to 8.
Citation Information
Patent Citations
Hall effect circuit temperature compensation method and its circuit
CN101290233A
Fiber take-off bracket servo driver input voltage regulator circuit and control method
CN102866720A
Output voltage regulating circuit and power supply
CN105048815A
Adjustable reference voltage source temperature drift compensation circuit
CN107272810A
Power suppLy voLtage reguLation circuit and power suppLy voLtage reguLation method
CN108874005A
