CN106603037A - Smooth data processing method and system - Google Patents

Smooth data processing method and system Download PDF

Info

Publication number
CN106603037A
CN106603037A CN201510680880.6A CN201510680880A CN106603037A CN 106603037 A CN106603037 A CN 106603037A CN 201510680880 A CN201510680880 A CN 201510680880A CN 106603037 A CN106603037 A CN 106603037A
Authority
CN
China
Prior art keywords
motor
data
value
module
filter
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
CN201510680880.6A
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.)
State Owned Assets Management Co Ltd
Shenyang Siasun Robot and Automation Co Ltd
Original Assignee
State Owned Assets Management Co Ltd
Shenyang Siasun Robot and Automation 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 State Owned Assets Management Co Ltd, Shenyang Siasun Robot and Automation Co Ltd filed Critical State Owned Assets Management Co Ltd
Priority to CN201510680880.6A priority Critical patent/CN106603037A/en
Publication of CN106603037A publication Critical patent/CN106603037A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03HIMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS
    • H03H21/00Adaptive networks

Landscapes

  • Control Of Electric Motors In General (AREA)

Abstract

The invention relates to the technical field of robot control and particularly relates to a smooth data processing method and system. The method includes acquiring and storing the running parameters of a motor; performing smooth data processing of the running parameters of the motor to obtain a new sampling value; and transmitting the new sampling value to the motor after three rounds of calculation to realize the closed loop control of the motor. According to the method, the current, position, and speed information acquired by the motor is transmitted to a control module to carry out the closed loop control after being subjected to the data smoothing processing, the disturbance signal caused by the hardware interference can be effectively reduced, the useless burrs can be filtered, so that the sampling result is more close to the reality, the optimal control of the motor is achieved, the motor running performance is improved, and the running smoothness is increased. Therefore, the robot can run more stable.

Description

A kind of processing method and system of smoothed data
Technical field
The present invention relates to technical field of robot control, more particularly to a kind of processing method and system of smoothed data.
Background technology
The smoothing processing of data, for the digital display circuit with the presence of interference is very important, is the premise of data statisticss and analysis, It is a most loaded down with trivial details link in information system.Existing hardware is smoothed, as the elements such as resistance to be used, electric capacity, inductance come Circuit is built, the problems such as considering impedance matching is needed, and limited precision, element used is to voltage, temperature, noise-sensitive. Hardware element intercouples, and produces interference signal, unfavorable to original signal.
The content of the invention
For the deficiencies in the prior art, the present invention provides a kind of processing method and system of smoothed data.A kind of place of smoothed data Reason method includes:Gather and preserve the operational factor of motor;The operational factor of motor is carried out into smoothed data process, obtains new Sampled value;New sampled value is sent to into motor after the calculating of three rings, the closed loop control to motor is realized.
Preferably, the operational factor includes the positional value of current value, velocity amplitude and the code-disc of motor feedback.
Preferably, the operational factor of motor is carried out into smoothed data process, obtains new sampled value, specially:The electricity that will be preserved The maximum of machine operational factor and minima are deleted;Adjustment filter factor;Judge the change of gathered data whether towards same side To;When the change of gathered data is towards same direction, judge difference between this sampled value and last time filter result whether More than the threshold value for arranging;If greater than the threshold value for arranging, then when filter factor and Filter Counter increment and be more than enumerator After maximum, wave filter maximum is taken, obtain the filter factor after data processing;Obtain new according to the filter factor after process Sampled value.
Preferably, whether the change for judging gathered data is specially towards same direction:If double sampling knot When fruit is big than previous filter result, then it is assumed that the change direction of gathered data is consistent twice, now Filter Counter Value Jia 1.
Preferably, when whether the difference between this sampled value and last time filter result is more than the threshold value for arranging, then wave filter is counted The value of device adds 2.
The present invention also provides a kind of smoothed data processing system, including control module, data acquisition module, drive module, coding Device, motor, data acquisition module is for the velocity amplitude from motor and encoder collection motor, positional value and current value;The control Data after process for being smoothed to the signal that data acquisition module is collected, and are carried out three ring calculating by molding block, Result is sent to into motor by drive module;
Preferably, the control module includes memory module, coefficient adjustment module and computing module, and the memory module stores number Maximum in module and minima are cast out after data receiver by the data collected according to acquisition module;Coefficient adjustment module is used for root Filter factor is adjusted according to the result of data sampling, obtains new sampled value;Computing module is for new sampled value is carried out Three rings are sent to motor by drive module after calculating, and realize the closed loop control to motor.
Beneficial effects of the present invention are:Adopt with the aforedescribed process, the electric current of motor collection, position, velocity information are carried out into data Control module is passed to after smoothing processing carries out closed loop control, can effectively reduce the disturbing signal that hardware interference brings, filter nothing Burr, makes sampled result closer to the control more excellent to motor when true, is reached, improves motor operation performance, increase Traveling comfort.So that robot can run it is more stable.
Description of the drawings
Process flow figures of the Fig. 1 for a kind of smoothed data of one embodiment of the invention.
Methods of adjustment of the Fig. 2 for one embodiment of the invention filter factor.
Fig. 3 is a kind of smoothed data processing system structure chart of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the present invention is described further.
Embodiment one
The present invention provides a kind of processing method of smoothed data, comprises the steps:
S10:Gather and preserve the operational factor of motor.
The motor code-disc operational factor includes the positional value of current value, velocity amplitude and the code-disc of motor feedback.
S20:The operational factor of motor is carried out into smoothed data process, new sampled value is obtained.
S30:New sampled value is sent to into motor after the calculating of three rings, the closed loop control to motor is realized.
Embodiment two
The present invention provides a kind of processing method of smoothed data, comprises the steps:
S10:Gather and preserve the operational factor of motor.
The motor code-disc operational factor includes the positional value of current value, velocity amplitude and the code-disc of motor feedback.
S20:The operational factor of motor is carried out into smoothed data process, new sampled value is obtained.
Specifically include:
S201:The maximum and minima of the motor operating parameter for preserving are deleted.
The memory space of one regular length is set, for caching the motor operating parameter of collection, casts out the maximum in memory space Value and minima, are considered as interference signal.
S202:Adjustment filter factor.
Filter factor is calculated according to formula (1).
In above-mentioned formula, α is filter factor, and span is 0-1, and T is delay time, TsFor the sampling period.
S203:Judge the change of gathered data whether towards same direction.
First, it is determined that whether the change of the motor operating parameter of collection is towards same direction, if double sampled result When big than previous filter result, then it is assumed that the change direction of gathered data is consistent twice, and the weights of new sampled value are improved, The value of Filter Counter adds 1, continues executing with step S24.Otherwise it is assumed that change direction is inconsistent, show that gathered data has shake, The technology of wave filter is reset, new sampled value is ignored.
S204:Judge the difference between this sampled value and last time filter result whether more than the threshold value for arranging.
When whether the difference between this sampled value and last time filter result is more than the threshold value for arranging, show that data variation is very fast, Now, filter factor is improved, the value of Filter Counter adds 2.
S205:When filter factor and Filter Counter increment and after more than enumerator maximum, take wave filter maximum, obtain Obtain the filter factor after data processing.
S206:New sampled value is obtained according to the filter factor after process.
Specific formula for calculation is:
Yn=αXn+(1-α)Yn-1 (2)
In above-mentioned formula, α is filter factor, and span is 0-1, XnIt is new sampled value, Yn-1It is last time filter result, YnFor this filter result.
It should be noted that filter factor determines the shared weight in this filter result of new sampled value.When filter factor it is less When, the algorithm of data smoothing process can filter some accidental interference, and filter result is highly stable, but sensitivity is low, when When input data occurs very fast change, filter result needs progressively keep up with the change of input through repeatedly filtering, thus, with Die down with performance.When filter factor takes intermediate value, the result of data smoothing process and sensitivity take intermediate value, and performance is common, Filter result is more smoother than sampled data, but can not eliminate the impact of interference value.When filter factor takes it is larger when, data put down The sliding result for processing is with no longer obvious.
Because sensitivity and smoothness are conflicting, need to find a balance, in the system acceptable range of sensitivity It is interior to obtain smoothness as well as possible.When data quickly change, filter result is required to track input signal in time, sensitive Degree is even more important;When data input variation tendency is steady, when a fixing point is fluctuated up and down, filter result is preferential with smoothness.
For more preferable smoothed data, design dynamic adjustment filter factor, and the number of significant digit of growth data.Adjustment principle is: When data quickly change, filter result can track input signal in time, and the Significant Change of input data is faster, system Sensitivity also should be increased therewith, take sensitivity preferential principle;When data tendency it is steady, and in upper and lower certain particular range During fluctuation, filter result needs to tend to be steady, with smoothness preferential principle;After data stabilization, filter result can be approached simultaneously Eventually equal to sampled data, eliminates because decimal casts out the error brought.
S30:New sampled value is sent to into motor after the calculating of three rings, the closed loop control to motor is realized
Embodiment three
Present invention also offers a kind of processing system of smoothed data, as shown in Figure 3, the system includes control module 10, number According to acquisition module 20, drive module 30, encoder 40, motor 50.Communication connection between each module.
Wherein, data acquisition module 20 is for from motor 50 and the collection velocity amplitude of motor of encoder 40, positional value and current value, And by the data is activation of collection to control module 10.The data acquisition module 20 is a FPGA.
The control module 10, for being smoothed to the signal that data acquisition module 20 is collected.And by after process Data carry out three ring calculating, and the result of calculating is sent to motor 50 by drive module 30.Wherein, control module 10 includes depositing Storage module 11, coefficient adjustment module 12 and computing module 13.11 data storage acquisition module 20 of the memory module is collected Data, the data include positional value, current value and the velocity amplitude of code-disc.By maximum in module and minimum after data receiver Value is cast out.
Coefficient adjustment module 12 is adjusted to filter factor for the result according to data sampling.The coefficient adjustment module 12 Including walking direction module 121, difference judge module 122, numerical value judge module 123 and sampled value acquisition module 124.Direction Whether judge module 121 is used for the data variation for judging double sampling towards same direction, if double sampled result When big than previous filter result, then it is assumed that the change direction of gathered data is consistent twice, and the weights of new sampled value are improved, The value of Filter Counter adds 1.Difference judge module 122 is for when the data variation direction of double sampling is consistent, judging to adopt Difference between sample value and last time filter result, during if greater than the threshold value for arranging, shows that data variation is very fast, now, will filter Wave system number is improved, and the value of Filter Counter adds 2.Numerical value judge module 123 is used to judge filter factor and Filter Counter Increment and whether be more than enumerator maximum, such as larger than then take wave filter maximum, obtain the filter factor after data processing. Sampled value acquisition module 124 is for according to the new sampled value of the filter factor acquisition after process.
, for carrying out being sent to motor 50 by drive module 30 after three ring calculating new sampled value, it is right to realize for computing module 13 The closed loop control of motor 50.
Merely illustrating the principles of the invention described in above-described embodiment and description and most preferred embodiment, without departing from essence of the invention On the premise of god and scope, the present invention also has various changes and modifications, and these changes and improvements both fall within this claimed In bright scope.

Claims (7)

1. a kind of processing method of smoothed data, it is characterised in that comprise the steps:
Gather and preserve the operational factor of motor;
The operational factor of motor is carried out into smoothed data process, new sampled value is obtained;
New sampled value is sent to into motor after the calculating of three rings, the closed loop control to motor is realized.
2. processing method as claimed in claim 1, it is characterised in that the operational factor include motor feedback current value, The positional value of velocity amplitude and code-disc.
3. processing method as claimed in claim 1, it is characterised in that the operational factor of motor is carried out into smoothed data process, New sampled value is obtained, specially:
The maximum and minima of the motor operating parameter for preserving are deleted;
Adjustment filter factor;
Judge the change of gathered data whether towards same direction;
When the change of gathered data is towards same direction, judge difference between this sampled value and last time filter result whether More than the threshold value for arranging;
If greater than the threshold value for arranging, then when filter factor and Filter Counter increment and after more than enumerator maximum, take Wave filter maximum, obtains the filter factor after data processing;
New sampled value is obtained according to the filter factor after process.
4. processing method as claimed in claim 3, it is characterised in that whether the change for judging gathered data is towards same Individual direction is specially:If double sampled result is big than previous filter result, then it is assumed that gathered data twice Change direction it is consistent, now the value of Filter Counter adds 1.
5. processing method as claimed in claim 3, it is characterised in that the difference between this sampled value and last time filter result Whether value is more than the threshold value for arranging, then the value of Filter Counter adds 2.
6. a kind of processing system of smoothed data, it is characterised in that include:Control module, data acquisition module, drive module, Encoder, motor,
Data acquisition module is for the velocity amplitude from motor and encoder collection motor, positional value and current value;
The control module, for being smoothed to the signal that data acquisition module is collected, and the data after process is entered Three ring of row is calculated, and result is sent to motor by drive module.
7. processing system as claimed in claim 6, it is characterised in that the control module includes memory module, coefficient adjustment Module and computing module,
Maximum in module and minima are given up after data receiver by the data that the memory module data storage acquisition module is collected Go;
Coefficient adjustment module is adjusted to filter factor for the result according to data sampling, obtains new sampled value;
Computing module for carrying out being sent to motor by drive module after three ring calculating new sampled value, close to motor by realization Ring is controlled.
CN201510680880.6A 2015-10-19 2015-10-19 Smooth data processing method and system Pending CN106603037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510680880.6A CN106603037A (en) 2015-10-19 2015-10-19 Smooth data processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510680880.6A CN106603037A (en) 2015-10-19 2015-10-19 Smooth data processing method and system

Publications (1)

Publication Number Publication Date
CN106603037A true CN106603037A (en) 2017-04-26

Family

ID=58555073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510680880.6A Pending CN106603037A (en) 2015-10-19 2015-10-19 Smooth data processing method and system

Country Status (1)

Country Link
CN (1) CN106603037A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109738921A (en) * 2018-12-12 2019-05-10 东软集团股份有限公司 Eliminate filtering method, device, storage medium and the electronic equipment of course shake
CN110086450A (en) * 2019-04-30 2019-08-02 天津万众科技股份有限公司 Angular displacement sensor and its data processing filtering method
CN112393795A (en) * 2020-11-25 2021-02-23 深圳市西城微科电子有限公司 Digital processing method of electronic scale and electronic scale
CN112498356A (en) * 2020-12-16 2021-03-16 中国煤炭科工集团太原研究院有限公司 Vehicle speed measuring and calculating method in mining electric four-wheel drive vehicle control system
CN112748658A (en) * 2021-01-07 2021-05-04 上海辛格林纳新时达电机有限公司 Constant-pressure water supply method and device, electronic equipment and storage medium
CN113640691A (en) * 2021-07-06 2021-11-12 深圳市正浩创新科技股份有限公司 Method and device for calculating discharge remaining time and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102879051A (en) * 2012-08-02 2013-01-16 长春启利电子科技有限公司 Vehicle instrument fuel alarm fluctuation processing method
US20140021893A1 (en) * 2012-07-20 2014-01-23 Denso Corporation Driver for switching element and control system for rotary machine using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140021893A1 (en) * 2012-07-20 2014-01-23 Denso Corporation Driver for switching element and control system for rotary machine using the same
CN102879051A (en) * 2012-08-02 2013-01-16 长春启利电子科技有限公司 Vehicle instrument fuel alarm fluctuation processing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张俊: "《匠人手记 一个单片机工作者的实践与思考》", 30 April 2008, 北京航空航天大学出版社 *
谢锦程: "基于微分进化算法的智能人工腿控制器的研究与开发", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109738921A (en) * 2018-12-12 2019-05-10 东软集团股份有限公司 Eliminate filtering method, device, storage medium and the electronic equipment of course shake
CN110086450A (en) * 2019-04-30 2019-08-02 天津万众科技股份有限公司 Angular displacement sensor and its data processing filtering method
CN112393795A (en) * 2020-11-25 2021-02-23 深圳市西城微科电子有限公司 Digital processing method of electronic scale and electronic scale
CN112498356A (en) * 2020-12-16 2021-03-16 中国煤炭科工集团太原研究院有限公司 Vehicle speed measuring and calculating method in mining electric four-wheel drive vehicle control system
CN112748658A (en) * 2021-01-07 2021-05-04 上海辛格林纳新时达电机有限公司 Constant-pressure water supply method and device, electronic equipment and storage medium
CN112748658B (en) * 2021-01-07 2023-06-06 上海辛格林纳新时达电机有限公司 Constant-pressure water supply method and device, electronic equipment and storage medium
CN113640691A (en) * 2021-07-06 2021-11-12 深圳市正浩创新科技股份有限公司 Method and device for calculating discharge remaining time and computer equipment
CN113640691B (en) * 2021-07-06 2022-02-22 深圳市正浩创新科技股份有限公司 Method and device for calculating discharge remaining time and computer equipment

Similar Documents

Publication Publication Date Title
CN106603037A (en) Smooth data processing method and system
CN104905795B (en) A kind of BLE networkings sleep monitor method and device
CN107289951B (en) Indoor mobile robot positioning method based on inertial navigation
CN107016384A (en) Step-recording method, mobile terminal and the storage medium of recognizable type of sports
CN103616034A (en) Network pedometer based on Bluetooth and step calculation method
CN105466456B (en) The method that antenna for satellite communication in motion stabilizing gyroscope dynamic eliminates null offset
CN107505024A (en) Detecting liquid level methods, devices and systems
CN104716974B (en) Data receiver circuit with shifted edges sampler
CN107345828A (en) Detecting liquid level methods, devices and systems
CN112244820A (en) Method for measuring running gait by using three-axis accelerometer
US20210049842A1 (en) Method for Calculating Tread Frequency of Bicycle, Wearable Device, and Storage Medium
CN104056442A (en) Intelligent body building realization method, device and system
CN101651466A (en) Multi-path tracking method and multi-path tracking device
CN107835025A (en) A kind of electric load historical data self-adapting compressing method and system
EP3330674A1 (en) Method and apparatus for realizing step counting
CN104301060A (en) Node synchronous collecting method and system based on hardware triggering sampling
CN116567867A (en) FANET networking method and system based on position and speed prediction information
JP2014135987A (en) Sensor terminal for acquiring signal including quasi-periodic delimiter pulse, and signal acquisition method
CN103095249A (en) Median filtering circuit and method thereof
CN108776259A (en) Power analyzer based on digital bandwidth restriction technologies
CN113790734A (en) Step counting method and system based on swing arm shaft and terminal equipment
CN211291497U (en) Frequency modulation MEMS gyroscope rate analysis device
Ko et al. A patient-centered medical environment with wearable sensors and cloud monitoring
CN113397497A (en) Signal processing method and device and electronic equipment
CN107462300A (en) Signal processing method, device and detecting liquid level system

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Hunnan New District Jinhui street in Shenyang of Liaoning province 110168 City No. 16

Applicant after: Shenyang Xinsong Robert Automation Co., Ltd.

Applicant after: Chinese Academy of Sciences Holdings Limited

Address before: Hunnan New District Jinhui street in Shenyang of Liaoning province 110168 City No. 16

Applicant before: Shenyang Xinsong Robert Automation Co., Ltd.

Applicant before: State owned Assets Management Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426