A kind of wireless charger adaptive power output power algorithm
Technical field
The present invention, for the wireless charger of QI standard, when the power providing is less than the needed power of output, adjusts power output to adapt to the demand of input power automatically at input DC power, prevents chip reset.
Background technology
In existing conventional wireless charging technology, QI standard becomes the wireless charging standard of main flow gradually.The principle of the wireless charger of QI standard is as figure mono-, shown in figure bis-, input direct-current 5V, through full-bridge or half-bridge inversion circuit, resonance lc circuit sends receiving terminal to power, receiving terminal is by the data of load-modulate telecommunication circuit transmission receiving terminal, such as the power receiving, the physical quantitys such as the margin of error of output voltage.Transmitting terminal receives data by load demodulation telecommunication circuit, and transmitting terminal microprocessor is adjusted to the margin of error of output voltage near 0 by control algolithm regulating frequency or duty ratio after receiving the margin of error of output voltage.
As figure tri-, the receiving terminal main circuit of wireless charger is by double resonance system, rectifier bridge, linear voltage stabilization source forms, direct voltage after the rectification of receiving terminal chip detection, the error of this voltage and given voltage, sends to the transmitting terminal of wireless charger by load-modulate telecommunication circuit, transmitting terminal changes frequency or duty by control algolithm and recently stablizes the direct voltage after the rectification of receiving terminal, to maintain the stable of output voltage.
The concrete control algolithm of QI standard is as figure tetra-, wireless charger is controlled the transmitting terminal electric current of next bat by the control algolithm of figure tetra-, the instruction of transmitting terminal electric current produces needed frequency or duty ratio by a pid algorithm, wherein j=1,2,3 ... be labeled as the order of the departure Frame that transmitting terminal receives.Received after j departure Frame, transmitting terminal calculates by following formula the current-order that next Frame is new:
Wherein:
represent the finally stabilised actual current of a upper Frame,
represent the departure data that receiving terminal sends.If
be the number of non-zero, transmitting terminal should be
interior adjusting transmitting terminal electric current.In order to realize this target, transmitting terminal controller can be carried out a digital rings control, the iteration exponent number i=1 of this loop control, 2,3 ... represent.Transmitting terminal calculates the error of digital control ring by formula below:
Wherein
for upper one of current data frame is clapped iteration actual current
Control algolithm adopts Discrete PI control algolithm:
Proportional control:
Wherein
it is the interval time of each order iteration
for proportional control factor
for integral control coefficient
for derivative control coefficient
Obtain after the output of PID controller, obtain desired frequency output or duty ratio output by following formula:
According to this algorithm, if load reaches 5 ohm, because output is a voltage source 5V, output current can reach 1A so, if the power of input adapter power supply only has 5W, obvious wireless charger is exported 5V voltage in order to maintain will constantly reduce operating frequency, along with the increase of output current, input voltage be pulled down to gradually 4V even below, wireless charger will interrupt charging.That is to say, if wireless charger is from the USB confession electricity of computer, will there will be interruption wireless transmission.In order to address this problem, the present invention proposes a kind of improved control algolithm, the effect of this algorithm is mainly dynamic time, fast reducing output current, promote input voltage, maintain the normal work of main control chip, in stable state, export maximum power.
Summary of the invention
Wireless charger is controlled the transmitting terminal electric current of next bat by the control algolithm of figure tetra-, the instruction of transmitting terminal electric current produces needed frequency or duty ratio by a pid algorithm, wherein j=1,2,3 ... be labeled as the order of the departure Frame that transmitting terminal receives.Received after j departure Frame, transmitting terminal calculates by following formula the current-order that next Frame is new:
Wherein:
represent the finally stabilised actual current of a upper Frame,
represent the departure data that receiving terminal sends.If
be the number of non-zero, transmitting terminal should be
interior adjusting transmitting terminal electric current.In order to realize this target, transmitting terminal controller can be carried out a digital rings control, the iteration exponent number i=1 of this loop control, 2,3 ... represent.Transmitting terminal calculates the error of digital control ring by formula below:
Wherein
for upper one of current data frame is clapped iteration actual current
Control algolithm adopts Discrete PI control algolithm:
Wherein
it is the interval time of each order iteration
for proportional control factor
for integral control coefficient
for derivative control coefficient
Obtain after the output of PID controller, obtain desired frequency output or duty ratio output by following formula:
Because the transmission interval of departure Frame is 250ms, so the response speed of this controller is lower than 250ms, when load dynamically adds fashionablely, input voltage can drag down moment, when this voltage is during lower than the minimum resetting voltage of main control chip, can cause the interruption of power delivery.Be greater than if export in addition needed power in the time of stable state the power that input can provide, also can cause the minimum resetting voltage of input voltage lower than main control chip, cause the interruption of power delivery.
The present invention has added a Voltage loop that becomes structure control on original controller, as shown in Figure IV.Dynamic time, incision proportional control ring, if input voltage falls, proportional control is swift in response, fast reducing output current maintains input voltage and no longer falls.In order to maintain the stable of power output in stable state, and keep peak power output, incision PI control ring, this endless belt is wide slower, to maintain stable power stage.
brief description of the drawings
Figure mono-wireless charging system block diagram.
Figure bis-wireless charger receiving terminal circuit schematic diagrames.
Figure tri-QI standard control algolithms.
Figure tetra-adds the control algolithm that becomes structure voltage ring
Embodiment
Now the present invention is described in further detail with example by reference to the accompanying drawings.
Wireless charger is controlled the transmitting terminal electric current of next bat by the control algolithm of figure tetra-, the instruction of transmitting terminal electric current produces needed frequency or duty ratio by a pid algorithm, wherein j=1,2,3 ... be labeled as the order of the departure Frame that transmitting terminal receives.Received after j departure Frame, transmitting terminal calculates by following formula the current-order that next Frame is new:
Wherein:
represent the finally stabilised actual current of a upper Frame,
represent the departure data that receiving terminal sends.If
be the number of non-zero, transmitting terminal should be
interior adjusting transmitting terminal electric current.In order to realize this target, transmitting terminal controller can be carried out a digital rings control, the iteration exponent number i=1 of this loop control, 2,3 ... represent.Transmitting terminal calculates the error of digital control ring by formula below:
Wherein
for upper one of current data frame is clapped iteration actual current
Control algolithm adopts Discrete PI control algolithm:
Wherein
it is the interval time of each order iteration
for proportional control factor
for integral control coefficient
for derivative control coefficient
Obtain after the output of PID controller, obtain desired frequency output or duty ratio output by following formula:
Because the transmission interval of departure Frame is 250ms, so the response speed of this controller is lower than 250ms, when load dynamically adds fashionablely, input voltage can drag down moment, when this voltage is during lower than the minimum resetting voltage of main control chip, can cause the interruption of power delivery.Be greater than if export in addition needed power in the time of stable state the power that input can provide, also can cause the minimum resetting voltage of input voltage lower than main control chip, cause the interruption of power delivery.
The present invention has added a Voltage loop that becomes structure control on original controller, as shown in Figure IV.Dynamic time, incision proportional control ring, if input voltage falls, proportional control is swift in response, fast reducing output current maintains input voltage and no longer falls.In order to maintain the stable of power output in stable state, and keep peak power output, incision PI control ring, this endless belt is wide slower, to maintain stable power stage.
When the moment that receiving terminal has just put up, load is not added up, and input voltage does not fall, and therefore this Voltage loop is inoperative.Load when load moment, input voltage declines rapidly and exceedes the value of certain reservation, and proportional control Voltage loop starts to work, reduce frequency, reduce output current, input voltage starts to rise, Voltage loop changes the PI controller of low bandwidth into simultaneously, maintains stable output, improves the stability of a system.