CN111965379A - Speed signal filtering system and filtering method based on potentiometer type sensor - Google Patents

Speed signal filtering system and filtering method based on potentiometer type sensor Download PDF

Info

Publication number
CN111965379A
CN111965379A CN202010838610.4A CN202010838610A CN111965379A CN 111965379 A CN111965379 A CN 111965379A CN 202010838610 A CN202010838610 A CN 202010838610A CN 111965379 A CN111965379 A CN 111965379A
Authority
CN
China
Prior art keywords
speed signal
speed
filtering
filter
signal
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
CN202010838610.4A
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.)
Guizhou Aerospace Linquan Motor Co Ltd
Original Assignee
Guizhou Aerospace Linquan Motor 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 Guizhou Aerospace Linquan Motor Co Ltd filed Critical Guizhou Aerospace Linquan Motor Co Ltd
Priority to CN202010838610.4A priority Critical patent/CN111965379A/en
Publication of CN111965379A publication Critical patent/CN111965379A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01PMEASURING LINEAR OR ANGULAR SPEED, ACCELERATION, DECELERATION, OR SHOCK; INDICATING PRESENCE, ABSENCE, OR DIRECTION, OF MOVEMENT
    • G01P3/00Measuring linear or angular speed; Measuring differences of linear or angular speeds
    • G01P3/42Devices characterised by the use of electric or magnetic means
    • G01P3/44Devices characterised by the use of electric or magnetic means for measuring angular speed
    • G01P3/46Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring amplitude of generated current or voltage
    • G01P3/465Devices characterised by the use of electric or magnetic means for measuring angular speed by measuring amplitude of generated current or voltage by using dynamo-electro tachometers or electric generator
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H17/00Networks using digital techniques
    • H03H17/02Frequency selective networks
    • H03H17/0202Two or more dimensional filters; Filters for complex signals
    • H03H2017/0207Median filters

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Transmission And Conversion Of Sensor Element Output (AREA)

Abstract

The invention provides a speed signal filtering system and a filtering method based on a potentiometer sensor, wherein the filtering system comprises an AD sampling circuit, a median filter, a mean value filter and a low-pass filter which are sequentially connected in series; the filtering method comprises the steps of obtaining a speed signal by a T speed measurement method, filtering an abnormal value with large fluctuation in the speed signal through a median filter, smoothing the speed signal through an average filter, and filtering a high-frequency component in the speed signal through a low-pass filter. By adopting the technical scheme of the invention, the original speed signal is directly obtained by the T speed measurement method, the speed measurement method is simple and rapid, and the abnormal value with large fluctuation in the speed signal is filtered by the median filter, the average filter is used for filtering and smoothing the speed signal, and the low-pass filter is used for filtering the high-frequency component in the speed signal, so that the finally obtained speed signal has higher reliability, anti-interference performance and higher feasibility and can be used as the feedback speed signal of the steering engine.

Description

Speed signal filtering system and filtering method based on potentiometer type sensor
Technical Field
The invention relates to the technical field of motors, in particular to a speed signal filtering system and a speed signal filtering method based on a potentiometer type sensor.
Background
The potentiometer type sensor is a low-cost and high-reliability position sensor capable of converting position signals into voltage signals, and is suitable for being applied to the field of civil industrial products with strict requirements on cost, such as robot servo steering engines. However, in the robot servo steering engine, not only an accurate position but also a rotational speed thereof need to be controlled. Generally, due to the principle nature of potentiometers, they typically have a limited range of rotation angles with reliable accuracy, typically within 300 °. When the angle is rotated from hundreds of degrees to several degrees, the situation that the resolving angle is not correct can occur because the voltage signal cannot be suddenly changed, and the calculated speed can have large fluctuation and is difficult to be directly utilized.
Based on this, this patent aims to propose a filtering method of the speed signal. And resolving a position signal according to a potentiometer by adopting a T speed measurement method to obtain an original speed signal.
Disclosure of Invention
In order to solve the technical problem, the invention provides a speed signal filtering system based on a potentiometer type sensor.
The invention is realized by the following technical scheme.
The invention provides a speed signal filtering system based on a potentiometer type sensor, which comprises an AD sampling circuit, a median filter, an average filter and a low-pass filter, wherein the AD sampling circuit, the median filter, the mean filter and the low-pass filter are sequentially connected in series;
an AD sampling circuit: the AD sampling circuit comprises a potentiometer sensor and is used for collecting a potentiometer sensor signal so as to obtain a real-time position signal and obtain a speed signal by adopting a T speed measurement method;
a median filter: the median filter is used for filtering abnormal values with large fluctuation in the speed signals from the AD sampling circuit;
an average value filter: the mean filter is used for carrying out filtering smoothing processing on the speed signal from the median filter;
a low-pass filter: the low-pass filter is used for filtering out high-frequency components in the speed signal from the mean value filter.
The AD sampling circuit comprises a 12-bit main control chip.
The low-pass filter is a first-order low-pass filter with a cut-off frequency of 100 Hz.
In addition, the invention also provides a filtering method using the speed signal filtering system based on the potentiometer type sensor, which comprises the following steps:
acquiring a potentiometer type sensor signal through an AD sampling circuit so as to acquire a real-time position signal, acquiring a speed signal by adopting a T speed measurement method, filtering an abnormal value with large fluctuation in the speed signal by a median filter, filtering and smoothing the speed signal by an average filter, and filtering a high-frequency component in the speed signal by a low-pass filter in sequence, and then finishing.
The speed signal acquisition by the T speed measurement method comprises the following steps:
and acquiring a voltage signal output by a potentiometer sensor through a 12-bit main control chip arranged in the AD sampling circuit, controlling the range of the output voltage signal to be 0V-5V, reading a digital signal to be 0-4095, and reading a corresponding angle to be 0-359 degrees, wherein when the read angle signal changes to 10 degrees, reading a corresponding time count value Tcnt, and then, a speed signal is V which is 10 degrees/Tcnt.
The filtering of the abnormal value with large fluctuation in the velocity signal by the median filter means:
step 1: setting the filtering window number k of a median filter, wherein k is a positive integer, and then storing the acquired speed signal into a speed array with k members;
step 2: reading the current latest speed signal, and updating all the speed signals in the speed array in sequence;
and step 3: backing up all data in the speed array;
and 4, step 4: and sorting all the data in the speed array by adopting a bubbling algorithm and outputting intermediate values of all the data.
The number k of filter windows is 19.
The filtering and smoothing processing of the mean filter means that:
continuously acquiring n speed signals, wherein n is a natural number, and storing the n speed signals as a speed array X [ n ]]Through formula
Figure BDA0002640605110000031
The arithmetic mean is obtained by calculation.
The number n of the speed signals is 20.
The invention has the beneficial effects that: by adopting the technical scheme of the invention, the original speed signal is directly obtained by the T speed measurement method, the speed measurement method is simple and rapid, and the abnormal value with large fluctuation in the speed signal is filtered by the median filter, the average filter is used for filtering and smoothing the speed signal, and the low-pass filter is used for filtering the high-frequency component in the speed signal, so that the finally obtained speed signal has higher reliability, anti-interference performance and higher feasibility and can be used as the feedback speed signal of the steering engine.
Drawings
FIG. 1 is a process flow diagram of the invention.
Detailed Description
The technical solution of the present invention is further described below, but the scope of the claimed invention is not limited to the described.
As shown in FIG. 1, the invention provides a speed signal filtering system based on a potentiometer type sensor, which comprises an AD sampling circuit, a median filter, an average filter and a low-pass filter which are sequentially connected in series;
an AD sampling circuit: the AD sampling circuit comprises a potentiometer sensor and is used for collecting a potentiometer sensor signal so as to obtain a real-time position signal and obtain a speed signal by adopting a T speed measurement method; in addition, the AD sampling circuit preferably includes a 12-bit main control chip.
A median filter: the median filter is used for filtering abnormal values with large fluctuation in the speed signals from the AD sampling circuit;
an average value filter: the mean filter is used for carrying out filtering smoothing processing on the speed signal from the median filter;
a low-pass filter: the low pass filter is used to filter out the high frequency components in the velocity signal from the averaging filter. The low-pass filter is a first-order low-pass filter with a cut-off frequency of 100 Hz.
In addition, the invention also provides a filtering method using the speed signal filtering system based on the potentiometer type sensor, which comprises the following steps:
acquiring a potentiometer type sensor signal through an AD sampling circuit so as to acquire a real-time position signal, acquiring a speed signal by adopting a T speed measurement method, filtering an abnormal value with large fluctuation in the speed signal by a median filter, filtering and smoothing the speed signal by an average filter, and filtering a high-frequency component in the speed signal by a low-pass filter in sequence, and then finishing.
Further, acquiring the speed signal by using a T-speed measurement method means:
the output voltage signal of the potentiometer sensor is collected through a 12-bit main control chip arranged in an AD sampling circuit, the output voltage signal range is controlled to be 0V-5V, the read digital signal is 0-4095, the corresponding angle is 0-359 degrees, when the read angle signal changes to 10 degrees, the corresponding time count value Tcnt is read, and the speed signal is V which is 10 degrees/Tcnt.
In addition, the filtering of the abnormal value with large fluctuation in the velocity signal by the median filter means:
step 1: setting the filtering window number k of a median filter, wherein k is a positive integer, and then storing the acquired speed signal into a speed array with k members; preferably, the number of filter windows k is 19.
Step 2: reading the current latest speed signal, and updating all the speed signals in the speed array in sequence;
and step 3: backing up all data in the speed array;
and 4, step 4: and sorting all the data in the speed array by adopting a bubbling algorithm and outputting intermediate values of all the data.
For example, when the number of set median filter windows is set to 19, then the speed memory array is X [19], with 19 members, all signals in the window are updated X [18-i ] ═ X [17-i ], and the current latest speed signal X [0] ═ V is read. And backing up all data in the buffer, wherein Xcopy [ i ] ═ X [ i ]. And then carrying out bubble sorting algorithm on the backed-up data, and finally outputting the intermediate value Xcopy of the data in the backup area [10 ].
The mean filter performs filter smoothing processing by:
continuously acquiring n speed signals, wherein n is a natural number, and storing the n speed signals as a speed array X [ n ]]Through formula
Figure BDA0002640605110000051
The arithmetic mean is obtained by calculation. Preferably, the number n of speed signals is 20.
By adopting the technical scheme of the invention, the original speed signal is directly obtained by the T speed measurement method, the speed measurement method is simple and rapid, and the abnormal value with large fluctuation in the speed signal is filtered by the median filter, the average filter is used for filtering and smoothing the speed signal, and the low-pass filter is used for filtering the high-frequency component in the speed signal, so that the finally obtained speed signal has higher reliability, anti-interference performance and higher feasibility and can be used as the feedback speed signal of the steering engine.

Claims (9)

1. A potentiometer-type sensor based speed signal filtering system, characterized by: the device comprises an AD sampling circuit, a median filter, an average filter and a low-pass filter which are sequentially connected in series;
an AD sampling circuit: the AD sampling circuit comprises a potentiometer sensor and is used for collecting a potentiometer sensor signal so as to obtain a real-time position signal and obtain a speed signal by adopting a T speed measurement method;
a median filter: the median filter is used for filtering abnormal values with large fluctuation in the speed signals from the AD sampling circuit;
an average value filter: the mean filter is used for carrying out filtering smoothing processing on the speed signal from the median filter;
a low-pass filter: the low-pass filter is used for filtering out high-frequency components in the speed signal from the mean value filter.
2. A potentiometric sensor-based speed signal filtering system as defined in claim 1 wherein: the AD sampling circuit comprises a 12-bit main control chip.
3. A potentiometric sensor-based speed signal filtering system as defined in claim 1 wherein: the low-pass filter is a first-order low-pass filter with a cut-off frequency of 100 Hz.
4. A filtering method using a potentiometric sensor based speed signal filtering system as defined in any one of claims 1 to 3 wherein: the method comprises the following steps:
acquiring a potentiometer type sensor signal through an AD sampling circuit so as to acquire a real-time position signal, acquiring a speed signal by adopting a T speed measurement method, filtering an abnormal value with large fluctuation in the speed signal by a median filter, filtering and smoothing the speed signal by an average filter, and filtering a high-frequency component in the speed signal by a low-pass filter in sequence, and then finishing.
5. The potentiometer sensor-based speed signal filtering method according to claim 4, wherein: the speed signal acquisition by the T speed measurement method comprises the following steps:
and acquiring a voltage signal output by a potentiometer sensor through a 12-bit main control chip arranged in the AD sampling circuit, controlling the range of the output voltage signal to be 0V-5V, reading a digital signal to be 0-4095, and reading a corresponding angle to be 0-359 degrees, wherein when the read angle signal changes to 10 degrees, reading a corresponding time count value Tcnt, and then, a speed signal is V which is 10 degrees/Tcnt.
6. The potentiometer sensor-based speed signal filtering method according to claim 4, wherein: the filtering of the abnormal value with large fluctuation in the velocity signal by the median filter means:
step 1: setting the filtering window number k of a median filter, wherein k is a positive integer, and then storing the acquired speed signal into a speed array with k members;
step 2: reading the current latest speed signal, and updating all the speed signals in the speed array in sequence;
and step 3: backing up all data in the speed array;
and 4, step 4: and sorting all the data in the speed array by adopting a bubbling algorithm and outputting intermediate values of all the data.
7. The potentiometer sensor-based speed signal filtering method according to claim 6, wherein: the number k of filter windows is 19.
8. The potentiometer sensor-based speed signal filtering method according to claim 4, wherein: the filtering and smoothing processing of the mean filter means that:
continuously acquiring n speed signals, wherein n is a natural number, and storing the n speed signals as a speed array X [ n ]]Through formula
Figure FDA0002640605100000021
The arithmetic mean is obtained by calculation.
9. The potentiometer sensor-based speed signal filtering method according to claim 8, wherein: the number n of the speed signals is 20.
CN202010838610.4A 2020-08-19 2020-08-19 Speed signal filtering system and filtering method based on potentiometer type sensor Pending CN111965379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010838610.4A CN111965379A (en) 2020-08-19 2020-08-19 Speed signal filtering system and filtering method based on potentiometer type sensor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010838610.4A CN111965379A (en) 2020-08-19 2020-08-19 Speed signal filtering system and filtering method based on potentiometer type sensor

Publications (1)

Publication Number Publication Date
CN111965379A true CN111965379A (en) 2020-11-20

Family

ID=73388495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010838610.4A Pending CN111965379A (en) 2020-08-19 2020-08-19 Speed signal filtering system and filtering method based on potentiometer type sensor

Country Status (1)

Country Link
CN (1) CN111965379A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1478835A (en) * 1973-06-01 1977-07-06 Stiftelsen Inst Mikrovags Velocity measuring device
CN101458096A (en) * 2007-12-12 2009-06-17 中国科学院沈阳自动化研究所 High-resolution attitude angle measuring method and device
CN101976048A (en) * 2010-08-25 2011-02-16 中国兵器工业第二〇五研究所 Handle controller signal processing method
US20140067124A1 (en) * 2012-08-28 2014-03-06 Matthew Murray Williamson Monitoring robot sensor consistency
CN104394411A (en) * 2014-11-28 2015-03-04 上海集成电路研发中心有限公司 Median filtering device and method
CN107241032A (en) * 2017-06-20 2017-10-10 四川建筑职业技术学院 Multi-channel electric steering gear control system based on brushless electric machine
CN108152527A (en) * 2017-12-14 2018-06-12 北京青云航空仪表有限公司 A kind of Digit Velocity method based on median-value filter
CN108631679A (en) * 2017-03-24 2018-10-09 湖南中车时代电动汽车股份有限公司 A kind of position signal filtering method and system
CN110311651A (en) * 2018-12-05 2019-10-08 林德(中国)叉车有限公司 A kind of filter method and filter device of the accelerator pedal potentiometer voltage signal of vehicle

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB1478835A (en) * 1973-06-01 1977-07-06 Stiftelsen Inst Mikrovags Velocity measuring device
CN101458096A (en) * 2007-12-12 2009-06-17 中国科学院沈阳自动化研究所 High-resolution attitude angle measuring method and device
CN101976048A (en) * 2010-08-25 2011-02-16 中国兵器工业第二〇五研究所 Handle controller signal processing method
US20140067124A1 (en) * 2012-08-28 2014-03-06 Matthew Murray Williamson Monitoring robot sensor consistency
CN104394411A (en) * 2014-11-28 2015-03-04 上海集成电路研发中心有限公司 Median filtering device and method
CN108631679A (en) * 2017-03-24 2018-10-09 湖南中车时代电动汽车股份有限公司 A kind of position signal filtering method and system
CN107241032A (en) * 2017-06-20 2017-10-10 四川建筑职业技术学院 Multi-channel electric steering gear control system based on brushless electric machine
CN108152527A (en) * 2017-12-14 2018-06-12 北京青云航空仪表有限公司 A kind of Digit Velocity method based on median-value filter
CN110311651A (en) * 2018-12-05 2019-10-08 林德(中国)叉车有限公司 A kind of filter method and filter device of the accelerator pedal potentiometer voltage signal of vehicle

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡登胜等: "发动机转速信号的检测及数字滤波方法", 《工程机械》 *

Similar Documents

Publication Publication Date Title
US20030160160A1 (en) Signal processing apparatus for encoder
CN110231845B (en) Control method and composite control system for seeker stabilization platform
CN108197339A (en) The dynamic displacement monitoring method of real time acceleration integral algorithm based on recurrent least square method
EP2975364A1 (en) Position sensor device and method for providing a filtered position signal
KR101883530B1 (en) Method and device for determining the rotor position and speed of a rotating field machine
CN114003045B (en) Target tracking method of photoelectric tracker, terminal and readable storage medium
CN111965379A (en) Speed signal filtering system and filtering method based on potentiometer type sensor
CN106199169A (en) A kind of intelligent high-accuracy voltage data collecting system and method
CN107561306B (en) Method for measuring rotating speed of wound-rotor motor based on rotor current
CN112350626B (en) Method and device for determining the rotational speed and the rotational angle of a motor shaft of a DC motor
CN109842350B (en) Mechanical positioning method based on analysis of current change rate
CN108828490A (en) Unmanned plane, electron speed regulator and its sample rate current calibration method, system
CN112560762B (en) Vehicle body rotation angle data processing method, device, controller and medium
Boggarpu et al. New learning algorithm for high-quality velocity measurement from low-cost optical encoders
CN114629389A (en) Position and speed information decoding scheme of motor sine and cosine encoder
CN107547024B (en) No speed sensor of no bearing PMSM
Kubus et al. A sensor fusion approach to angle and angular rate estimation
CN114781432B (en) Displacement resolving method based on multi-source information fusion and trend removal fluctuation analysis
CN116301081B (en) Speed control method, device, equipment and medium of inertia test equipment
CN116007663B (en) Method and system for real-time calculation of proximity sensor for undercarriage retraction system
DE19920968C2 (en) Arrangement and measuring method for detecting at least one movement-characteristic quantity of a moving measuring device body
CN109521256B (en) Small signal detection circuit and method for removing dead zone voltage
CN111865172B (en) Accurate estimation method for motor rotation speed of servo system
CN112611447B (en) Aviation engine rotor rotating speed self-adaptive tracking vibration fundamental frequency signal conditioning circuit
CN117781994B (en) Method, device and medium for testing rotary-variable sensor

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201120

RJ01 Rejection of invention patent application after publication