CN106100086A - A kind of charging current control method, device and terminal - Google Patents

A kind of charging current control method, device and terminal Download PDF

Info

Publication number
CN106100086A
CN106100086A CN201610635580.0A CN201610635580A CN106100086A CN 106100086 A CN106100086 A CN 106100086A CN 201610635580 A CN201610635580 A CN 201610635580A CN 106100086 A CN106100086 A CN 106100086A
Authority
CN
China
Prior art keywords
value
charging current
filtering output
output value
low pass
Prior art date
Application number
CN201610635580.0A
Other languages
Chinese (zh)
Inventor
莫斐
Original Assignee
广东欧珀移动通信有限公司
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 广东欧珀移动通信有限公司 filed Critical 广东欧珀移动通信有限公司
Priority to CN201610635580.0A priority Critical patent/CN106100086A/en
Publication of CN106100086A publication Critical patent/CN106100086A/en

Links

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters
    • H02J7/04Regulation of charging current or voltage

Abstract

Embodiments providing a kind of charging current control method, device and terminal, described method includes: obtain charge current sample value;Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain the filtering output value of described charge current sample value;Described filtering output value and setting charging current value are compared, obtains charging current deviation value;According to described charging current deviation value and the pid control algorithm including ratio, integration, differential control process, charging current is adjusted.Can effectively be weakened the sampling error of charging current value by the embodiment of the present invention, improve the accommodation accuracy of charging current, it is ensured that the stability of PID control system.

Description

A kind of charging current control method, device and terminal

Technical field

The present invention relates to charging and control technical field, be specifically related to a kind of charging current control method, device and terminal.

Background technology

At present, the charging process of the terminal such as smart mobile phone, panel computer is all to be carried out by special charge controlling chip Control, including to the monitoring of charging current and regulation etc..In practice, it has been found that existing charge control method easilys lead to reality There is discordance in the charging current value on border and the charging current value of setting, even there will be the situation of relatively large deviation, such as, if Fixed charging current value is 700mA, the charging current value that some terminals is actual can reach 745mA, and some terminal is actual Charging current value only has 670mA, there is bigger potential safety hazard when actual charging current value is higher than the charging current value set, And the charging current of reality can cause charging interval longer problem time lower than the charging current value set.

The size of charging current value can be adjusted by passing ratio, integration, differential pid control algorithm so that actual Charging current value as close as the charging current value set, thus can effectively shorten under the premise that security is guaranteed and fill The electricity time, preferably solve the problems referred to above.But pid control algorithm needs accurately to sample actual charging current value, Actual charging current value sampling error influences whether the convergence of PID control system time bigger, result even in PID and control system System concussion, largely effects on the practical adjustments effect of charging current value.Visible, the sampling error how weakening charging current value becomes For problem demanding prompt solution.

Summary of the invention

Embodiments provide a kind of charging current control method, device and terminal, can effectively weaken charged electrical The sampling error of flow valuve, improves the accommodation accuracy of charging current, it is ensured that the stability of PID control system.

Embodiment of the present invention first aspect provides a kind of charging current control method, including:

Obtain charge current sample value;

Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charging current The filtering output value of sampled value;

Described filtering output value and setting charging current value are compared, obtains charging current deviation value;

According to described charging current deviation value and include ratio, integration, differential control process pid control algorithm to charging Electric current is adjusted.

Embodiment of the present invention second aspect provides a kind of charging current adjusting means, including:

First acquiring unit, is used for obtaining charge current sample value;

Filter unit, for utilizing default wave digital lowpass filter that described charge current sample value is filtered, Filtering output value to described charge current sample value;

Comparing unit, for described filtering output value and setting charging current value being compared, obtains charging current inclined Difference;

Regulation unit, for according to described charging current deviation value and the PID including ratio, integration, differential control process Charging current is adjusted by control algolithm.

The embodiment of the present invention third aspect provides a kind of terminal, including: accumulator, memorizer and processor, wherein, Described memorizer stores batch processing, and described processor is for calling the program of storage in described memorizer, below execution Operation:

Obtain the charge current sample value of described accumulator;

Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charging current The filtering output value of sampled value;

Described filtering output value and setting charging current value are compared, obtains charging current deviation value;

According to described charging current deviation value and include ratio, integration, differential control process pid control algorithm to described The charging current of accumulator is adjusted.

Charge current sample value can be obtained by the embodiment of the present invention, utilize the wave digital lowpass filter preset that this is filled Electricity current sampling data is filtered, to obtain the filtering output value of this charge current sample value, by by this filtering output value and Setting charging current value compares and obtains charging current deviation value, controls to calculate further according to this charging current deviation value and PID Charging current is adjusted by method, inputs PID control system again, can effectively weaken after being filtered charge current sample value The sampling error of charging current value, improves the accommodation accuracy of charging current, it is ensured that the stability of PID control system.

Accompanying drawing explanation

For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be only some embodiments of the present invention, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other according to these accompanying drawings Accompanying drawing.

Fig. 1 is the first embodiment schematic flow sheet of a kind of charging current control method that the embodiment of the present invention provides;

Fig. 2 is the second embodiment schematic flow sheet of a kind of charging current control method that the embodiment of the present invention provides;

Fig. 3 is an example structure schematic diagram of a kind of charging current adjusting means that the embodiment of the present invention provides;

Fig. 4 is an example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.

Detailed description of the invention

Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments wholely.Based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under not making creative work premise Embodiment, broadly falls into the scope of protection of the invention.

Embodiments provide a kind of charging current control method, device and terminal, especially by pid control algorithm Charging current is adjusted, can effectively weaken the sampling error of charging current value, improve the accommodation accuracy of charging current, Ensure the stability of PID control system.It is described in detail individually below.

Terminal in the embodiment of the present invention can include that smart mobile phone is (such as Android phone, iOS mobile phone, Windows Phone mobile phone etc.), panel computer, palm PC, notebook computer, mobile internet device (MID, Mobile Internet Devices) or Wearable etc., above-mentioned terminal is only citing, and non exhaustive, including but not limited to above-mentioned terminal.

Referring to Fig. 1, the first embodiment flow process for a kind of charging current control method of embodiment of the present invention offer is shown It is intended to.Charging current control method described in the present embodiment, comprises the following steps:

101, charge current sample value is obtained.

In implementing, first need charging current is sampled, can be specifically periodically by current sample electricity The charging current of charging circuit is sampled by road, obtains charge current sample value.Wherein, current sampling circuit can include mould Number converter (Analog-to-Digital Converter, ADC) device, is turned the analog quantity of charging voltage by ADC device It is changed to digital quantity, obtains charging voltage value, more i.e. can get charging current with charging voltage value divided by the resistance of sampling resistor and adopt Sample value.Wherein, the sampling period of charging current specifically can select according to the design of PID control system, such as, sample week Phase can be 5s.

It is understood that the implementation of above-mentioned current sampling circuit is only citing, for the reality of current sampling circuit The border implementation embodiment of the present invention does not limits.

102, utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charging The filtering output value of current sampling data.

Concrete, the charge current sample value obtained above by current sampling circuit there may exist bigger error, for Reducing the error of charge current sample value, the wave digital lowpass filter that can charge current sample value input one be preset, with filter Composition (such as disturbing signal) except the cut-off frequency being higher than the wave digital lowpass filter preset in charging current, it is achieved to charging The error correction of current sampling data, obtains the filtering output value of charge current sample value.

Wherein, the wave digital lowpass filter preset specifically can use single order numeral RC low pass filter, single order numeral RC The expression formula of low pass filter can be designed as: yn=axn+(1-a)yn-1

Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnFor charge current sample Value, yn-1For last filtering output value, ynFiltering output value for this.

Further, the mentality of designing of the expression formula of single order numeral RC low pass filter can be such that

(1) obtain input x (t) of single order numeral RC low pass filter and export the differential equation of y (t):

(2) sampling period of default wave digital lowpass filter is set to T, the differential equation is carried out sliding-model control, if yn=y (nt), xn=x (nt), at RC > > T, when i.e. RC is far longer than T, can be converted into the differential equation: RC (yn-yn-1)+ yn=xn

(3) to RC (yn-yn-1)+yn=xnThe expression formula of single order numeral RC low pass filter: y is obtained after rewritingn=axn+ (1-a)yn-1

In the embodiment that some are feasible, in the scene that the terminal such as smart mobile phone, panel computer is charged, single order The sampling period of numeral RC low pass filter can be set to T=50ms, then sample frequency is 20Hz, based on single order numeral RC low pass Wave filter can not filter the interference signal higher than 0.5 sampling frequency, then preset cut-off frequency and can be set to 0.01Hz, thusThe most desirableAnd a is desirable

Now, the expression formula of single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1

103, described filtering output value and setting charging current value are compared, obtain charging current deviation value.

Concrete, in charging process, actual charging current value and setting charging current value (i.e. expected value) typically can There is deviation, such as, setting charging current value is 700mA, and the charging current value of reality may reach 745mA, it is also possible to Only 670mA.The filtering output value of single order numeral RC low pass filter and setting charging current value are done difference, obtains charging current Deviation value.

104, according to described charging current deviation value and include ratio, integration, differential control process pid control algorithm pair Charging current is adjusted.

In implementing, it is possible to use pid control algorithm, charging current is carried out by charging current deviation value as feedback Regulation, when filtering output value is more than setting charging current value, filtering output value deducts the charging that setting charging current value obtains Current deviation value is positive number, then now by control charging circuit, charging current is reduced.At filtering output value less than charging During current setting value, it is negative that filtering output value deducts the charging current deviation value that setting charging current value obtains, and the most now leads to Crossing control charging circuit makes charging current increase.Filtering output value is made to reach to set by repeatedly performing step 101~104 Condition, wherein, imposes a condition and may is that filtering output value is equal to setting charging current value, or, filtering output value and charged electrical The absolute value of the difference of stream setting value is less than or equal to preset value, such as 5mA, etc..

Wherein, the pid control algorithm in the embodiment of the present invention can also only include proportional component (Proportional, P), Any one or the combination of any two kinds, example in integral element (Integral, I) and differentiation element (Derivative, D) As, can be only with the PI link in pid control algorithm or PD link etc. in actual application.

Can obtain charge current sample value by current sampling circuit sampling by the embodiment of the present invention, utilization is preset This charge current sample value is filtered by wave digital lowpass filter, it is achieved the error correction to this charge current sample value, To the filtering output value of this charge current sample value, then this filtering output value and setting charging current value are compared and obtain Charging current deviation value, utilizes pid control algorithm, charging current deviation value is adjusted charging current as feedback, right Charge current sample value inputs PID control system after being filtered again, can effectively weaken the sampling error of charging current value, carry The accommodation accuracy of high charge current, it is ensured that the stability of PID control system.

Referring to Fig. 2, the second embodiment flow process for a kind of charging current control method of embodiment of the present invention offer is shown It is intended to.Charging current control method described in the present embodiment, comprises the following steps:

201, charge current sample value is obtained.

202, utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charging The filtering output value of current sampling data.

Concrete, above-mentioned charge current sample value there may exist bigger error, for reducing the mistake of charge current sample value Difference, can by charge current sample value input one preset wave digital lowpass filter, with filter in charging current higher than preset The composition (such as disturbing signal) of the cut-off frequency of wave digital lowpass filter, it is achieved the error correction to charge current sample value, Obtain the filtering output value of charge current sample value.

It should be noted that filtering output value can be to be filtered obtaining to this charge current sample value obtained Filtering output value, it is also possible to be the predetermined number (such as 3 obtained that the preset times (such as 3 times) before current time is sampled Secondary) charge current sample value be filtered after the meansigma methods of the filtering output value of predetermined number (such as 3 times) that respectively obtains, Wherein, meansigma methods can be arithmetic mean of instantaneous value or geometrical mean, averages and can be obviously improved charge current sample value Error correction effect.

Wherein, the wave digital lowpass filter preset specifically can use single order numeral RC low pass filter, single order numeral RC The expression formula of low pass filter can be designed as: yn=axn+(1-a)yn-1

Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnFor charge current sample Value, yn-1For last filtering output value, ynFiltering output value for this.

203, described filtering output value and setting charging current value are compared, obtain charging current deviation value.

204, described pid control algorithm is discrete type incremental timestamp algorithm, according to described charging current deviation value and Described pid control algorithm obtains the increment of adjustment of charging current.

205, utilize described increment of adjustment that charging current is adjusted.

In implementing, for reducing the misoperation impact on PID control system, reduce operand, and obtain preferably Controlling effect, in the embodiment of the present invention, pid control algorithm can use discrete type incremental timestamp algorithm, discrete type increment What formula pid control algorithm calculated is the increment of controlled quentity controlled variable, it is desirable to PID control system possesses the accumulation function of controlled quentity controlled variable increment, from And the increment of adjustment of charging current is may determine that according to charging current deviation value and discrete type incremental timestamp algorithm, and then On the basis of current regulated quantity, operate this increment of adjustment can realize the regulation to charging current.By repeatedly performing step 201~205 make filtering output value reach to impose a condition, and wherein, impose a condition and may is that filtering output value is equal to charging current Setting value, or, filtering output value is less than or equal to preset value, such as 5mA with the absolute value of the difference of setting charging current value, Etc..

Can obtain charge current sample value by current sampling circuit sampling by the embodiment of the present invention, utilization is preset This charge current sample value is filtered by wave digital lowpass filter, it is achieved the error correction to this charge current sample value, To the filtering output value of this charge current sample value, then this filtering output value and setting charging current value are compared and obtain Charging current deviation value, specifically used discrete type incremental timestamp algorithm, it is worth to charging current according to charging current deviation Increment of adjustment, utilize this increment of adjustment can realize the regulation to charging current, after charge current sample value is filtered Input discrete type incremental timestamp system again, can effectively weaken the sampling error of charging current value, improve charging current Accommodation accuracy, it is ensured that the stability of PID control system.

Refer to Fig. 3, for an example structure signal of a kind of charging current adjusting means that the embodiment of the present invention provides Figure.Charging current adjusting means described in the present embodiment, including:

First acquiring unit 301, is used for obtaining charge current sample value.

Filter unit 302, for utilizing default wave digital lowpass filter that described charge current sample value is filtered, Obtain the filtering output value of described charge current sample value.

Comparing unit 303, for described filtering output value and setting charging current value being compared, obtains charging current Deviation value.

Regulation unit 304, is used for according to described charging current deviation value and includes that ratio, integration, differential control process Charging current is adjusted by pid control algorithm.

In the embodiment that some are feasible, described default wave digital lowpass filter is single order numeral RC low-pass filtering Device, described filter unit 302 specifically for:

Utilize described single order numeral RC low pass filter that described charge current sample value is filtered, obtain including frequency The filtering output value of the charging current of cut-off frequency is preset less than one.

In the embodiment that some are feasible, described device also includes:

Design cell 305, for designing the expression formula of described single order numeral RC low pass filter, wherein, described expression formula For:

yn=axn+(1-a)yn-1

Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnAdopt for described charging current Sample value, yn-1For last filtering output value, ynFiltering output value for this.

In the embodiment that some are feasible, described design cell 305 includes:

Second acquisition unit 3050, for obtaining input x (t) of single order numeral RC low pass filter and the micro-of output y (t) Point equation:

Processing unit 3051, for being set to T, to described differential by the sampling period of described default wave digital lowpass filter Equation carries out sliding-model control, if yn=y (nt), xn=x (nt).

Conversion unit 3052, for when RC > > T, is converted into described single order numeral RC low pass filtered by the described differential equation The expression formula of ripple device: yn=axn+(1-a)yn-1

In the embodiment that some are feasible, T=50ms, described default cut-off frequency is 0.01Hz, then

The expression formula of described single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1

In the embodiment that some are feasible, described pid control algorithm is discrete type incremental timestamp algorithm, described Regulation unit 304 specifically for:

The increment of adjustment of charging current is obtained according to described charging current deviation value and described pid control algorithm.

Utilize described increment of adjustment that charging current is adjusted.

In the embodiment that some are feasible, described filtering output value is that current charging current is adopted by described filter unit Sample value is filtered the filtering output value obtained, or, the preset times before current time is sampled by described filter unit To the charge current sample value of predetermined number be filtered after the filtering output value of described predetermined number flat that draw respectively Average.

It should be noted that the function of each functional unit of the charging current adjusting means of the embodiment of the present invention can be according to upper The method stated in embodiment of the method implements, and it implements process and is referred to the associated description of said method embodiment, Here is omitted.

Can obtain charge current sample value by current sampling circuit sampling by the embodiment of the present invention, utilization is preset This charge current sample value is filtered by wave digital lowpass filter, it is achieved the error correction to this charge current sample value, To the filtering output value of this charge current sample value, then this filtering output value and setting charging current value are compared and obtain Charging current deviation value, utilizes pid control algorithm, charging current deviation value is adjusted charging current as feedback, right Charge current sample value inputs PID control system after being filtered again, can effectively weaken the sampling error of charging current value, carry The accommodation accuracy of high charge current, it is ensured that the stability of PID control system.

Refer to Fig. 4, for an example structure schematic diagram of a kind of terminal that the embodiment of the present invention provides.In the present embodiment Described terminal, including: at least one processor 401, such as CPU, at least one communication bus 402, accumulator 403, deposit Reservoir 404.Wherein, communication bus 402 is for realizing the connection communication between these assemblies;Memorizer 404 can be high-speed RAM Memorizer, it is also possible to be non-volatile memorizer (non-volatile memory), for example, at least one disk memory.Can Choosing, memorizer 404 can also is that at least one is located remotely from the storage device of aforementioned processor 401.Memorizer 404 stores Batch processing code, processor 401 operation below calling the program code of storage in memorizer 404, performing:

Obtain the charge current sample value of described accumulator 403.

Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charging current The filtering output value of sampled value.

Described filtering output value and setting charging current value are compared, obtains charging current deviation value.

According to described charging current deviation value and include ratio, integration, differential control process pid control algorithm to described The charging current of accumulator 403 is adjusted.

Optionally, described default wave digital lowpass filter is single order numeral RC low pass filter, described processor 401 profit With default wave digital lowpass filter, described charge current sample value is filtered, obtains the filter of described charge current sample value The concrete mode of ripple output valve is:

Utilize described single order numeral RC low pass filter that described charge current sample value is filtered, obtain including frequency The filtering output value of the charging current of cut-off frequency is preset less than one.

Optionally, described processor 401, it is additionally operable to design the expression formula of described single order numeral RC low pass filter, wherein, Described expression formula is:

yn=axn+(1-a)yn-1

Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnAdopt for described charging current Sample value, yn-1For last filtering output value, ynFiltering output value for this.

Optionally, the concrete mode of the expression formula that described processor 401 designs described single order numeral RC low pass filter is:

Obtain input x (t) of single order numeral RC low pass filter and export the differential equation of y (t):

The sampling period of described default wave digital lowpass filter is set to T, the described differential equation is carried out at discretization Reason, if yn=y (nt), xn=x (nt), when RC > > T, is converted into described single order numeral RC low pass filtered by the described differential equation The expression formula of ripple device: yn=axn+(1-a)yn-1

Optionally, T=50ms, described default cut-off frequency is 0.01Hz, then

The expression formula of described single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1

Optionally, described pid control algorithm is discrete type incremental timestamp algorithm, and described processor 401 is according to described Charging current deviation value and include that ratio, integration, differential control the pid control algorithm charging to described accumulator 403 of process The concrete mode that electric current is adjusted is:

The increment of adjustment of charging current is obtained according to described charging current deviation value and described pid control algorithm.

Utilize described increment of adjustment that the charging current of described accumulator 403 is adjusted.

Optionally, described filtering output value is the filtering output being filtered current charge current sample value obtaining Value, or, after the charge current sample value of the predetermined number obtained of sampling the preset times before current time is filtered The meansigma methods of the filtering output value of the described predetermined number respectively obtained.

In the embodiment of the present invention, terminal obtains charge current sample value by current sampling circuit sampling, and utilization is preset This charge current sample value is filtered by wave digital lowpass filter, it is achieved the error correction to this charge current sample value, To the filtering output value of this charge current sample value, then this filtering output value and setting charging current value are compared and obtain Charging current deviation value, utilizes pid control algorithm, charging current deviation value is adjusted charging current as feedback, right Charge current sample value inputs PID control system after being filtered again, can effectively weaken the sampling error of charging current value, carry The accommodation accuracy of high charge current, it is ensured that the stability of PID control system.One of ordinary skill in the art will appreciate that realization All or part of flow process in above-described embodiment method, can be by computer program and completes to instruct relevant hardware, Described program can be stored in a computer read/write memory medium, and this program is upon execution, it may include such as above-mentioned each method The flow process of embodiment.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random access memory (Random Access Memory is called for short RAM) etc..

A kind of charging current control method, device and the terminal that are thered is provided the embodiment of the present invention above have carried out detailed Jie Continuing, principle and the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only It is the method and core concept thereof being adapted to assist in and understanding the present invention;Simultaneously for one of ordinary skill in the art, according to this Bright thought, the most all will change, and in sum, this specification content should not be managed Solve as limitation of the present invention.

Claims (21)

1. a charging current control method, it is characterised in that including:
Obtain charge current sample value;
Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charge current sample The filtering output value of value;
Described filtering output value and setting charging current value are compared, obtains charging current deviation value;
According to described charging current deviation value and include ratio, integration, differential control process pid control algorithm to charging current It is adjusted.
Method the most according to claim 1, it is characterised in that described default wave digital lowpass filter is single order numeral RC Low pass filter, described charge current sample value is filtered by the wave digital lowpass filter that described utilization is preset, and obtains described The filtering output value of charge current sample value, including:
Utilize described single order numeral RC low pass filter that described charge current sample value is filtered, obtain including that frequency is less than The filtering output value of one charging current presetting cut-off frequency.
Method the most according to claim 2, it is characterised in that the wave digital lowpass filter that described utilization is preset fills described Electricity current sampling data is filtered, and before obtaining the filtering output value of described charge current sample value, described method also includes:
Designing the expression formula of described single order numeral RC low pass filter, wherein, described expression formula is:
yn=axn+(1-a)yn-1
Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnFor described charge current sample Value, yn-1For last filtering output value, ynFiltering output value for this.
Method the most according to claim 3, it is characterised in that the table of described design described single order numeral RC low pass filter Reach formula, including:
Obtain input x (t) of single order numeral RC low pass filter and export the differential equation of y (t):
The sampling period of described default wave digital lowpass filter is set to T, the described differential equation is carried out sliding-model control, if yn=y (nt), xn=x (nt), when RC > > T, is converted into described single order numeral RC low pass filter by the described differential equation Expression formula: yn=axn+(1-a)yn-1
Method the most according to claim 4, it is characterised in that T=50ms, described default cut-off frequency is 0.01Hz, then
The expression formula of described single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1
6. according to the method according to any one of Claims 1 to 5, it is characterised in that described pid control algorithm is that discrete type increases Amount formula pid control algorithm, described according to described charging current deviation value and include ratio, integration, differential control process PID control Charging current is adjusted by algorithm processed, including:
The increment of adjustment of charging current is obtained according to described charging current deviation value and described pid control algorithm;
Utilize described increment of adjustment that charging current is adjusted.
7. according to the method according to any one of Claims 1 to 5, it is characterised in that described filtering output value is to current Charge current sample value is filtered the filtering output value obtained, or, the preset times before current time is sampled and obtains The charge current sample value of predetermined number be filtered after the filtering output value of described predetermined number average that respectively obtain Value.
8. a charging current adjusting means, it is characterised in that including:
First acquiring unit, is used for obtaining charge current sample value;
Filter unit, for utilizing default wave digital lowpass filter to be filtered described charge current sample value, obtains institute State the filtering output value of charge current sample value;
Comparing unit, for described filtering output value and setting charging current value being compared, obtains charging current deviation value;
Regulation unit, for controlling with the PID including ratio, integration, differential control process according to described charging current deviation value Charging current is adjusted by algorithm.
Device the most according to claim 8, it is characterised in that described default wave digital lowpass filter is single order numeral RC Low pass filter, described filter unit specifically for:
Utilize described single order numeral RC low pass filter that described charge current sample value is filtered, obtain including that frequency is less than The filtering output value of one charging current presetting cut-off frequency.
Device the most according to claim 9, it is characterised in that described device also includes:
Design cell, for designing the expression formula of described single order numeral RC low pass filter, wherein, described expression formula is:
yn=axn+(1-a)yn-1
Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnFor described charge current sample value, yn-1For last filtering output value, ynFiltering output value for this.
11. devices according to claim 10, it is characterised in that described design cell includes:
Second acquisition unit, the differential equation of input x (t) with output y (t) for obtaining single order numeral RC low pass filter:
Processing unit, for the sampling period of described default wave digital lowpass filter is set to T, is carried out the described differential equation Sliding-model control, if yn=y (nt), xn=x (nt);
Conversion unit, for when RC > > T, is converted into the table of described single order numeral RC low pass filter by the described differential equation Reach formula: yn=axn+(1-a)yn-1
12. devices according to claim 11, it is characterised in that T=50ms, described default cut-off frequency is 0.01Hz, Then
The expression formula of described single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1
13. devices according to Claim 8~according to any one of 12, it is characterised in that described pid control algorithm is discrete type Incremental timestamp algorithm, described regulation unit specifically for:
The increment of adjustment of charging current is obtained according to described charging current deviation value and described pid control algorithm;
Utilize described increment of adjustment that charging current is adjusted.
14. devices according to Claim 8~according to any one of 12, it is characterised in that described filtering output value is described filter Ripple unit is filtered the filtering output value obtained to current charge current sample value, or, described filter unit is to currently It is described that the charge current sample value of the predetermined number that the preset times sampling before the moment obtains respectively obtains after being filtered The meansigma methods of the filtering output value of predetermined number.
15. 1 kinds of terminals, it is characterised in that including: accumulator, memorizer and processor, wherein, store in described memorizer Batch processing, and the operation below calling the program of storage in described memorizer, performing of described processor:
Obtain the charge current sample value of described accumulator;
Utilize the wave digital lowpass filter preset that described charge current sample value is filtered, obtain described charge current sample The filtering output value of value;
Described filtering output value and setting charging current value are compared, obtains charging current deviation value;
According to described charging current deviation value and include ratio, integration, differential control process pid control algorithm to described electric power storage The charging current in pond is adjusted.
16. terminals according to claim 15, it is characterised in that described default wave digital lowpass filter is single order numeral RC low pass filter, described processor utilizes the wave digital lowpass filter preset to be filtered described charge current sample value, The concrete mode of the filtering output value obtaining described charge current sample value is:
Utilize described single order numeral RC low pass filter that described charge current sample value is filtered, obtain including that frequency is less than The filtering output value of one charging current presetting cut-off frequency.
17. terminals according to claim 16, it is characterised in that described processor, are additionally operable to design described single order numeral The expression formula of RC low pass filter, wherein, described expression formula is:
yn=axn+(1-a)yn-1
Wherein, a is filter factor,And a is the real number more than 0 and less than 1, xnFor described charge current sample value, yn-1For last filtering output value, ynFiltering output value for this.
18. terminals according to claim 17, it is characterised in that described processor designs described single order numeral RC low pass filtered The concrete mode of the expression formula of ripple device is:
Obtain input x (t) of single order numeral RC low pass filter and export the differential equation of y (t):
The sampling period of described default wave digital lowpass filter is set to T, the described differential equation is carried out sliding-model control, if yn=y (nt), xn=x (nt), when RC > > T, is converted into described single order numeral RC low pass filter by the described differential equation Expression formula: yn=axn+(1-a)yn-1
19. terminals according to claim 18, it is characterised in that T=50ms, described default cut-off frequency is 0.01Hz, Then
The expression formula of described single order numeral RC low pass filter is: yn=0.05*xn+0.95*yn-1
20. according to the terminal according to any one of claim 15~19, it is characterised in that described pid control algorithm is discrete Type incremental timestamp algorithm, described processor is according to described charging current deviation value and includes that ratio, integration, differential control The concrete mode that the charging current of described accumulator is adjusted by the pid control algorithm of process is:
The increment of adjustment of charging current is obtained according to described charging current deviation value and described pid control algorithm;
Utilize described increment of adjustment that the charging current of described accumulator is adjusted.
21. according to the terminal according to any one of claim 15~19, it is characterised in that described filtering output value is to currently Charge current sample value be filtered the filtering output value that obtains, or, the preset times before current time is sampled To the charge current sample value of predetermined number be filtered after the filtering output value of described predetermined number flat that respectively obtain Average.
CN201610635580.0A 2016-08-04 2016-08-04 A kind of charging current control method, device and terminal CN106100086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610635580.0A CN106100086A (en) 2016-08-04 2016-08-04 A kind of charging current control method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610635580.0A CN106100086A (en) 2016-08-04 2016-08-04 A kind of charging current control method, device and terminal

Publications (1)

Publication Number Publication Date
CN106100086A true CN106100086A (en) 2016-11-09

Family

ID=57453521

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610635580.0A CN106100086A (en) 2016-08-04 2016-08-04 A kind of charging current control method, device and terminal

Country Status (1)

Country Link
CN (1) CN106100086A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107054145A (en) * 2017-04-28 2017-08-18 北京新能源汽车股份有限公司 A kind of charge control method, device, entire car controller and electric automobile
CN107817859A (en) * 2017-10-30 2018-03-20 深圳市道通智能航空技术有限公司 A kind of cell voltage filtering method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417938A (en) * 2002-12-10 2003-05-14 王运国 Voltage regulator for double-loop exciting current coutrolling vehicle power generator
JP2010166768A (en) * 2009-01-19 2010-07-29 Fujitsu Ten Ltd Controller, control system and control method
CN102931901A (en) * 2012-10-31 2013-02-13 奇瑞汽车股份有限公司 Switched reluctance motor generator control system and control method thereof
CN102981540A (en) * 2012-11-06 2013-03-20 华为技术有限公司 Power feedforward control method and related device
CN103684178A (en) * 2013-12-17 2014-03-26 清华大学 Rotating speed filtering device and filtering method of PMSM
CN103684351A (en) * 2013-12-17 2014-03-26 哈尔滨工程大学 Self-adaptation inertial filtering method with PID exponential factor
CN103944215A (en) * 2014-03-17 2014-07-23 天津工业大学 Resonance type charging control system based on current feedback and control method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417938A (en) * 2002-12-10 2003-05-14 王运国 Voltage regulator for double-loop exciting current coutrolling vehicle power generator
JP2010166768A (en) * 2009-01-19 2010-07-29 Fujitsu Ten Ltd Controller, control system and control method
CN102931901A (en) * 2012-10-31 2013-02-13 奇瑞汽车股份有限公司 Switched reluctance motor generator control system and control method thereof
CN102981540A (en) * 2012-11-06 2013-03-20 华为技术有限公司 Power feedforward control method and related device
CN103684178A (en) * 2013-12-17 2014-03-26 清华大学 Rotating speed filtering device and filtering method of PMSM
CN103684351A (en) * 2013-12-17 2014-03-26 哈尔滨工程大学 Self-adaptation inertial filtering method with PID exponential factor
CN103944215A (en) * 2014-03-17 2014-07-23 天津工业大学 Resonance type charging control system based on current feedback and control method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107054145A (en) * 2017-04-28 2017-08-18 北京新能源汽车股份有限公司 A kind of charge control method, device, entire car controller and electric automobile
CN107817859A (en) * 2017-10-30 2018-03-20 深圳市道通智能航空技术有限公司 A kind of cell voltage filtering method and device

Similar Documents

Publication Publication Date Title
Ellis et al. PV output smoothing with energy storage
US10291050B2 (en) Charging control apparatus and method for electronic device
US7249267B2 (en) Method and system for communicating filter compensation coefficients for a digital power control system
US9634558B2 (en) Negative charge pump feedback circuit
Giaouris et al. Application of Filippov method for the analysis of subharmonic instability in dc–dc converters
US8278898B2 (en) Auto-tuning power supply
US7880445B2 (en) System and method of charging a battery using a switching regulator
JP5081303B2 (en) Method and system for optimizing filter compensation coefficients for digital power control systems
Komurcugil Adaptive terminal sliding-mode control strategy for DC–DC buck converters
CN103049066B (en) The multi-mode power source managing device of power management integrated circuit
CN103268144B (en) Apparatus for monitoring power supply and over-current protection method
TWI578144B (en) Digital voltage compensation for power supply integrated circuits
US9274513B2 (en) Electric power control system and process
CN103499990B (en) The system and method for a kind of voltage stabilizer, figure adjustment voltage stabilizer
CN103713784B (en) Capacitance touch testing circuit, device and anti-spot thereof cause knows method for distinguishing by mistake
CN204790669U (en) Self -adaptation voltage location direct current stabilizer and controller thereof
DE60218491T2 (en) Battery with series-connected cells
JP6615061B2 (en) Method and system for controlling a microgrid connected to a power distribution system
CN102447283B (en) Charging system and charging method
CN102289239A (en) Floating-gate programmable low-dropout regulator and methods therefor
DE102011017232A1 (en) Method and apparatus for improving the dynamic range of a touch screen controller
DE19846461A1 (en) Sensor adjustment unit
CN103715882A (en) System and method for generating a regulated boosted voltage by using a controller variable number of charge pump circuits
CN105576972B (en) A kind of buck converter without buffet sliding-mode control
CN100578902C (en) Electric power output voltage-operated device

Legal Events

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