Pressure sensor calibration method, device, capacitive pen, and readable storage medium

By obtaining the output voltage and model-related voltage of the capacitive pen pressure sensor, and correcting the pressure curve using a standard model, the problem of cumbersome calibration steps and high time cost of active capacitive pens is solved, achieving efficient and accurate pressure sensor calibration.

CN115525164BActive Publication Date: 2026-06-05MAXEYE SMART TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MAXEYE SMART TECH CO LTD
Filing Date
2022-09-13
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

In the existing technology, the calibration process for active capacitive pen pressure sensors is cumbersome and time-consuming, and the bottom buffer of the weight is prone to deformation, leading to calibration errors.

Method used

By acquiring the output voltage of the pressure sensor at 0g pressure, the preset voltage in the register, and the model-related voltage, the measured pressure curve is determined, and the curve is corrected using a standard model and algorithm to generate the working pressure curve, thus achieving rapid calibration.

Benefits of technology

It effectively solves the problems of cumbersome calibration steps and high time costs of active capacitive pen pressure sensors, and achieves efficient and accurate pressure sensor calibration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115525164B_ABST
    Figure CN115525164B_ABST
Patent Text Reader

Abstract

The application discloses a pressure sensor calibration method, device, capacitive pen and readable storage medium, the method comprises the following steps: acquiring the pressure value currently borne by the pressure sensor, when the pressure value is 0 gram, and the fluctuation range of the output voltage of the pressure sensor is less than a preset threshold, acquiring the first output voltage of the pressure sensor; the second output voltage preset in the register and the third output voltage associated with the model of the pressure sensor are acquired;According to the first output voltage, the second output voltage and the third output voltage, the measured pressure curve of the pressure sensor is determined;Based on the standard pressure curve model, the measured pressure curve is calibrated, and the working pressure curve of the pressure sensor is generated according to the calibration result. The technical problem that the active capacitive pen pressure sensor calibration step is complicated and the time cost is high in the related art is solved, and the calibration pressure sensor is efficiently completed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of capacitive pen technology, and more particularly to a pressure sensor calibration method, a pressure sensor calibration device, an active capacitive pen, and a computer-readable storage medium. Background Technology

[0002] Currently, styluses are divided into two types: active and passive. To improve the user experience, active styluses have built-in pressure sensors that generate corresponding signals based on the amount of external force applied by the user, sending these signals to the main control chip to control the stylus to display strokes of different thicknesses on the screen. Due to manufacturing or material properties, even different pressure sensors of the same model will generate different signal values ​​for the same amount of external force. This necessitates calibrating the pressure sensors of each stylus before it leaves the factory.

[0003] Traditional stylus manufacturers calibrate pressure sensors by placing multiple weights of different weights to apply external force to the pressure sensor and collecting the corresponding signal values. They then fit the collected signal values ​​to a pressure curve to complete the calibration of the stylus pressure sensor.

[0004] However, the calibration steps in the aforementioned related technologies are complex, and the buffer at the bottom of the weight is prone to deformation, leading to errors in the calibration process. Summary of the Invention

[0005] This application provides a pressure sensor calibration method, a pressure sensor calibration device, and a computer-readable storage medium, which solves the technical problems of cumbersome steps and high time costs in calibrating active capacitive pen pressure sensors in related technologies, and achieves the technical effect of rapid calibration of active capacitive pen pressure sensors.

[0006] This application provides a pressure sensor calibration method, which includes:

[0007] The pressure value currently being applied to the pressure sensor is obtained. When the pressure value is 0 grams and the fluctuation range of the pressure sensor's output voltage is less than a preset threshold, the first output voltage of the pressure sensor is obtained.

[0008] Obtain the preset second output voltage from the register, and the third output voltage associated with the model of the pressure sensor;

[0009] The measured pressure curve of the pressure sensor is determined based on the first output voltage, the second output voltage, and the third output voltage.

[0010] Based on a preset standard pressure curve model, the measured pressure curve is calibrated, and the working pressure curve of the pressure sensor is generated according to the calibration results.

[0011] Optionally, before acquiring the preset second output voltage in the register and the third output voltage associated with the model of the pressure sensor, the method further includes:

[0012] Obtain the current pressure value that the pressure sensor is currently bearing, and the output voltage of the pressure sensor;

[0013] The pressure value and the output voltage are associated and stored;

[0014] The pressure curve of the pressure sensor is determined based on the pressure value and the output voltage, and it is determined whether the pressure curve meets the preset slope range.

[0015] If the pressure curve satisfies the slope range, the second output voltage is determined based on the pressure curve.

[0016] Optionally, after determining the pressure curve of the pressure sensor based on the pressure value and the output voltage, and judging whether the pressure curve meets a preset slope range, the method further includes:

[0017] If the pressure curve does not meet the slope range, determine whether the slope of the pressure curve is less than the minimum threshold corresponding to the slope range;

[0018] When the slope is less than the minimum threshold, the difference between the slope and the minimum threshold is determined;

[0019] Based on the difference and a preset correction algorithm, the pressure curve is corrected, and the second output voltage is determined according to the corrected pressure curve.

[0020] Optionally, the step of calibrating the measured pressure curve based on a preset standard pressure curve model and generating the working pressure curve of the pressure sensor according to the calibration results includes:

[0021] Determine the calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;

[0022] Based on the measured pressure curve, determine the constant value corresponding to the calibration algorithm;

[0023] The calibration function is determined based on the calibration algorithm and the constant value;

[0024] The measured pressure curve is fitted based on the calibration function to generate the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard pressure curve model.

[0025] Optionally, the step of fitting the measured pressure curve based on the calibration function to generate the working pressure curve, wherein after the working pressure curve meets the qualified range specified by the standard pressure curve model, further includes:

[0026] Based on the working pressure curve, determine the output water weight corresponding to the working pressure curve;

[0027] The third output voltage is updated based on the measured weight of the discharged water.

[0028] Save the updated third output voltage associated with the model number.

[0029] Optionally, after calibrating the measured pressure curve based on a preset standard pressure curve model and generating the working pressure curve of the pressure sensor according to the calibration results, the method further includes:

[0030] Generate a pressure rating file based on the working pressure curve;

[0031] Write the pressure rating file to the register;

[0032] Update the master controller according to the pressure level file.

[0033] Optionally, generating a pressure rating file based on the working pressure curve includes:

[0034] The output voltage function and pressure level function are determined based on the calibration function;

[0035] Determine a preset pressure value, and determine the output voltage function value corresponding to the preset pressure value;

[0036] The mapping relationship between the pressure value and the pressure level is determined based on the output voltage function value;

[0037] The pressure level file is generated based on the pressure level function, the mapping relationship, and the working pressure curve.

[0038] In addition, this application also proposes an active capacitive pen, the active capacitive pen comprising:

[0039] The main controller controls the pressure sensor to output a corresponding output voltage when it is subjected to pressure according to the working pressure curve. When the output voltage of the pressure sensor is received, the main controller determines the pressure level corresponding to the output voltage based on the preset pressure level file, and controls the transmitting module to transmit the corresponding electrical signal according to the pressure level.

[0040] When the pressure sensor detects pressure, it sends the corresponding output voltage to the main controller based on the working pressure curve and the pressure value of the pressure.

[0041] The transmitting module transmits a corresponding electrical signal according to the pressure level, causing the terminal to respond to the electrical signal and output the corresponding handwriting.

[0042] Furthermore, this application also proposes a pressure sensor calibration device, which includes a memory, a processor, and a pressure sensor calibration program stored in the memory and executable on the processor. When the processor executes the pressure sensor calibration program, it implements the steps of the pressure sensor calibration method described above.

[0043] Furthermore, this application also proposes a computer-readable storage medium storing a pressure sensor calibration program, which, when executed by a processor, implements the steps of the pressure sensor calibration method described above.

[0044] One or more technical solutions provided in the embodiments of this application have at least the following technical effects or advantages:

[0045] 1. By employing the method of acquiring the first output voltage of the pressure sensor at 0g pressure when the power supply module current is detected and the pressure sensor outputs a stable output voltage; acquiring the second output voltage in the register and the third output voltage associated with the pressure sensor model; determining the measured pressure curve based on the first, second, and third output voltages; acquiring a standard model; correcting the measured pressure curve according to a preset algorithm and the standard model to obtain the working pressure curve; and calibrating the pressure sensor based on the working pressure curve, this method effectively solves the technical problems of cumbersome calibration steps and high time costs of active capacitive pen pressure sensors in related technologies, thereby achieving efficient calibration of the pressure sensor.

[0046] 2. By employing random sampling tests on the active capacitive pen, applying different pressure values ​​to the pen, and acquiring the output voltage of the pressure sensor, the pressure values ​​are associated and stored. A pressure curve is determined based on the pressure values ​​and the corresponding output voltages, and it is judged whether the pressure curve meets a preset slope range. When the pressure curve meets the slope range, the second output voltage is determined based on the pressure curve. Therefore, this effectively solves the technical problems of cumbersome calibration steps and high time costs associated with active capacitive pen pressure sensors in related technologies, thereby achieving efficient calibration of the pressure sensor. Attached Figure Description

[0047] Figure 1 This is a schematic flowchart of Embodiment 1 of the pressure sensor calibration method of this application;

[0048] Figure 2This is a schematic flowchart of Embodiment 2 of the pressure sensor calibration method of this application;

[0049] Figure 3 This is a schematic flowchart of Embodiment 3 of the pressure sensor calibration method of this application;

[0050] Figure 4 This is a detailed flowchart of step S410 in Embodiment 4 of the pressure sensor calibration method of this application;

[0051] Figure 5 This is a schematic diagram of the hardware structure involved in the embodiment of the pressure sensor calibration device of this application. Detailed Implementation

[0052] In related technologies, manufacturers of active capacitive pens typically apply a certain amount of pressure to the pen using multiple weights when calibrating the pressure sensor, and then read the output voltage of the pressure sensor. The pressure sensor is calibrated by generating a pressure curve corresponding to each pressure value. However, this calibration method is prone to errors in pressure values ​​due to deformation of the weights at the bottom, and the calibration process is cumbersome and time-consuming. The main technical solution adopted in this application is as follows: when the power supply module current is detected and the pressure sensor outputs a stable voltage, the first output voltage of the pressure sensor at 0g pressure is obtained; the second output voltage in the register and the third output voltage associated with the pressure sensor model are obtained; the measured pressure curve is determined based on the first, second, and third output voltages; a standard model is obtained, and the measured pressure curve is corrected according to a preset algorithm and the standard model to obtain the working pressure curve; the pressure sensor is calibrated based on the working pressure curve. This achieves rapid calibration of the capacitive pen's pressure sensor, significantly reducing time costs.

[0053] To better understand the above technical solutions, exemplary embodiments of this application will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of this application are shown in the drawings, it should be understood that this application can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of this application and to fully convey the scope of this application to those skilled in the art.

[0054] Example 1

[0055] Embodiment 1 of this application discloses a pressure sensor calibration method, referring to... Figure 1 The pressure sensor calibration method includes:

[0056] Step S110: Obtain the pressure value currently borne by the pressure sensor. When the pressure value is 0 grams and the fluctuation range of the output voltage of the pressure sensor is less than a preset threshold, obtain the first output voltage of the pressure sensor.

[0057] In this embodiment, when the active capacitive pen is powered on for the first time, the output voltage of the pressure sensor in a pressure-free state is acquired. The power supply module can be a built-in, non-removable battery or a removable battery. The non-removable battery is charged via a charging interface to ensure the capacitive pen functions normally. The removable battery allows the capacitive pen to function normally by replacing the battery. Furthermore, the pressure sensor's output voltage is not stable initially when receiving pressure; that is, the acquired output voltage reading represents the reading when the pressure sensor outputs a stable output voltage.

[0058] As an optional implementation, when the power supply module current is detected to be connected, the output voltage of the pressure sensor under no-pressure conditions is acquired. When the fluctuation range of the output voltage within a preset time period is less than a preset threshold, the output voltage is determined to be the first output voltage. That is, the first output voltage is the output voltage of the pressure sensor when 0g pressure is applied to the pressure sensor.

[0059] Step S120: Obtain the preset second output voltage in the register, and the third output voltage associated with the model of the pressure sensor;

[0060] In this embodiment, the preset second output voltage in the register is read to determine the model of the current pressure sensor, and the third output voltage associated with the model is determined.

[0061] As an optional implementation, data in the register is read to determine a preset second output voltage, wherein the second output voltage is the output voltage of the pressure sensor under 350g pressure, determined through multiple experiments. Based on the model of the pressure sensor, a third output voltage associated with that model is determined, wherein the third output voltage is the output voltage of the pressure sensor under 5g pressure, determined through multiple experiments and a preset algorithm.

[0062] For example, data in the register is read to determine a preset second output voltage, wherein the second output voltage is 2800V, determined through multiple experiments, to be the output voltage of the pressure sensor under 350g pressure. Based on the model of the pressure sensor, a third output voltage associated with that model is determined, wherein the third output voltage is 30V, determined through multiple experiments and a preset algorithm, to be the output voltage of the pressure sensor under 5g pressure.

[0063] Step S130: Determine the measured pressure curve of the pressure sensor based on the first output voltage, the second output voltage, and the third output voltage;

[0064] In this embodiment, the pressure curve is a curve in the x, y coordinate plane. For each pressure value, the corresponding output voltage can be determined based on its pressure curve.

[0065] Optionally, the measured pressure curve is a straight line, and the slope of the measured pressure curve is in the range of 4.7 to 5.1.

[0066] Optionally, step S130 includes:

[0067] Step S131: Determine the first pressure value corresponding to the first output voltage; determine the second pressure value corresponding to the second output voltage; determine the third pressure value corresponding to the third output voltage;

[0068] Step S132: Determine the measured pressure curve based on the first output voltage, the second output voltage, the third output voltage, the first pressure value, the second pressure value, and the third pressure value.

[0069] As an optional implementation, in an x, y-axis coordinate system, the pressure value is used as the x-axis and the output voltage as the y-axis. A first pressure value corresponding to a first output voltage is determined; a second pressure value corresponding to a second output voltage is determined; a third pressure value corresponding to a third output voltage is determined; point one in the coordinate system is determined based on the first output voltage and the first pressure value; point two in the coordinate system is determined based on the second output voltage and the second pressure value; point three in the coordinate system is determined based on the third output voltage and the third pressure value; and the measured pressure curve is determined based on point one, point two, and point three.

[0070] For example, the first output voltage is m, and the first pressure value is 0; the second output voltage is 30, and the second pressure value is 5; the third output voltage is 2800, and the third pressure value is 350. The measured pressure curve is determined based on three points with coordinates (0, m), (5, 30), and (350, 2800).

[0071] Step S140: Based on the preset standard pressure curve model, calibrate the measured pressure curve, and generate the working pressure curve of the pressure sensor according to the calibration result;

[0072] In this embodiment, the measured pressure curve is corrected according to a preset algorithm and a standard pressure curve model to obtain the working pressure curve; the working pressure curve is written into a register so that when pressure is detected, the pressure sensor can be controlled to output the corresponding output voltage according to the working pressure curve.

[0073] As an optional implementation, the measured pressure curve is a straight line. The measured pressure curve is corrected according to a preset algorithm and the standard pressure curve model to obtain the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard model and the working pressure curve is a parabola.

[0074] The technical solutions described in the embodiments of this application have at least the following technical effects or advantages:

[0075] By employing a method that acquires the first output voltage of the pressure sensor at 0g pressure when the power supply module current is detected and the pressure sensor outputs a stable output voltage; acquires the second output voltage in the register and the third output voltage associated with the pressure sensor model; determines the measured pressure curve based on the first, second, and third output voltages; acquires a standard model; corrects the measured pressure curve according to a preset algorithm and the standard model to obtain the working pressure curve; and calibrates the pressure sensor based on the working pressure curve, this method effectively solves the technical problems of cumbersome calibration steps and high time costs associated with active capacitive pen pressure sensors in related technologies, thereby achieving efficient calibration of the pressure sensor.

[0076] Example 2

[0077] Based on Embodiment 1, Embodiment 2 of this application proposes a pressure sensor calibration method, referring to... Figure 2 Before step S120, it also includes;

[0078] Step S210: Obtain the current pressure value of the pressure sensor and the output voltage of the pressure sensor;

[0079] Step S220: The pressure value and the output voltage are associated and stored.

[0080] Step S230: Determine the pressure curve of the pressure sensor based on the pressure value and the output voltage, and determine whether the pressure curve meets the preset slope range;

[0081] Step S240: If the pressure curve satisfies the slope range, determine the second output voltage based on the pressure curve.

[0082] In this embodiment, after testing a large number of active styluses, the output voltage corresponding to a pressure value of 350g written into the register was determined. The method of applying pressure during the testing process is not specifically limited; it can be achieved by using a robotic arm to place weights and apply pressure, minimizing the deformation of the rubber ring at the bottom of the weights.

[0083] As an optional implementation, when pressure is detected to be applied to the pressure sensor, the applied pressure value is determined. Once the output voltage of the pressure sensor stabilizes, the output voltage of the pressure sensor is acquired. The output voltage and the pressure value are associated and stored. Specifically, different pressure values ​​are applied to the pressure sensor, and the pressure values ​​are associated and stored with their corresponding output voltages. Based on the collected data, a coordinate system is established with the pressure value as the x-axis and the output voltage as the y-axis. A pressure curve is determined based on the points in the coordinate system. It is then determined whether the pressure curve falls within a preset slope range. If the pressure curve falls within the preset slope range, a second output voltage is determined based on the pressure curve. The second output voltage is the output voltage corresponding to a fixed second pressure value on the pressure curve.

[0084] Optionally, 500 active capacitive pens are tested separately, and the second output voltage obtained from each test is analyzed. The second output voltage is determined based on the analyzed data and stored in a register.

[0085] For example, pressures of 0g, 5g, and 350g are applied to the pressure sensor respectively, and the output voltages corresponding to the pressure sensors at these pressures are collected. Using 0, 5, and 350g as the x-axis coordinates and the corresponding output voltage as the y-axis coordinate, three points are determined in the coordinate system, and a pressure curve is determined based on these three points. It is then determined whether the slope of the pressure curve is within the range of 4.7 to 5.1. If the slope is within the preset range, the output voltage at 350g pressure is recorded as the second output voltage.

[0086] For example, pressures of 15g, 25g, 50g, 75g, 100g, 125g, 150g, 175g, 200g, 250g, 300g, and 350g are applied to the pressure sensor, and the output voltage of the pressure sensor at each pressure is collected. Multiple points are determined in a coordinate system with the pressure value as the x-axis and the corresponding output voltage as the y-axis. A pressure curve is then determined based on these points in the coordinate system. Optional... In a certain test, the coordinates of the above points were: (15, 899), (25, 1056), (50, 2000), (75, 2500), (100, 2800), (125, 3000), (150, 3200), (175, 3400), (200, 3600), (250, 3800), (300, 4000), (350, 4200); it was determined whether the slope of the pressure curve was in the range of 4.7 to 5.1; if the slope was in the preset range, the output voltage under 350g pressure was recorded as the second output voltage.

[0087] Optionally, after step S230, the following steps may also be included:

[0088] Step S250: If the pressure curve does not satisfy the slope range, determine whether the slope of the pressure curve is less than the minimum threshold corresponding to the slope range.

[0089] Step S260: When the slope is less than the minimum threshold, determine the difference between the slope and the minimum threshold;

[0090] Step S270: Based on the difference and a preset correction algorithm, correct the pressure curve, and determine the second output voltage according to the corrected pressure curve.

[0091] In this embodiment, the minimum threshold is the minimum value of the slope range. For example, when the slope range is 4.7 to 5.1, the minimum threshold is 4.7.

[0092] As an optional implementation, when the slope of the pressure curve is less than a minimum threshold, the difference between the slope and the minimum threshold is determined; the difference is substituted into a preset correction algorithm to determine a correction function; based on the pressure value and output voltage of the pressure curve, the output voltage corresponding to each pressure value is corrected according to the correction function; a corrected pressure curve is generated based on the pressure value and the corrected output voltage, and the output voltage corresponding to the corrected pressure curve at a pressure value of 350g is determined, that is, the output voltage corresponding to 350g is the second output voltage.

[0093] The technical solutions described in the embodiments of this application have at least the following technical effects or advantages:

[0094] By employing random sampling tests on the active capacitive pen, applying different pressure values ​​to the pen, and acquiring the output voltage of the pressure sensor, the pressure values ​​are associated and stored. A pressure curve is determined based on the pressure values ​​and corresponding output voltages, and it is then judged whether the pressure curve meets a preset slope range. When the pressure curve meets the slope range, the second output voltage is determined based on the pressure curve. Therefore, this method effectively solves the technical problems of cumbersome calibration steps and high time costs associated with active capacitive pen pressure sensors in related technologies, thereby achieving efficient calibration of the pressure sensor.

[0095] Example 3

[0096] Based on Embodiment 1, Embodiment 3 of this application proposes a pressure sensor calibration method, referring to... Figure 3 Step S140 includes:

[0097] Step S310: Determine the calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;

[0098] Step S320: Based on the measured pressure curve, determine the constant value corresponding to the calibration algorithm;

[0099] Step S330: Determine the calibration function based on the calibration algorithm and the constant value;

[0100] Step S340: Fit the measured pressure curve based on the calibration function to generate the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard pressure curve model.

[0101] In this embodiment, different pressure sensors correspond to different calibration algorithms. The standard pressure curve model specifies a qualified range; that is, the working pressure curve must fall within the range specified by the standard model before it can be written into the register. Otherwise, it needs to be corrected again. The constant values ​​are constant values ​​in the function corresponding to the calibration algorithm. The constant values ​​in the function are determined by substituting the measured pressure curve data into the function. Then, based on the updated calibration function and the measured pressure curve data, the working pressure curve is fitted.

[0102] Optionally, the qualified range is two parallel straight lines.

[0103] Optionally, the qualified range can be two non-intersecting curves.

[0104] As an optional implementation, the model of the pressure sensor is determined, along with the calibration algorithm and standard pressure curve model associated with that model. Based on the data corresponding to the measured pressure curve (i.e., the output voltage corresponding to any point within the range of 0g to 350g can be determined from the measured pressure curve), the pressure value and the corresponding output voltage are substituted into the calibration function corresponding to the calibration algorithm. A constant value in the calibration function is then determined. That is, based on the determined constant value of the calibration function, substituting the values ​​from 0g to 350g, the output voltage corresponding to any pressure value can be determined. A working pressure curve is generated based on the pressure value and the output voltage determined by the calibration function.

[0105] For example, y=71.723ln ADC-165.15; C=alnx+b.

[0106] Where M is the constant value, C is the capacitance value, x is the pressure value, y is the pressure level, and ADC is the output voltage; a and b are values ​​associated with the pressure sensor model. Substituting the data corresponding to the measured pressure curve into the above function determines the value of M, and substituting M into the function determines the calibration function.

[0107] As an alternative implementation, the model of the pressure sensor is determined, along with the correction algorithm and standard model associated with that model. Since the measured pressure curve is a straight line or polygonal line composed of three points, the data corresponding to the measured pressure curve is imported into calibration software. The measured pressure curve is preprocessed according to the correction algorithm. Then, based on a preset mapping rule, the processed measured pressure curve is fitted so that the straight line or polygonal line is fitted into a curve, which is the working pressure curve, and the working pressure curve meets the acceptable range specified by the standard model.

[0108] For example, the second derivative value of the curve at each point has the same sign as the second derivative value of the corresponding point in the standard model.

[0109] For example, the working pressure curve satisfies the qualified range specified by the standard model as follows: for any point on the working pressure curve, denoted as point one, the y-axis coordinate of point one falls within the range of the y-axis coordinate values ​​specified by the corresponding point two in the standard model. The x-axis coordinate value of point two is the same as the x-axis coordinate value of point one.

[0110] For example, the working pressure curve meets the acceptable range specified by the standard model as follows: the acceptable range consists of two non-intersecting curves, denoted as curve one and curve three, and the working pressure curve is denoted as curve two. When the x-axis coordinate values ​​of the three curves are the same, the y-axis coordinate values ​​of the corresponding points of curve two all fall within the range specified by the y-axis coordinate values ​​of the corresponding points of curve one and curve three.

[0111] Optionally, after step S330, the following steps are also included:

[0112] Step S340: Based on the working pressure curve, determine the water output voltage corresponding to the water output weight on the working pressure curve;

[0113] Step S350: Update the third output voltage according to the water outlet output voltage;

[0114] Step S360: Save the updated third output voltage associated with the model number.

[0115] In this embodiment, the water output weight is the minimum pressure value that the pressure sensor can respond to during the actual writing process, and the water output voltage is the output voltage corresponding to the minimum pressure value according to the working pressure curve.

[0116] As an optional implementation, the output voltage corresponding to the 5g pressure value is determined based on the working pressure curve; the output voltage corresponding to the 5g pressure value in the historical record is read, the above output voltage is analyzed, and the third output voltage is updated based on the analysis results; the updated third output voltage is associated with the model of the pressure sensor and saved.

[0117] The technical solutions described in the embodiments of this application have at least the following technical effects or advantages:

[0118] By employing a correction algorithm and standard model to determine the pressure sensor, preprocessing the measured pressure curve based on the correction algorithm, and fitting the processed measured pressure curve based on preset mapping rules and the standard model to obtain the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard model, this method effectively solves the technical problem in related technologies that require the use of weights to calibrate the pressure sensor, making the calibration process cumbersome. This achieves pressure sensor calibration without the need for weights, effectively reducing calibration time costs.

[0119] Example 4

[0120] Based on Embodiment 3, Embodiment 4 of this application proposes a pressure sensor calibration method, which, after step S140, further includes:

[0121] Step S410: Generate a pressure curve file based on the working pressure curve;

[0122] Step S420: Write the pressure curve file into the register;

[0123] Step S430: Update the master controller according to the pressure curve file.

[0124] In this embodiment, after the pressure curve file is written to the register, the main controller can control the pressure sensor to output the corresponding output voltage according to the pressure value it receives, based on the pressure curve file.

[0125] As an optional implementation, a pressure curve file is generated based on the working pressure curve, the pressure curve file is written into a register, and the main controller of the active capacitive pen is updated according to the pressure curve file, so that when the pressure sensor is detected to be under pressure, the pressure sensor is controlled to output the output voltage corresponding to the pressure according to the working pressure curve.

[0126] Optional, refer to Figure 4 Step S410 includes:

[0127] Step S411: Determine the output voltage function and pressure level function based on the calibration function;

[0128] Step S412: Determine the preset pressure value and determine the output voltage function value corresponding to the preset pressure value;

[0129] Step S413: Determine the mapping relationship between the output voltage and the pressure level based on the output voltage function value;

[0130] Step S414: Generate the pressure level file based on the pressure level function, the mapping relationship, and the working pressure curve.

[0131] In this embodiment, the calibration function determined in Embodiment 3 is further transformed into an output voltage function and a pressure level function. The independent variable of the output voltage function is the pressure value, and the independent variable of the pressure level function is also the pressure value.

[0132] As an optional implementation, based on the calibration function determined by the constant value in Embodiment 3, the calibration function is converted into an output voltage function and a pressure level function; a preset pressure value is determined, optionally 10g and 350g. The pressure value is substituted into the output voltage function to determine the corresponding output voltage function value; the mapping relationship between output voltage and pressure level is determined based on the output voltage function and pressure level function, and then the mapping relationship is updated according to the calculated output voltage function value; after determining the mapping relationship, since the mapping relationship is between output voltage and pressure level; the working pressure curve is the mapping relationship between pressure value and output voltage, a pressure level file is generated by combining the mapping relationship between output voltage and pressure level with the working pressure curve.

[0133] For example, the output voltage function is table(ADC) = k1x + b1, where x is the pressure value; the pressure level function is y = k2x + b2, where x is the pressure value. By combining the two functions and substituting the pressure values ​​of 350g and 10g, b1 and b2 can be eliminated, and the ratio of k1 to k2 can be obtained. The mapping relationship between the output voltage and the pressure level is then determined to be (table(ADC) - table(10)) × 255 / (table(350) - table(10)). The mapping relationship is then updated based on the determined table(10) and table(350). In the updated mapping relationship, the only unknown is table(ADC). The table(ADC) value corresponding to the pressure value can be determined based on the working pressure curve, and thus the pressure level corresponding to the pressure value can be determined.

[0134] The technical solutions described in the embodiments of this application have at least the following technical effects or advantages:

[0135] By employing the method of determining the output voltage function and pressure level function based on the calibration function; determining a preset pressure value; determining the output voltage function value corresponding to the preset pressure value; determining the mapping relationship between the pressure value and the pressure level based on the output voltage function value; and generating the pressure level file based on the pressure level function, the mapping relationship, and the working pressure curve, the technical problem of requiring the use of weights to calibrate the pressure sensor in related technologies, which makes the calibration process cumbersome, is effectively solved. This allows for pressure sensor calibration without the need for weights, effectively reducing the time cost of calibration.

[0136] Example 5

[0137] Based on Embodiment 1, Embodiment 5 of this application proposes a pressure sensor calibration method, which, after step S140, further includes:

[0138] Step S510: When pressure is detected to be applied to the pressure sensor, the pressure value of the pressure is determined;

[0139] Step S520: Based on the working pressure curve, control the pressure sensor to output the output voltage corresponding to the pressure value;

[0140] Step S530: Determine the pressure level corresponding to the output voltage based on a preset pressure conversion algorithm;

[0141] Step S540: Control the transmitting module to transmit a corresponding electrical signal according to the pressure level, so that the terminal responds to the electrical signal and outputs the corresponding handwriting.

[0142] In this embodiment, the pressure conversion algorithm is run to receive the output voltage of the pressure sensor and determine the pressure level corresponding to the output voltage.

[0143] Optionally, the pressure rating can be 1024, 4096, or other ratings.

[0144] As an optional implementation, during the writing process, when pressure is detected to be applied to the pressure sensor, the output voltage corresponding to the pressure value in the working pressure curve is determined based on the pressure; the pressure sensor is controlled to output the output voltage; when the main controller receives the output voltage, the pressure level corresponding to the output voltage is determined based on a preset pressure conversion algorithm; the transmitting module is controlled to transmit a corresponding electrical signal according to the pressure level, so that the terminal can respond to the electrical signal and display the handwriting corresponding to the electrical signal at the contact point between the terminal's display module and the capacitive pen.

[0145] The technical solutions described in the embodiments of this application have at least the following technical effects or advantages:

[0146] By employing an output voltage corresponding to the pressure value when pressure is applied to the pressure sensor based on the working pressure curve, and determining the pressure level corresponding to the output voltage according to the pressure conversion algorithm, and then controlling the transmitting module to emit the corresponding electrical signal according to the pressure level, the technical problem of not being able to efficiently calibrate the pressure sensor and make the active capacitive pen emit accurate electrical signals in related technologies is effectively solved, thereby realizing rapid calibration of the pressure sensor.

[0147] This application also proposes a pressure sensor calibration device, referring to... Figure 5 , Figure 5 This is a schematic diagram of the structure of a pressure sensor calibration device in the hardware operating environment involved in the embodiments of this application.

[0148] like Figure 5 As shown, the pressure sensor calibration device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to enable communication between these components. The user interface 1003 may include a display screen or an input unit such as a keyboard; optionally, the user interface 1003 may also include a standard wired interface or a wireless interface. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 1005 may be a high-speed random access memory (RAM) or a stable non-volatile memory (NVM), such as a disk drive. The memory 1005 may also optionally be a storage device independent of the aforementioned processor 1001.

[0149] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on the pressure sensor calibration device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0150] Optionally, the memory 1005 is electrically connected to the processor 1001, which can be used to control the operation of the memory 1005 and can also read data in the memory 1005 to perform pressure sensor calibration.

[0151] Optionally, such as Figure 5As shown, the memory 1005, which serves as a storage medium, may include an operating system, a data storage module, a network communication module, a user interface module, and a pressure sensor calibration program.

[0152] Optionally, in Figure 5 In the pressure sensor calibration device shown, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and memory 1005 in the pressure sensor calibration device of this application can be set in the pressure sensor calibration device.

[0153] like Figure 5 As shown, the pressure sensor calibration device calls the pressure sensor calibration program stored in the memory 1005 through the processor 1001, and executes the relevant steps of the pressure sensor calibration method provided in this application embodiment:

[0154] The pressure value currently being applied to the pressure sensor is obtained. When the pressure value is 0 grams and the fluctuation range of the pressure sensor's output voltage is less than a preset threshold, the first output voltage of the pressure sensor is obtained.

[0155] Obtain the preset second output voltage from the register, and the third output voltage associated with the model of the pressure sensor;

[0156] The measured pressure curve of the pressure sensor is determined based on the first output voltage, the second output voltage, and the third output voltage.

[0157] Based on a preset standard pressure curve model, the measured pressure curve is calibrated, and the working pressure curve of the pressure sensor is generated according to the calibration results.

[0158] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0159] Obtain the current pressure value that the pressure sensor is currently bearing, and the output voltage of the pressure sensor;

[0160] The pressure value and the output voltage are associated and stored;

[0161] The pressure curve of the pressure sensor is determined based on the pressure value and the output voltage, and it is determined whether the pressure curve meets the preset slope range.

[0162] If the pressure curve satisfies the slope range, the second output voltage is determined based on the pressure curve.

[0163] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0164] If the pressure curve does not meet the slope range, determine whether the slope of the pressure curve is less than the minimum threshold corresponding to the slope range;

[0165] When the slope is less than the minimum threshold, the difference between the slope and the minimum threshold is determined;

[0166] Based on the difference and a preset correction algorithm, the pressure curve is corrected, and the second output voltage is determined according to the corrected pressure curve.

[0167] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0168] Determine the calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;

[0169] Based on the measured pressure curve, determine the constant value corresponding to the calibration algorithm;

[0170] The calibration function is determined based on the calibration algorithm and the constant value;

[0171] The measured pressure curve is fitted based on the calibration function to generate the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard pressure curve model.

[0172] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0173] Based on the working pressure curve, determine the output water weight corresponding to the working pressure curve;

[0174] The third output voltage is updated based on the measured weight of the discharged water.

[0175] Save the updated third output voltage associated with the model number.

[0176] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0177] Generate a pressure rating file based on the working pressure curve;

[0178] Write the pressure rating file to the register;

[0179] Update the master controller according to the pressure level file.

[0180] Optionally, the processor 1001 may call the pressure sensor calibration program stored in the memory 1005 and also perform the following operations:

[0181] The output voltage function and pressure level function are determined based on the calibration function;

[0182] Determine a preset pressure value, and determine the output voltage function value corresponding to the preset pressure value;

[0183] The mapping relationship between the pressure value and the pressure level is determined based on the output voltage function value;

[0184] The pressure level file is generated based on the pressure level function, the mapping relationship, and the working pressure curve.

[0185] Furthermore, this application also proposes an active capacitive pen, which includes:

[0186] The main controller controls the pressure sensor to output a corresponding output voltage when it is subjected to pressure according to the working pressure curve. When the output voltage of the pressure sensor is received, the main controller determines the pressure level corresponding to the output voltage based on the preset pressure level file, and controls the transmitting module to transmit the corresponding electrical signal according to the pressure level.

[0187] When the pressure sensor detects pressure, it sends the corresponding output voltage to the main controller based on the working pressure curve and the pressure value of the pressure.

[0188] The transmitting module transmits a corresponding electrical signal according to the pressure level, causing the terminal to respond to the electrical signal and output the corresponding handwriting.

[0189] Furthermore, embodiments of this application also propose a computer-readable storage medium storing a pressure sensor calibration program, which, when executed by a processor, implements the relevant steps of any embodiment of the pressure sensor calibration method described above.

[0190] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0191] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0192] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0193] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0194] It should be noted that any reference signs placed between parentheses in the claims should not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. This application can be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

[0195] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0196] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. A method for calibrating a pressure sensor, characterized in that, The pressure sensor calibration method includes: Obtain the current pressure value that the pressure sensor is currently bearing, and the output voltage of the pressure sensor; The pressure value and the output voltage are associated and stored; The pressure curve of the pressure sensor is determined based on the pressure value and the output voltage, and it is determined whether the pressure curve meets the preset slope range. If the pressure curve satisfies the slope range, the preset second output voltage in the register is determined according to the pressure curve; The pressure value currently being applied to the pressure sensor is obtained. When the pressure value is 0 grams and the fluctuation range of the pressure sensor's output voltage is less than a preset threshold, the first output voltage of the pressure sensor is obtained. Obtain the preset second output voltage in the register and the third output voltage associated with the model of the pressure sensor. The third output voltage is different from the second output voltage and the corresponding pressure value is not 0 grams. The measured pressure curve of the pressure sensor is determined based on the first output voltage, the second output voltage, and the third output voltage. Based on a preset standard pressure curve model, the measured pressure curve is calibrated, and the working pressure curve of the pressure sensor is generated according to the calibration results.

2. The pressure sensor calibration method as described in claim 1, characterized in that, After determining the pressure curve of the pressure sensor based on the pressure value and the output voltage, and judging whether the pressure curve meets the preset slope range, the method further includes: If the pressure curve does not meet the slope range, determine whether the slope of the pressure curve is less than the minimum threshold corresponding to the slope range; When the slope is less than the minimum threshold, the difference between the slope and the minimum threshold is determined; Based on the difference and a preset correction algorithm, the pressure curve is corrected, and the second output voltage is determined according to the corrected pressure curve.

3. The pressure sensor calibration method as described in claim 1, characterized in that, The process of calibrating the measured pressure curve based on a preset standard pressure curve model and generating the working pressure curve of the pressure sensor according to the calibration results includes: Determine the calibration algorithm corresponding to the pressure sensor and the standard pressure curve model; Based on the measured pressure curve, determine the constant value corresponding to the calibration algorithm; The calibration function is determined based on the calibration algorithm and the constant value; The measured pressure curve is fitted based on the calibration function to generate the working pressure curve, wherein the working pressure curve meets the qualified range specified by the standard pressure curve model.

4. The pressure sensor calibration method as described in claim 3, characterized in that, The process of fitting the measured pressure curve based on the calibration function to generate the working pressure curve, wherein after the working pressure curve meets the qualified range specified by the standard pressure curve model, further includes: Based on the working pressure curve, determine the output water weight corresponding to the working pressure curve; The third output voltage is updated based on the measured weight of the discharged water. Save the updated third output voltage associated with the model number.

5. The pressure sensor calibration method as described in claim 3, characterized in that, After calibrating the measured pressure curve based on a preset standard pressure curve model and generating the working pressure curve of the pressure sensor according to the calibration results, the method further includes: Generate a pressure rating file based on the working pressure curve; Write the pressure rating file to the register; Update the master controller according to the pressure level file.

6. The pressure sensor calibration method as described in claim 5, characterized in that, The process of generating a pressure rating file based on the working pressure curve includes: The output voltage function and pressure level function are determined based on the calibration function; Determine a preset pressure value, and determine the output voltage function value corresponding to the preset pressure value; The mapping relationship between the pressure value and the pressure level is determined based on the output voltage function value; The pressure level file is generated based on the pressure level function, the mapping relationship, and the working pressure curve.

7. An active capacitive pen, characterized in that, The active capacitive pen includes: The main controller controls the pressure sensor to output a corresponding output voltage when it is subjected to pressure according to the working pressure curve. When the output voltage of the pressure sensor is received, the main controller determines the pressure level corresponding to the output voltage based on the preset pressure level file, and controls the transmitting module to transmit the corresponding electrical signal according to the pressure level. When the pressure sensor detects pressure, it sends the corresponding output voltage to the main controller based on the working pressure curve and the pressure value of the pressure. The transmitting module transmits a corresponding electrical signal according to the pressure level, causing the terminal to respond to the electrical signal and output the corresponding handwriting; The main controller acquires the current pressure value and output voltage of the pressure sensor; stores the pressure value and output voltage in association; determines the pressure curve of the pressure sensor based on the pressure value and output voltage, and determines whether the pressure curve meets a preset slope range; if the pressure curve meets the slope range, determines a preset second output voltage in the register based on the pressure curve; acquires the current pressure value of the pressure sensor, and when the pressure value is 0 grams and the fluctuation range of the pressure sensor's output voltage is less than a preset threshold, acquires the first output voltage of the pressure sensor; acquires the preset second output voltage in the register and a third output voltage associated with the model of the pressure sensor, wherein the third output voltage is different from the second output voltage and the corresponding pressure value is not 0 grams; determines the measured pressure curve of the pressure sensor based on the first output voltage, the second output voltage, and the third output voltage; calibrates the measured pressure curve based on a preset standard pressure curve model, and generates the working pressure curve of the pressure sensor based on the calibration result.

8. A pressure sensor calibration device, characterized in that, The device includes a memory, a processor, and a pressure sensor calibration program stored in the memory and executable on the processor. When the processor executes the pressure sensor calibration program, it implements the steps of the pressure sensor calibration method as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a pressure sensor calibration program, which, when executed by a processor, implements the steps of the pressure sensor calibration method as described in any one of claims 1 to 6.