CN114001796A - Electrical detection circuit and oil level detection method - Google Patents

Electrical detection circuit and oil level detection method Download PDF

Info

Publication number
CN114001796A
CN114001796A CN202010739621.7A CN202010739621A CN114001796A CN 114001796 A CN114001796 A CN 114001796A CN 202010739621 A CN202010739621 A CN 202010739621A CN 114001796 A CN114001796 A CN 114001796A
Authority
CN
China
Prior art keywords
value
resistance
resistor
resistance value
voltage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010739621.7A
Other languages
Chinese (zh)
Inventor
汤文辉
杨鹏飞
盘桂云
蔡三龙
肖金辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Faurecia Clarion Electronics Xiamen Co Ltd
Original Assignee
Faurecia Clarion Electronics Xiamen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Faurecia Clarion Electronics Xiamen Co Ltd filed Critical Faurecia Clarion Electronics Xiamen Co Ltd
Priority to CN202010739621.7A priority Critical patent/CN114001796A/en
Publication of CN114001796A publication Critical patent/CN114001796A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01FMEASURING VOLUME, VOLUME FLOW, MASS FLOW OR LIQUID LEVEL; METERING BY VOLUME
    • G01F23/00Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm
    • G01F23/22Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water
    • G01F23/24Indicating or measuring liquid level or level of fluent solid material, e.g. indicating in terms of volume or indicating by means of an alarm by measuring physical variables, other than linear dimensions, pressure or weight, dependent on the level to be measured, e.g. by difference of heat transfer of steam or water by measuring variations of resistance of resistors due to contact with conductor fluid

Abstract

The application provides an electrical detection circuit and an oil level detection method, relates to the technical field of electrical detection, and solves the problem that detected oil level information is inaccurate. The electrical detection circuit includes: the processing module is connected with the power module, the first fixed-value resistor, the second variable resistor, the third fixed-value resistor and the fourth fixed-value resistor and is used for acquiring a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value; then calculating a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value; finally, oil level information is determined according to the second resistance value. The embodiment of the application is applied to detecting the oil level of vehicle-mounted fuel.

Description

Electrical detection circuit and oil level detection method
Technical Field
The embodiment of the application relates to the technical field of electrical detection, in particular to an electrical detection circuit and an oil level detection method.
Background
The vehicle may use a resistance type sensor for fuel level detection of the vehicle-mounted fuel. The commonly used oil level detection method is to calculate the corresponding oil level information by using a fixed pull-up resistor according to a resistor voltage division principle and reversely pushing the resistance value of the resistor type sensor through a voltage division ratio and a power supply voltage.
However, in a vehicle-mounted environment, the power supply voltage in the oil level detection circuit may float, which may cause interference to the oil level detection, so that the resistance value of the reversely-pushed resistance-type sensor does not conform to the actual value through the voltage division ratio and the power supply voltage, resulting in inaccurate calculated oil level information and potential safety hazard to vehicle owners.
Disclosure of Invention
The application provides an electrical detection circuit and an oil level detection method, which solve the problem that detected oil level information is inaccurate.
In a first aspect, the present application provides an electrical detection circuit, which includes a power module, a first fixed resistor, a second variable resistor, a third fixed resistor, a fourth fixed resistor, and a processing module connected to the power module, the first fixed resistor, the second variable resistor, the third fixed resistor, and the fourth fixed resistor. And the first end of the first constant resistor is connected with the power module and the first end of the third constant resistor. The second end of the first constant resistor is connected with the first end of the second variable resistor, and the second end of the second variable resistor is grounded. The first end of the third fixed value resistor is connected with the power supply module, the second end of the third fixed value resistor is connected with the first end of the fourth fixed value resistor, and the second end of the fourth fixed value resistor is grounded.
The processing module is used for obtaining a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value. And then calculating a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value. Finally, oil level information is determined according to the second resistance value.
The first voltage AD value is the voltage AD value of the first end of the second variable resistor. The second voltage AD value is a voltage AD value of the first end of the fourth fixed-value resistor. The first resistance value is the resistance value of the first constant value resistor; the third resistance value is the resistance value of the third constant value resistor. The fourth resistance value is the resistance value of the fourth fixed-value resistor. The second resistance value is the resistance value of the second variable resistor.
In the above scheme, the voltage division principle of the third fixed value resistor and the fourth fixed value resistor is utilized, the calculation mode of the second resistance value is converted, the second resistance value can be calculated according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value, the problem that the resistance value of the reversely pushed resistance type sensor does not accord with the reality through the voltage division ratio and the power voltage is avoided, namely, the problem that the power voltage floats due to the influence of a vehicle-mounted environment is avoided, the calculated resistance value of the resistance type sensor is low in accuracy is solved, the accuracy of the oil level detection of the electrical detection circuit is improved, and potential safety hazards are reduced.
Optionally, in a possible implementation manner of the present application, the processing module is specifically configured to determine the resistance value of the resistance sensor according to the second resistance value. Then, in a preset corresponding relation, an error value corresponding to a resistance mean value with the minimum difference between the resistance values of the resistance sensors is inquired and obtained. And finally, correcting the resistance value of the resistance sensor according to the error value, and determining oil level information according to the corrected resistance value of the resistance sensor. The preset corresponding relation comprises a corresponding relation between the resistance mean value and the error value.
And correcting the resistance value of the resistance sensor calculated by the application by using a preset corresponding relation, and then determining the oil level information according to the corrected resistance value of the resistance sensor. The calculated resistance value of the resistance sensor is more accurate, the accuracy of the oil level detection of the electrical detection circuit is further improved, and potential safety hazards are reduced.
Optionally, the power module includes a first power integrated circuit IC sub-module, and the second variable resistor is a resistance sensor, when the sampling reference voltage value is greater than or equal to the operating voltage value of the resistance sensor. And the processing module is specifically used for determining the resistance value of the second variable resistor as the resistance value of the resistance sensor.
Optionally, the power module includes a voltage stabilizing IC sub-module and a second power conversion IC sub-module, when the sampling reference voltage value is smaller than the working voltage value of the resistance sensor. The first end of the second power supply conversion IC submodule is connected with the voltage stabilizing IC submodule, the first end of the first constant value resistor and the first end of the third constant value resistor; and the second end of the second power conversion IC submodule is connected with the processing module. The second variable resistor includes a second fixed resistor and a resistance sensor. The second constant value resistor and the resistance sensor are connected between the second end of the first constant value resistor and the ground in parallel. And the processing module is specifically used for acquiring the resistance value of the second fixed-value resistor and calculating the resistance value of the resistor sensor according to the second resistance value and the resistance value of the second fixed-value resistor.
Optionally, in a possible implementation manner of the present application, the resistance value of the resistance sensor satisfies a formula
Figure BDA0002606322620000031
Wherein R isfRepresenting the resistance of the resistive sensor, R representing the resistance of the second fixed resistor, R2Representing the second resistance value.
In the above scheme, the constituent elements of the power module and the second variable resistor in the electrical detection circuit are determined according to the magnitude of the sampling reference voltage value and the working voltage value of the resistance sensor.
And under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the power supply module comprises a first power supply Integrated Circuit (IC) submodule, and the second variable resistor is the resistance sensor. And the calculation mode of the second resistance value is converted by utilizing the voltage division principle of the third constant value resistor and the fourth constant value resistor, so that the accuracy of the oil level detection of the electrical detection circuit is improved.
Under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the power supply module comprises a voltage-stabilizing IC sub-module and a second power supply conversion IC sub-module, wherein the voltage-stabilizing IC sub-module can stabilize the input voltage of the power supply module, and the second power supply conversion IC sub-module can stabilize the input voltage of the processing module; the second variable resistor comprises a second fixed-value resistor and a resistor sensor which are connected in parallel, and the accuracy of the measured resistance value of the resistor sensor under the large working voltage of the electric detection circuit can be effectively ensured.
Optionally, in a possible implementation manner of the present application, the second resistance value satisfies a formula
Figure BDA0002606322620000032
Wherein R is1Represents a first resistance value, R2Represents a second resistance value, R3Represents a third resistance value, R4Denotes the fourth resistance value, ADfDenotes a first voltage AD value, ADinIndicating the value of the second voltage AD.
In a second aspect, the present application provides an oil level detection method applied to the electrical detection circuit of the first aspect, the method including: the processing module obtains a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value. And then calculating a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value. Finally, oil level information is determined according to the second resistance value. The first voltage AD value is the voltage AD value of the first end of the second variable resistor. The second voltage AD value is a voltage AD value of the first end of the fourth fixed-value resistor. The first resistance value is the resistance value of the first constant value resistor; the third resistance value is the resistance value of the third constant value resistor. The fourth resistance value is the resistance value of the fourth fixed-value resistor. The second resistance value is the resistance value of the second variable resistor.
Optionally, in a possible implementation manner of the present application, the processing module determines the resistance value of the resistance sensor according to the second resistance value. Then, in a preset corresponding relation, an error value corresponding to a resistance mean value with the minimum difference between the resistance values of the resistance sensors is inquired and obtained. And finally, correcting the resistance value of the resistance sensor according to the error value, and determining oil level information according to the corrected resistance value of the resistance sensor. The preset corresponding relation comprises a corresponding relation between the resistance mean value and the error value.
Optionally, the processing module determines the resistance value of the second variable resistor as the resistance value of the resistance sensor when the sampling reference voltage value is greater than or equal to the working voltage value of the resistance sensor.
Optionally, the processing module obtains a resistance value of the second fixed-value resistor when the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, and calculates the resistance value of the resistance sensor according to the second resistance value and the resistance value of the second fixed-value resistor.
Optionally, in a possible implementation manner of the present application, the resistance value of the resistance sensor satisfies a formula
Figure BDA0002606322620000041
Wherein R isfRepresenting the resistance of the resistive sensor, R representing the resistance of the second fixed resistor, R2Representing the second resistance value.
Optionally, in a possible implementation manner of the present application, the second resistance value satisfies a formula
Figure BDA0002606322620000042
Wherein R is1Represents a first resistance value, R2Represents a second resistance value, R3Represents a third resistance value, R4Denotes the fourth resistance value, ADfDenotes a first voltage AD value, ADinIndicating the value of the second voltage AD.
It is to be understood that the oil level detection method provided above is applied to the electrical detection circuit of the first aspect. Therefore, the electrical detection circuit of the first aspect and the corresponding solutions of the following embodiments may be referred to for achieving beneficial effects, and details are not repeated herein.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of an electrical detection circuit in the prior art;
FIG. 2 is a schematic diagram of a prior art oil level detection principle;
FIG. 3 is a second schematic diagram illustrating the oil level detection principle of the prior art;
fig. 4 is a schematic structural diagram of an electrical detection circuit according to an embodiment of the present application;
fig. 5 is a second schematic structural diagram of an electrical detection circuit according to an embodiment of the present application;
fig. 6 is a third schematic structural diagram of an electrical detection circuit according to an embodiment of the present application;
fig. 7 is a schematic flow chart of an oil level detection method according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
It will be appreciated that for simplicity and clarity of illustration, elements shown in the figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements may be exaggerated relative to other elements for clarity. Further, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements to the problem.
Fig. 1 shows a prior art electrical detection circuit. As shown in fig. 1, the conventional electrical detection circuit includes: a voltage stabilizing module 101, a power conversion Integrated Circuit (IC) module 102, a processing module 103, a first resistor 104, a second resistor 105, and a resistor sensor 106. The first resistor 104 and the second resistor 105 are both constant resistors. The voltage stabilizing module 101 and the power conversion IC module 102 constitute a power module (not shown in the figure) for supplying power to the electrical detection circuit.
The output end of the voltage stabilizing module 101 is connected with the input end of the power supply conversion IC module 102 and the first end of the first resistor 104; the processing module 103 is connected with the output end of the power conversion IC module 102, the first resistor 104, the second resistor 105 and the resistance sensor 106; the second end of the first resistor 104 is connected with the first end of the second resistor 105 and the first end of the resistance sensor 106; a second terminal of the resistance sensor 106 is connected to ground and a second terminal of the second resistor 105 is connected to ground.
The detection process of the electrical detection circuit for oil level detection comprises the following steps: the processing module 103 obtains a sampling reference voltage, a working voltage value of the resistance sensor 106, a voltage value of the second end of the first resistor 104, an analog to digital (AD) value of the second end of the first resistor 104, a resistance value of the second resistor 105, and a sampling bit number of the analog-to-digital converter.
Then, the resistance value of the resistance sensor 106 is calculated according to the sampling reference voltage, the operating voltage value of the resistance sensor 106, the voltage value of the second end of the first resistor 104, the voltage AD value of the second end of the first resistor 104, the resistance value of the second resistor 105, and the sampling digit number of the analog-to-digital converter.
Wherein the resistance value of the resistance sensor 106
Figure BDA0002606322620000061
Wherein R isfRepresents the resistance value of the resistance sensor 106, and R represents the resistance value of the second resistor 105;
Figure BDA0002606322620000062
represents the resistance value, R, of the second resistor 105 and the resistive sensor 106 connected in parallel1Represents the resistance value, V, of the first resistor 104dcRepresents the operating voltage value of the resistive sensor 106;
Figure BDA0002606322620000063
representing the voltage value, AD, of the second terminal of the first resistor 104fRepresents the voltage AD value, V, of the second terminal of the first resistor 104refRepresenting the sampled reference voltage, SbitRepresenting the number of sample bits of the analog-to-digital converter. The voltage AD value is converted by an analog-to-digital converter (ADC) to obtain a corresponding digital signal value.
The processing module 103 then calculates the oil level based on the resistance value of the resistance sensor 106. Specifically, the resistance value of the resistance sensor 106 is larger as the oil level is higher. For example, fig. 2 and 3 show the principle of detecting the oil level by an electrical detection circuit in the prior art. Referring to fig. 2 and 3, a schematic diagram of the oil level detection by the electrical detection circuit includes a resistance value indicating dial 201, an oil tank 202, and a float 203. Wherein, the oil level in fig. 2 is a, the resistance value indicated by the resistance value indicating dial 201 is a; in fig. 3, the oil level is B, the resistance value indicated by the resistance value indicating dial 201 is B, and a is greater than B when a is greater than B.
However, in a vehicle-mounted environment, when the oil level detection method is used, the power supply voltage in the oil level detection circuit may float, which may cause interference to the oil level detection, so that the resistance value of the inversely-derived resistance type sensor does not match the actual resistance value through the voltage division ratio and the power supply voltage, thereby causing inaccurate calculated oil level information and bringing potential safety hazards to vehicle owners.
In view of the above problem, the embodiments of the present application provide an electrical detection circuit, which can be used to detect the oil level of vehicle-mounted fuel.
The electric detection circuit comprises a power supply module, a first fixed-value resistor, a second variable resistor, a third fixed-value resistor, a fourth fixed-value resistor and a processing module which is connected with the power supply module, the first fixed-value resistor, the second variable resistor, the third fixed-value resistor and the fourth fixed-value resistor.
The first end of the first constant value resistor is connected with the power supply module and the first end of the third constant value resistor; the second end of the first constant resistor is connected with the first end of the second variable resistor. The second end of the second variable resistor is grounded. The first end of the third fixed-value resistor is connected with the power supply module, and the second end of the third fixed-value resistor is connected with the first end of the fourth fixed-value resistor. And the second end of the fourth fixed-value resistor is grounded.
For example, fig. 4 shows a structure of an electrical detection circuit provided in an embodiment of the present application. As shown in fig. 4, the electrical detection circuit includes a power supply module 45, a first constant resistor 41, a second variable resistor 42, a third constant resistor 43, a fourth constant resistor 44, and a processing module 46.
Wherein, a first input end of the processing module 46 is connected with the power supply module 45; a second input terminal of the processing module 46 is connected to a second terminal of the first constant resistor 41 (also the first terminal of the second variable resistor 42); a third input of the processing module 46 is connected to a second terminal of the third fixed resistor 43 (also the first terminal of the fourth fixed resistor 44).
A first end of the first fixed-value resistor 41 is connected with a power supply module 45 and a first end of the third fixed-value resistor 43; a second terminal of the first constant resistor 43 is connected to a first terminal of the second variable resistor 42. A second terminal of the second variable resistor 42 is grounded. A first terminal of the third fixed resistor 43 is connected to the power module 45, and a second terminal of the third fixed resistor 43 is connected to a first terminal of the fourth fixed resistor 44. A second terminal of the fourth fixed resistor 44 is grounded.
Optionally, in a case that the sampling reference voltage value is greater than or equal to the working voltage value of the resistance sensor, the power module includes a first power Integrated Circuit (IC) sub-module; the second variable resistance is a resistance sensor.
For example, fig. 5 shows a structure of an electrical detection circuit provided in an embodiment of the present application. As shown in fig. 5, the electrical detection circuit includes a first power conversion IC sub-module 51 (i.e., the power module 45 in fig. 4), a first fixed resistor 41, a resistance sensor 52 (i.e., the second variable resistor 42 in fig. 4), a third fixed resistor 43, a fourth fixed resistor 44, and a processing module 46 connected to the first power conversion IC sub-module 51, the first fixed resistor 41, the resistance sensor 52, the third fixed resistor 43, and the fourth fixed resistor 44.
Optionally, the power module includes a voltage stabilizing IC sub-module and a second power conversion IC sub-module, when the sampling reference voltage value is smaller than the working voltage value of the resistance sensor. The first end of the second power supply conversion IC submodule is connected with the voltage stabilizing IC submodule, the first end of the first constant value resistor and the first end of the third constant value resistor; and the second end of the second power conversion IC submodule is connected with the processing module. The second variable resistor includes a second fixed resistor and a resistance sensor. The second constant value resistor and the resistance sensor are connected between the second end of the first constant value resistor and the ground in parallel.
For example, fig. 6 shows a structure of an electrical detection circuit provided in an embodiment of the present application. As shown in fig. 6, the electrical detection circuit includes a voltage stabilizing IC submodule 61, a second power conversion IC submodule 62, a second fixed resistor 63, a resistor sensor 64, a first fixed resistor 41, a third fixed resistor 43, a fourth fixed resistor 44, and a processing module 46 connected to the second power conversion IC submodule 62, the first fixed resistor 41, the second fixed resistor 63, the resistor sensor 64, the third fixed resistor 43, and the fourth fixed resistor 44.
Wherein, the voltage-stabilizing IC sub-module 61 and the second power conversion IC sub-module 62 constitute the power module 45 in fig. 4; the second fixed resistor 63 and the resistance sensor 64 constitute the second variable resistor 42 in fig. 4. The first end of the second power conversion IC sub-module 62 is connected to the regulator IC sub-module 61, the first end of the first constant resistor 41, and the first end of the third constant resistor 43. The second fixed resistor 63 and the resistance sensor 64 are connected in parallel between the second end of the first fixed resistor 41 and the ground.
Specifically, the electrical detection circuit operates according to the following principle:
s1, the processing module obtains a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value.
The first voltage AD value is the voltage AD value of the first end of the second variable resistor. The second voltage AD value is a voltage AD value of the first end of the fourth fixed-value resistor. The first resistance value is the resistance value of the first constant value resistor. The third resistance value is the resistance value of the third constant value resistor. The fourth resistance value is the resistance value of the fourth fixed-value resistor.
S2, the processing module calculates a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value.
Wherein the second resistance value is the resistance value of the second variable resistor. The second resistance value satisfies the formula
Figure BDA0002606322620000091
Wherein R is1Represents a first resistance value, R2Represents a second resistance value, R3Represents a third resistance value, R4Denotes the fourth resistance value, ADfDenotes a first voltage AD value, ADinIndicating the value of the second voltage AD.
Specifically, according to the connection relationship of the elements in the electrical detection circuit,
Figure BDA0002606322620000092
Figure BDA0002606322620000093
then the formula one can be obtained:
Figure BDA0002606322620000094
according to the connection relation of the elements in the electric detection circuit, the fourth resistance value satisfies the formula
Figure BDA0002606322620000095
Then equation two can be derived:
Figure BDA0002606322620000096
according to the connection relationship of the elements in the electrical detection circuit, the second resistance value satisfies the formula three:
Figure BDA0002606322620000097
then the formula one and the formula two are put into the formula three to obtain the formula four, and the formula four is
Figure BDA0002606322620000098
Wherein, VfAn analog value, AD, representing a voltage signal at the first terminal of the second variable resistorfDenotes a first voltage AD value, SbitRepresenting the sampling bit number of the analog-digital converter; vinAn analog value, AD, representing a voltage signal at the first terminal of the fourth constant value resistorinDenotes a second voltage AD value, VrefRepresenting a sampled reference voltage value; vdcIndicating the operating voltage value, R, of the resistive sensor3Represents a third resistance value, R4The fourth resistance value is represented.
And S3, determining oil level information according to the second resistance value by the processing module.
Specifically, the processing module determining the oil level information according to the second resistance value includes the following steps a to C.
And step A, the processing module determines the resistance value of the resistance sensor according to the second resistance value.
Specifically, in the case where the sampling reference voltage value is greater than or equal to the operating voltage value of the resistance sensor, the resistance value of the second variable resistor is determined as the resistance value of the resistance sensor.
And under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the processing module acquires the resistance value of the second fixed-value resistor and calculates the resistance value of the resistance sensor according to the second resistance value and the resistance value of the second fixed-value resistor. Wherein the resistance value of the resistance sensor satisfies the formula
Figure BDA0002606322620000101
Wherein R isfRepresenting the resistance of the resistive sensor, R representing the resistance of the second fixed resistor, R2Representing the second resistance value.
And step B, the processing module inquires a resistance mean value with the minimum difference with the resistance value of the resistance sensor in a preset corresponding relation to obtain an error value corresponding to the resistance mean value.
Optionally, in the preset corresponding relationship, the processing module is further configured to obtain the preset corresponding relationship before querying a resistance mean value with the smallest difference between resistance values of the resistance sensors to obtain an error value corresponding to the resistance mean value.
Specifically, the manager first records the nominal resistance value of the resistance sensor by dividing the nominal resistance value into steps. For example, in table 1 below, the nominal resistance values of the resistance sensors are divided by a gradient of 10.
The electrical detection circuit of the present application is built in the associated circuit software to set the resistance value of the resistance sensor to a target nominal resistance value. And calculating theoretical resistance values of a plurality of groups of resistance sensors by using related circuit software in multiple times of debugging to form a sample. For example, in table 1 below, using 1000 as the target nominal resistance, 10 theoretical resistances are calculated by the associated software as 999.8, 1000.1, 997.8, 995.7, 996.5, 1004.8, 993.2, 999.4, 1002.1, 998.9, respectively.
And then extracting N samples, removing the maximum value and the minimum value, calculating the resistance average value of the N-2 samples, and recording. For example, in table 1 below, using 1000 as the target nominal resistance value, 10 theoretical resistance values are calculated by the correlation software as 999.8, 1000.1, 997.8, 995.7, 996.5, 1004.8, 993.2, 999.4, 1002.1 and 998.9, respectively, and the 10 samples are extracted, and after the maximum value (1004.8) and the minimum value (993.2) are removed, the resistance average of 8 samples is 998.79.
And then, after the resistance value of the resistance sensor in the electric detection circuit is set as a target nominal resistance value, corresponding parameters are obtained, and the measured value measured by the electric detection circuit is reversely deduced by utilizing the corresponding parameters to be recorded.
And finally, taking the difference between the average value of the resistors and the measured value as an error value corresponding to the target nominal resistance value, and recording. For example, in table 1 below, when the target nominal resistance value is 1000, the resistance average value is 998.79, and the measured value is 999.21, the corresponding error value is 999.21-998.79-0.42.
TABLE 1
Figure BDA0002606322620000111
Thus, a preset corresponding relationship is obtained, and then the preset corresponding relationship is stored in the processing module.
The preset corresponding relationship may be embodied in the form of a table, for example, in the form of table 2 below, where table 2 includes a serial number, a nominal resistance value, a measured value, a resistance mean value, and an error value.
TABLE 2
Figure BDA0002606322620000112
Figure BDA0002606322620000121
Of course, the preset corresponding relationship may also be embodied in other forms, for example, a ternary tree.
After the processing module obtains the preset corresponding relationship, the resistance mean value with the minimum difference between the resistance values of the resistance sensors is inquired in the preset corresponding relationship, and the error value corresponding to the resistance mean value is obtained. For example, if the resistance value of the resistance sensor is determined to be 957.98 in step a, the mean value of the resistance with the smallest difference from 957.98 is 959.08, and the error value corresponding to the mean value 959.08 is-0.16, as shown in table 2.
And step C, the processing module corrects the resistance value of the resistance sensor according to the error value and determines oil level information according to the corrected resistance value of the resistance sensor.
The preset corresponding relation comprises a corresponding relation between the resistance mean value and the error value.
For example, if the resistance value of the resistance sensor is determined to be 957.98 in step a, the mean value of the resistance with the smallest difference from 957.98 is 959.08, and the error value corresponding to the mean value 959.08 is-0.16, as shown in table 2. The resistance value of the resistance sensor after correction is 957.98-0.16-957.82.
In the above scheme, the voltage division principle of the third fixed value resistor and the fourth fixed value resistor is utilized, the calculation mode of the second resistance value is converted, the second resistance value can be calculated according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value, the problem that the resistance value of the reversely pushed resistance type sensor does not accord with the reality through the voltage division ratio and the power voltage is avoided, namely, the problem that the power voltage floats due to the influence of a vehicle-mounted environment is avoided, the calculated resistance value of the resistance type sensor is low in accuracy is solved, the accuracy of the oil level detection of the electrical detection circuit is improved, and potential safety hazards are reduced.
Furthermore, the resistance value of the resistance sensor calculated by the method is corrected by using the preset corresponding relation, and then the oil level information is determined according to the corrected resistance value of the resistance sensor. The calculated resistance value of the resistance sensor is more accurate, the accuracy of the oil level detection of the electrical detection circuit is further improved, and potential safety hazards are reduced.
Furthermore, the power module and the second variable resistor in the electrical detection circuit are determined according to the sampling reference voltage value and the working voltage value of the resistance sensor.
And under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the power supply module comprises a first power supply Integrated Circuit (IC) submodule, and the second variable resistor is the resistance sensor. And the calculation mode of the second resistance value is converted by utilizing the voltage division principle of the third constant value resistor and the fourth constant value resistor, so that the accuracy of the oil level detection of the electrical detection circuit is improved.
Under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the power supply module comprises a voltage-stabilizing IC sub-module and a second power supply conversion IC sub-module, wherein the voltage-stabilizing IC sub-module can stabilize the input voltage of the power supply module, and the second power supply conversion IC sub-module can stabilize the input voltage of the processing module; the second variable resistor comprises a second fixed-value resistor and a resistor sensor which are connected in parallel, and the accuracy of the measured resistance value of the resistor sensor under the large working voltage of the electric detection circuit can be effectively ensured.
Based on the electrical detection circuit, the present application provides an oil level detection method, as shown in fig. 7, including:
701. the processing module obtains a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value.
The first voltage AD value is the voltage AD value of the first end of the second variable resistor. The second voltage AD value is a voltage AD value of the first end of the fourth fixed-value resistor. The first resistance value is the resistance value of the first constant value resistor. The third resistance value is the resistance value of the third constant value resistor. The fourth resistance value is the resistance value of the fourth fixed-value resistor.
702. The processing module calculates a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value.
Wherein the second resistance value is the resistance value of the second variable resistor. The second resistance value satisfies the formula
Figure BDA0002606322620000131
Wherein R is1Represents a first resistance value, R2Represents a second resistance value, R3Represents a third resistance value, R4Denotes the fourth resistance value, ADfDenotes a first voltage AD value, ADinIndicating the value of the second voltage AD.
703. The processing module determines oil level information according to the second resistance value.
Specifically, the processing module determines the resistance value of the resistance sensor according to the second resistance value. Then, the processing module queries a resistance mean value with the minimum difference with the resistance value of the resistance sensor in a preset corresponding relation to obtain an error value corresponding to the resistance mean value. The preset corresponding relationship comprises a corresponding relationship between the resistance mean value and the error value. And then, the processing module corrects the resistance value of the resistance sensor according to the error value. And finally, the processing module determines oil level information according to the corrected resistance value of the resistance sensor.
Optionally, the processing module determines the resistance value of the second variable resistor as the resistance value of the resistance sensor when the sampling reference voltage value is greater than or equal to the working voltage value of the resistance sensor.
Optionally, the processing module obtains the resistance value of the second fixed-value resistor when the sampling reference voltage value is smaller than the working voltage value of the resistor sensor. Then, the processing module calculates the resistance value of the resistance sensor according to the second resistance value and the resistance value of the second constant value resistor. Wherein the resistance value of the resistance sensor satisfies the formula
Figure BDA0002606322620000141
Wherein R isfRepresenting the resistance of the resistive sensor, R representing the resistance of the second fixed resistor, R2Representing the second resistance value.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art would appreciate that the various illustrative modules, elements, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. An electrical detection circuit, characterized in that the electrical detection circuit comprises a power module, a first fixed value resistor, a second variable resistor, a third fixed value resistor, a fourth fixed value resistor, and a processing module connected with the power module, the first fixed value resistor, the second variable resistor, the third fixed value resistor, and the fourth fixed value resistor; the first end of the first constant resistor is connected with the power supply module and the first end of the third constant resistor; the second end of the first constant resistor is connected with the first end of the second variable resistor; a second end of the second variable resistor is grounded; the first end of the third fixed-value resistor is connected with the power supply module, and the second end of the third fixed-value resistor is connected with the first end of the fourth fixed-value resistor; the second end of the fourth fixed-value resistor is grounded; the processing module is configured to:
acquiring a first voltage digital signal AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value; the first voltage AD value is a voltage AD value of a first end of the second variable resistor; the second voltage AD value is the voltage AD value of the first end of the fourth constant value resistor; the first resistance value is the resistance value of the first constant value resistor; the third resistance value is the resistance value of the third fixed-value resistor; the fourth resistance value is the resistance value of the fourth constant value resistor;
calculating a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value; the second resistance value is the resistance value of the second variable resistor;
and determining oil level information according to the second resistance value.
2. The electrical detection circuit according to claim 1, wherein the processing module is specifically configured to:
determining the resistance value of the resistance sensor according to the second resistance value;
inquiring a resistance mean value with the minimum difference between the resistance value of the resistance sensor and the resistance value of the resistance sensor in a preset corresponding relation to obtain an error value corresponding to the resistance mean value; the preset corresponding relation comprises a corresponding relation between a resistance mean value and an error value;
correcting the resistance value of the resistance sensor according to the error value;
and determining oil level information according to the corrected resistance value of the resistance sensor.
3. The electrical detection circuit of claim 2,
under the condition that the sampling reference voltage value is greater than or equal to the working voltage value of the resistance sensor, the power supply module comprises a first power supply Integrated Circuit (IC) submodule, and the second variable resistor is the resistance sensor;
the processing module is specifically configured to:
determining a resistance value of the second variable resistor as a resistance value of the resistance sensor.
4. The electrical detection circuit of claim 2,
under the condition that the sampling reference voltage value is smaller than the working voltage value of the resistance sensor, the power supply module comprises a voltage-stabilizing IC submodule and a second power supply conversion IC submodule; the first end of the second power supply conversion IC submodule is connected with the voltage stabilizing IC submodule, the first end of the first constant value resistor and the first end of the third constant value resistor; the second end of the second power conversion IC submodule is connected with the processing module; the second variable resistor comprises a second fixed resistor and a resistance sensor; the second fixed-value resistor and the resistance sensor are connected between the second end of the first fixed-value resistor and the ground in parallel;
the processing module is specifically configured to:
acquiring the resistance value of the second constant value resistor;
and calculating the resistance value of the resistance sensor according to the second resistance value and the resistance value of the second constant value resistor.
5. The electrical detection circuit of claim 4, wherein the resistance of the resistive sensor satisfies the following equation:
Figure FDA0002606322610000021
wherein R isfRepresenting the resistance of the resistance sensor, R representing the resistance of the second fixed-value resistor, R2The second resistance value is expressed.
6. The electrical detection circuit of claim 1, wherein the second resistance value satisfies the following equation:
Figure FDA0002606322610000022
wherein R is1Represents the first resistance value, R2Represents the second resistance value, R3Represents the third resistance value, R4Represents the fourth resistance value, ADfRepresents the value of said first voltage AD, ADinRepresents the second voltage AD value.
7. An oil level detection method applied to the electrical detection circuit according to any one of claims 1 to 6, characterized by comprising:
the processing module acquires a first voltage AD value, a second voltage AD value, a first resistance value, a third resistance value and a fourth resistance value; the first voltage AD value is a voltage AD value of a first end of the second variable resistor; the second voltage AD value is the voltage AD value of the first end of the fourth constant value resistor; the first resistance value is the resistance value of the first constant value resistor; the third resistance value is the resistance value of the third fixed-value resistor; the fourth resistance value is the resistance value of the fourth constant value resistor;
calculating a second resistance value according to the first voltage AD value, the second voltage AD value, the first resistance value, the third resistance value and the fourth resistance value; the second resistance value is the resistance value of the second variable resistor;
and determining oil level information according to the second resistance value.
8. The oil level detection method according to claim 7, wherein said determining oil level information based on the second resistance value includes:
determining the resistance value of the resistance sensor according to the second resistance value;
inquiring a resistance mean value with the minimum difference between the resistance value of the resistance sensor and the resistance value of the resistance sensor in a preset corresponding relation to obtain an error value corresponding to the resistance mean value; the preset corresponding relation comprises a corresponding relation between a resistance mean value and an error value;
correcting the resistance value of the resistance sensor according to the error value;
and determining oil level information according to the corrected resistance value of the resistance sensor.
9. The oil level detection method according to claim 8, wherein the determining the resistance value of the resistance sensor from the second resistance value in a case where the sampling reference voltage value is greater than or equal to the operating voltage value of the resistance sensor includes:
determining a resistance value of the second variable resistor as a resistance value of the resistance sensor.
10. The oil level detection method according to claim 8, wherein, in a case where the sampling reference voltage value is smaller than the operating voltage value of the resistance sensor, said determining the resistance value of the resistance sensor from the second resistance value includes:
acquiring the resistance value of the second constant value resistor;
and calculating the resistance value of the resistance sensor according to the second resistance value and the resistance value of the second constant value resistor.
11. The oil level detection method according to claim 10, wherein the resistance value of the resistance sensor satisfies the following formula:
Figure FDA0002606322610000041
wherein R isfRepresenting the resistance of the resistance sensor, R representing the resistance of the second fixed-value resistor, R2The second resistance value is expressed.
12. The oil level detection method according to claim 7, wherein the second resistance value satisfies the following formula:
Figure FDA0002606322610000042
wherein R is1Represents the first resistance value, R2Represents the second resistance value, R3Represents the third resistance value, R4Represents the fourth resistance value, ADfRepresents the value of said first voltage AD, ADinRepresents the second voltage AD value.
CN202010739621.7A 2020-07-28 2020-07-28 Electrical detection circuit and oil level detection method Pending CN114001796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010739621.7A CN114001796A (en) 2020-07-28 2020-07-28 Electrical detection circuit and oil level detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010739621.7A CN114001796A (en) 2020-07-28 2020-07-28 Electrical detection circuit and oil level detection method

Publications (1)

Publication Number Publication Date
CN114001796A true CN114001796A (en) 2022-02-01

Family

ID=79920639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010739621.7A Pending CN114001796A (en) 2020-07-28 2020-07-28 Electrical detection circuit and oil level detection method

Country Status (1)

Country Link
CN (1) CN114001796A (en)

Similar Documents

Publication Publication Date Title
US6229467B1 (en) Correction static errors in a/d-converter
US4514694A (en) Quiescent battery testing method and apparatus
EP0071439B1 (en) Quiescent battery testing method and apparatus
US6236215B1 (en) Cell voltage detection circuit, and method of detecting cell voltage
KR100831589B1 (en) Method for extracting property of gas sensor output, and device and method for measuring gas density using it
CN106374923B (en) High-precision ADC reference voltage calibration system and calibration method
CN108445292A (en) Resistance measurement method based on error correction and device
Laraba et al. Exploiting pipeline ADC properties for a reduced-code linearity test technique
CN108362355B (en) Liquid level measurement method and device based on segmented capacitor and electronic equipment
CN112688687A (en) Method and device for acquiring physical information to be tested, computer equipment and storage medium
CN109379081B (en) Digital-analog converter and control method thereof
IE46337B1 (en) Error correction in electrical meters
CN114001796A (en) Electrical detection circuit and oil level detection method
CN114499521A (en) Signal calibration method and device, computer equipment and storage medium
CN210981427U (en) Fuel liquid level detection device
CN111208346B (en) Small signal voltage measuring device and method
CN110501948B (en) Method for collecting data of resistance type sensor for electronic device
US7558811B2 (en) Electronic control apparatus and memory apparatus for electronic control apparatus
CN113447871A (en) Calibration method and device
US7136763B2 (en) Increasing current and voltage sensor accuracy and resolution in electric and hybrid electric vehicles
JPH08293330A (en) Battery temperature detecting device
CN113612478B (en) ADC key circuit calibration method, system, storage medium and key circuit
CN114337614B (en) Comparator-based high-precision edge detection method and system
CN111879981B (en) Method and device for compensating overload of single-tone signal
CN113899941B (en) Current acquisition circuit and acquisition method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination