CN115525164A - Pressure sensor calibration method, device, capacitive pen and readable storage medium - Google Patents

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

Info

Publication number
CN115525164A
CN115525164A CN202211118779.8A CN202211118779A CN115525164A CN 115525164 A CN115525164 A CN 115525164A CN 202211118779 A CN202211118779 A CN 202211118779A CN 115525164 A CN115525164 A CN 115525164A
Authority
CN
China
Prior art keywords
pressure
output voltage
pressure sensor
curve
pressure curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211118779.8A
Other languages
Chinese (zh)
Inventor
钟洪耀
李林
丁新满
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maxeye Smart Technologies Co ltd
Original Assignee
Maxeye Smart Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maxeye Smart Technologies Co ltd filed Critical Maxeye Smart Technologies Co ltd
Priority to CN202211118779.8A priority Critical patent/CN115525164A/en
Publication of CN115525164A publication Critical patent/CN115525164A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L25/00Testing or calibrating of apparatus for measuring force, torque, work, mechanical power, or mechanical efficiency

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The application discloses a pressure sensor calibration method, equipment, a capacitance pen and a readable storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a pressure value currently born by a pressure sensor, and obtaining a first output voltage of the pressure sensor when the pressure value is 0g and the fluctuation range of the output voltage of the pressure sensor is smaller than a preset threshold value; acquiring a second output voltage preset in a register and a third output voltage related to the type of the pressure sensor; determining a measured pressure curve of the pressure sensor according to the first output voltage, the second output voltage and the third output voltage; and calibrating the actually measured pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result. The technical problems that in the related art, the calibration steps of the active capacitance pen pressure sensor are complex, and the time cost is high are solved, and therefore the pressure sensor can be efficiently calibrated.

Description

Pressure sensor calibration method, device, capacitive pen and readable storage medium
Technical Field
The present application relates to the field of capacitive pen technologies, and in particular, to a pressure sensor calibration method, a pressure sensor calibration device, an active capacitive pen, and a computer-readable storage medium.
Background
At present, the handwriting pen is divided into an active type and a passive type, in order to enable user experience to be better, a pressure sensor is arranged in the active handwriting pen, and a corresponding signal can be generated and sent to a main control chip according to the magnitude of external force applied by a user, so that the handwriting pen is controlled to display strokes with different thicknesses on a screen. Due to the problems of processing or material properties, even if different pressure sensors of the same type are subjected to external forces of the same magnitude, the generated signal values are different, and therefore calibration of the pressure sensors needs to be performed one by one before the stylus pen leaves a factory.
When a traditional stylus pen manufacturer calibrates a pressure sensor, the manufacturer applies external force to the pressure sensor by placing a plurality of weights with different weights, collects corresponding signal values, and fits a pressure curve according to the collected signal values to complete calibration of the stylus pen pressure sensor.
However, the calibration process in the above related art is complicated, and the buffer member at the bottom of the weight is easily deformed, resulting in an error in the calibration process.
Disclosure of Invention
By providing the pressure sensor calibration method, the pressure sensor calibration device and the computer-readable storage medium, the technical problems of complicated steps and high time cost in the calibration of the active capacitive pen pressure sensor in the related art are solved, and the technical effect of quickly calibrating the active capacitive pen pressure sensor is achieved.
The embodiment of the application provides a pressure sensor calibration method, which comprises the following steps:
the method comprises the steps of obtaining a pressure value currently born by a pressure sensor, and obtaining a first output voltage of the pressure sensor when the pressure value is 0g and the fluctuation range of the output voltage of the pressure sensor is smaller than a preset threshold value;
acquiring a second output voltage preset in a register and a third output voltage related to the type of the pressure sensor;
determining a measured pressure curve of the pressure sensor according to the first output voltage, the second output voltage and the third output voltage;
and calibrating the actually measured pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result.
Optionally, before acquiring the second output voltage preset in the register and the third output voltage associated with the model of the pressure sensor, the method further includes:
acquiring a pressure value currently born by the pressure sensor and an output voltage of the pressure sensor;
storing the pressure value and the output voltage in a correlation manner;
determining a pressure curve of the pressure sensor according to the pressure value and the output voltage, and judging whether the pressure curve meets a preset slope interval;
and if the pressure curve meets the slope interval, determining the second output voltage according to the pressure curve.
Optionally, after determining a pressure curve of the pressure sensor according to the pressure value and the output voltage and determining whether the pressure curve meets a preset slope interval, the method further includes:
if the pressure curve does not meet the slope interval, judging whether the slope of the pressure curve is smaller than the lowest threshold corresponding to the slope interval or not;
determining a difference between the slope and the lowest threshold when the slope is less than the lowest threshold;
and correcting the pressure curve based on the difference value and a preset correction algorithm, and determining the second output voltage according to the corrected pressure curve.
Optionally, the calibrating the measured pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result includes:
determining a calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;
determining a constant value corresponding to the calibration algorithm based on the measured pressure curve;
determining a calibration function based on the calibration algorithm and the constant value;
and fitting the actually 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.
Optionally, the fitting the measured pressure curve based on the calibration function to generate the working pressure curve, where after the working pressure curve meets a qualified range specified by the standard pressure curve model, the method further includes:
determining the corresponding effluent gram weight of the working pressure curve based on the working pressure curve;
updating the third output voltage according to the gram weight of the discharged water;
and storing the updated third output voltage in association with the model.
Optionally, after calibrating the measured pressure curve based on a preset standard pressure curve model and generating a working pressure curve of the pressure sensor according to a calibration result, the method further includes:
generating a pressure grade file based on the working pressure curve;
writing the stress level file to the register;
and updating the master control according to the pressure grade file.
Optionally, the generating a pressure level file based on the working pressure curve includes:
determining an output voltage function and a pressure level function based on the calibration function;
determining a preset pressure value, and determining an output voltage function value corresponding to the preset pressure value;
determining a mapping relationship between the pressure value and a pressure grade according to the output voltage function value;
and generating the pressure grade file based on the pressure grade function, the mapping relation and the working pressure curve.
In addition, this application still provides an active capacitance pen, active capacitance pen includes:
the master control module is used for controlling a pressure sensor to output corresponding output voltage when bearing pressure according to a working pressure curve, determining the pressure grade corresponding to the output voltage based on a preset pressure grade file when receiving the output voltage of the pressure sensor, and controlling an emission module to emit corresponding electric signals according to the pressure grade;
the pressure sensor is used for sending the corresponding output voltage to the main control according to the pressure value of the pressure based on the working pressure curve when the bearing pressure is detected;
and the transmitting module transmits a corresponding electric signal according to the pressure grade, so that the terminal responds to the electric signal and outputs a corresponding handwriting.
In addition, the present application also provides a pressure sensor calibration apparatus, which includes a memory, a processor, and a pressure sensor calibration program stored in the memory and executable on the processor, wherein the processor implements the steps of the pressure sensor calibration method as described above when executing the pressure sensor calibration program.
Furthermore, the present application also proposes a computer-readable storage medium having stored thereon a pressure sensor calibration program which, when executed by a processor, implements the steps of the pressure sensor calibration method as described above.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
1. when the current access of the power supply module is detected and the pressure sensor outputs stable output voltage, the first output voltage of the pressure sensor under the pressure of 0g is obtained; acquiring a second output voltage in the register and a third output voltage associated with the type of the pressure sensor; determining a measured pressure curve according to the first output voltage, the second output voltage and the third output voltage; acquiring a standard model, and correcting the actual pressure curve according to a preset algorithm and the standard model to obtain a working pressure curve; according to the pressure curve of working presses calibrates pressure sensor, so, effectively solved active capacitance pen pressure sensor calibration step loaded down with trivial details among the correlation technique, technical problem that time is with high costs, and then realized high-efficiently accomplishing and calibrate the pressure sensor.
2. The method comprises the steps that as the random sampling test of the active capacitance pen is adopted, different values of pressure are applied to the capacitance pen respectively, and the output voltage of the pressure sensor is obtained; storing the pressure value and the corresponding output voltage in a correlation manner; determining a pressure curve according to the pressure value and the corresponding output voltage, and judging whether the pressure curve meets a preset slope interval; when a pressure curve satisfies the slope section, the second output voltage is determined from the pressure curve. Therefore, the technical problems that the calibration steps of the active capacitance pen pressure sensor in the related technology are complicated and the time cost is high are effectively solved, and the pressure sensor can be efficiently calibrated.
Drawings
FIG. 1 is a schematic flow chart illustrating a first embodiment of a calibration method for a pressure sensor according to the present disclosure;
FIG. 2 is a schematic flow chart illustrating a second embodiment of a calibration method for a pressure sensor according to the present application;
FIG. 3 is a schematic flow chart illustrating a third embodiment of a calibration method for a pressure sensor according to the present application;
FIG. 4 is a schematic flowchart of a step S410 of the pressure sensor calibration method according to the present application;
fig. 5 is a schematic diagram of a hardware structure related to an embodiment of the pressure sensor calibration apparatus of the present application.
Detailed Description
In the related art, when a manufacturer of an active capacitive pen calibrates a pressure sensor of the capacitive pen, the manufacturer usually uses a plurality of weights to apply a certain amount of pressure to the capacitive pen, so as to read an output voltage of the pressure sensor. Calibrating the pressure sensor through a pressure curve generated by the output voltage corresponding to each pressure value; this kind of calibration mode can produce deformation because the weight bottom and lead to pressure numerical value to appear the error, and the step of calibration is very loaded down with trivial details simultaneously, and the time cost is high. The embodiment of the application adopts the following main technical scheme: when the current access of a power supply module is detected and the pressure sensor outputs stable output voltage, acquiring first output voltage of the pressure sensor under the pressure of 0 g; acquiring a second output voltage in the register and a third output voltage related to the model of the pressure sensor; determining an actual measured pressure curve according to the first output voltage, the second output voltage and the third output voltage; acquiring a standard model, and correcting the actual pressure curve according to a preset algorithm and the standard model to obtain a working pressure curve; calibrating the pressure sensor according to the operating pressure curve. Therefore, the pressure sensor of the capacitance pen can be calibrated quickly, and the time cost is greatly reduced.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
The embodiment of the application discloses a pressure sensor calibration method, and with reference to fig. 1, the pressure sensor calibration method includes:
step S110, acquiring a pressure value currently born by a pressure sensor, and acquiring a first output voltage of the pressure sensor when the pressure value is 0g and the fluctuation range of the output voltage of the pressure sensor is smaller than a preset threshold value;
in this embodiment, when the active capacitance pen is powered on for the first time, the output voltage of the pressure sensor in a no-pressure state is obtained; wherein the power supply module may be a built-in non-removable battery; or a removable battery; the non-detachable battery is charged through the charging interface, so that the normal work of the capacitance pen is guaranteed. The detachable battery enables the capacitance pen to work normally by replacing the battery. And in the initial stage of receiving the pressure, the output voltage of the pressure sensor is not stable, that is, the obtained output voltage reading is the reading when the pressure sensor outputs the stable output voltage.
As an optional implementation manner, when current access of a power supply mode is detected, the output voltage of the pressure sensor in a no-pressure state is obtained, and when the fluctuation range of the output voltage in a preset time period is smaller than a preset threshold value, the output voltage is determined to be a first output voltage. That is, the first output voltage is the output voltage of the pressure sensor when 0g of pressure is applied to the pressure sensor.
Step S120, acquiring a second output voltage preset in a register and a third output voltage related to the type of the pressure sensor;
in the embodiment, a second output voltage preset in a register is read, the model of the current pressure sensor is determined, and a third output voltage associated with the model is determined.
As an alternative, the data in the register is read to determine a preset second output voltage, where the second output voltage is the output voltage of the pressure sensor at 350g pressure determined through multiple experiments. And determining a third output voltage associated with the model according to the model of the pressure sensor, wherein the third output voltage is the output voltage of the pressure sensor under the pressure of 5g determined by a preset algorithm after multiple experiments.
Illustratively, the data in the register is read to determine a preset second output voltage, wherein the second output voltage is 2800, which is determined by a plurality of experiments, of the pressure sensor under 350g of pressure. And determining a third output voltage associated with the model according to the model of the pressure sensor, wherein the third output voltage is 30 output voltage of the pressure sensor under 5g pressure determined by a preset algorithm after multiple experiments.
Step S130, determining a measured pressure curve of the pressure sensor according to the first output voltage, the second output voltage, and the third output voltage;
in the present embodiment, the pressure curve is a curve in the plane of the x, y coordinate system, and for each pressure value, the corresponding output voltage can be determined from the pressure curve.
Optionally, the actual pressure curve is a straight line. And the slope of the measured pressure curve is within the interval of 4.7 to 5.1.
Optionally, step S130 includes:
step S131, determining a first pressure value corresponding to the first output voltage; determining a second pressure value corresponding to the second output voltage; determining a third pressure value corresponding to the third output voltage;
step S132 is performed to determine the actual pressure curve according to 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.
As an alternative embodiment, under an x-y axis coordinate system, the pressure value is taken as an x-axis, and the output voltage is taken as a y-axis. Determining a first pressure value corresponding to the first output voltage; determining a second pressure value corresponding to the second output voltage, and determining a third pressure value corresponding to the third output voltage; determining a first point in a coordinate system according to the first output voltage and the first pressure value; determining a second point in the coordinate system according to the second output voltage and the second pressure value; determining a point III in the coordinate system according to the third output voltage and the third pressure value; and determining the measured pressure curve according to the first point, the second point and the third point.
Illustratively, 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 from three points with coordinates (0, m), (5, 30), (350, 2800).
Step S140, calibrating the actual measurement pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result;
in the present embodiment, the actual pressure curve is corrected according to a preset algorithm and a standard pressure curve model to obtain a working pressure curve; the control pressure sensor outputs a corresponding output voltage according to the operation pressure curve when the pressure is detected by writing the operation pressure curve into the register.
In an alternative embodiment, the actual pressure curve is a straight line and the actual pressure curve is corrected based on a predetermined algorithm and the standard pressure curve model; a working pressure curve is obtained that satisfies the acceptable range specified by the standard model and that is parabolic.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
when the current access of the power supply module is detected and the pressure sensor outputs stable output voltage, the first output voltage of the pressure sensor under the pressure of 0g is acquired; acquiring a second output voltage in the register and a third output voltage associated with the type of the pressure sensor; determining an actual measured pressure curve according to the first output voltage, the second output voltage and the third output voltage; acquiring a standard model, and correcting the actual pressure curve according to a preset algorithm and the standard model to obtain a working pressure curve; according to the pressure curve calibration pressure sensor, so, effectively solved active electric capacity pen pressure sensor calibration step loaded down with trivial details among the correlation technique, technical problem with high costs of time, and then realized high-efficient completion calibration pressure sensor.
Example two
Based on the first embodiment, the second embodiment of the present application provides a method for calibrating a pressure sensor, referring to fig. 2, before step S120, the method further includes;
step S210, acquiring a pressure value currently born by the pressure sensor and an output voltage of the pressure sensor;
step S220, storing the pressure value and the output voltage in a correlation manner;
step S230, determining a pressure curve of the pressure sensor according to the pressure value and the output voltage, and determining whether the pressure curve meets a preset slope interval;
step S240, if the pressure curve satisfies the slope interval, determining the second output voltage according to the pressure curve.
In this embodiment, the output voltage corresponding to the 350g pressure value written in the register is determined by testing a large batch of active handwriting pens. The pressure applying mode in the test process is not particularly limited, and the mechanical arm can be used for placing the weight to apply pressure, so that the smaller the deformation of the rubber ring at the bottom of the weight is, the better the pressure applying mode is.
As an optional implementation manner, when detecting that the pressure sensor is applied with pressure, determining a pressure value of the applied pressure, and acquiring the output voltage of the pressure sensor when the output voltage of the pressure sensor is stable; storing the output voltage and the pressure values in a correlation manner, wherein different pressure values are applied to the pressure sensor, and the pressure values and the corresponding output voltage are stored in a correlation manner; according to the acquired data, a coordinate system is established by taking a pressure value as an x-axis coordinate and an output voltage as a y-axis coordinate, a pressure curve is determined according to points in the coordinate system, and whether the pressure curve is in a preset slope interval or not is judged; and if the pressure curve is in a preset slope interval, determining the second output voltage according to the pressure curve, wherein the second output voltage is the output voltage corresponding to a fixed second pressure value on the pressure curve.
Optionally, 500 active capacitance pens are respectively tested, data analysis is performed on the second output voltage obtained by each test, the second output voltage is determined according to the analyzed data, and the second output voltage is stored in the register.
Exemplarily, applying pressures of 0g, 5g and 350g to the pressure sensor respectively, and collecting output voltages corresponding to the pressure sensor under the pressures of 0g, 5g and 350 g; determining three points in a coordinate system by taking 0, 5 and 350 as x-axis coordinates and corresponding output voltages as y-axis coordinates, and determining a pressure curve according to the three points in the coordinate system; judging whether the slope of the pressure curve is in an interval of 4.7-5.1; and if the slope is in a preset interval, recording the output voltage under the pressure of 350g as a second output voltage.
Illustratively, the pressure sensors are respectively applied with pressures of 15g, 25g, 50g, 75g, 100g, 125g, 150g, 175g, 200g, 250g, 300g and 350g, and output voltages corresponding to the pressure sensors under the pressures of 15g, 25g, 50g, 75g, 100g, 125g, 150g, 175g, 200g, 250g, 300g and 350g are acquired; determining a plurality of points in a coordinate system by taking the pressure value as an x-axis coordinate and the corresponding output voltage as a y-axis coordinate, and determining a pressure curve according to the points in the coordinate system; optionally, the coordinates of the above points in a certain test are: (15, 899), (25, 1056), (50, 2000), (75, 2500), (100, 2800), (125, 3000), (150, 3200), (175, 3400), (200, 3600), (250, 3800), (300, 4000), (350, 4200); judging whether the slope of the pressure curve is in an interval of 4.7-5.1; and if the slope is in a preset interval, recording the output voltage under the pressure of 350g as a second output voltage.
Optionally, after step S230, the method further includes:
step S250, if the pressure curve does not meet the slope interval, judging whether the slope of the pressure curve is smaller than the lowest threshold corresponding to the slope interval;
step S260, when the slope is smaller than the lowest threshold, determining the difference value between the slope and the lowest threshold;
step S270, the pressure curve is corrected based on the difference and a preset correction algorithm, and the second output voltage is determined according to the corrected pressure curve.
In this embodiment, the lowest threshold is a minimum value of the slope interval. For example, when the slope interval is 4.7 to 5.1, the lowest threshold is 4.7.
As an alternative embodiment, when the slope of the pressure curve is smaller than a lowest threshold, determining the difference between the slope and the lowest threshold; substituting the difference value into a preset correction algorithm to determine a correction function; based on the pressure values and the output voltage of the pressure curve, correcting the output voltage corresponding to each pressure value 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, that is, the output voltage corresponding to 350g, is determined to be the second output voltage.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the method comprises the steps that as the random sampling test of the active capacitance pen is adopted, different values of pressure are applied to the capacitance pen respectively, and the output voltage of the pressure sensor is obtained; storing the pressure value and the corresponding output voltage in a correlation manner; determining a pressure curve according to the pressure value and the corresponding output voltage, and judging whether the pressure curve meets a preset slope interval; when a pressure curve satisfies the slope section, the second output voltage is determined from the pressure curve. Therefore, the technical problems that the calibration steps of the active capacitance pen pressure sensor in the related technology are complicated and the time cost is high are effectively solved, and the pressure sensor can be efficiently calibrated.
EXAMPLE III
Based on the first embodiment, a third embodiment of the present application provides a pressure sensor calibration method, and referring to fig. 3, step S140 includes:
step S310, determining a calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;
step S320, determining a constant value corresponding to the calibration algorithm based on the actually measured pressure curve;
step S330, determining a calibration function based on the calibration algorithm and the constant value;
step S340, fitting the actually 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.
In the present embodiment, different pressure sensors correspond to different calibration algorithms. The standard pressure curve model defines an acceptable range, i.e., the operating pressure curve is written into the register only when it is within the interval defined by the standard model, and otherwise, the operating pressure curve model is corrected again. And fitting the working pressure curve according to the updated calibration function and the data of the actual measurement pressure curve.
Optionally, the qualified range is two parallel straight lines.
Optionally, the qualified range is two disjoint curves.
As an alternative embodiment, a model number of the pressure sensor is determined, and a calibration algorithm and a standard pressure curve model associated with the model number are determined. According to data corresponding to the actually measured pressure curve, namely, according to the actually measured pressure curve, the output voltage corresponding to any point in the range of 0g to 350g can be determined, the pressure value and the corresponding output voltage are substituted into the calibration function corresponding to the calibration algorithm, the constant value in the calibration function is determined, namely, according to the calibration function after the constant value is determined, the calibration function is substituted into 0g to 350g, and the output voltage corresponding to any pressure value can be determined. And generating a working pressure curve according to the pressure value and the output voltage determined by the calibration function.
In an exemplary manner, the first and second electrodes are,
Figure BDA0003842943330000101
y=71.723ln ADC-165.15;C=alnx+b。
wherein M is the constant value, C is a capacitance value, x is a pressure value, y is a pressure level, and ADC is an output voltage; a and b are values associated with the pressure sensor model. That is, the value of M can be determined by substituting the data corresponding to the actually measured pressure curve into the function, and the calibration function can be determined by substituting M into the function.
As an alternative, the model number of the pressure sensor is determined, and a correction algorithm and a standard model associated with the model number are determined. Because the actual pressure curve is a straight line or a broken line composed of three points, data corresponding to the actual pressure curve is imported into calibration software, and the actual pressure curve is preprocessed according to the correction algorithm; and fitting the processed actual measurement pressure curve based on a preset mapping rule to enable the straight line or the broken line to be fitted into a curve, wherein the curve is a working pressure curve, and the working pressure curve meets a qualified range specified by the standard model.
Exemplary, wherein the second derivative value of the curve at each point is of the same sign as the second derivative value of the corresponding point in the standard model.
For example, the acceptable range of the operating pressure curve satisfying the standard model specification is: any point on the operating pressure curve, denoted as point one, has a y-axis coordinate that falls within a y-axis coordinate value range defined by a corresponding point two in the standard model. And the x-axis coordinate value of the point two is the same as the x-axis coordinate value of the point one.
For example, the acceptable range of the operating pressure curve satisfying the standard model is: the qualified range is two disjoint curves, which are recorded as a first curve and a third curve, and the operating pressure curve is recorded as a second curve. When the x-axis coordinate values of the three curves are the same, the y-axis coordinate values of the corresponding points of the second curve all fall within the interval specified by the y-axis coordinate values of the corresponding points of the first curve and the third curve.
Optionally, after step S330, the method further includes:
step S340, determining a effluent output voltage corresponding to the grammage of effluent on the working pressure curve based on the working pressure curve;
step S350, updating the third output voltage according to the effluent output voltage;
and step S360, storing the updated third output voltage in association with the model.
In this embodiment, the grammage of the discharged water is a minimum pressure value to which the pressure sensor can respond in an actual writing process, and the discharged water output voltage is an output voltage corresponding to the minimum pressure value according to an operating pressure curve.
As an alternative embodiment, the output voltage corresponding to the 5g pressure value is determined based on the operating pressure curve; reading the output voltage corresponding to the 5g pressure value in the historical record, carrying out data analysis on the output voltage, and updating the third output voltage based on the analysis result; and storing the updated third output voltage in association with the model of the pressure sensor.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
due to the adoption of a correction algorithm and a standard model for determining the correspondence of the pressure sensor; preprocessing the measured pressure curve based on the correction algorithm; and fitting the processed actual pressure curve based on a preset mapping rule and the standard model to obtain the working pressure curve that satisfies an acceptance range specified by the standard model. Therefore, the technical problem that the pressure sensor needs to be calibrated by using weights in the related technology is effectively solved, the calibration process is complicated, the pressure sensor does not need to be calibrated by using weights, and the time cost of calibration is effectively reduced.
Example four
Based on the third embodiment, the fourth embodiment of the present application provides a method for calibrating a pressure sensor, and after step S140, the method further includes:
step S410, generating a pressure curve file based on the working pressure curve;
step S420, writing the pressure curve file into the register;
and step S430, updating the master control according to the pressure curve file.
In this embodiment, after the pressure curve file is written into the register, the main controller may control the pressure sensor to output the corresponding output voltage according to the received pressure value according to the pressure curve file.
As an optional embodiment, a pressure curve file is generated based on the operating pressure curve, the pressure curve file is written into the register, and the master control of the active capacitive pen is updated based on the pressure curve file such that when it is detected that the pressure sensor is subjected to a pressure, the control pressure sensor outputs an output voltage corresponding to the pressure based on the operating pressure curve.
Alternatively, referring to fig. 4, step S410 includes:
step S411, determining an output voltage function and a pressure grade function based on the calibration function;
step S412, determining a preset pressure value, and determining an output voltage function value corresponding to the preset pressure value;
step S413, determining a mapping relationship between the output voltage and a pressure level according to the output voltage function value;
step S414, generating the pressure level file based on the pressure level function, the mapping relation, and the working pressure curve.
In this embodiment, the calibration function determined in the third embodiment is further converted into an output voltage function and a pressure level function. The output voltage function argument is the pressure value, and the pressure level function argument is also the pressure value.
As an optional implementation manner, based on the calibration function after the constant value is determined in the third embodiment, the calibration function is converted into an output voltage function and a pressure level function; and determining preset pressure values, wherein the optional pressure values are 10g and 350g. Substituting the pressure value into an output voltage function to determine a corresponding output voltage function value; determining a mapping relation between the output voltage and the pressure grade based on the output voltage function and the pressure grade function, and updating the mapping relation according to the calculated output voltage function value; after the mapping relation is determined, the mapping relation is the mapping relation between the output voltage and the pressure grade; and the working pressure curve is a mapping relation between a pressure value and an output voltage, and a pressure grade file is generated by combining the output voltage and the pressure grade mapping relation with the working pressure curve.
Illustratively, the output voltage function is table (ADC) = k 1 x+b 1 Wherein x is a pressure value; the pressure level function is y = k 2 x+b 2 Wherein x is a pressure value; by combining two functions and substituting pressure values of 350g and 10g, the effect can be eliminatedb 1 And b 2 And gives k 1 And k 2 The ratio of (a) to (b). Further determining the mapping relation between the output voltage and the pressure grade as (table (ADC) -table (10)) × 255/(table (350) -table (10)); and then updating the mapping relation according to the determined table (10) and table (350), namely, only table (ADC) is unknown in the updated mapping relation, and the table (ADC) value corresponding to the pressure value can be determined according to the working pressure curve, so that the pressure grade corresponding to the pressure value is determined.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
the output voltage function and the pressure grade function are determined based on the calibration function; determining a preset pressure value, and determining an output voltage function value corresponding to the preset pressure value; determining a mapping relationship between the pressure value and a pressure grade according to the output voltage function value; the pressure grade file is generated based on the pressure grade function, the mapping relation and the working pressure curve, so that the technical problem that weights are needed to calibrate the pressure sensor in the related technology, the calibration process is complicated is effectively solved, the pressure sensor is not needed to be calibrated by the weights, and the time cost of calibration is effectively reduced.
EXAMPLE five
Based on the first embodiment, a fifth embodiment of the present application provides a method for calibrating a pressure sensor, where after step S140, the method further includes:
step S510, when the pressure sensor is detected to be applied with pressure, determining a pressure value of the pressure;
step S520, controlling the pressure sensor to output an output voltage corresponding to the pressure value according to the working pressure curve;
step S530, determining a pressure grade corresponding to the output voltage based on a preset pressure conversion algorithm;
and S540, controlling the transmitting module to transmit a corresponding electric signal according to the pressure grade, so that the terminal responds to the electric signal and outputs a corresponding handwriting.
In this embodiment, the pressure conversion algorithm is operated, the output voltage of the pressure sensor is received, and the pressure level corresponding to the output voltage is determined.
Alternatively, the pressure level may be 1024, 4096 or other levels.
As an alternative embodiment, when the pressure sensor is detected to be pressurized during writing, the output voltage corresponding to the pressure value of the pressure in the operating pressure curve is determined according to the pressure; controlling the pressure sensor to output the output voltage; when the master control receives the output voltage, determining a pressure grade corresponding to the output voltage based on a preset pressure conversion algorithm; and controlling the transmitting module to transmit a corresponding electric signal according to the pressure grade, so that the terminal can respond to the electric signal and display the handwriting corresponding to the electric signal at the contact point position of the display module of the terminal and the capacitance pen.
The technical scheme in the embodiment of the application at least has the following technical effects or advantages:
due to the adoption of the method, when the pressure is applied to the pressure sensor according to the working pressure curve, the output voltage corresponding to the pressure value of the pressure is output, and the pressure grade corresponding to the output voltage is determined according to the pressure conversion algorithm; and then, the transmitting module is controlled to transmit the corresponding electric signal according to the pressure grade, so that the technical problem that the pressure sensor cannot be efficiently calibrated in the related technology so that the active capacitance pen transmits the accurate electric signal is effectively solved, and the rapid calibration of the pressure sensor is further realized.
The application further provides a pressure sensor calibration device, and referring to fig. 5, fig. 5 is a schematic structural diagram of a pressure sensor calibration device in a hardware operating environment according to an embodiment of the application.
As shown in fig. 5, the pressure sensor calibration apparatus 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. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a WIreless interface (e.g., a WIreless-FIdelity (WI-FI) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 5 does not constitute a limitation of the pressure sensor calibration apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
Optionally, the memory 1005 is electrically connected to the processor 1001, and the processor 1001 may be configured to control the operation of the memory 1005 and read data in the memory 1005 to implement the pressure sensor calibration.
Alternatively, as shown in fig. 5, the memory 1005, which is a storage medium, may include therein an operating system, a data storage module, a network communication module, a user interface module, and a pressure sensor calibration program.
Alternatively, in the pressure sensor calibration device shown in fig. 5, the network interface 1004 is mainly used for data communication with other devices; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 of the pressure sensor calibration apparatus of the present application may be provided in the pressure sensor calibration apparatus.
As shown in fig. 5, the pressure sensor calibration apparatus calls, through the processor 1001, a pressure sensor calibration program stored in the memory 1005, and performs the operations of the relevant steps of the pressure sensor calibration method provided by the embodiment of the present application:
the method comprises the steps of obtaining a pressure value currently born by a pressure sensor, and obtaining a first output voltage of the pressure sensor when the pressure value is 0g and the fluctuation range of the output voltage of the pressure sensor is smaller than a preset threshold value;
acquiring a second output voltage preset in a register and a third output voltage related to the type of the pressure sensor;
determining a measured pressure curve of the pressure sensor according to the first output voltage, the second output voltage and the third output voltage;
and calibrating the actually measured pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
acquiring a pressure value currently born by the pressure sensor and an output voltage of the pressure sensor;
storing the pressure value and the output voltage in a correlation manner;
determining a pressure curve of the pressure sensor according to the pressure value and the output voltage, and judging whether the pressure curve meets a preset slope interval;
and if the pressure curve meets the slope interval, determining the second output voltage according to the pressure curve.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
if the pressure curve does not meet the slope interval, judging whether the slope of the pressure curve is smaller than the lowest threshold corresponding to the slope interval;
determining a difference between the slope and the lowest threshold when the slope is less than the lowest threshold;
and correcting the pressure curve based on the difference value and a preset correction algorithm, and determining the second output voltage according to the corrected pressure curve.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
determining a calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;
determining a constant value corresponding to the calibration algorithm based on the measured pressure curve;
determining a calibration function based on the calibration algorithm and the constant value;
and fitting the actually 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.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
determining the corresponding outlet water gram weight of the working pressure curve based on the working pressure curve;
updating the third output voltage according to the gram weight of the discharged water;
and storing the updated third output voltage in association with the model.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
generating a pressure grade file based on the working pressure curve;
writing the stress level file to the register;
and updating the master control according to the pressure grade file.
Alternatively, the processor 1001 may call a pressure sensor calibration program stored in the memory 1005, and further perform the following operations:
determining an output voltage function and a pressure level function based on the calibration function;
determining a preset pressure value, and determining an output voltage function value corresponding to the preset pressure value;
determining a mapping relationship between the pressure value and a pressure grade according to the output voltage function value;
and generating the pressure grade file based on the pressure grade function, the mapping relation and the working pressure curve.
In addition, this application embodiment also provides an active capacitance pen, and the active capacitance pen includes:
the master control module is used for controlling a pressure sensor to output corresponding output voltage when bearing pressure according to a working pressure curve, determining the pressure grade corresponding to the output voltage based on a preset pressure grade file when receiving the output voltage of the pressure sensor, and controlling an emission module to emit corresponding electric signals according to the pressure grade;
the pressure sensor is used for sending the corresponding output voltage to the master control according to the pressure value of the pressure based on the working pressure curve when the bearing pressure is detected;
and the transmitting module transmits a corresponding electric signal according to the pressure grade, so that the terminal responds to the electric signal and outputs a corresponding handwriting.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a pressure sensor calibration program is stored, and when executed by a processor, the pressure sensor calibration program implements relevant steps of any embodiment of the above pressure sensor calibration method.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may 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, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may 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, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of pressure sensor calibration, the method comprising:
the method comprises the steps of obtaining a pressure value currently born by a pressure sensor, and obtaining a first output voltage of the pressure sensor when the pressure value is 0g and the fluctuation range of the output voltage of the pressure sensor is smaller than a preset threshold value;
acquiring a second output voltage preset in a register and a third output voltage related to the type of the pressure sensor;
determining a measured pressure curve of the pressure sensor according to the first output voltage, the second output voltage and the third output voltage;
and calibrating the actually measured pressure curve based on a preset standard pressure curve model, and generating a working pressure curve of the pressure sensor according to a calibration result.
2. The method for calibrating a pressure sensor according to claim 1, wherein before acquiring the second output voltage preset in the register and the third output voltage associated with the model of the pressure sensor, the method further comprises:
acquiring a pressure value currently born by the pressure sensor and an output voltage of the pressure sensor;
storing the pressure value and the output voltage in a correlation manner;
determining a pressure curve of the pressure sensor according to the pressure value and the output voltage, and judging whether the pressure curve meets a preset slope interval;
and if the pressure curve meets the slope interval, determining the second output voltage according to the pressure curve.
3. The method for calibrating a pressure sensor according to claim 2, wherein the determining a pressure curve of the pressure sensor according to the pressure value and the output voltage, and after determining whether the pressure curve satisfies a preset slope interval, further comprises:
if the pressure curve does not meet the slope interval, judging whether the slope of the pressure curve is smaller than the lowest threshold corresponding to the slope interval or not;
determining a difference between the slope and the lowest threshold when the slope is less than the lowest threshold;
and correcting the pressure curve based on the difference value and a preset correction algorithm, and determining the second output voltage according to the corrected pressure curve.
4. The method for calibrating a pressure sensor according to claim 1, wherein the calibrating the measured pressure curve based on a preset standard pressure curve model and generating an operating pressure curve of the pressure sensor according to the calibration result comprises:
determining a calibration algorithm corresponding to the pressure sensor and the standard pressure curve model;
determining a constant value corresponding to the calibration algorithm based on the measured pressure curve;
determining a calibration function based on the calibration algorithm and the constant value;
and fitting the actually 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.
5. The method of calibrating a pressure sensor of claim 4, wherein said fitting said measured pressure curve based on said calibration function to generate said operating pressure curve, wherein said operating pressure curve satisfies said standard pressure curve model defined qualification range further comprises:
determining the corresponding outlet water gram weight of the working pressure curve based on the working pressure curve;
updating the third output voltage according to the gram weight of the discharged water;
and storing the updated third output voltage in association with the model.
6. The method for calibrating a pressure sensor according to claim 4, wherein after calibrating the measured pressure curve based on a preset standard pressure curve model and generating an operating pressure curve of the pressure sensor according to the calibration result, the method further comprises:
generating a pressure grade file based on the working pressure curve;
writing the stress level file to the register;
and updating the master control according to the pressure grade file.
7. The method of pressure sensor calibration of claim 6, wherein said generating a pressure level file based on said operating pressure curve comprises:
determining an output voltage function and a pressure level function based on the calibration function;
determining a preset pressure value, and determining an output voltage function value corresponding to the preset pressure value;
determining a mapping relationship between the pressure value and a pressure grade according to the output voltage function value;
and generating the pressure grade file based on the pressure grade function, the mapping relation and the working pressure curve.
8. An active capacitive pen, comprising:
the master control module is used for controlling a pressure sensor to output corresponding output voltage when bearing pressure according to a working pressure curve, determining the pressure grade corresponding to the output voltage based on a preset pressure grade file when receiving the output voltage of the pressure sensor, and controlling an emission module to emit corresponding electric signals according to the pressure grade;
the pressure sensor is used for sending the corresponding output voltage to the main control according to the pressure value of the pressure based on the working pressure curve when the bearing pressure is detected;
and the transmitting module transmits a corresponding electric signal according to the pressure grade, so that the terminal responds to the electric signal and outputs a corresponding handwriting.
9. A pressure sensor calibration device comprising a memory, a processor and a pressure sensor calibration program stored on the memory and executable on the processor, the processor when executing the pressure sensor calibration program implementing the steps of the pressure sensor calibration method according to any one of claims 1 to 7.
10. A computer-readable storage medium, having stored thereon a pressure sensor calibration program, which when executed by a processor, performs the steps of the pressure sensor calibration method of any one of claims 1 to 7.
CN202211118779.8A 2022-09-13 2022-09-13 Pressure sensor calibration method, device, capacitive pen and readable storage medium Pending CN115525164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211118779.8A CN115525164A (en) 2022-09-13 2022-09-13 Pressure sensor calibration method, device, capacitive pen and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211118779.8A CN115525164A (en) 2022-09-13 2022-09-13 Pressure sensor calibration method, device, capacitive pen and readable storage medium

Publications (1)

Publication Number Publication Date
CN115525164A true CN115525164A (en) 2022-12-27

Family

ID=84696883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211118779.8A Pending CN115525164A (en) 2022-09-13 2022-09-13 Pressure sensor calibration method, device, capacitive pen and readable storage medium

Country Status (1)

Country Link
CN (1) CN115525164A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116519197A (en) * 2023-06-27 2023-08-01 潍柴动力股份有限公司 Differential pressure characteristic curve selection method and device and vehicle

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116519197A (en) * 2023-06-27 2023-08-01 潍柴动力股份有限公司 Differential pressure characteristic curve selection method and device and vehicle
CN116519197B (en) * 2023-06-27 2023-10-20 潍柴动力股份有限公司 Differential pressure characteristic curve selection method and device and vehicle

Similar Documents

Publication Publication Date Title
CN101487865B (en) Fault diagnosis method and fault diagnosis system
CN101803104B (en) System and method for estimating long term characteristics of battery
CN115525164A (en) Pressure sensor calibration method, device, capacitive pen and readable storage medium
CN101000530A (en) Display device and driving method thereof
CN102346050B (en) Sensing device and electronic apparatus
CN107358188A (en) Fingerprint sensor and its bearing calibration
CN110431517B (en) Pressure detection method and device of active pen and active pen
CN102053899A (en) Memory test method and system
CN102099922A (en) Method and system for processing signals for a mems detector that enables control of a device using human breath
CN102279924A (en) Fingerprint identification system and testing device
CN111124159A (en) Touch reminding method based on stylus, terminal and computer readable storage medium
CN105191308A (en) Method for the compressed storage of graphical data
EP0245591A2 (en) Method and apparatus for transferring information into electronic systems
KR20210144567A (en) Method and system for refining label information
CN110362044B (en) Limestone addition amount prediction control system and method for copper ore flotation device
CN1751539B (en) Method for programming a hearing aid by means of a programming device
CN111380650B (en) Pressure curve calibration method, device, equipment and readable storage medium
CN113358200B (en) Weighing system based on digital sensor junction box
CN116245808A (en) Workpiece defect detection method and device, electronic equipment and storage medium
US20220187978A1 (en) Touch circuit for preventing erroneous touch due to temperature change, electronic device comprising touch circuit, and method for operating same
JP2007078626A (en) Sensor module and sensor system using this
CN204856843U (en) Mistake position of sitting intellectual detection system corrects system
EP4016479B1 (en) Display device and driving method thereof
CN117609881B (en) Metal overlap detection method and system based on artificial intelligence
CN116429339B (en) Leakage detection method and system for new energy battery box

Legal Events

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