Temperature Drift Compensation Test System and Temperature Drift Compensation Test Method for Capacitive Sensors

Through the analog switch and digital potentiometer, the equivalent resistance value of the capacitive sensor is automatically adjusted, which solves the problem of frequent manual resistance adjustment in traditional temperature drift compensation tests, improves test efficiency and accuracy, and reduces costs and cycles.

CN120063333BActive Publication Date: 2025-07-11SHENZHEN CHEVEN TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510536472.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-07-11
Estimated Expiration
2045-04-27

AI Technical Summary

Technical Problem

The traditional capacitive sensor temperature drift compensation test solution requires frequent manual adjustment of the resistance, which leads to large time consumption and the accuracy of the test is affected by external air. The data error is large in the state of not being completely filled, which increases the R&D cycle and cost.

Method used

The thermistor in the temperature detection module is dynamically replaced by analog switches and digital potentiometers, and the equivalent resistance value is automatically adjusted under different preset testing environments until the target analog-to-digital conversion value range is met.

Benefits of technology

It improves testing efficiency and data accuracy, reduces the impact of manual adjustment errors and humidity changes, ensures test consistency in the fully glued state, and reduces R&D cycle and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120063333B_ABST
    Figure CN120063333B_ABST
Patent Text Reader

Abstract

The present application discloses a temperature drift compensation test system and a temperature drift compensation test method for a capacitive sensor. The test system includes a test incubator and at least one capacitive sensor. Each capacitive sensor includes at least a temperature detection module; an analog switch and a digital potentiometer for replacing the thermistor of the temperature detection module during the temperature drift compensation test; a control module for controlling the test environment of the test incubator, for controlling the analog switch to adjust the resistance value of the digital potentiometer, and for communicating with the capacitive sensor; the control module is configured to: adjust the resistance value of the digital potentiometer during the temperature drift compensation test until the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance under different preset test environments of the test incubator are all within the target analog-to-digital conversion value range. The present application solves the problems in the traditional temperature drift compensation scheme, such as the need to manually adjust the resistance, repeatedly open the test incubator, and inaccurate data in the state of incomplete potting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of sensors, and particularly relates to a temperature drift compensation test system and a temperature drift compensation test method for a capacitive sensor. Background Art

[0002] The performance of a capacitive proximity sensor is susceptible to changes in ambient temperature. Therefore, temperature drift compensation has become a key technology to ensure its stability. Usually, a capacitive sensor relies on a method that combines a thermistor and a fixed resistor for temperature drift compensation. The resistance values of the thermistor and the fixed resistor are obtained through testing. However, traditional temperature drift compensation test schemes have significant defects.

[0003] Specifically, the traditional temperature drift compensation scheme is to use a thermistor and a fixed resistor to construct a temperature detection module of a capacitive sensor, and then place the capacitive sensor in a test incubator for temperature drift compensation testing. This process requires manual modification of the fixed resistor or the thermistor resistance repeatedly until the required resistance parameters are tested. However, this scheme requires frequent opening and closing of the test incubator, which not only consumes a lot of time but also easily causes external air to enter the test incubator, increasing the humidity inside the test incubator and thus affecting the test accuracy.

[0004] In addition, for the traditional temperature drift compensation scheme, in order to facilitate the modification of resistance parameters, usually only partial potting is performed on the sensor at the initial stage to partially seal the sensor. After determining the optimal resistance value, the sensor needs to be fully potted and sealed and then placed back in the incubator for verification. However, the data obtained in the state of incomplete potting has a large error compared with the data obtained in the state of complete potting, resulting in an additional R & D cycle and increased costs. Summary of the Invention

[0005] In view of the above problems, the present application provides a temperature drift compensation test system and a temperature drift compensation test method for a capacitive sensor to solve the above technical problems.

[0006] In a first aspect, the present application provides a temperature drift compensation test system for a capacitive sensor, including:

[0007] A test incubator and at least one capacitive sensor. At least one of the capacitive sensors is placed in the test incubator for temperature drift compensation testing. Each capacitive sensor includes at least a temperature detection module formed by a voltage-dividing resistor and a thermistor connected in parallel;

[0008] An analog switch and a digital potentiometer. The analog switch and the digital potentiometer are connected. The analog switch and the digital potentiometer are used to replace the thermistor of the temperature detection module during the temperature drift compensation testing;

[0009] A control module, connected to the test incubator, the analog switch, the digital potentiometer and at least one of the capacitive sensors, respectively, for controlling the test environment of the test incubator, for controlling the analog switch to adjust the resistance of the digital potentiometer, and for communicating with the capacitive sensor;

[0010] The control module is configured to adjust the resistance of the digital potentiometer during a temperature drift compensation test to control an equivalent resistance value of the voltage divider resistor and the digital potentiometer in parallel, until the analog-to-digital conversion values ​​sampled by the capacitive sensor based on a preset detection distance under different preset test environments of the test temperature chamber are all within a target analog-to-digital conversion value range.

[0011] In a second aspect, the present application provides a temperature drift compensation test method for a capacitive sensor, which is applied to the temperature drift compensation test system for the capacitive sensor as described in the first aspect, and the temperature drift compensation test method for the capacitive sensor includes:

[0012] Replace the thermistor of the temperature detection module of the capacitive sensor by an analog switch and a digital potentiometer, and set the resistance value of the voltage divider resistor of the temperature detection module to a preset initial voltage divider value;

[0013] The capacitive sensor is placed in a test incubator, and the analog switch is controlled by a control module to adjust the resistance value of the digital potentiometer, so that the analog-to-digital conversion value obtained by the capacitive sensor based on the preset detection distance sampling under each preset test environment is within the target analog-to-digital conversion value range;

[0014] The equivalent resistance values ​​of the voltage divider resistor and the digital potentiometer in parallel under each of the preset test environments are respectively obtained, a resistor combination that meets the parallel condition is determined based on each of the equivalent resistance values, and two resistors in the resistor combination are respectively used as pre-selected results of the voltage divider resistor and the thermistor.

[0015] The present application provides a temperature drift compensation test system and a temperature drift compensation test method for a capacitive sensor. The temperature drift compensation test method is applied to the temperature drift compensation test system. By using an analog switch and a digital potentiometer to dynamically replace the thermistor in the temperature detection module, and automatically adjusting the equivalent resistance value under different preset test environments until the target analog-to-digital conversion value range is met, the problems of frequent manual adjustment of resistance, repeated opening of the test temperature chamber, and inaccurate data in the incompletely glued state in the traditional temperature drift compensation scheme are effectively solved, and the test efficiency and data accuracy are significantly improved.

[0016] Specifically, the control module can control the resistance adjustment of the analog switch and the digital potentiometer throughout the entire test process, thus avoiding errors and time losses caused by frequent manual resistance adjustment. In addition, since there is no need to repeatedly open the test incubator for adjustment, the influence of humidity changes caused by the entry of external air into the test environment can be reduced, further improving the accuracy of the test. Finally, because the resistance value does not need to be manually adjusted during the test process, the capacitive sensor can remain in a fully potted state throughout the process, ensuring the consistency between the test stage and the subsequent verification stage, reducing data deviation caused by packaging differences, and reducing the additional R & D cycle and cost.

[0017] These aspects or other aspects of the present application will be more clearly understood in the following description of the embodiments. Brief Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 A schematic diagram of the modules of the temperature drift compensation test system for a capacitive sensor provided by an embodiment of the present application is shown.

[0020] Figure 2 Another schematic diagram of the modules of the temperature drift compensation test system for a capacitive sensor provided by an embodiment of the present application is shown.

[0021] Figure 3 A flowchart of the temperature drift compensation test method for a capacitive sensor provided by an embodiment of the present application is shown.

[0022] Figure 4 Another flowchart of the temperature drift compensation test method for a capacitive sensor provided by an embodiment of the present application is shown. Detailed Embodiments

[0023] In order to enable those skilled in the art of the present technology to better understand the solutions of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.

[0024] Moreover, the term "comprising", "including" or any other variation thereof is intended to cover non-exclusive inclusion, such that a process, method, article or apparatus comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or apparatus. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.

[0025] In addition, "a plurality of" in the embodiments of the present application means two or more. In view of this, "a plurality of" in the embodiments of the present application may also be understood as "at least two". "At least one" can be understood as one or more, for example, understood as one, two or more. For example, including at least one means including one, two or more, and does not limit which ones are included. For example, including at least one of A, B, and C, then what is included can be A, B, C, A and B, A and C, B and C, or A and B and C.

[0026] It should be noted that "connection" in the embodiments of the present application can be understood as electrical connection, and the connection of two electrical components can be a direct or indirect connection between the two electrical components. For example, the connection of A and B can be either a direct connection between A and B or an indirect connection between A and B through one or more other electrical components.

[0027] The embodiments of the present application provide a temperature drift compensation test system for a capacitive sensor. Figure 1 Fig. shows a schematic diagram of the modules of the temperature drift compensation test system for a capacitive sensor provided by the embodiments of the present application, as Figure 1 shown, the temperature drift compensation test system for a capacitive sensor includes:

[0028] A test temperature chamber and at least one capacitive sensor. The at least one capacitive sensor is placed in the test temperature chamber for temperature drift compensation testing. Each capacitive sensor includes at least a temperature detection module formed by a voltage dividing resistor and a thermistor connected in parallel.

[0029] An analog switch and a digital potentiometer. The analog switch and the digital potentiometer are connected. The analog switch and the digital potentiometer are used to replace the thermistor of the temperature detection module during the temperature drift compensation test.

[0030] A control module, which is respectively connected to the test temperature chamber, the analog switch, the digital potentiometer and at least one capacitive sensor, and is used to control the test environment of the test temperature chamber, and is used to control the analog switch to adjust the resistance value of the digital potentiometer, and is used to communicate with the capacitive sensor.

[0031] The control module is configured to: during the temperature drift compensation test, adjust the resistance value of the digital potentiometer to control the equivalent resistance value of the parallel connection of the voltage dividing resistor and the digital potentiometer until the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in different preset test environments of the test incubator are all within the target analog-to-digital conversion value range.

[0032] It can be understood that the specific structure of the control module in the embodiments of the present application is not limited. It uses existing electronic control technologies and communication protocols to interact with the test incubator, analog switch, and digital potentiometer.

[0033] In the temperature drift compensation test system of the capacitive sensor provided by the embodiments of the present application, the control module adjusts the resistance value of the digital potentiometer during the temperature drift compensation test to control the equivalent resistance value of the parallel connection of the voltage dividing resistor and the digital potentiometer, so that the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in different preset test environments of the test incubator are all within the target analog-to-digital conversion value range. At this time, the equivalent resistance value of the parallel connection of the voltage dividing resistor and the digital potentiometer in different preset test environments can be obtained, and the resistance value of the digital potentiometer is the value closest to the resistance value of the thermistor. Furthermore, the voltage dividing resistor and thermistor that meet the conditions can be calculated according to the principle of resistance voltage division. The embodiments of the present application avoid the errors and time loss caused by frequent manual adjustment of the resistance, and since there is no need to repeatedly open the test incubator for adjustment, the influence of humidity changes caused by the entry of external air into the test environment can be reduced, further improving the accuracy of the test. In addition, since the resistance value does not need to be manually adjusted during the test process, the capacitive sensor can remain in a fully potted state throughout the process, ensuring the consistency between the test stage and the subsequent verification stage, reducing the errors caused by potting differences, and reducing the additional R & D cycle and cost. Finally, since the resistance value does not need to be manually adjusted during the test process, synchronously testing multiple capacitive sensors during the test process does not increase the labor cost, further improving the test efficiency.

[0034] It should be clear that the purpose of the embodiments of the present application is to test the resistance values of the thermistor and voltage dividing resistor of the temperature detection module of the capacitive sensor. Therefore, other parts of the capacitive sensor are not limited, as long as the capacitive sensor to be tested has a corresponding temperature detection module. Among them, the detection principle of the capacitive sensor is that the capacitive sensor generates an oscillation signal according to the internal capacitance change, then performs circuit processing on the oscillation signal such as filtering, amplification, etc., and converts the processed signal into an analog-to-digital conversion value, and determines whether there is a target object within its detection range according to the analog-to-digital conversion value.

[0035] In some embodiments, Figure 2 shows another module schematic diagram of the temperature drift compensation test system of the capacitive sensor provided by the embodiments of the present application, as Figure 2As shown, the temperature drift compensation test system of the capacitive sensor further includes:

[0036] A host computer, connected to the control module, is configured to: communicate with the control module, determine a resistor combination that meets the parallel condition based on each equivalent resistance value, and use two resistors in the resistor combination as the preselected results of the voltage-dividing resistor and the thermistor respectively.

[0037] It can be understood that in the embodiments of the present application, there is no limitation on the way for the host computer to obtain the resistor combination. For example, the host computer can use the exhaustive method to calculate the resistor combination that meets the parallel condition. Since the number of existing resistor specifications is limited, the host computer can, based on the principle of resistor voltage division, test the resistor combination that meets the parallel condition through the exhaustive method.

[0038] Based on the temperature drift compensation test system of the capacitive sensor provided in the above embodiments, the embodiments of the present application further provide a temperature drift compensation test method for a capacitive sensor. Specifically, the temperature drift compensation test method for a capacitive sensor is applied to the temperature drift compensation test system of the capacitive sensor provided in the above embodiments. Figure 3 shows a flowchart of the temperature drift compensation test method for a capacitive sensor provided in the embodiments of the present application. As Figure 3 shown, the temperature drift compensation test method includes:

[0039] Step S100: Replace the thermistor of the temperature detection module of the capacitive sensor with a analog switch and a digital potentiometer, and set the resistance value of the voltage-dividing resistor of the temperature detection module to a preset initial voltage-dividing value. Optionally, compared with the resistance value of the thermistor that changes with temperature, the voltage-dividing resistor is a resistor with a fixed resistance value in the temperature detection module. In the embodiments of the present application, there is no limitation on the source of the initial voltage-dividing value of the voltage-dividing resistor. For example, the initial voltage-dividing value can be set according to the empirical values of past tests. For another example, the designer can also calculate a suitable initial voltage-dividing value or a reasonable range in combination with the specific circuit parameters of the capacitive sensor.

[0040] Step S200: Place the capacitive sensor in a test incubator, and control the analog switch through the control module to adjust the resistance value of the digital potentiometer, so that the analog-to-digital conversion values sampled by the capacitive sensor based on the preset detection distance under each preset test environment are all within the target analog-to-digital conversion value range. Optionally, the preset detection distance usually selects the maximum detection distance of the capacitive sensor, and the target analog-to-digital conversion value range usually selects less than half of the analog-to-digital conversion range of the capacitive sensor. For example, if the maximum detection range of the capacitive sensor is 8 mm and its analog-to-digital conversion range is 4095, the preset detection distance can be set to 8 mm, and the target analog-to-digital conversion value range can be set to, for example, 1350 - 1650. Then, adjust the test environment of the test incubator to each preset test environment in turn. Under different preset test environments, adjust the resistance value of the digital potentiometer so that the analog-to-digital conversion value obtained by the capacitive sensor based on the detection distance of 8 mm reaches the range of 1350 - 1650. Among them, the purpose of setting the target analog value range is to provide an error range. For example, if the target analog-to-digital conversion value is preferably 1500, a 10% deviation can be set. At this time, the target analog-to-digital conversion value range including the deviation is 1350 - 1650.

[0041] Step S300: Obtain the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer under each preset test environment respectively, determine the resistor combination that meets the parallel condition based on each equivalent resistance value, and use the two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor respectively. Optionally, under each preset test environment, the resistance value of the voltage-dividing resistor is the preset initial voltage-dividing value, and the resistance value of the digital potentiometer is obtained through Step S200. Given the resistance values of the voltage-dividing resistor and the digital potentiometer, the equivalent resistance value after their parallel connection can be obtained according to the parallel principle, and then the resistor combination that meets the parallel condition is determined based on each equivalent resistance value. Specifically, each equivalent resistance value needs to meet the same parallel condition, that is, it meets the formula , where R represents the equivalent resistance value, and R1 and R2 respectively represent the resistance values of the two resistors in the resistor combination. Finally, use the two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor respectively.

[0042] As an implementation manner, the resistor combinations that meet the parallel condition determined based on each equivalent resistance value include multiple resistor combinations. At this time, the designer can select any one of the resistor combinations, or test all the resistor combinations to obtain the optimal one.

[0043] The temperature drift compensation test system and method for a capacitive sensor provided by an embodiment of the present application. The temperature drift compensation test method is applied to the temperature drift compensation test system. By using an analog switch and a digital potentiometer to dynamically replace the thermistor in the temperature detection module, and automatically adjusting the equivalent resistance value until the requirements of the target analog-to-digital conversion value range are met in different preset test environments, it effectively solves the problems in traditional temperature drift compensation schemes, such as the need to frequently manually adjust the resistance, repeatedly open the test temperature chamber, and inaccurate data in the state of incomplete potting. It significantly improves the test efficiency and data accuracy. And because the resistance value does not need to be manually adjusted during the test process, multiple capacitive sensors can be tested synchronously during the test process, and the labor cost will not be increased, further improving the test efficiency.

[0044] It can be understood that the embodiment of the present application does not limit the specific implementation manner of the control module to control the digital potentiometer through the analog switch. For example, the control module can increase the resistance of the digital potentiometer and decrease the resistance of the digital potentiometer by transmitting a rising electrical signal or a falling electrical signal to the analog switch respectively. Another example is that the control module can also introduce a binary coding signal to adjust the resistance value of the digital potentiometer. Specifically, the number of binary coding signals is determined according to the resistance range of the digital potentiometer. For example, a 7-bit binary coding signal can adjust a digital potentiometer with up to 128 resistance ranges at most.

[0045] In some embodiments, in the temperature drift compensation test method for a capacitive sensor provided by an embodiment of the present application, step S100: The step of replacing the thermistor of the temperature detection module of the capacitive sensor with an analog switch and a digital potentiometer, and setting the resistance value of the voltage-dividing resistor of the temperature detection module to a preset initial voltage-dividing value further includes:

[0046] Pot the capacitive sensor to seal the capacitive sensor.

[0047] The temperature drift compensation test method for a capacitive sensor provided by an embodiment of the present application directly controls the analog switch by the control module to adjust the resistance value of the digital potentiometer. Compared with the traditional temperature drift compensation test method, there is no need to manually adjust the resistance value. Therefore, in the test stage of the embodiment of the present application, all capacitive sensors including digital potentiometers and analog switches can be potted to seal the capacitive sensors, thereby preventing the influence of external factors such as dust and moisture pollutants in the test temperature chamber on the sensors during the test stage.

[0048] In some embodiments, in the temperature drift compensation test method for a capacitive sensor provided by an embodiment of the present application, step S300: The step of respectively obtaining the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer in each preset test environment includes:

[0049] When the average analog-to-digital conversion value obtained by performing average filtering processing on all the analog-to-digital conversion values obtained by continuously sampling a capacitive sensor based on a preset detection distance for a preset time is within the target analog-to-digital conversion value range, the equivalent resistance value of the parallel connection of the voltage-dividing resistor and the digital potentiometer is obtained. Optionally, for each preset test environment, the embodiments of the present application perform average filtering processing on the analog-to-digital conversion values obtained by continuously sampling the capacitive sensor to obtain an average analog-to-digital conversion value, thereby making the data under the corresponding preset test environment more stable. The preset time is set according to design requirements. For example, the preset time can be set to 30 minutes so that the capacitive sensor performs average filtering processing on all the analog-to-digital conversion values obtained by continuously sampling based on the preset detection distance for 30 minutes.

[0050] In some embodiments, in the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application, the test environment further includes temperature and humidity. Optionally, the temperatures of each preset test environment are different from each other. Since the test chamber is a sealed environment, the humidity of each preset test environment needs to be the same to stabilize the test environment.

[0051] It can be understood that the specific temperature and specific humidity of each preset test environment are determined by the designer. For example, if the working environment of the capacitive sensor is -25°C to 75°C, five preset test environments can be set, and the temperatures of the five preset test environments are -25°C, 0°C, 25°C, 50°C, and 75°C respectively, and the humidity is 50%. Also, the errors of humidity and temperature should be considered, such as the temperature error is ±1°C and the humidity error is ±5%.

[0052] In some embodiments, Figure 4 shows another flowchart of the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application. As Figure 4 shown, in the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application, after step S300: respectively obtaining the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer in each preset test environment, determining a resistor combination that satisfies the parallel condition based on each equivalent resistance value, and using the two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor respectively, the following steps are further included:

[0053] Step S400: Set the temperature detection module of the capacitive sensor according to the preliminary selection result. Specifically, the resistance values of the two resistors in the resistor combination used as the preliminary selection result are used as the resistance value of the voltage-dividing resistor and the resistance value of the thermistor respectively, and a temperature detection module is formed using the voltage-dividing resistor and the thermistor of the corresponding specifications.

[0054] Step S500: Place the capacitive sensor in a test incubator, and obtain the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in each preset test environment. Specifically, after testing the resistance values of the voltage-dividing resistor and the thermistor through an analog switch and a digital potentiometer, further verify the tested resistance values of the voltage-dividing resistor and the thermistor.

[0055] Step S600: When the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in at least one preset test environment do not fall within the target analog-to-digital conversion value range, set a temperature compensation coefficient between every two adjacent preset test environments, so that the capacitive sensor performs temperature compensation on the sampled analog-to-digital conversion values according to the temperature compensation coefficient. Specifically, when the analog-to-digital conversion values adopted by the capacitive sensor in at least one preset test environment do not conform to the target analog-to-digital conversion value range, temperature compensation is set for the capacitive sensor, that is, a temperature compensation coefficient is set between every two adjacent preset test environments, so that the capacitive sensor performs temperature compensation on the obtained analog-to-digital conversion values in the corresponding preset test environment, so that the compensated analog-to-digital conversion values reach the target analog-to-digital conversion values.

[0056] In some embodiments, in the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application, the temperature compensation coefficient between every two adjacent preset test environments is:

[0057]

[0058] wherein, K represents the temperature compensation coefficient between two adjacent preset test environments, AD2 and AD1 respectively represent the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in two adjacent preset test environments, and T1 and T2 respectively represent the temperatures of two adjacent preset test environments;

[0059] The capacitive sensor performs temperature compensation on the sampled analog-to-digital conversion values according to the temperature compensation coefficient, including:

[0060] When the temperature drops between two adjacent preset test environments, increase the analog-to-digital conversion value adopted by the capacitive sensor;

[0061] When the temperature rises between two adjacent preset test environments, decrease the analog-to-digital conversion value adopted by the capacitive sensor;

[0062] T represents the temperature change value between two adjacent preset test environments.

[0063] Exemplarily, for example, the temperatures of each preset test environment are -25°C, 0°C, 25°C, 50°C, and 75°C respectively, the humidity is 50% for all, the temperature error is ±1°C, the humidity error is ±5%, and the target analog-to-digital conversion value range of the capacitive sensor is 1350 - 1650, that is, 1500 ± 10%. Assuming that under each preset test environment, the analog-to-digital conversion values obtained by the capacitive sensor based on the preset detection distance are 1200, 1300, 1480, 1520, and 1580 respectively. That is, at this time, the analog-to-digital conversion values corresponding to -25°C and 0°C do not meet the target analog-to-digital conversion value range. Then, a temperature compensation coefficient needs to be set between every two adjacent preset test environments. For -25°C to 0°C, its temperature compensation coefficient is: K = (1300 - 1200) / (0 - (-25)) = 4, which means that during the process of the temperature decreasing from 0°C to -25°C, for every 1°C decrease in temperature, the AD value is increased by 4 through software, so that the analog-to-digital conversion value corresponding to -25°C is equal to or close to the analog-to-digital conversion value corresponding to 0°C. For 0°C to 25°C, its temperature compensation coefficient is: K = (1480 - 1300) / (25 - 0) = 7.2, which means that during the process of the temperature decreasing from 25°C to 0°C, for every 1°C decrease in temperature, the AD value is increased by 7.2 through software, so that the analog-to-digital conversion value corresponding to 0°C is equal to or close to the analog-to-digital conversion value corresponding to 25°C. For 50°C to 25°C, its temperature compensation coefficient is: K = (1520 - 1480) / (50 - 25) = 1.6, which means that during the process of the temperature increasing from 25°C to 50°C, for every 1°C increase in temperature, the AD value is decreased by 1.6 through software, so that the analog-to-digital conversion value corresponding to 50°C is equal to or close to the analog-to-digital conversion value corresponding to 25°C. For 75°C to 50°C, its temperature compensation coefficient is: K = (1580 - 1520) / (75 - 50) = 2.4, which means that during the process of the temperature increasing from 50°C to 75°C, for every 1°C increase in temperature, the AD value is decreased by 2.4 through software, so that the analog-to-digital conversion value corresponding to 75°C is equal to or close to the analog-to-digital conversion value corresponding to 50°C.

[0064] In some embodiments, in the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application, step S300: Determining the resistor combinations that meet the parallel connection conditions based on each equivalent resistance value includes:

[0065] Calculating the resistor combinations that meet the parallel connection conditions by the exhaustive method. Optionally, because the number of existing resistor specifications is limited, the embodiments of the present application can test the resistor combinations that meet the parallel connection conditions by the exhaustive method based on the resistor voltage division principle.

[0066] In some embodiments, in the temperature drift compensation test method of the capacitive sensor provided by the embodiments of the present application, step S300: Determining the resistor combinations that meet the parallel connection conditions based on each equivalent resistance value further includes:

[0067] When the resistor combinations that meet the parallel conditions cannot match the specifications of the actually existing resistor components, select the two actual resistor components that are closest to the resistor combination as the resistor combination.

[0068] The above content is a further detailed description of the present application in combination with specific implementation manners, and it cannot be determined that the specific implementation of the present application is only limited to these descriptions. For those of ordinary skill in the technical field to which the present application belongs, without departing from the concept of the present application, several simple deductions or substitutions can still be made, which should all be regarded as the protection scope of the present application.

Claims

1. A temperature drift compensation test system for a capacitive sensor, characterized in that, Including: A test incubator and at least one capacitive sensor. At least one of the capacitive sensors is placed inside the test incubator for temperature drift compensation testing. Each capacitive sensor includes at least a temperature detection module formed by a voltage-dividing resistor and a thermistor connected in parallel; At least one analog switch and at least one digital potentiometer. Each analog switch is connected to one digital potentiometer. The analog switch and the digital potentiometer are used to replace the thermistor of the temperature detection module during the temperature drift compensation testing; A control module, which is respectively connected to the test incubator, at least one analog switch, at least one digital potentiometer, and at least one capacitive sensor, and is used to control the test environment of the test incubator, and to control the analog switch to adjust the resistance value of the digital potentiometer, and to communicate with the capacitive sensor; An upper computer, which is connected to the control module; The control module is configured to: adjust the resistance value of the digital potentiometer during the temperature drift compensation testing to control the equivalent resistance value of the parallel connection of the voltage-dividing resistor and the digital potentiometer until the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in different preset test environments of the test incubator are all within the target analog-to-digital conversion value range; The upper computer is configured to: communicate with the control module, determine a resistor combination that satisfies the parallel condition based on each of the equivalent resistance values, and use the two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor respectively.

2. A temperature drift compensation test method for a capacitive sensor, characterized in that, A temperature drift compensation testing system for a capacitive sensor as described in claim 1, the temperature drift compensation testing method for the capacitive sensor includes: Replacing the thermistor of the temperature detection module of the capacitive sensor with an analog switch and a digital potentiometer, and setting the resistance value of the voltage-dividing resistor of the temperature detection module to a preset initial voltage-dividing value; Placing the capacitive sensor into the test incubator, and controlling the analog switch by the control module to adjust the resistance value of the digital potentiometer so that the analog-to-digital conversion values sampled by the capacitive sensor based on a preset detection distance in each preset test environment are all within the target analog-to-digital conversion value range; Respectively obtaining the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer in each preset test environment, determining a resistor combination that satisfies the parallel condition based on each of the equivalent resistance values, and using the two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor respectively.

3. The temperature drift compensation test method for the capacitive sensor according to claim 2, characterized in that The step of replacing the thermistor of the temperature detection module of the capacitive sensor with an analog switch and a digital potentiometer, and setting the resistance value of the voltage-dividing resistor of the temperature detection module to a preset initial voltage-dividing value further includes: Encapsulating the capacitive sensor with glue to seal the capacitive sensor.

4. The temperature drift compensation test method for the capacitive sensor according to claim 2, characterized in that, The step of respectively obtaining the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer in each preset test environment includes: When the average analog-to-digital conversion value obtained by performing average filtering on all the analog-to-digital conversion values obtained by continuously sampling the capacitive sensor based on a preset detection distance for a preset time is within the target analog-to-digital conversion value range, obtain the equivalent resistance value of the parallel connection of the voltage-dividing resistor and the digital potentiometer.

5. The temperature drift compensation test method for the capacitive sensor according to claim 2, characterized in that, The test environment of the test incubator includes temperature and humidity.

6. The temperature drift compensation test method for the capacitive sensor according to claim 4, characterized in that, After the steps of respectively obtaining the equivalent resistance values of the parallel connection of the voltage-dividing resistor and the digital potentiometer under each of the preset test environments, determining a resistor combination that meets the parallel condition based on each of the equivalent resistance values, and respectively using two resistors in the resistor combination as the preliminary selection results of the voltage-dividing resistor and the thermistor, further include: Set the temperature detection module of the capacitive sensor according to the preliminary selection result. Place the capacitive sensor in the test incubator, and respectively obtain the analog-to-digital conversion values obtained by sampling the capacitive sensor based on the preset detection distance under each of the preset test environments. When the analog-to-digital conversion values obtained by sampling the capacitive sensor based on the preset detection distance under at least one of the preset test environments are not within the target analog-to-digital conversion value range, set a temperature compensation coefficient between every two adjacent preset test environments, so that the capacitive sensor performs temperature compensation on the sampled analog-to-digital conversion values according to the temperature compensation coefficient.

7. The temperature drift compensation test method for the capacitive sensor according to claim 6, characterized in that, The temperature compensation coefficient between every two adjacent preset test environments is: Where K represents the temperature compensation coefficient between two adjacent preset test environments, AD2 and AD1 respectively represent the analog-to-digital conversion values obtained by sampling the capacitive sensor based on the preset detection distance under two adjacent preset test environments, and T2 and T1 respectively represent the temperatures of two adjacent preset test environments. The capacitive sensor performing temperature compensation on the sampled analog-to-digital conversion values according to the temperature compensation coefficient includes: When the temperature drops between the two adjacent preset test environments, increase the analog-to-digital conversion value sampled by the capacitive sensor by T×K. When the temperature rises between the two adjacent preset test environments, decrease the analog-to-digital conversion value sampled by the capacitive sensor by T×K. The T represents the temperature change value between two adjacent preset test environments.

8. The temperature drift compensation test method for the capacitive sensor according to claim 2, characterized in that Determining a resistor combination that meets the parallel condition based on each of the equivalent resistance values includes: Calculate the resistor combination that meets the parallel condition by the exhaustive method.

9. The temperature drift compensation test method for the capacitive sensor according to claim 8, characterized in that Determining a resistor combination that meets the parallel condition based on each of the equivalent resistance values further includes: When the resistor combination that meets the parallel condition cannot match the specifications of the actually existing resistor components, select two actual resistor components closest to the resistor combination as the resistor combination.

Citation Information

Patent Citations

  • Oscillator drift compensation device and method and rotational speed sensor

    CN106124797A

  • Capacitive proximity sensor and temperature drift compensation method thereof

    CN119860798A