Real-time fault identification circuit and identification method for potentiometer type rotation angle sensor

By using a real-time fault determination circuit composed of potentiometer, bias resistor and single-chip mechanism in the potentiometer angle sensor, the problem of high and complexity of fault determination caused by brush aging and wear is solved, and the low-cost real-time fault determination and Accuracy of angle measurement.

CN114264225BActive Publication Date: 2024-11-12SHIJIAZHUANG SUIN INSTR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111622294.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-11-12
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

In the prior art, the aging and wear of potentiometer brush materials lead to high and complex fault judgment, and low-cost real-time fault judgment cannot be achieved, affecting the accuracy of angle measurement.

Method used

Real-time fault determination circuit consisting of potentiometer VR, bias resistor Rtest and microcontroller U, control switches K1 and K2 through microcontroller, use analog-to-digital converter ADC to measure the output voltage Vx, calculate the potentiometer internal resistance Rs and contact resistance Rcont, and judge the Whether the potentiometer is faulty, and indirect measurement of contact resistance is made through the IO port push-pull output and high-resistance input.

Benefits of technology

Real-time judgment of potentiometer faults is achieved, cost reduction, circuit structure is simplified, system reliability and accuracy are improved, and serious consequences caused by faults are avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114264225B_ABST
    Figure CN114264225B_ABST
Patent Text Reader

Abstract

The present invention provides a potentiometer type rotation angle sensor real-time fault discrimination circuit and discrimination method, comprising a potentiometer VR, a bias resistor Rtest, and a single chip microcomputer U including an analog-to-digital converter ADC and an IO port end with push-pull output and high-resistance input functions; the upper end of the potentiometer VR is connected to the positive terminal X of the reference voltage Vref, the lower end is connected to the reference ground D, and the brush is connected to the positive terminal of the output voltage Vx; one end of the bias resistor Rtest is connected to the brush end of the potentiometer VR, and the other end is connected to the node A; the power supply voltage VCC of the single chip microcomputer U is connected to the positive terminal X of the reference voltage Vref, the input analog quantity Adin is connected to the brush of the potentiometer VR, and the IO port is connected to the node A. The present invention can judge the size of the potentiometer contact resistance in each measurement cycle, and judge whether the potentiometer has a fault. If it fails suddenly, it can be immediately discovered and the fault can be handled to avoid using an erroneous measurement value to cause serious consequences. The calculation and judgment of the present invention are all completed by the single chip microcomputer software, the circuit is simple, the implementation is easy, and the reliability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of rotation angle measurement circuits, in particular to a potentiometer type rotation angle sensor real-time fault determination circuit and determination method. Background Art

[0002] There are many situations where the angle measurement is needed, such as electronic joysticks used in remote control operations, steering gear rocker arm angle control, valve opening closed-loop control, liquid level measurement, etc., which require the use of an angle sensor to convert the measured angle into an electrical signal for measurement.

[0003] There are many components for measuring rotation angle, among which potentiometer is the cheapest and simplest measuring component.

[0004] Potentiometers are usually resistors with three terminals and output signals that are linearly related to the rotation angle. They are usually composed of a resistor body and a movable brush. When the brush moves along the resistor body, a voltage proportional to the rotation angle is obtained at the output end.

[0005] Typical potentiometer angle measurement circuit Figure 1 As shown, VR is a potentiometer for angle measurement. The upper end is connected to the reference voltage Vref, and the lower end is connected to the reference ground G. The brush generates a measured voltage Vx. The change of the angle causes the brush to change its position on the resistor, thereby changing the measured voltage Vx. By measuring the ratio of the absolute value of Vx to the reference voltage Vref, the measured angle can be calculated.

[0006] Typical potentiometer angle measurement equivalent circuit is as follows Figure 2 As shown, for the convenience of analysis, the potentiometer VR is equivalent to three components: the upper half resistor Rup divided by the brush, the lower half resistor Rdown, and the contact resistance Rcont between the brush and the resistor body. Under normal circumstances, the total resistance, that is, the sum of Rup and Rdown, is the nominal resistance value of the potentiometer VR, which is about 1kΩ to tens of kΩ. The contact resistance Rcont is very small, about 1Ω~100Ω. The equivalent load resistance Rload of the measurement circuit is very large, about 100kΩ~10MΩ.

[0007] The typical measurement circuit Figure 1 The output equivalent circuit generated by converting the upper resistance Rup and the lower resistance Rdown of the potentiometer into an ideal voltage source Vs to drive the equivalent load resistance Rload of the measurement circuit is as follows: Figure 2 shown. Figure 2The ideal voltage source Vs is equal to the open circuit voltage (ideal voltage source) generated by the reference voltage Vref acting on the ideal voltage divider Rup and Rdown, that is, Vs=Vref*Rdown / (Rup+Rdown). The internal resistance of the potentiometer Rs=Rup*Rdown / (Rup+Rdown). It can be seen that when Rup=Rdown, Rs is the largest, and the value is Rs=1 / 2*Rup=1 / 2*Rdown. The contact resistance Rcont of the brush and the resistor body is connected in series with Rs to form the total equivalent internal resistance Rcont+Rs of the potentiometer. Since the upper resistance Rup and the lower resistance Rdown usually range from 0Ω to tens of kΩ, the internal resistance Rs of the potentiometer ranges from 0Ω to tens of kΩ.

[0008] When the potentiometer is functioning normally, the contact resistance Rcont ranges from about 1Ω to 100Ω. Since the potentiometer internal resistance Rs is connected in series with the contact resistance Rcont, the sum of the two ranges from 1Ω to tens of kΩ when the potentiometer is functioning normally. Since the equivalent load resistance Rload of the measuring circuit is very large, it is about 100kΩ to 10MΩ. Figure 3 It can be seen that the output voltage Vx is equal to the ideal voltage source Vs generated by the series connection of the potentiometer internal resistance Rs and the contact resistance Rcont and the equivalent load resistance Rload. When the sum of the potentiometer internal resistance Rs and the contact resistance Rcont (Rs+Rcont) varies between 1Ω and tens of kΩ, the first output voltage Vx1≈ideal voltage source Vs. At this time, the sum of the potentiometer internal resistance Rs and the contact resistance Rcont (Rs+Rcont) on the output voltage Vx can be ignored.

[0009] right Figure 2 Further transformation, after combining the load resistance Rload of the measuring circuit with the ideal voltage source Vs and the internal resistance Rs of the potentiometer, the equivalent circuit is obtained as follows: Figure 3 As shown. Where Vx is the output voltage obtained by the measurement circuit. Due to the equivalence, Vx=Vs'. Vs' is the equivalent voltage source, and Rs' is the equivalent internal resistance of the voltage source. It can be seen that when Rs+Rcont changes between 1Ω and tens of kΩ, the equivalent voltage source Vs' is approximately equal to the ideal voltage source Vs, and the effect of Rs+Rcont on the output voltage can be ignored. After the potentiometer brush wears, the contact resistance Rcont will increase. It can be seen that when Rcont increases from tens of Ω to 10% of the load resistance Rload, the voltage of the equivalent voltage source Vs' will become Vs*Rload / (10%*Rload+Rload)=Vs / 1.1=0.91*Vs, which is 9% lower. It can be seen that the output voltage change is affected by the ideal voltage source Vs and the contact resistance Rcont. When Rcont increases to 10% of the equivalent load resistance Rload, the error it brings has reached 1-0.91=0.09=9%.

[0010] If this situation can be discovered before Rcont increases to no more than 1% of the load resistance Rload (i.e. 1kΩ~100kΩ, depending on the load resistance Rload), the measurement error has not exceeded 1% at this time, and the potentiometer failure can be determined early.

[0011] Potentiometer VR is a mechanical component. Due to the existence of brushes and mechanical wear and aging of resistor materials (affecting the upper resistance Rup and the lower resistance Rdown) during operation, wear and oxidation of brushes (affecting the contact resistance Rcont), it is inevitable that there will be poor contact in the later period of life. Although the life of potentiometer VR can be improved by improving the process and materials, wear and aging problems will always exist due to its mechanical properties.

[0012] When the potentiometer VR is used as a sensor, if it is in a faulty state (the upper resistance Rup or the lower resistance Rdown is incorrect, the contact resistance Rcont is too large), the correctness of the relationship between the output voltage Vx and the steering angle cannot be guaranteed. At this time, if the system does not find that the potentiometer is in a faulty state and enters the fault mode in time to make corresponding processing, but uses the error signal output by the faulty potentiometer as the execution basis, it will have more serious consequences in situations where high requirements are placed on the accuracy of the steering angle measurement, such as steering gear rocker arm angle control, valve opening control, remote control operation joystick angle measurement, etc.

[0013] Using non-contact sensors such as Hall or grating sensors or using two potentiometers VR coaxially connected for signal verification can reduce the probability of measurement errors, but non-contact sensors are expensive and are not suitable for cost-sensitive occasions. Although the cost of using two potentiometers VR coaxially connected for signal verification is not high and potentiometer VR faults can be found through verification, the structure and circuit are relatively complex, which increases the failure rate. It is also necessary to use two analog-to-digital converters (ADC) to measure the output voltages of the two potentiometers VR respectively, which doubles the cost. Summary of the invention

[0014] One of the purposes of the present invention is to provide a real-time fault identification circuit for a potentiometer type rotation angle sensor, so as to solve the problems of aging, wear and cost sensitivity of the potentiometer brush material in the prior art.

[0015] One of the purposes of the present invention is achieved as follows: a potentiometer type rotation angle sensor real-time fault judgment circuit, characterized in that it includes a potentiometer VR, a bias resistor Rtest, and a single-chip microcomputer U including an analog-to-digital converter ADC and an IO port with a push-pull output and a high-impedance input; the upper end of the potentiometer VR is connected to the positive terminal X of the reference voltage Vref, the lower end is connected to the reference ground D, and the brush is connected to the positive terminal of the output voltage Vx; one end of the bias resistor Rtest is connected to the brush end of the potentiometer VR, and the other end is connected to the node A; the power supply voltage VCC of the single-chip microcomputer U is connected to the positive terminal X of the reference voltage Vref, the input analog quantity Adin is connected to the brush of the potentiometer VR, and the IO port is connected to the node A.

[0016] Furthermore, the present invention can be implemented according to the following technical solutions:

[0017] The positive terminal X of the reference voltage Vref is connected to the upper end of the potentiometer VR in one way, and is connected to the power supply voltage VCC end of the microcontroller U in the other way; the negative terminal Y of the reference voltage Vref is grounded.

[0018] The negative terminal of the output voltage Vx is grounded, and the positive terminal is connected to the brush of the potentiometer VR.

[0019] The single chip microcomputer U controls the switch K1 and the switch K2, and the IO port is connected between the switch K1 and the switch K2.

[0020] The single chip microcomputer is STM32F103C8T6.

[0021] The potentiometer VR has several upper and lower ends connected in parallel. The number of the bias resistors Rtest is the same as that of the potentiometer VR, and one end is connected to the corresponding potentiometer VR brush, and the other end is respectively connected to the IO port of the microcontroller with push-pull output and high-impedance input function.

[0022] The second purpose of the present invention is to provide a real-time fault identification method for a potentiometer type rotation angle sensor, so as to solve the problem that the prior art cannot perform low-cost real-time fault identification on the potentiometer.

[0023] The second object of the present invention is achieved as follows: A real-time fault identification method for a potentiometer type rotation angle sensor comprises the following steps:

[0024] A. The potentiometer type rotation angle sensor real-time fault determination method is applied to the potentiometer type rotation angle sensor real-time fault determination circuit according to claim 1;

[0025] B. The switch K1 and the switch K2 are turned on by the single chip microcomputer U, and the output voltage Vx is measured by the analog-to-digital converter ADC inside the single chip microcomputer to obtain the first output voltage Vx1. The internal resistance Rs=Rup*Rdown / (Rup+Rdown) of the potentiometer is calculated by the single chip microcomputer U;

[0026] C. The single-chip computer U controls the switch K1 to be turned on, the switch K2 to be turned off, the bias resistor Rtest to connect the output voltage Vx to the reference voltage Vref, and the output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the second output voltage Vx2. Since the internal resistance Rs of the potentiometer is calculated in step B, the positive current contact resistance Rcont1 is calculated by the single-chip computer U;

[0027] D. The single-chip computer U controls the switch K2 to be turned on and the switch K1 to be turned off. The bias resistor Rtest connects the output voltage Vx to the reference ground G. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the third output voltage Vx3. Since the internal resistance Rs of the potentiometer is calculated in step B, the negative current contact resistance Rcont2 is calculated by the single-chip computer U.

[0028] E. Use the single-chip computer U to determine whether the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 calculated in step C or step D are normal. If they are both normal, use the value of the first output voltage Vx1 measured in step B to calculate the turning angle; if the value is abnormal, it is determined that the potentiometer VR is faulty, and a fault prompt is output;

[0029] F. Repeat the operations from step B to step E to perform real-time measurement of the goniometer.

[0030] Furthermore, the present invention can be implemented according to the following technical solutions:

[0031] If the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 exceed the limited value range or the difference between the two exceeds the limited ratio, it is determined that the value is abnormal; otherwise, the value is determined to be normal.

[0032] The present invention measures the output voltage Vx of the potentiometer VR periodically (5ms or shorter) and calculates the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 in turn. By judging these two values, it is determined whether the potentiometer VR is faulty. If not, the angle of rotation is output through the first output voltage Vx1. By repeating the above operation continuously, it is possible to judge in real time whether the potentiometer VR is faulty without affecting the operation of the system.

[0033] The present invention does not increase the number of analog-to-digital converters ADC used in the circuit, only adds a bias resistor Rtest and one single-chip computer IO port, which increases the cost little. The push-pull output characteristics of the IO port are used to calculate the value of the positive current contact resistance Rcont1, the value of the negative current contact resistance Rcont2 and the rotation angle measurement (IO high-resistance input mode), and the indirect measurement of the potentiometer contact resistance Rcont and the rotation angle measurement are completed, and fault judgment is performed at the same time.

[0034] The present invention can determine the size of the potentiometer contact resistance in each measurement cycle, and determine whether the potentiometer VR is faulty. If it fails suddenly, it can also be immediately discovered and handled to avoid using wrong measurement values ​​to cause serious consequences. The calculation and judgment of the present invention are all completed by single-chip microcomputer software, the circuit is simple, easy to implement, and the reliability is high. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a circuit diagram in the prior art.

[0036] Figure 2 yes Figure 1 The equivalent circuit of .

[0037] Figure 3 yes Figure 2 Equivalent circuit after further transformation.

[0038] Figure 4 yes Figure 5 The simplified circuit.

[0039] Figure 5 It is a circuit diagram of the present invention.

[0040] Figure 6 yes Figure 4 The equivalent circuit of .

[0041] Figure 7 It is a specific circuit diagram of the present invention. DETAILED DESCRIPTION

[0042] The specific embodiments of the present invention are described below in conjunction with the accompanying drawings.

[0043] Example 1

[0044] like Figure 5 As shown, the present invention includes a potentiometer VR, a bias resistor Rtest, and a single chip microcomputer U including an analog-to-digital converter ADC and an IO port with a push-pull output and a high-impedance input.

[0045] The upper end of the potentiometer VR is connected to the positive terminal X of the reference voltage Vref, the lower end is connected to the reference ground D, and the brush is connected to the positive terminal of the output voltage Vx; one end of the bias resistor Rtest is connected to the brush end of the potentiometer VR, and the other end is connected to the node A;

[0046] The power supply voltage VCC of the single-chip computer U is connected to the positive terminal X of the reference voltage Vref, the input analog quantity Adin is connected to the brush of the potentiometer VR, and the IO port is connected to the node A. The single-chip computer U controls the switch K1 and the switch K2, and the IO port is connected between the switch K1 and the switch K2. The single-chip computer is STM32F103C8T6.

[0047] The positive terminal X of the reference voltage Vref is connected to the upper end of the potentiometer VR in one way, and is connected to the power supply voltage VCC end of the microcontroller U in the other way; the negative terminal Y of the reference voltage Vref is grounded.

[0048] The negative terminal of the output voltage Vx is grounded, and the positive terminal is connected to the brush of the potentiometer VR. The brush of the potentiometer VR is connected to the input port of the microcontroller AD converter for measuring the output voltage Vx, and is also connected to the IO port through the bias resistor Rtest to provide a bias signal for measuring the contact resistance Rcont. Figure 6 yes Figure 5 Equivalent circuit diagram of .

[0049] The potentiometer VR can have several upper and lower ends connected in parallel. The number of bias resistors Rtest is the same as that of the potentiometer VR, and one end is connected to the corresponding potentiometer VR brush, and the other end is connected to the IO port of the microcontroller with push-pull output and high-impedance input function.

[0050] Figure 7 It is a specific circuit diagram of the present invention. The single chip microcomputer adopts a single chip microcomputer of the model STM32F103C8T6. The potentiometer VR has four upper and lower ends connected in parallel, and the potentiometer VR brushes are respectively connected to the corresponding bias resistors Rtest. Specifically, it includes potentiometer VR1, potentiometer VR2, potentiometer VR3 and potentiometer VR4, and corresponding bias resistors Rtest1, bias resistors Rtest2, bias resistors Rtest3 and bias resistors Rtest4.

[0051] The brush terminal of potentiometer VR1 is connected to pin 10 of the microcontroller STM32F103C8T6, the brush terminal of potentiometer VR2 is connected to pin 11 of the microcontroller STM32F103C8T6, the brush terminal of potentiometer VR3 is connected to pin 12 of the microcontroller STM32F103C8T6, and the brush terminal of potentiometer VR4 is connected to pin 13 of the microcontroller STM32F103C8T6.

[0052] The other end of the bias resistor Rtest1 is connected to pin 29 of the microcontroller STM32F103C8T6, the other end of the bias resistor Rtest2 is connected to pin 30 of the microcontroller STM32F103C8T6, the other end of the bias resistor Rtest3 is connected to pin 31 of the microcontroller STM32F103C8T6, and the other end of the bias resistor Rtest4 is connected to pin 32 of the microcontroller STM32F103C8T6.

[0053] Pin 5 of the STM32F103C8T6 microcontroller is connected to the reference ground GND through capacitor C2, and pin 6 is connected to the reference ground GND through capacitor C3. Resistors RS and Y1 connected in parallel are connected between pin 5 and pin 6, pin 24, pin 36, pin 48 and pin 9 are connected to the power supply voltage VCC, and pin 44 is connected to the reference ground GND. Pin 7 is connected to the reference ground GND through capacitor C1 and to the power supply voltage VCC through resistor R9.

[0054] The PA0-PA7 ports of the microcontroller U have an analog-to-digital converter ADC inside to measure the potentiometer output voltage Vx. PA8-PA15 are IO ports with high-impedance input and push-pull output for generating bias. The microcontroller measures the voltage and status of the four potentiometers at the same time.

[0055] The output voltage Vx is connected to the voltage measurement analog-to-digital converter ADC input of the single-chip computer U, and its value is measured by the analog-to-digital converter ADC for software calculation. Switches K1 and K2 are IO ports of the single-chip computer U with high-impedance input and push-pull output functions, which are used to connect and disconnect the bias resistor Rtest. The reference voltage Vref is connected to the power supply of the single-chip computer U and is shared with the voltage measurement analog-to-digital converter ADC to reduce costs.

[0056] Since the reference of the analog-to-digital converter ADC and the potentiometer VR use the same reference voltage, after the analog-to-digital conversion, the voltage unit will be eliminated after the division operation of all the reference voltage Vref and the output Vx values. Therefore, the absolute value of the reference voltage Vref will not affect the resistance measurement result, and the judgment process uses the resistance value instead of the voltage value.

[0057] Example 2

[0058] The real-time fault identification method of the potentiometer type rotation angle sensor of the present invention comprises the following steps:

[0059] A. The real-time fault discrimination method of the potentiometer type rotation angle sensor is applied to the real-time fault discrimination circuit of the potentiometer type rotation angle sensor in Example 1. The circuit diagram is as follows: Figure 5 , Figure 4 yes Figure 5 The simplified circuit of Figure 6 yes Figure 4 The equivalent circuit of .

[0060] B. Calculate the internal resistance Rs of the potentiometer.

[0061] The single-chip computer U controls the switch K1 and the switch K2 to be turned on. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the first output voltage Vx1. The internal resistance Rs=Rup*Rdown / (Rup+Rdown) of the potentiometer is calculated by the single-chip computer U. Since the contact resistance Rcont ranges from about 1Ω to tens of kΩ before the potentiometer VR completely fails, the load resistance Rload has little effect on the output voltage Vx. At this time, the first output voltage Vx1≈ideal voltage source Vs. The equivalent ideal voltage source Vs voltage is obtained. Since the reference voltage Vref and Rup+Rdown (nominal resistance of the potentiometer) are known, the lower resistance Rdown=(Rup+Rdown)Vx1 / Vref can be calculated according to the voltage divider ratio being equal to the resistance ratio Vx1 / Vref=Rdown / (Rup+Rdown), and the upper resistance Rup=(Rup+Rdown)-Rdown, and then the internal resistance Rs=Rup / / Rdown of the potentiometer is calculated;

[0062] C. Calculate the positive current contact resistance Rcont1 when the positive current is biased.

[0063] The single-chip computer U controls the switch K1 to be turned on, the switch K2 to be turned off, the bias resistor Rtest to connect the output voltage Vx to the reference voltage Vref, and the output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the second output voltage Vx2. At this time, Rs+Rcont1=Rtest*(Vx2-Vs) / (Vref-Vx2). Since the internal resistance Rs of the potentiometer is calculated in step B, the positive current contact resistance Rcont1 can be obtained by subtracting the internal resistance Rs of the potentiometer from the calculation result.

[0064] It is necessary to explain an extreme case, that is, when the brush of the potentiometer VR is at the top, it can be seen from the circuit that the second output voltage Vx2≈ideal voltage source Vs=reference voltage Vref, after the switch K1 is turned on, the output voltage Vx2=reference voltage Vref, at this time Rs+Rcont1= Rtest*(Vx2-Vs) / (Vref-Vx2)= Rtest*(Vref-Vref) / (Vref-Vref)=Rtest*0 / 0. At this time, the numerator and denominator will appear 0 at the same time, and the result calculated in this step is invalid and needs to be ignored.

[0065] D. Calculate the negative current contact resistance Rcont2 when the current is negative.

[0066] The switch K2 is turned on and the switch K1 is turned off by the single-chip computer U, and the bias resistor Rtest connects the output voltage Vx to the reference ground G. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the third output voltage Vx3, at which point Rs+Rcont2=Rtest*(Vs-Vx2) / Vx3. Since the potentiometer internal resistance Rs is calculated in step B, the negative current contact resistance Rcont2 can be obtained by subtracting the potentiometer internal resistance Rs from the result.

[0067] It is necessary to explain an extreme case, that is, when the brush of the potentiometer VR is at the bottom, it can be seen from the circuit that the output voltage Vx=0, and after the switch K2 is turned on, the third output voltage Vx3=0 is obtained, at this time Rs+Rcont= Rtest*(Vs-Vx3) / Vx3= Rtest*(0-0) / 0. At this time, the numerator and denominator will both appear 0, and the result calculated in this step is invalid and needs to be ignored.

[0068] E. Use the single chip computer U to determine whether the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 calculated in step C or step D are normal. If they are both normal, use the value of the first output voltage Vx1 measured in step B to calculate the turning angle. If the value is abnormal, it is determined that the potentiometer VR is faulty and a fault prompt is output.

[0069] If the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 exceed the limited value range or the difference between the two exceeds the limited ratio, it is determined that the value is abnormal; otherwise, the value is determined to be normal.

[0070] Specifically, judging whether the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 are within the normal range can determine whether the potentiometer VR is faulty. The limited value range of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 is 10Ω-10kΩ. If it exceeds this range, it can be said that the data is abnormal. At the same time, when the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 differ too much, usually the percentage of the difference between the two exceeds 10%, it is also considered abnormal data. Since the contact resistance Rcont is obtained by indirect measurement and has a certain error, in order to achieve the purpose of not misjudging the fault but also being able to reliably judge when the fault occurs, a value of 10% can usually meet the requirements and needs to be adjusted in combination with the actual situation of the circuit.

[0071] The percentage calculation method: if Rcont1 differs from Rcont2 by a certain percentage, then (Rcont1- Rcont2) / Rcont2x100%; if Rcont2 differs from Rcont1 by a certain percentage, then (Rcont2-Rcont1) / Rcont1x100%.

[0072] F. Repeat the operations of step B to step E to measure the rotation angle in real time. Since only one measurement result can be obtained by performing one BE operation, real-time control requires real-time measurement of the rotation angle, so the BE operation needs to be repeated.

Claims

1. A potentiometer type rotation angle sensor real-time fault discrimination circuit, characterized in that: The invention comprises a single-chip computer U including a potentiometer VR, a bias resistor Rtest, and an IO port end including an analog-to-digital converter ADC and having push-pull output and high-impedance input functions; the upper end of the potentiometer VR is connected to the positive terminal X of the reference voltage Vref, the lower end is connected to the reference ground D, and the brush is connected to the positive terminal of the output voltage Vx; one end of the bias resistor Rtest is connected to the brush end of the potentiometer VR, and the other end is connected to the node A; the power supply voltage VCC of the single-chip computer U is connected to the positive terminal X of the reference voltage Vref, the input analog quantity Adin is connected to the brush of the potentiometer VR, and the IO port is connected to the node A.

2. The potentiometer type rotation angle sensor real-time fault discrimination circuit according to claim 1 is characterized in that: The positive terminal X of the reference voltage Vref is connected to the upper end of the potentiometer VR in one way, and is connected to the power supply voltage VCC end of the microcontroller U in the other way; the negative terminal Y of the reference voltage Vref is grounded.

3. The potentiometer type rotation angle sensor real-time fault identification circuit according to claim 1 is characterized in that: The negative terminal of the output voltage Vx is grounded, and the positive terminal is connected to the brush of the potentiometer VR.

4. The potentiometer type rotation angle sensor real-time fault discrimination circuit according to claim 1 is characterized in that: The single chip microcomputer U controls the switch K1 and the switch K2, and the IO port is connected between the switch K1 and the switch K2.

5. The potentiometer type rotation angle sensor real-time fault identification circuit according to claim 1 is characterized in that: The single chip microcomputer is STM32F103C8T6.

6. The potentiometer type rotation angle sensor real-time fault identification circuit according to claim 1 is characterized in that: The potentiometer VR has several upper and lower ends connected in parallel. The number of the bias resistors Rtest is the same as that of the potentiometer VR, and one end is connected to the corresponding potentiometer VR brush, and the other end is respectively connected to the IO port of the microcontroller with push-pull output and high-impedance input function.

7. A real-time fault identification method for a potentiometer type rotation angle sensor, characterized in that: The steps include: A. The potentiometer type rotation angle sensor real-time fault determination method is applied to the potentiometer type rotation angle sensor real-time fault determination circuit according to claim 1; B. The single-chip computer U controls the switch K1 and the switch K2 to be turned on. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the first output voltage Vx1. The internal resistance Rs=Rup of the potentiometer is calculated by the single-chip computer U. Rdown / (Rup+Rdown); Rup is the upper resistance of the potentiometer, and Rdown is the lower resistance of the potentiometer; C. The single-chip computer U controls the switch K1 to be turned on and the switch K2 to be turned off. The bias resistor Rtest connects the output voltage Vx to the reference voltage Vref. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the second output voltage Vx2. Since the internal resistance Rs of the potentiometer is calculated in step B, the positive current contact resistance Rcont1 is calculated by the single-chip computer U. D. The single-chip computer U controls the switch K2 to be turned on and the switch K1 to be turned off. The bias resistor Rtest connects the output voltage Vx to the reference ground G. The output voltage Vx is measured by the analog-to-digital converter ADC inside the single-chip computer to obtain the third output voltage Vx3. Since the internal resistance Rs of the potentiometer is calculated in step B, the negative current contact resistance Rcont2 is calculated by the single-chip computer U. E. Using the single chip microcomputer U to determine whether the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 calculated in step C or step D are normal. If both are normal, the turning angle is calculated using the value of the first output voltage Vx1 measured in step B; If the value is abnormal, it is determined that the potentiometer VR is faulty and a fault prompt is output; F. Repeat the operations from step B to step E to perform real-time measurement of the goniometer.

8. The real-time fault identification method of a potentiometer type rotation angle sensor according to claim 7 is characterized in that: If the values ​​of the positive current contact resistance Rcont1 and the negative current contact resistance Rcont2 exceed the limited value range or the difference between the two exceeds the limited ratio, it is determined that the value is abnormal; otherwise, the value is determined to be normal.