CN111725870A - Automatic light load reference algorithm and mobile power supply with small current detection - Google Patents
Automatic light load reference algorithm and mobile power supply with small current detection Download PDFInfo
- Publication number
- CN111725870A CN111725870A CN202010613112.XA CN202010613112A CN111725870A CN 111725870 A CN111725870 A CN 111725870A CN 202010613112 A CN202010613112 A CN 202010613112A CN 111725870 A CN111725870 A CN 111725870A
- Authority
- CN
- China
- Prior art keywords
- value
- current
- power supply
- mobile power
- adc
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 26
- 238000005070 sampling Methods 0.000 claims abstract description 32
- 238000001914 filtration Methods 0.000 claims description 12
- 238000000034 method Methods 0.000 claims description 5
- 230000008030 elimination Effects 0.000 claims description 3
- 238000003379 elimination reaction Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 230000002950 deficient Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/0036—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using connection detecting circuits
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R19/00—Arrangements for measuring currents or voltages or for indicating presence or sign thereof
- G01R19/0092—Arrangements for measuring currents or voltages or for indicating presence or sign thereof measuring current only
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
-
- H—ELECTRICITY
- H02—GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
- H02J—CIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
- H02J7/00—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
- H02J7/0029—Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
- H02J7/00304—Overcurrent protection
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Charge And Discharge Circuits For Batteries Or The Like (AREA)
- Power Sources (AREA)
Abstract
The invention discloses an automatic light load reference algorithm and a mobile power supply with small current detection, which comprises the following steps: MCU, with the ADC sampling circuit that MCU is connected, MOS pipe Q1 be connected with MCU, with the USB interface that ADC sampling circuit is connected, with USB interface connection's resistance R1, ADC sampling circuit, MOS pipe Q1 and resistance R1 parallel access USB interface, resistance R1 is big resistance. According to the invention, the MOS tube Q1 is cut off, the current detection is carried out by adopting the larger resistor R1, and the small current detection is realized by the assistance of the automatic light load reference algorithm, so that the minimum shutdown current and the minimum current which can be detected are reduced, the charging requirements of small current products such as Bluetooth earphones and the like are met, and the application range of the mobile power supply is expanded.
Description
Technical Field
The invention relates to the field of mobile power supplies, in particular to an automatic light-load reference algorithm and a mobile power supply with small current detection.
Background
The portable power supply is a portable charger which can be carried about by a person, can store electric energy and can charge electronic products such as handheld mobile equipment, and the like, and is particularly applied to occasions without external power supply. When the general mobile power supply works, whether the mobile power supply is supplying electric energy to other equipment is judged by detecting the current, and when the current is detected to be small or not for a long time, the mobile power supply is judged not to be in a working state and automatically enters a dormant state. As shown in fig. 1, the current mobile power supply performs current sampling by means of a fixed resistor. But a smaller current value cannot be acquired due to the limitation of the acquisition precision of the ADC of the mobile power supply MCU. Meanwhile, if the resistance value is larger than 50mR, the voltage drop and the energy consumption are too high, and the related standards at home and abroad cannot be met, so that only the resistor with the smaller resistance value can be selected, the minimum automatic shutdown current and the minimum detectable current of the mobile power supply in the market are both more than 100mA, and the charging requirements of small-current products such as Bluetooth earphones and the like cannot be met.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides an automatic light-load reference algorithm and a mobile power supply with small current detection.
The technical scheme of the invention is as follows: an automatic light load benchmark algorithm is provided, which comprises the following steps:
step 1: setting a current preset value for an MCU of the mobile power supply;
step 2: before the output of the mobile power supply is started, the MCU carries out no-load reference calibration on the ADC value and takes a reference ADC value;
and step 3: starting the output of the mobile power supply, and sampling the current by the MCU of the mobile power supply to obtain a sampling ADC value;
and 4, step 4: acquiring an anti-jitter filtering sampling ADC value according to an anti-jitter filtering algorithm;
and 5: if the output current value detected in the step 3 is smaller than the preset current value, the MOS transistor Q1 is cut off, and then the resistor R1 with larger resistance is adopted for detection;
step 6: according to the result of the sampling detection in the step 5, if the sampling ADC value is equal to the jitter elimination filtering sampling ADC value-reference ADC value, taking the current value as the minimum shutdown current;
and 7: and if the output current value is the minimum shutdown current for a long time, automatically shutting down the output of the mobile power supply.
Further, in step 2, a method for selecting the reference ADC value is as follows:
step 2.1: recording the current passing through zero value in a period of time;
step 2.2: and calculating the zero crossing value according to a median average filtering method, and taking the calculated value as a reference ADC value.
The invention also provides a mobile power supply with small current detection, which comprises: MCU, with the ADC sampling circuit that MCU is connected, with MOS pipe Q1 that MCU is connected, with the USB interface that ADC sampling circuit is connected, and with USB interface connection's resistance R1, ADC sampling circuit, MOS pipe Q1 and resistance R1 parallel access USB interface, resistance R1 is big resistance.
Further, the MOS transistor Q1 is connected to a detection resistor R2.
By adopting the scheme, the MOS tube Q1 is cut off, the current detection is carried out by adopting the larger resistor R1, and the small current detection is realized by the assistance of the automatic light load reference algorithm, so that the minimum shutdown current and the detectable minimum current are reduced, the charging requirements of small current products such as Bluetooth earphones and the like are met, and the application range of the mobile power supply is expanded.
Drawings
Fig. 1 is a circuit schematic diagram of the prior art.
FIG. 2 is a circuit diagram of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Referring to fig. 2, the present invention provides an automatic light load reference algorithm, which includes the following steps:
step 1: and setting a current preset value for the MCU of the mobile power supply.
Step 2: before the output of the mobile power supply is started, the MCU carries out no-load reference calibration on the ADC value and takes a reference ADC value. The reference ADC value takes the following steps:
step 2.1: recording the current passing through zero value in a period of time;
step 2.2: and calculating the current zero value according to a median average filtering method, and taking the calculated value as a reference ADC value.
And step 3: and starting output, and sampling the current by the MCU of the mobile power supply to obtain a sampling ADC value.
And 4, step 4: and obtaining an anti-jitter filtering sampling ADC value according to an anti-jitter filtering algorithm.
And 5: if the output current value detected in the step 3 is smaller than the preset current value, the MOS transistor Q1 is cut off, then the resistor R1 with larger resistance value is adopted for detection,
step 6: according to the result of the sampling detection in the step 5, if the sampling ADC value is equal to the jitter elimination filtering sampling ADC value-reference ADC value, taking the current value as the minimum shutdown current;
and 7: and if the output current value is the minimum shutdown current for a long time, automatically shutting down the output of the mobile power supply.
The invention also provides a mobile power supply with small current detection, which comprises: MCU, with the ADC sampling circuit that MCU is connected, MOS pipe Q1 be connected with MCU, with the USB interface that ADC sampling circuit is connected, with USB interface connection's resistance R1, ADC sampling circuit, MOS pipe Q1 and resistance R1 parallel access USB interface, resistance R1 is big resistance.
The MOS tube Q1 is connected with a detection resistor R2.
When the output of the mobile power supply is started, the MOS tube Q1 is conducted, and the voltage detected by the ADC sampling circuit is generated by the parallel connection of the internal resistance of the MOS tube Q1 and the resistor R1. At the moment, the resistance is small, the power consumption and the voltage drop are small, a large current value can be detected, and due to the functions of overcurrent protection and the like, the requirements of safety specifications such as LPS and the like are met. When the detected current value is smaller than the preset value, the MOS transistor Q1 is cut off, the resistor R1 with larger resistance value is adopted for detection, and the mobile power supply can detect smaller current through an automatic light load reference algorithm. Through the auxiliary detection of the automatic light load reference algorithm, the mobile power supply can detect the small current of +/-2 mA, the situation that the output of the mobile power supply is automatically closed due to the fact that the small current cannot be detected when the small current products such as a Bluetooth headset are charged is avoided, and the charging requirement of the small current products is met.
In summary, the MOS transistor Q1 is cut off, the large resistor R1 is used for current detection, and the automatic light-load reference algorithm is used for assisting in realizing the small current detection, so that the minimum shutdown current and the minimum detectable current are reduced, the charging requirements of small current products such as bluetooth earphones are met, and the application range of the mobile power supply is expanded.
The present invention is not limited to the above preferred embodiments, and any modifications, equivalent substitutions and improvements made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (4)
1. An automatic light load benchmark algorithm is characterized by comprising the following steps:
step 1: setting a current preset value for an MCU of the mobile power supply;
step 2: before the output of the mobile power supply is started, the MCU carries out no-load reference calibration on the ADC value and takes a reference ADC value;
and step 3: starting the output of the mobile power supply, and sampling the current by the MCU of the mobile power supply to obtain a sampling ADC value;
and 4, step 4: acquiring an anti-jitter filtering sampling ADC value according to an anti-jitter filtering algorithm;
and 5: if the output current value detected in the step 3 is smaller than the preset current value, the MOS transistor Q1 is cut off, and then the resistor R1 with larger resistance is adopted for detection;
step 6: according to the result of the sampling detection in the step 5, if the sampling ADC value is equal to the jitter elimination filtering sampling ADC value-reference ADC value, taking the current value as the minimum shutdown current;
and 7: and if the output current value is the minimum shutdown current for a long time, automatically shutting down the output of the mobile power supply.
2. The automatic light load reference algorithm of claim 1, wherein in the step 2, the reference ADC value is selected by the following method:
step 2.1: recording the current passing through zero value in a period of time;
step 2.2: and calculating the zero crossing value according to a median average filtering method, and taking the calculated value as a reference ADC value.
3. A portable power source with small current detection, characterized by comprising: MCU, with the ADC sampling circuit that MCU is connected, with MOS pipe Q1 that MCU is connected, with the USB interface that ADC sampling circuit is connected, and with USB interface connection's resistance R1, ADC sampling circuit, MOS pipe Q1 and resistance R1 parallel access USB interface, resistance R1 is big resistance.
4. The mobile power supply with small current detection as claimed in claim 3, wherein a detection resistor R2 is connected to the MOS transistor Q1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010613112.XA CN111725870A (en) | 2020-06-30 | 2020-06-30 | Automatic light load reference algorithm and mobile power supply with small current detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010613112.XA CN111725870A (en) | 2020-06-30 | 2020-06-30 | Automatic light load reference algorithm and mobile power supply with small current detection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111725870A true CN111725870A (en) | 2020-09-29 |
Family
ID=72570496
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010613112.XA Pending CN111725870A (en) | 2020-06-30 | 2020-06-30 | Automatic light load reference algorithm and mobile power supply with small current detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111725870A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101256322B1 (en) * | 2011-12-30 | 2013-04-18 | 엘에스산전 주식회사 | Current calculating method and relay using the same |
CN106124842A (en) * | 2016-07-04 | 2016-11-16 | 芯海科技(深圳)股份有限公司 | The small area analysis testing circuit of a kind of portable power source and method |
EP3242365A1 (en) * | 2015-01-22 | 2017-11-08 | Huawei Technologies Co., Ltd. | Current-limiting protection circuit and electronic device |
CN107394860A (en) * | 2017-09-06 | 2017-11-24 | 芯海科技(深圳)股份有限公司 | A kind of charging bluetooth earphone low current detection method |
CN207184079U (en) * | 2017-06-13 | 2018-04-03 | 深圳市迪比科电子科技有限公司 | Mobile power supply circuit |
-
2020
- 2020-06-30 CN CN202010613112.XA patent/CN111725870A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101256322B1 (en) * | 2011-12-30 | 2013-04-18 | 엘에스산전 주식회사 | Current calculating method and relay using the same |
EP3242365A1 (en) * | 2015-01-22 | 2017-11-08 | Huawei Technologies Co., Ltd. | Current-limiting protection circuit and electronic device |
CN106124842A (en) * | 2016-07-04 | 2016-11-16 | 芯海科技(深圳)股份有限公司 | The small area analysis testing circuit of a kind of portable power source and method |
CN207184079U (en) * | 2017-06-13 | 2018-04-03 | 深圳市迪比科电子科技有限公司 | Mobile power supply circuit |
CN107394860A (en) * | 2017-09-06 | 2017-11-24 | 芯海科技(深圳)股份有限公司 | A kind of charging bluetooth earphone low current detection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9240697B2 (en) | Charging circuit and method for preventing charging power supply from reversely connecting | |
US9142985B2 (en) | Battery charger for portable electronic equipment | |
CN109066940B (en) | Charging control method, circuit, charger and electric tool | |
CN106712159B (en) | Lithium battery rapid charging and discharging device and method | |
US20100045237A1 (en) | Multifunctional portable energy storage device | |
JP2019508003A (en) | Mobile power supply with charge management function | |
CN104578264B (en) | Mobile power automatic recognition of load circuit | |
CN205610297U (en) | Energy -conservation automatic control circuit that charges | |
CN107069866B (en) | Method for adjusting optimal charging parameter of charging circuit | |
CN111257618A (en) | Cubical switchboard contact current measurement ring with from function of getting electricity | |
CN201118269Y (en) | Charging overvoltage protection circuit | |
CN201947046U (en) | Switch power supply with backup battery for power supply | |
CN111725870A (en) | Automatic light load reference algorithm and mobile power supply with small current detection | |
CN106374609B (en) | Voltage stabilizer circuit applied to solar charger | |
EP2587617A3 (en) | Apparatus and method for controlling charge current in portable terminal | |
CN205430123U (en) | Solar energy is to charge controllers of load | |
CN203933057U (en) | A kind of portable multi-function portable power source | |
CN206100553U (en) | Take real -time protect function's emergent LED lighting circuit | |
CN206164184U (en) | Be applied to voltage regulator circuit of solar charging ware | |
WO2018040927A1 (en) | Intelligent charging method and system | |
CN117232678A (en) | Temperature detection circuit, related chip and related charging device | |
CN203951221U (en) | A kind of uninterrupted power supply charging circuit | |
CN203850893U (en) | Practical lithium battery trickle charging circuit | |
CN102931704B (en) | Solar energy and piezoelectricity power generation complementary charger | |
CN201893592U (en) | Mobile terminal capable of realizing self-charging |
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 |