CN103335587B - A kind of position sensor on-line testing method and apparatus - Google Patents

A kind of position sensor on-line testing method and apparatus Download PDF

Info

Publication number
CN103335587B
CN103335587B CN201310275807.1A CN201310275807A CN103335587B CN 103335587 B CN103335587 B CN 103335587B CN 201310275807 A CN201310275807 A CN 201310275807A CN 103335587 B CN103335587 B CN 103335587B
Authority
CN
China
Prior art keywords
voltage
time
characteristic curve
position sensor
real
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.)
Expired - Fee Related
Application number
CN201310275807.1A
Other languages
Chinese (zh)
Other versions
CN103335587A (en
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.)
Weichai Power Co Ltd
Original Assignee
Weichai Power 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 Weichai Power Co Ltd filed Critical Weichai Power Co Ltd
Priority to CN201310275807.1A priority Critical patent/CN103335587B/en
Publication of CN103335587A publication Critical patent/CN103335587A/en
Application granted granted Critical
Publication of CN103335587B publication Critical patent/CN103335587B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Measurement Of Length, Angles, Or The Like Using Electric Or Magnetic Means (AREA)
  • Length Measuring Devices With Unspecified Measuring Means (AREA)

Abstract

The invention discloses a kind of position sensor on-line testing method, the method includes: initialize primary importance side-play amount and second position side-play amount each self-corresponding voltage on characteristic curve, the real-time voltage of position sensor output is sampled, judge within the scope of certain time, whether real-time sampling voltage is maintained within the scope of first threshold, if, then judge in this time range, whether voltage pulsation amplitude is maintained within the scope of Second Threshold, if, then voltage corresponding for primary importance side-play amount in characteristic curve is updated to the real-time sampling average voltage in this time range, with primary importance side-play amount with update after voltage corresponding to primary importance side-play amount and second position side-play amount and corresponding voltage regenerate the characteristic curve of position sensor, to realize verification. the method overcome the shortcoming that prior art can not verify when machine runs. the embodiment of the present application also discloses a kind of position sensor on-line testing device, improves the precision of position sensor.

Description

一种位置传感器在线校验方法和装置A method and device for online calibration of a position sensor

技术领域 technical field

本发明涉自动化领域,尤其涉及一种位置传感器在线校验方法及装置。 The invention relates to the field of automation, in particular to an online calibration method and device for a position sensor.

背景技术 Background technique

随着科技的进步和发展,位置传感器在现代工业自动化生产中越来越普及。位置传感器,是指能感受到被测物体位置并将该物体位置的偏移量转换为对电阻、电容或感应电动势等的测量,从而输出电压等信号的传感器,例如节气门位置传感器等,其特点是位置传感器测量的位置偏移量与输出电压的关系为一定的特性曲线,其中对位置偏移程度的测量可以根据具体情况基于角度或位移等。 With the advancement and development of science and technology, position sensors are becoming more and more popular in modern industrial automation production. A position sensor refers to a sensor that can sense the position of the object to be measured and convert the offset of the object's position into a measurement of resistance, capacitance, or induced electromotive force, thereby outputting a signal such as a voltage, such as a throttle position sensor, etc. The characteristic is that the relationship between the position offset measured by the position sensor and the output voltage is a certain characteristic curve, and the measurement of the position offset can be based on angle or displacement according to the specific situation.

然而在实际应用中,有的位置传感器由于装配误差或老化问题等原因经常会使得所测位置的实际偏移量与输出的电压值通过理论特性曲线算出的理论位置偏移量不一致,即特性曲线产生偏差,如果继续按照原特性曲线计算位置偏移量,就会导致传感器精度降低,影响产品性能。 However, in practical applications, due to assembly errors or aging problems, some position sensors often make the actual offset of the measured position inconsistent with the theoretical position offset calculated by the output voltage value through the theoretical characteristic curve, that is, the characteristic curve If deviation occurs, if the position offset is calculated according to the original characteristic curve, the accuracy of the sensor will be reduced and the product performance will be affected.

为了提高传感器精度,现有技术在整个机器通电之后、运转开始之前强制所测位置达到最小偏移量或最大偏移量,位置传感器获取所测位置的最小或最大偏移量,并将该偏移量分别转化为对应的电压值来分别更新特性曲线上这两个偏移量所对应的电压值,从而达到对位置传感器进行校验的目的。例如汽车上的EGR阀位置传感器,即废气再循环阀位置传感器,通过检测EGR阀的开合程度,对实际废气再循环量进行闭环修正反馈控制,从而使得废气再循环量对发动机性能不产生过度影响。当汽车处于启动状态但并未行驶时,汽车的控制系统给执行器发送信号,使执行器强制EGR阀门全开或全关,EGR位置传感器检测到EGR阀门全开或全关后转换为对应的电压信号,然后将电压信号发送给汽车的控制系统来更新特性曲线上EGR阀门全开或全关对应的电压值,从而对特性曲线进行校准。但是当汽车在行驶过程中,控制系统不能再让执行器强制阀门全开或全关,否则会影响车辆正常运行,此时EGR位置传感器特性曲线可能会因为老化问题等发生跑偏,产生较大误差。除此以外,现有技术依赖于类似执行器的强制设备,然而并不是所有的位置传感器都具有强制设备,如果没有强制设备,则无法对位置传感器进行校准。 In order to improve the accuracy of the sensor, the existing technology forces the measured position to reach the minimum or maximum deviation after the entire machine is powered on and before the operation starts. The position sensor obtains the minimum or maximum deviation of the measured position and converts the deviation The displacements are converted into corresponding voltage values to update the voltage values corresponding to the two offsets on the characteristic curve, so as to achieve the purpose of calibrating the position sensor. For example, the EGR valve position sensor on the car, that is, the exhaust gas recirculation valve position sensor, performs closed-loop correction and feedback control on the actual exhaust gas recirculation amount by detecting the opening and closing degree of the EGR valve, so that the exhaust gas recirculation amount does not excessively affect the engine performance. influences. When the car is in the starting state but not driving, the control system of the car sends a signal to the actuator to make the actuator force the EGR valve to fully open or fully close, and the EGR position sensor detects that the EGR valve is fully open or fully closed and then switches to the corresponding Voltage signal, and then send the voltage signal to the control system of the car to update the voltage value corresponding to the full opening or closing of the EGR valve on the characteristic curve, so as to calibrate the characteristic curve. But when the car is running, the control system can no longer force the actuator to fully open or close the valve, otherwise it will affect the normal operation of the vehicle. At this time, the characteristic curve of the EGR position sensor may deviate due to aging problems, resulting in large error. In addition, prior art relies on actuator-like forcing devices, however not all position sensors have a forcing device and without a forcing device the position sensor cannot be calibrated.

发明内容 Contents of the invention

为了使机器在运行时校验位置传感器,且不依赖于强制设备,本发明提供了一种位置传感器在线校验方法和装置,提高位置传感器的精度。 In order to verify the position sensor when the machine is running without relying on mandatory equipment, the present invention provides a method and device for on-line verification of the position sensor to improve the accuracy of the position sensor.

本发明实施例提供了一种位置传感器在线校验方法,首先,初始化第一位置偏移量和第二位置偏移量在特性曲线上各自对应的电压,所述校验方法包括: An embodiment of the present invention provides an online calibration method for a position sensor. First, initialize the voltages corresponding to the first position offset and the second position offset on the characteristic curve respectively. The calibration method includes:

对位置传感器输出的实时电压进行采样,判断一定时间范围内实时采样电压是否保持在第一阈值范围内,如果是,则判断该时间范围内电压波动幅度是否保持在第二阈值范围内,如果是,则将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,以实现校验。 Sampling the real-time voltage output by the position sensor, judging whether the real-time sampling voltage remains within the first threshold range within a certain time range, and if so, judging whether the voltage fluctuation range within the time range remains within the second threshold range, if yes , then the voltage corresponding to the first position offset in the characteristic curve is updated to the real-time sampled voltage average value within the time range, and the voltage corresponding to the first position offset and the updated first position offset is compared with the second position The offset and the corresponding voltage regenerate the characteristic curve of the position sensor for calibration purposes.

优选的,所述方法还包括: Preferably, the method also includes:

判断一定时间范围内实时采样电压是否保持在第三阈值范围内,如果是,则判断该段时间内电压波动幅度是否保持在第四阈值范围内,如果是,则将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和更新后第二位置偏移量对应的电压重新生成位置传感器的特性曲线。 Judging whether the real-time sampling voltage remains within the third threshold range within a certain time range, if yes, then judging whether the voltage fluctuation range within this period remains within the fourth threshold range, if so, offsetting the second position in the characteristic curve to The voltage corresponding to the displacement is updated as the real-time sampled voltage average value within the time range, and the voltage corresponding to the first position offset and the updated first position offset is compared with the second position offset and the updated second position offset The voltage corresponding to the displacement regenerates the characteristic curve of the position sensor.

优选的,所述第一位置偏移量为最小位置偏移量,所述第二位置偏移量为最大位置偏移量。 Preferably, the first position offset is the minimum position offset, and the second position offset is the maximum position offset.

优选的,设定第一位置偏移量在特性曲线上对应的电压为u1,第二位置偏移量在特性曲线上对应的电压为u2,所述第一阈值范围为[u1-x%|u2-u1|,u1+x%|u2-u1|],所述第二阈值范围为[0,y%|u2-u1|],其中x>y,且x,y∈(0,100)。 Preferably, the voltage corresponding to the first position offset on the characteristic curve is set as u 1 , the voltage corresponding to the second position offset on the characteristic curve is u 2 , and the first threshold range is [u 1 - x%|u 2 -u 1 |, u 1 +x%|u 2 -u 1 |], the second threshold range is [0, y%|u 2 -u 1 |], where x>y, And x,y∈(0,100).

优选的,设定第一位置偏移量在特性曲线上对应的电压为u1,第二位置偏移量在特性曲线上对应的电压为u2,所述第三阈值范围为[u2-x%|u2-u1|,u2+x%|u2-u1|],所述第四阈值范围为[0,y%|u2-u1|],其中x>y,且x,y∈(0,100)。 Preferably, the voltage corresponding to the first position offset on the characteristic curve is set as u 1 , the voltage corresponding to the second position offset on the characteristic curve is u 2 , and the third threshold range is [u 2 - x%|u 2 -u 1 |, u 2 +x%|u 2 -u 1 |], the fourth threshold range is [0, y%|u 2 -u 1 |], where x>y, And x,y∈(0,100).

优选的,所述x∈(0,10],所述y∈(0,5]。 Preferably, the x∈(0,10], the y∈(0,5].

优选的,所述校验方法还包括: Preferably, the verification method also includes:

在对位置传感器输出的实时电压进行采样的同时对电压进行滤波;或, filtering the voltage while sampling the real-time voltage output by the position sensor; or,

在所述重新生成位置传感器的特性曲线步骤后返回对位置传感器输出的实时电压进行采样步骤进行循环。 After the step of regenerating the characteristic curve of the position sensor, return to the step of sampling the real-time voltage output by the position sensor for a loop.

本发明还提供一种位置传感器在线校验装置,所述装置包括:初始化电压单元、实时电压采样单元、第一判断单元、第二判断单元、第一更新单元和特性曲线生成单元,其中, The present invention also provides an online verification device for a position sensor, which includes: an initialization voltage unit, a real-time voltage sampling unit, a first judging unit, a second judging unit, a first updating unit, and a characteristic curve generating unit, wherein,

所述初始化电压单元,用于初始化第一位置偏移量和第二位置偏移量在特性曲线上各自对应的电压; The initialization voltage unit is used to initialize the respective voltages corresponding to the first position offset and the second position offset on the characteristic curve;

所述实时电压采样单元,用于对位置传感器输出的实时电压进行采样; The real-time voltage sampling unit is used to sample the real-time voltage output by the position sensor;

所述第一判断单元,用于判断一定时间范围内该实时采样电压是否保持在第一阈值范围内,如果是,则激活第二判断单元; The first judging unit is used to judge whether the real-time sampling voltage remains within the first threshold range within a certain time range, and if so, activate the second judging unit;

所述第二判断单元,用于判断该时间范围内该实时采样电压的波动幅度是否保持在第二阈值范围内,如果是,则激活第一更新单元; The second judging unit is used to judge whether the fluctuation amplitude of the real-time sampling voltage within the time range is kept within the second threshold range, and if so, activate the first updating unit;

所述第一更新单元,用于将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值; The first update unit is configured to update the voltage corresponding to the first position offset in the characteristic curve to the real-time sampled voltage average value within the time range;

所述特性曲线生成单元,用于以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,以实现校验。 The characteristic curve generating unit is used to regenerate the characteristic curve of the position sensor with the first position offset and the updated voltage corresponding to the first position offset, the second position offset and the corresponding voltage, so as to realize the verification .

优选的,所述特性曲线生成单元,还用于以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和更新后第二位置偏移量对应的电压重新生成位置传感器的特性曲线; Preferably, the characteristic curve generating unit is further configured to use the voltage corresponding to the first position offset and the updated first position offset to the second position offset and the updated second position offset The voltage regenerates the characteristic curve of the position sensor;

所述装置还包括:第三判断单元、第四判断单元和第二更新单元,其中, The device also includes: a third judging unit, a fourth judging unit, and a second updating unit, wherein,

所述第三判断单元,用于判断一定时间范围内位置传感器输出的实时采样电压是否保持在第三阈值范围内,如果是,则激活第四判断单元; The third judging unit is used to judge whether the real-time sampling voltage output by the position sensor within a certain time range remains within the third threshold range, and if so, activate the fourth judging unit;

所述第四判断单元,用于判断该时间范围内该实时采样电压的波动幅度是否保持在第四阈值范围内,如果是,则激活第二更新单元; The fourth judging unit is used to judge whether the fluctuation amplitude of the real-time sampling voltage within the time range is kept within the fourth threshold range, and if so, activate the second updating unit;

所述第二更新单元,用于将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值。 The second update unit is configured to update the voltage corresponding to the second position offset in the characteristic curve to the real-time sampled voltage average value within the time range.

优选的,所述装置还包括滤波单元,用于对位置传感器输出的实时采样电压进行滤波;或, Preferably, the device further includes a filtering unit, configured to filter the real-time sampling voltage output by the position sensor; or,

所述特性曲线生成单元,还用于在重新生成位置传感器的特性曲线后激活实时电压采样单元。 The characteristic curve generation unit is also used to activate the real-time voltage sampling unit after regenerating the characteristic curve of the position sensor.

由于装配误差或老化问题等,一些位置传感器的特性曲线在机器运行过程中产生偏差,甚至还未运行特性曲线就已经有了偏差,使得传感器的精度降低。现有技术强制所测位置达到最小偏移量或最大偏移量,位置传感器获取所测位置的最小或最大偏移量,并将该偏移量分别转化输出对应的电压值来分别更新特性曲线上这两个偏移量所对应的电压值,从而达到对位置传感器进行校验的目的,但是一旦机器运行起来,强制设备无法工作,特性曲线就可能发生跑偏而无法得到校验,而且现有技术依赖于强制设备,没有强制设备的位置传感器就无法得到校准。本发明中在机器运行时,判断一定时间范围内位置传感器输出的实时位置偏移量对应的电压及电压的波动幅度是否保持相应的阈值范围内,如果是,则将该段时间内的电压均值更新特性曲线上所测位置偏移量对应的电压,使得位置传感器的特性曲线能够在线得以校验,而且克服了现有技术依赖强制设备的缺点。 Due to assembly errors or aging problems, the characteristic curves of some position sensors deviate during the operation of the machine, and even the characteristic curves have deviations before the operation, which reduces the accuracy of the sensors. The existing technology forces the measured position to reach the minimum or maximum offset. The position sensor obtains the minimum or maximum offset of the measured position, and converts the offset to output the corresponding voltage value to update the characteristic curve respectively. The voltage value corresponding to the above two offsets can be used to achieve the purpose of calibrating the position sensor, but once the machine is running, the forced device cannot work, the characteristic curve may deviate and cannot be calibrated, and now There are techniques that rely on forcing equipment without which position sensors cannot be calibrated. In the present invention, when the machine is running, it is judged whether the voltage corresponding to the real-time position offset output by the position sensor within a certain time range and the fluctuation range of the voltage remain within the corresponding threshold range, and if so, the voltage mean value within the period Updating the voltage corresponding to the measured position offset on the characteristic curve enables the characteristic curve of the position sensor to be verified online, and overcomes the disadvantage of relying on compulsory equipment in the prior art.

附图说明 Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments described in this application. Those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1为本发明实施例一位置传感器在线校验方法的流程图; Fig. 1 is a flow chart of a position sensor online verification method according to an embodiment of the present invention;

图2为本发明实施例二位置传感器在线校验方法的流程图; Fig. 2 is the flow chart of the on-line verification method of the position sensor of the second embodiment of the present invention;

图3为本发明实施例三位置传感器在线校验方法的流程图; Fig. 3 is a flow chart of an online verification method for three position sensors according to an embodiment of the present invention;

图4为本发明实施例四位置传感器在线校验装置的结构框图; Fig. 4 is a structural block diagram of a position sensor online verification device according to Embodiment 4 of the present invention;

图5为本发明实施例五位置传感器在线校验装置的结构框图。 Fig. 5 is a structural block diagram of an on-line calibration device for a position sensor according to Embodiment 5 of the present invention.

具体实施方式 detailed description

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

实施例一 Embodiment one

由于装配误差或老化问题等,一些位置传感器的特性曲线在机器运行过程中产生偏差,甚至还未运行特性曲线就已经有了偏差,使得传感器的精度降低。本发明提供了一种位置传感器在线校验方法,在机器运行时校验特性曲线,参见图1,该方法包括以下步骤: Due to assembly errors or aging problems, the characteristic curves of some position sensors deviate during the operation of the machine, and even the characteristic curves have deviations before the operation, which reduces the accuracy of the sensors. The present invention provides a method for on-line calibration of a position sensor. The characteristic curve is checked when the machine is running. Referring to FIG. 1, the method comprises the following steps:

步骤S101:初始化第一位置偏移量和第二位置偏移量在特性曲线上各自对应的电压; Step S101: Initializing the respective voltages corresponding to the first position offset and the second position offset on the characteristic curve;

步骤S102:对位置传感器输出的实时电压进行采样,并进行滤波; Step S102: Sampling and filtering the real-time voltage output by the position sensor;

步骤S103:判断一定时间范围内实时采样电压是否保持在第一阈值范围内,如果是,则进行步骤S104,否则返回步骤S102; Step S103: judging whether the real-time sampling voltage remains within the first threshold range within a certain time range, if yes, proceed to step S104, otherwise return to step S102;

步骤S104:判断该段时间范围内的实时采样电压波动幅度是否保持在第二阈值范围内,如果是,则进行步骤S105,否则返回步骤S102; Step S104: judging whether the real-time sampling voltage fluctuation amplitude within the period of time remains within the second threshold range, if yes, proceed to step S105, otherwise return to step S102;

步骤S105:将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值; Step S105: updating the voltage corresponding to the first position offset in the characteristic curve to the real-time sampled voltage average value within the time range;

步骤S106:以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,以实现校验。 Step S106: Regenerate the characteristic curve of the position sensor by using the first position offset and the updated voltage corresponding to the first position offset, and the second position offset and the corresponding voltage, so as to realize the verification.

在本实施例中,为了避免其他信号的干扰,优选在步骤S102中对实时采样电压进行滤波。此外,本实例中位置传感器每次进行校验都需要初始化第一位置偏移量在特性曲线上对应的电压和第二位置偏移量在特性曲线上对应的电压,但是在实际应用中,一个位置传感器往往只需要进行一次初始化,第二次及以后的校验只需要从步骤S102开始即可。而且在实际应用中,为了使在线生成的位置传感器特性曲线始终保持准确,在步骤S106结束后返回步骤S102,以便持续不断的对特性曲线进行调整。 In this embodiment, in order to avoid interference from other signals, it is preferable to filter the real-time sampled voltage in step S102. In addition, in this example, every time the position sensor is calibrated, the voltage corresponding to the first position offset on the characteristic curve and the voltage corresponding to the second position offset on the characteristic curve need to be initialized, but in practical applications, a The position sensor often only needs to be initialized once, and the second and subsequent verifications only need to start from step S102. Moreover, in practical applications, in order to keep the online generated characteristic curve of the position sensor accurate all the time, return to step S102 after step S106, so as to continuously adjust the characteristic curve.

本本实施例提供的位置传感器在线校验方法,使得位置传感器的特性曲线在机器运行过程中始终保持准确,而不受装配或老化问题的影响发生偏差,提高了位置传感器的精度。而现有技术在机器通电后、运转前通过强制设备强制位置偏移量达到最小或最大,位置传感器将相应输出的电压分别更新原特性曲线上对应的电压,从而达到校验的目的。由于机器运转后强制设备不能执行强制动作,所以无法在线进行校验。本实施例提供的方法克服了现有技术的缺点,并且不需要强制设备就可完成。 The on-line verification method of the position sensor provided in this embodiment makes the characteristic curve of the position sensor always accurate during the operation of the machine without deviation due to assembly or aging problems, and improves the accuracy of the position sensor. However, in the existing technology, after the machine is powered on and before operation, the position offset of the equipment is forced to reach the minimum or maximum, and the position sensor updates the corresponding output voltage to the corresponding voltage on the original characteristic curve, so as to achieve the purpose of calibration. Since the mandatory equipment cannot perform mandatory actions after the machine is running, it cannot be verified online. The method provided by this embodiment overcomes the disadvantages of the prior art and can be completed without mandatory equipment.

实施例二 Embodiment two

实施例一仅对第一位置偏移量对应的电压进行更新,在实际应用中,更新两个位置偏移量对应的电压生成的线性曲线更准确,所以本实施例对第二位置偏移量也进行更新,参见图2,具体步骤如下: Embodiment 1 only updates the voltage corresponding to the first position offset. In practical applications, the linear curve generated by updating the voltages corresponding to the two position offsets is more accurate, so this embodiment updates the second position offset Also update, see Figure 2, the specific steps are as follows:

步骤S201:初始化第一位置偏移量在特性曲线上对应的电压和第二位置偏移量在特性曲线上对应的电压; Step S201: Initialize the voltage corresponding to the first position offset on the characteristic curve and the voltage corresponding to the second position offset on the characteristic curve;

步骤S202:对位置传感器输出的实时电压进行采样,并进行滤波; Step S202: Sampling and filtering the real-time voltage output by the position sensor;

步骤S203:判断一定时间范围内实时采样电压是否保持在第一阈值范围内,如果是,则进行步骤S204,否则返回步骤S202; Step S203: Determine whether the real-time sampling voltage remains within the first threshold range within a certain time range, if yes, proceed to step S204, otherwise return to step S202;

同时,判断该时间范围内实时采样电压是否保持在第三阈值范围内,如果是,则进行步骤S206,否则返回步骤S202; At the same time, it is judged whether the real-time sampling voltage remains within the third threshold range within the time range, if yes, then proceed to step S206, otherwise return to step S202;

步骤S204:判断该时间范围内实时采样电压波动幅度是否保持在第二阈值范围内,如果是,则进行步骤S205,否则返回步骤S202; Step S204: Judging whether the real-time sampling voltage fluctuation range within the time range remains within the second threshold range, if yes, proceed to step S205, otherwise return to step S202;

步骤S205:将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,然后进行步骤S208; Step S205: update the voltage corresponding to the first position offset in the characteristic curve to the real-time sampled voltage average value within the time range, and then proceed to step S208;

步骤S206:判断该时间范围内实时采样电压波动幅度是否保持在第四阈值范围内,如果是,则进行步骤S207,否则返回步骤S202; Step S206: Judging whether the real-time sampling voltage fluctuation amplitude within the time range remains within the fourth threshold range, if yes, proceed to step S207, otherwise return to step S202;

步骤S207:将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,然后进行步骤S208; Step S207: update the voltage corresponding to the second position offset in the characteristic curve to the real-time sampled voltage average value within the time range, and then proceed to step S208;

步骤S208:以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和更新后第二位置偏移量对应的电压重新生成位置传感器的特性曲线,并返回步骤S202。 Step S208: Regenerate the characteristic curve of the position sensor with the first position offset and the voltage corresponding to the updated first position offset and the second position offset and the voltage corresponding to the updated second position offset, and Return to step S202.

经过对第一位置偏移量和第二位置偏移量各自对应的电压进行更新,得到了较准确的特性曲线,通过对更新步骤的循环,使特性曲线始终保持准确,提高了位置传感器的精度。 After updating the corresponding voltages of the first position offset and the second position offset, a more accurate characteristic curve is obtained. Through the cycle of updating steps, the characteristic curve is always accurate and the accuracy of the position sensor is improved. .

实施例三 Embodiment Three

为了进一步理解本发明,本实施例对实施例二所述的位置传感器在线校验方法进行举例描述。由于本发明对位置传感器的第一位置偏移量和第二位置偏移量具体是多少不作具体限定,但是优选第一位置偏移量为最小位置偏移量,即相对于初始位置偏移了0%,对应原特性曲线上的电压为u'1,第二位置偏移量为最大位置偏移量,即相对于初始位置偏移了100%,对应原特征曲线上的电压为u'2。本发明对第一阈值范围、第二阈值范围、第三阈值范围及第四阈值范围具体为多少不作具体限定,本实施例优选第一阈值范围为[u'1-x%|u'2-u'1|,u'1+x%|u'2-u'1|],第二阈值范围为[0,y%|u'2-u'1|],,且x,y∈(0,100)。,第三阈值范围为[u'2-x%|u'2-u'1|,u'2+x%|u'2-u'1|],第四阈值范围为[0,y%|u'2-u'1|],其中x>y,理论上x和y的范围都为(0,100),但是在实际应用中,x、y的具体数值可以根据对位置传感器多次实验得到,一般情况下,x在(0,10]范围内,y在(0,5]范围内。本实施例中,优选x为5,y为2。根据以上描述,参见图3,本实施例的位置传感器在线校验方法步骤为: In order to further understand the present invention, this embodiment describes the online verification method of the position sensor described in the second embodiment by way of example. Since the present invention does not specifically limit the first position offset and the second position offset of the position sensor, it is preferred that the first position offset is the minimum position offset, that is, relative to the initial position offset 0%, corresponding to the voltage on the original characteristic curve is u' 1 , the second position offset is the maximum position offset, that is, relative to the initial position offset by 100%, corresponding to the voltage on the original characteristic curve is u' 2 . The present invention does not specifically limit the first threshold range, the second threshold range, the third threshold range, and the fourth threshold range. In this embodiment, the preferred first threshold range is [u' 1 -x%|u' 2 - u' 1 |, u' 1 +x%|u' 2 -u' 1 |], the second threshold range is [0, y%|u' 2 -u' 1 |], and x,y∈( 0,100). , the third threshold range is [u' 2 -x%|u' 2 -u' 1 |, u' 2 +x%|u' 2 -u' 1 |], the fourth threshold range is [0, y% |u' 2 -u' 1 |], where x>y, theoretically the range of x and y is (0,100), but in practical applications, the specific values of x and y can be obtained from multiple experiments on the position sensor , in general, x is in the range of (0,10], y is in the range of (0,5]. In this embodiment, preferably x is 5, and y is 2. According to the above description, see Figure 3, this embodiment The steps of the position sensor online calibration method are as follows:

步骤S301:初始化位置偏移量0%在特性曲线上对应的电压u'1和位置偏移量100%在特性曲线上对应的电压u'2Step S301: initializing the voltage u'1 corresponding to the position offset of 0% on the characteristic curve and the voltage u'2 corresponding to the position offset of 100% on the characteristic curve;

步骤S302:对位置传感器输出的实时电压进行采样,并进行滤波; Step S302: Sampling and filtering the real-time voltage output by the position sensor;

步骤S303:判断一定时间范围内实时采样电压是否保持在[u'1-5%|u'2-u'1|,u'1+5%|u'2-u'1|]内,如果是,则进行步骤S304,否则返回步骤S302; Step S303: Determine whether the real-time sampling voltage remains within [u' 1 -5%|u' 2 -u' 1 |, u' 1 +5%|u' 2 -u' 1 |] within a certain time range, if If yes, proceed to step S304, otherwise return to step S302;

同时判断该时间范围内实时采样电压是否保持在[u'2-5%|u'2-u'1|,u'2+5%|u'2-u'1|]内,如果是,则进行步骤S306,否则返回步骤S302; At the same time, judge whether the real-time sampling voltage remains within [u' 2 -5%|u' 2 -u' 1 |, u' 2 +5%|u' 2 -u' 1 |] within the time range, if yes, Then proceed to step S306, otherwise return to step S302;

步骤S304:判断该时间范围内实时采样电压波动幅度是否保持在[0,2%|u'2-u'1|]内,如果是,则进行步骤S305,否则返回步骤S302; Step S304: Judging whether the real-time sampling voltage fluctuation range within the time range remains within [0, 2%|u' 2 -u' 1 |], if yes, proceed to step S305, otherwise return to step S302;

步骤S305:将特性曲线中位置偏移量0%对应的电压u'1更新为该时间范围内的实时采样电压均值,然后进行步骤S308; Step S305: update the voltage u'1 corresponding to the position offset of 0% in the characteristic curve to the real-time sampled voltage average value within this time range, and then proceed to step S308;

步骤S306:判断该时间范围内实时采样电压波动幅度是否保持在[0,2%|u'2-u'1|]内,如果是,则进行步骤S307,否则返回步骤S302; Step S306: Judging whether the real-time sampling voltage fluctuation amplitude within the time range remains within [0, 2%|u' 2 -u' 1 |], if yes, proceed to step S307, otherwise return to step S302;

步骤S307:将特性曲线中位置偏移量100%对应的电压u'2更新为该时间范围内的实时采样电压均值,然后进行步骤S308; Step S307: update the voltage u'2 corresponding to the position offset of 100% in the characteristic curve to the real-time sampled voltage average value within the time range, and then proceed to step S308;

步骤S308:以位置偏移量0%和更新后对应的电压与位置偏移量100%和更新后对应的电压重新生成位置传感器的特性曲线,然后返回步骤S302。 Step S308: regenerate the characteristic curve of the position sensor with the position offset of 0% and the updated voltage corresponding to the position offset of 100% and the updated voltage, and then return to step S302.

实施例四 Embodiment four

上述实施例均为方法实施例,与方法实施例对应地,本申请还提供了一种位置传感器在线校验装置实施例。参见图4,该装置包括初始化电压单元401、实时电压采样单元402、第一判断单元4031、第二判断单元4032、第一更新单元4041和特性曲线生成单元405,为了使得实时采样电压不受其他信号干扰,本实施例中位置传感器在线校验装置还包括滤波单元406。其中,初始化电压单元401与实时电压采样单元402相连,实时电压采样单元402与第一判断单元4031相连,第一判断单元4031与第二判断单元4032相连,第二判断单元4032与第一更新单元4041相连,第一更新单元4041与特性曲线生成单元405相连,特性曲线生成单元405与实时电压采样单元402相连,另外,滤波单元406单独与实时电压采样单元402相连,在实际操作中,滤波单元406也可以嵌入实时电压采样单元作为一个整体。 The above-mentioned embodiments are all method embodiments, and corresponding to the method embodiments, the present application also provides an embodiment of an online calibration device for a position sensor. Referring to Fig. 4, the device includes an initialization voltage unit 401, a real-time voltage sampling unit 402, a first judging unit 4031, a second judging unit 4032, a first updating unit 4041, and a characteristic curve generating unit 405, in order to make the real-time sampling voltage not affected by other For signal interference, the position sensor online verification device in this embodiment further includes a filtering unit 406 . Wherein, the initialization voltage unit 401 is connected with the real-time voltage sampling unit 402, the real-time voltage sampling unit 402 is connected with the first judging unit 4031, the first judging unit 4031 is connected with the second judging unit 4032, the second judging unit 4032 is connected with the first updating unit 4041, the first update unit 4041 is connected to the characteristic curve generating unit 405, the characteristic curve generating unit 405 is connected to the real-time voltage sampling unit 402, and the filtering unit 406 is connected to the real-time voltage sampling unit 402 alone. In actual operation, the filtering unit 406 can also be embedded with a real-time voltage sampling unit as a whole.

本实施例位置传感器在线校验装置的工作原理是:初始化电压单元401初始化第一位置偏移量在特性曲线上对应的电压和第二位置偏移量在特性曲线上对应的电压;实时电压采样单元402对实时电压进行采样,采样的同时滤波单元406对电压进行滤波;第一判断单元4031判断一定时间范围内该实时采样电压是否保持在第一阈值范围内,如果是,则激活第二判断单元;第二判断单元4032判断该段时间范围内实时采样电压的波动幅度是否保持在第二阈值范围内,如果是,则激活第一更新单元4041;第一更新单元4041将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值;特性曲线生成单元405以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,然后激活实时电压采样单元,以便循环往复生成特性曲线,使特性曲线在机器运行过程中始终保持准确。 The working principle of the position sensor online verification device in this embodiment is: the initialization voltage unit 401 initializes the voltage corresponding to the first position offset on the characteristic curve and the voltage corresponding to the second position offset on the characteristic curve; real-time voltage sampling The unit 402 samples the real-time voltage, and the filtering unit 406 filters the voltage while sampling; the first judgment unit 4031 judges whether the real-time sampled voltage remains within the first threshold range within a certain time range, and if so, activates the second judgment unit; the second judging unit 4032 judges whether the fluctuation amplitude of the real-time sampling voltage in this period of time remains within the second threshold range, and if so, activates the first updating unit 4041; the first updating unit 4041 updates the first The voltage corresponding to the position offset is updated as the real-time sampled voltage mean value within the time range; And the corresponding voltage regenerates the characteristic curve of the position sensor, and then activates the real-time voltage sampling unit, so as to generate the characteristic curve repeatedly, so that the characteristic curve is always accurate during the operation of the machine.

本实施例提供的位置传感器在线校验装置,通过判断在一定时间范围内的位置传感器输出的实时位置偏移量对应的电压及其波动幅度是否保持在各自阈值范围内,如果是,则将该段时间内的电压均值更新特性曲线上所测位置偏移量对应的电压,使得位置传感器的特性曲线能够在线得以校验,克服了现有技术不能在机器运行时校验和依赖强制设备的缺点,提高位置传感器的精度。 The position sensor online verification device provided in this embodiment, by judging whether the voltage corresponding to the real-time position offset output by the position sensor within a certain time range and its fluctuation range is maintained within the respective threshold ranges, if so, then the The average value of the voltage within a period of time updates the voltage corresponding to the measured position offset on the characteristic curve, so that the characteristic curve of the position sensor can be verified online, which overcomes the shortcomings of the existing technology that cannot be verified when the machine is running and relies on mandatory equipment , to improve the accuracy of the position sensor.

实施例五 Embodiment five

实施例四的位置传感器在线校验装置仅用于更新特性曲线上一个位置偏移量所对应的电压,但是在实际应用中,为了使得特性曲线更加准确,往往需要更新两个位置偏移量对应的电压,所以在实施例四的基础上,本实施例的位置传感器在线校验装置还包括:第三判断单元4033、第四判断单元4034和第二更新单元4042,参见图5,其中,初始化电压单元401与实时电压采样单元402相连,实时电压采样单元402与第一判断单元4031和第三判断单元4033相连,第一判断单元4031与第二判断单元4032相连,第二判断单元4032与第一更新单元4041相连;第三判断单元4033与第四判断单元4034相连,第四判断单元4034与第二更新单元4042相连;第一更新单元4041和第二更新单元4042与特性曲线生成单元405相连,特性曲线生成单元405与实时电压采样单元402相连,另外,滤波单元406单独与实时电压采样单元402相连。 The position sensor online verification device of Embodiment 4 is only used to update the voltage corresponding to one position offset on the characteristic curve, but in practical applications, in order to make the characteristic curve more accurate, it is often necessary to update the corresponding voltage of two position offsets. voltage, so on the basis of Embodiment 4, the position sensor online verification device of this embodiment also includes: a third judging unit 4033, a fourth judging unit 4034 and a second updating unit 4042, see FIG. 5, wherein, the initialization The voltage unit 401 is connected to the real-time voltage sampling unit 402, the real-time voltage sampling unit 402 is connected to the first judging unit 4031 and the third judging unit 4033, the first judging unit 4031 is connected to the second judging unit 4032, and the second judging unit 4032 is connected to the second judging unit 4032. An updating unit 4041 is connected; the third judging unit 4033 is connected to the fourth judging unit 4034, and the fourth judging unit 4034 is connected to the second updating unit 4042; the first updating unit 4041 and the second updating unit 4042 are connected to the characteristic curve generating unit 405 , the characteristic curve generating unit 405 is connected to the real-time voltage sampling unit 402 , and the filtering unit 406 is connected to the real-time voltage sampling unit 402 separately.

本实施例位置传感器校验装置的工作原理是:初始化电压单元401初始化第一位置偏移量在特性曲线上对应的电压和第二位置偏移量在特性曲线上对应的电压;实时电压采样单元402对实时电压进行采样,采样的同时滤波单元406对电压进行滤波;第一判断单元4031判断一定时间范围内该实时采样电压是否保持在第一阈值范围内,如果是,则激活第二判断单元4032,第二判断单元4032判断该段时间内电压波动幅度是否保持在第二阈值范围内,如果是,则激活第一更新单元4041,第一更新单元4041将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值;同时,第三判断单元4033判断该时间范围内实时采样电压是否保持在第三阈值范围内,如果是,则激活第四判断单元4034,第四判断单元4034判断该段时间范围内实时电压波动幅度是否保持在第四阈值范围内,如果是,则激活第二更新单元4042,第二更新单元4042将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值;特性曲线生成单元405以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,然后激活实时电压采样单元,以便循环往复生成特性曲线,使特性曲线在机器运行过程中始终保持准确。 The working principle of the position sensor verification device in this embodiment is: the initialization voltage unit 401 initializes the voltage corresponding to the first position offset on the characteristic curve and the voltage corresponding to the second position offset on the characteristic curve; the real-time voltage sampling unit 402 samples the real-time voltage, and the filter unit 406 filters the voltage while sampling; the first judging unit 4031 judges whether the real-time sampled voltage remains within the first threshold range within a certain time range, and if so, activates the second judging unit 4032, the second judging unit 4032 judges whether the voltage fluctuation amplitude remains within the second threshold range within this period of time, and if so, activates the first updating unit 4041, and the first updating unit 4041 updates the first position offset in the characteristic curve The corresponding voltage is updated to the real-time sampled voltage mean value within the time range; at the same time, the third judging unit 4033 judges whether the real-time sampled voltage within the time range remains within the third threshold range, and if so, activates the fourth judging unit 4034, The fourth judging unit 4034 judges whether the real-time voltage fluctuation amplitude within the period of time remains within the fourth threshold range, and if so, activates the second updating unit 4042, and the second updating unit 4042 updates the second position offset in the characteristic curve The corresponding voltage is updated as the real-time sampled voltage average value within the time range; the characteristic curve generation unit 405 uses the first position offset and the voltage corresponding to the updated first position offset and the second position offset and the corresponding voltage to renew Generate the characteristic curve of the position sensor, and then activate the real-time voltage sampling unit, so as to generate the characteristic curve repeatedly, so that the characteristic curve is always accurate during the operation of the machine.

尽管前述的位置传感器校验装置实施例可以实现本申请的发明目的,但是,在该实施例中,每进行一次校验都需要根据预设的特性曲线初始化校验位置开度对应的电压值,然而,在实际应用中,可能只需要初始化一次电压值即可,在机器工作过程中,随时根据滤波后的实时采样电压和所对应的位置开度进行校验。另外,由于本发明对几个位置开度进行校验不作具体限定,也对位置开度的具体数值不作限定。为了使得校验的特性准确更加准确,优选位置开度的最小和/或最大值进行校验,由于其基本相似与方法实施例,所以此处不多赘述。 Although the aforementioned embodiment of the position sensor verification device can achieve the purpose of the invention of the present application, in this embodiment, each time a verification is performed, the voltage value corresponding to the opening of the verification position needs to be initialized according to the preset characteristic curve, However, in practical applications, it may only be necessary to initialize the voltage value once. During the working process of the machine, it can be verified at any time according to the filtered real-time sampling voltage and the corresponding position opening. In addition, since the present invention does not specifically limit the verification of several position openings, the specific numerical value of the position openings is also not limited. In order to make the characteristics of the verification more accurate, the minimum and/or maximum value of the position opening is preferably verified. Since they are basically similar to the method embodiments, they will not be described here.

以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。 The foregoing is only a specific embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, some improvements and modifications can also be made without departing from the principle of the present invention. It should be regarded as the protection scope of the present invention.

Claims (10)

1.一种位置传感器在线校验方法,其特征在于,初始化第一位置偏移量和第二位置偏移量在特性曲线上各自对应的电压,所述校验方法包括:1. A position sensor online calibration method, characterized in that, initializing the respective voltages corresponding to the first position offset and the second position offset on the characteristic curve, the calibration method comprising: 对位置传感器输出的实时电压进行采样,判断一定时间范围内实时采样电压是否保持在第一阈值范围内,如果是,则判断该时间范围内电压波动幅度是否保持在第二阈值范围内,如果是,则将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,以实现校验。Sampling the real-time voltage output by the position sensor, judging whether the real-time sampling voltage remains within the first threshold range within a certain time range, and if so, judging whether the voltage fluctuation range within the time range remains within the second threshold range, if yes , then the voltage corresponding to the first position offset in the characteristic curve is updated to the real-time sampled voltage average value within the time range, and the voltage corresponding to the first position offset and the updated first position offset is compared with the second position The offset and the corresponding voltage regenerate the characteristic curve of the position sensor for calibration purposes. 2.根据权利要求1所述的位置传感器在线校验方法,其特征在于,所述方法还包括:2. The position sensor online verification method according to claim 1, wherein the method further comprises: 判断一定时间范围内实时采样电压是否保持在第三阈值范围内,如果是,则判断该时间范围内电压波动幅度是否保持在第四阈值范围内,如果是,则将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值,以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和更新后第二位置偏移量对应的电压重新生成位置传感器的特性曲线。Judging whether the real-time sampling voltage remains within the third threshold range within a certain time range, and if so, then judging whether the voltage fluctuation range within the time range remains within the fourth threshold range, and if so, offsetting the second position in the characteristic curve to The voltage corresponding to the displacement is updated as the real-time sampled voltage average value within the time range, and the voltage corresponding to the first position offset and the updated first position offset is compared with the second position offset and the updated second position offset The voltage corresponding to the displacement regenerates the characteristic curve of the position sensor. 3.根据权利要求2所述的位置传感器在线校验方法,其特征在于,所述第一位置偏移量为最小位置偏移量,所述第二位置偏移量为最大位置偏移量。3 . The online verification method of a position sensor according to claim 2 , wherein the first position offset is a minimum position offset, and the second position offset is a maximum position offset. 4 . 4.根据权利要求1所述的位置传感器在线校验方法,其特征在于,设定第一位置偏移量在特性曲线上对应的电压为u1,第二位置偏移量在特性曲线上对应的电压为u2,所述第一阈值范围为[u1-x%|u2-u1|,u1+x%|u2-u1|],所述第二阈值范围为[0,y%|u2-u1|],其中x>y,且x,y∈(0,100)。4. The online verification method of a position sensor according to claim 1, wherein the voltage corresponding to the first position offset on the characteristic curve is set as u 1 , and the second position offset corresponds to u on the characteristic curve. The voltage is u 2 , the first threshold range is [u 1 -x%|u 2 -u 1 |, u 1 +x%|u 2 -u 1 |], and the second threshold range is [0 , y%|u 2 -u 1 |], where x>y, and x,y∈(0,100). 5.根据权利要求2所述的位置传感器在线校验方法,其特征在于,设定第一位置偏移量在特性曲线上对应的电压为u1,第二位置偏移量在特性曲线上对应的电压为u2,所述第三阈值范围为[u2-x%|u2-u1|,u2+x%|u2-u1|],所述第四阈值范围为[0,y%|u2-u1|],其中x>y,且x,y∈(0,100)。5. The online verification method of a position sensor according to claim 2, wherein the voltage corresponding to the first position offset on the characteristic curve is set as u 1 , and the second position offset corresponds to u on the characteristic curve. The voltage is u 2 , the third threshold range is [u 2 -x%|u 2 -u 1 |, u 2 +x%|u 2 -u 1 |], and the fourth threshold range is [0 , y%|u 2 -u 1 |], where x>y, and x,y∈(0,100). 6.根据权利要求4或5所述的位置传感器在线校验方法,其特征在于,所述x∈(0,10],所述y∈(0,5]。6. The online verification method of a position sensor according to claim 4 or 5, characterized in that, said x∈(0,10], said y∈(0,5]. 7.根据权利要求1或2所述的位置传感器在线校验方法,其特征在于,所述校验方法还包括:7. The position sensor online verification method according to claim 1 or 2, wherein the verification method further comprises: 在对位置传感器输出的实时电压进行采样的同时对电压进行滤波;或,filtering the voltage while sampling the real-time voltage output by the position sensor; or, 循环进行在所述重新生成位置传感器的特性曲线步骤后返回对位置传感器输出的实时电压进行采样步骤。After the step of regenerating the characteristic curve of the position sensor, return to the step of sampling the real-time voltage output by the position sensor in a loop. 8.一种位置传感器在线校验装置,其特征在于,所述装置包括:初始化电压单元、实时电压采样单元、第一判断单元、第二判断单元、第一更新单元和特性曲线生成单元,其中,8. An online verification device for a position sensor, characterized in that the device comprises: an initialization voltage unit, a real-time voltage sampling unit, a first judging unit, a second judging unit, a first updating unit and a characteristic curve generating unit, wherein , 所述初始化电压单元,用于初始化第一位置偏移量和第二位置偏移量在特性曲线上各自对应的电压;The initialization voltage unit is used to initialize the respective voltages corresponding to the first position offset and the second position offset on the characteristic curve; 所述实时电压采样单元,用于对位置传感器输出的实时电压进行采样;The real-time voltage sampling unit is used to sample the real-time voltage output by the position sensor; 所述第一判断单元,用于判断一定时间范围内该实时采样电压是否保持在第一阈值范围内,如果是,则激活第二判断单元;The first judging unit is used to judge whether the real-time sampling voltage remains within the first threshold range within a certain time range, and if so, activate the second judging unit; 所述第二判断单元,用于判断该时间范围内该实时采样电压的波动幅度是否保持在第二阈值范围内,如果是,则激活第一更新单元;The second judging unit is used to judge whether the fluctuation amplitude of the real-time sampling voltage within the time range is kept within the second threshold range, and if so, activate the first updating unit; 所述第一更新单元,用于将特性曲线中第一位置偏移量对应的电压更新为该时间范围内的实时采样电压均值;The first update unit is configured to update the voltage corresponding to the first position offset in the characteristic curve to the real-time sampled voltage average value within the time range; 所述特性曲线生成单元,用于以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和对应电压重新生成位置传感器的特性曲线,以实现校验。The characteristic curve generating unit is used to regenerate the characteristic curve of the position sensor with the first position offset and the updated voltage corresponding to the first position offset, the second position offset and the corresponding voltage, so as to realize the verification . 9.根据权利要求8所述的位置传感器在线校验装置,其特征在于,所述特性曲线生成单元,还用于以第一位置偏移量和更新后第一位置偏移量对应的电压与第二位置偏移量和更新后第二位置偏移量对应的电压重新生成位置传感器的特性曲线;9. The position sensor online verification device according to claim 8, wherein the characteristic curve generating unit is further configured to use the voltage corresponding to the first position offset and the updated first position offset and The second position offset and the updated voltage corresponding to the second position offset regenerate the characteristic curve of the position sensor; 所述装置还包括:第三判断单元、第四判断单元和第二更新单元,其中,The device further includes: a third judging unit, a fourth judging unit, and a second updating unit, wherein, 所述第三判断单元,用于判断一定时间范围内位置传感器输出的实时采样电压是否保持在第三阈值范围内,如果是,则激活第四判断单元;The third judging unit is used to judge whether the real-time sampling voltage output by the position sensor within a certain time range remains within the third threshold range, and if so, activate the fourth judging unit; 所述第四判断单元,用于判断该时间范围内该实时采样电压的波动幅度是否保持在第四阈值范围内,如果是,则激活第二更新单元;The fourth judging unit is used to judge whether the fluctuation amplitude of the real-time sampling voltage within the time range is kept within the fourth threshold range, and if so, activate the second updating unit; 所述第二更新单元,用于将特性曲线中第二位置偏移量对应的电压更新为该时间范围内的实时采样电压均值。The second update unit is configured to update the voltage corresponding to the second position offset in the characteristic curve to the real-time sampled voltage average value within the time range. 10.根据权利要求8或9所述的位置传感器在线校验装置,其特征在于,所述装置还包括滤波单元,用于对位置传感器输出的实时采样电压进行滤波;或,10. The position sensor online verification device according to claim 8 or 9, wherein the device further comprises a filter unit for filtering the real-time sampling voltage output by the position sensor; or, 所述特性曲线生成单元,还用于在重新生成位置传感器的特性曲线后激活实时电压采样单元。The characteristic curve generating unit is also used to activate the real-time voltage sampling unit after regenerating the characteristic curve of the position sensor.
CN201310275807.1A 2013-07-02 2013-07-02 A kind of position sensor on-line testing method and apparatus Expired - Fee Related CN103335587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310275807.1A CN103335587B (en) 2013-07-02 2013-07-02 A kind of position sensor on-line testing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310275807.1A CN103335587B (en) 2013-07-02 2013-07-02 A kind of position sensor on-line testing method and apparatus

Publications (2)

Publication Number Publication Date
CN103335587A CN103335587A (en) 2013-10-02
CN103335587B true CN103335587B (en) 2016-06-08

Family

ID=49243795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310275807.1A Expired - Fee Related CN103335587B (en) 2013-07-02 2013-07-02 A kind of position sensor on-line testing method and apparatus

Country Status (1)

Country Link
CN (1) CN103335587B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106218553B (en) * 2016-08-03 2018-09-11 北京新能源汽车股份有限公司 Method and device for learning minimum voltage of accelerator pedal sensor and vehicle control unit
CN111722546B (en) * 2020-06-30 2022-12-06 广东美的厨房电器制造有限公司 Control method and control device of sensor and cooking equipment
CN111829488A (en) * 2020-08-03 2020-10-27 成都华睿晶元电子科技有限公司 Power transmission line iron tower inclination monitoring system based on spatial attitude sensor and control method
CN114046319B (en) * 2021-11-11 2023-12-15 潍柴动力股份有限公司 AMT clutch position correction method and system
CN114858110B (en) * 2022-05-09 2023-12-15 潍柴动力股份有限公司 Detection method and device of clutch position sensor and vehicle
CN117516365B (en) * 2023-11-03 2024-10-22 武汉光谷航天三江激光产业技术研究院有限公司 ANSYS simulation-based angle sensor fuzzy calibration method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3571041B1 (en) * 2004-01-15 2004-09-29 株式会社帝国電機製作所 Detector and motor bearing wear detector
CN101398316A (en) * 2007-09-25 2009-04-01 奇瑞汽车股份有限公司 Method for demarcating motor rotor position sensor
CN201858990U (en) * 2010-11-23 2011-06-08 广州数控设备有限公司 Device for subdividing sine-cosine signals and encoding data of position sensor
CN103017811A (en) * 2012-11-22 2013-04-03 长沙中联消防机械有限公司 Device, method and system for controlling automatic calibration of sensor and engineering mechanical equipment
CN103063878A (en) * 2011-10-18 2013-04-24 中联重科股份有限公司 Device, system and method for verifying dynamic characteristics of speed or acceleration sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5013187B2 (en) * 2007-07-31 2012-08-29 アイシン精機株式会社 Shift lever position sensor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3571041B1 (en) * 2004-01-15 2004-09-29 株式会社帝国電機製作所 Detector and motor bearing wear detector
CN101398316A (en) * 2007-09-25 2009-04-01 奇瑞汽车股份有限公司 Method for demarcating motor rotor position sensor
CN201858990U (en) * 2010-11-23 2011-06-08 广州数控设备有限公司 Device for subdividing sine-cosine signals and encoding data of position sensor
CN103063878A (en) * 2011-10-18 2013-04-24 中联重科股份有限公司 Device, system and method for verifying dynamic characteristics of speed or acceleration sensor
CN103017811A (en) * 2012-11-22 2013-04-03 长沙中联消防机械有限公司 Device, method and system for controlling automatic calibration of sensor and engineering mechanical equipment

Also Published As

Publication number Publication date
CN103335587A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
CN103335587B (en) A kind of position sensor on-line testing method and apparatus
CN102891644B (en) Two-phase stepping motor driving circuit and motor fault detection method
CN105196294A (en) Reconfigurable mechanical arm decentralized control system and control method adopting position measuring
WO2005108763A3 (en) Method and apparatus for measuring and correcting an in-cylinder pressure measurement
JP2007533911A (en) Virtual cylinder pressure sensor with individual estimators for pressure related values
CN104950135A (en) LM_BP-algorithm-based temperature compensation method and system of micro-silicon accelerometer
CN103743435A (en) Multi-sensor data fusion method
CN106546361A (en) The reduction of nonlinearity erron in car force sensor
EP1760539A3 (en) Systems and methods for medium registration
CN104482269B (en) Accurate control method and accurate control system for piezoelectric valve
KR101832637B1 (en) Method for determining the valve opening moment in piezo servo-driven injectors
CN116753827A (en) Calibration method of brake pedal travel sensor
CN105571666B (en) Flow-compensated method and compensation device, flow sensor
CN105403354B (en) A kind of vacuum pressure test method based on differential pressure pick-up
CN102341583B (en) Method for processing a signal from a flow meter for measuring a gas flow in an internal combustion engine
JP2016090499A (en) Valve opening degree measurement method, valve opening degree measurement program, and vehicular simulator
CN107132378A (en) Method for running micromechanics z acceleration transducers
CN102384762B (en) For the method and apparatus of the practical limit of correcting sensor
CN112923885B (en) Differential error compensation-based magnetic bearing rotor displacement measurement method
CN110034709A (en) A kind of rotor position estimate method suitable for durface mounted permanent magnet synchronous motor
CN111400931B (en) A method and system for determining the yaw rate of a vehicle
CN204301765U (en) For sensor test and the calibration system of vehicle electric steering
CN114556092A (en) Humidity sensor diagnostic device
KR101208074B1 (en) Mems earth magnetic sensor correction method using igrf
WO2012150063A3 (en) Method and device for monitoring an angular orientation of a rotor in an electric motor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160608