CN112510801A - Charger output voltage calibration circuit and calibration method - Google Patents

Charger output voltage calibration circuit and calibration method Download PDF

Info

Publication number
CN112510801A
CN112510801A CN202011561908.1A CN202011561908A CN112510801A CN 112510801 A CN112510801 A CN 112510801A CN 202011561908 A CN202011561908 A CN 202011561908A CN 112510801 A CN112510801 A CN 112510801A
Authority
CN
China
Prior art keywords
voltage
value
adc
calibration
circuit
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
CN202011561908.1A
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.)
SHENZHEN RUIBIDA TECHNOLOGY CO LTD
Original Assignee
SHENZHEN RUIBIDA TECHNOLOGY 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 SHENZHEN RUIBIDA TECHNOLOGY CO LTD filed Critical SHENZHEN RUIBIDA TECHNOLOGY CO LTD
Priority to CN202011561908.1A priority Critical patent/CN112510801A/en
Publication of CN112510801A publication Critical patent/CN112510801A/en
Pending legal-status Critical Current

Links

Images

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
    • H02J7/06Regulation of charging current or voltage using discharge tubes or semiconductor devices
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • H02J7/0048Detection of remaining charge capacity or state of charge [SOC]
    • 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/007Regulation of charging or discharging current or voltage
    • H02J7/00712Regulation of charging or discharging current or voltage the cycle being controlled or terminated in response to electric parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The utility model provides a charger output voltage calibration circuit and calibration method, belongs to the battery intelligent charging ware field for solve present branch battery charger output voltage precision low, the error is big, hardly differentiate the battery and charge, the problem of what electric quantity was when discharging, calibration circuit connects on charging circuit, charging circuit includes interchange input interface and direct current output interface, output interface is connected with MOS pipe Q21 that is used for control voltage output, calibration circuit includes: the calibration circuit of the invention adjusts and compensates the output voltage of the charger through MCU control, thereby effectively improving the accuracy and reducing the error, and the electric quantity of the battery can be visually displayed by an LED lamp according to the detected voltage of the direct current output interface.

Description

Charger output voltage calibration circuit and calibration method
Technical Field
The invention belongs to the field of intelligent storage battery chargers, and particularly relates to a charger output voltage calibration circuit and a calibration method.
Background
The storage battery is widely applied to various industries as a common power supply element, and usually the storage battery needs to be charged by a storage battery charger after consuming electric energy, but most of the existing storage battery chargers have low output voltage precision and large errors, are difficult to judge the electric quantity of the battery during charging and discharging, and lack of an effective solution.
Disclosure of Invention
In order to solve the above problems, the present invention provides a charger output voltage calibration circuit.
The invention adopts the following technical scheme:
a charger output voltage calibration circuit is connected to a charging circuit, the charging circuit comprises an alternating current input interface and a direct current output interface, and the charging circuit converts alternating current input from the alternating current input interface into direct current and outputs the direct current from the direct current output interface;
the output interface is connected with a MOS tube Q21 for controlling voltage output, and the calibration circuit comprises: the sampling circuit is connected with an output interface of the charging circuit and used for collecting voltage of the output interface, the sampling circuit feeds the collected voltage back to the MCU chip U4, and the MCU chip U4 outputs a corresponding PWM duty ratio signal according to the collected voltage value to control the MOS tube Q21 and adjust output voltage;
the MCU chip U4 is internally provided with a reference ADC value, the MCU chip U4 is internally provided with an analog-to-digital conversion module, and the MCU chip U4 adjusts the PWM duty ratio after comparing the acquired voltage ADC value with the reference ADC value.
Optionally, the reference ADC value is obtained by sampling in connection with an external accurate reference voltage value, the sampling circuit is connected to the external accurate reference voltage value to continuously acquire the voltage for 101 times, detect whether the voltage is in a set voltage range in the acquisition process, when the voltage is not in the set voltage range, clear all the acquired data and acquire again, sort the acquired ADC values from large to small, and store the 51 st ADC value into the FLASH as the reference ADC value.
Optionally, the MCU chip U4 is MT005C6PB-TSSOP20 in model.
Optionally, the sampling circuit is formed by serially connecting a resistor R98 and a resistor R99, an input end of the resistor R98 is connected to a positive end of the dc output interface, an output end of the resistor R98 is connected to an input end of the resistor R99 and a first ADC port of the MCU chip U4, an output end of the resistor R99 is grounded, and the resistor R99 is connected in parallel to a diode D16.
Optionally, the second ADC port, the third ADC port, the fourth ADC port, and the fifth ADC port of the MCU chip U4 are connected to one LED lamp, respectively, and the LED lamps are controlled to emit light according to the voltage of the dc output interface detected by the first ADC port, so as to display the battery power.
A charger output voltage calibration method comprises the following specific steps:
s1, setting a reference ADC value for the MCU chip U4, continuously collecting the voltage for 101 times by connecting a sampling circuit with an external accurate reference voltage value, detecting whether the voltage is in a set voltage range in the collection process, and when the voltage is not in the set voltage range, clearing all collected data and then collecting again;
s2, sequencing the ADC values collected in the step S1 from large to small, and storing the 51 st ADC value into the FLASH as a reference ADC value;
s3, the commercial power is switched in, the MCU chip U4 detects whether the circuit in the FLASH stores the marked PWM calibration value, when the marked PWM calibration value is detected, the circuit is calibrated, the calibration is not needed again, and the PWM value in the FLASH is extracted and then the step S7 is carried out;
when detecting that the PWM calibration value is not marked, it indicates that the PWM calibration value is not calibrated, and needs to be calibrated, and the process proceeds to step S4;
s4, the MCU chip U4 outputs 50% PWM duty ratio initially;
s5, connecting a direct current output interface through a sampling circuit, comparing the acquired ADC value with the reference ADC value stored in the FLASH in the step S2, and when the acquired ADC value is larger than the reference ADC value, turning down the PWM duty ratio by the MCU chip U4; when the acquired ADC value is smaller than the reference ADC value, the MCU chip U4 increases the PWM duty ratio;
s6, when the difference between the acquired ADC data and the ADC data in the FLASH is more than or equal to 8, repeating the step S5;
when the difference between the acquired ADC data and the ADC data in the FLASH is less than 8, storing the current PWM value in the FLASH as a PWM calibration value and marking the PWM calibration value;
and S7, outputting the PWM calibration value to correct the output voltage, and finishing voltage calibration.
The calibration circuit has the advantages that the output voltage of the charger is adjusted and compensated through the MCU control, the accuracy can be effectively improved, the error is reduced, and meanwhile, the electric quantity of the battery can be visually displayed through the LED lamp according to the detected voltage of the direct current output interface.
Drawings
FIG. 1 is a circuit block diagram of the present invention;
FIG. 2 is a partially enlarged view of the circuit of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1 and 2, a charger output voltage calibration circuit 100 is connected to a charging circuit, which includes an ac input interface and a dc output interface 200, and converts ac input from the ac input interface into dc and outputs the dc from the dc output interface 200;
the output interface is connected with a MOS transistor Q21 for controlling voltage output, and the calibration circuit 100 includes: MCU chip U4 and sampling circuit 10, sampling circuit 10 and charging circuit's output interface connection and gather the voltage of output interface, sampling circuit 10 feeds back the voltage of gathering to MCU chip U4, MCU chip U4 is according to the corresponding PWM duty cycle signal of voltage value output that gathers and is controlled MOS pipe Q21, adjustment output voltage.
The MCU chip U4 is internally provided with a reference ADC value, the MCU chip U4 is internally provided with an analog-to-digital conversion module, and the MCU chip U4 adjusts the PWM duty ratio after comparing the acquired voltage ADC value with the reference ADC value.
When the acquired ADC value is larger than the reference ADC value, the MCU chip U4 reduces the PWM duty ratio; and when the acquired ADC value is smaller than the reference ADC value, the MCU chip U4 increases the PWM duty ratio. The model of the MCU chip U4 is MT005C6PB-TSSOP 20.
The reference ADC value is obtained after being connected with an external accurate reference voltage value for sampling, the sampling circuit is connected with the external accurate reference voltage value to continuously acquire voltage for 101 times, whether the detected voltage is in a set voltage range in the acquisition process is detected, when the voltage is not in the set voltage range, all acquired data are cleared and then acquired again, the acquired ADC values are sequenced from large to small, and the 51 st ADC value is taken as the reference ADC value.
As shown in fig. 1 and 2, the sampling circuit 10 is formed by connecting a resistor R98 and a resistor R99 in series, an input end of the resistor R98 is connected with a positive end of the dc output interface 200, an output end of the resistor R98 is connected with an input end of the resistor R99 and a first ADC port of the MCU chip U4 (pin 14 in the drawing), an output end of the resistor R99 is grounded, and the resistor R99 is connected in parallel with a diode D16.
As shown in fig. 1 and 2, the second ADC port, the third ADC port, the fourth ADC port, and the fifth ADC port ( pins 12, 13, 15, and 16 in the figure) of the MCU chip U4 are respectively connected to one LED lamp 20, and different LED lamps 20 are respectively controlled to emit light according to the voltage of the dc output interface 200 detected by the first ADC port (pin 14 in the figure), so as to intuitively display the battery power.
The invention also provides a charger output voltage calibration method, which comprises the following specific steps:
s1, setting a reference ADC value for the MCU chip U4, continuously collecting the voltage for 101 times by connecting a sampling circuit with an external accurate reference voltage value, detecting whether the voltage is in a set voltage range in the collection process, and when the voltage is not in the set voltage range, clearing all collected data and then collecting again;
s2, sequencing the ADC values collected in the step S1 from large to small, and storing the 51 st ADC value into the FLASH as a reference ADC value;
s3, the commercial power is switched in, the MCU chip U4 detects whether the circuit in the FLASH stores the marked PWM calibration value, when the marked PWM calibration value is detected, the circuit is calibrated, the calibration is not needed again, and the PWM value in the FLASH is extracted and then the step S7 is carried out;
when detecting that the PWM calibration value is not marked, it indicates that the PWM calibration value is not calibrated, and needs to be calibrated, and the process proceeds to step S4;
s4, the MCU chip U4 outputs 50% PWM duty ratio initially;
s5, connecting a direct current output interface through a sampling circuit, comparing the acquired ADC value with the reference ADC value stored in the FLASH in the step S2, and when the acquired ADC value is larger than the reference ADC value, turning down the PWM duty ratio by the MCU chip U4; when the acquired ADC value is smaller than the reference ADC value, the MCU chip U4 increases the PWM duty ratio;
s6, when the difference between the acquired ADC data and the ADC data in the FLASH is more than or equal to 8, repeating the step S5;
when the difference between the acquired ADC data and the ADC data in the FLASH is less than 8, storing the current PWM value in the FLASH as a PWM calibration value and marking the PWM calibration value;
and S7, outputting the PWM calibration value to correct the output voltage, and finishing voltage calibration.
The calibration circuit has the advantages that the output voltage of the charger is adjusted and compensated through the MCU control, the accuracy can be effectively improved, the error is reduced, and meanwhile, the electric quantity of the battery can be visually displayed through the LED lamp according to the detected voltage of the direct current output interface.

Claims (6)

1. A charger output voltage calibration circuit, the calibration circuit (100) is connected to a charging circuit, the charging circuit comprises an AC input interface and a DC output interface (200), the charging circuit converts AC input from the AC input interface into DC and outputs from the DC output interface (200);
the calibration circuit is characterized in that the output interface is connected with a MOS tube Q21 for controlling voltage output, and the calibration circuit (100) comprises: the sampling circuit (10) is connected with an output interface of the charging circuit and used for collecting voltage of the output interface, the sampling circuit (10) feeds the collected voltage back to the MCU chip U4, and the MCU chip U4 outputs a corresponding PWM duty ratio signal according to the collected voltage value to control the MOS tube Q21 and adjust the output voltage;
the MCU chip U4 is internally provided with a reference ADC value, the MCU chip U4 is internally provided with an analog-to-digital conversion module, and the MCU chip U4 adjusts the PWM duty ratio after comparing the acquired voltage ADC value with the reference ADC value.
2. The charger output voltage calibration circuit according to claim 1, wherein the reference ADC value is obtained by connecting and sampling with an external accurate reference voltage value, the sampling circuit is connected with the external accurate reference voltage value to continuously collect the voltage for 101 times, detect whether the voltage is in a set voltage range during the collection process, when the voltage is not in the set voltage range, remove all collected data and collect again, sort the collected ADC values from large to small, and take the 51 st ADC value as the reference ADC value.
3. The charger output voltage calibration circuit of claim 1, wherein the MCU chip U4 is of type MT005C6PB-TSSOP 20.
4. The charger output voltage calibration circuit according to claim 1, wherein the sampling circuit (10) is formed by serially connecting a resistor R98 and a resistor R99, an input end of the resistor R98 is connected with a positive terminal of the dc output interface (200), an output end of the resistor R98 is connected with an input end of the resistor R99 and a first ADC port of the MCU chip U4, an output end of the resistor R99 is connected to ground, and the resistor R99 is connected in parallel with a diode D16.
5. The charger output voltage calibration circuit according to claim 1, wherein the second ADC port, the third ADC port, the fourth ADC port and the fifth ADC port of the MCU chip U4 are respectively connected to one LED lamp (20), and the LED lamps (20) are controlled to emit light according to the voltage of the dc output interface (200) detected by the first ADC port, so as to display the battery power.
6. A charger output voltage calibration method is characterized by comprising the following specific steps:
s1, setting a reference ADC value for the MCU chip U4, continuously collecting the voltage for 101 times by connecting a sampling circuit with an external accurate reference voltage value, detecting whether the voltage is in a set voltage range in the collection process, and when the voltage is not in the set voltage range, clearing all collected data and then collecting again;
s2, sequencing the ADC values collected in the step S1 from large to small, and storing the 51 st ADC value into the FLASH as a reference ADC value;
s3, the commercial power is switched in, the MCU chip U4 detects whether the circuit in the FLASH stores the marked PWM calibration value, when the marked PWM calibration value is detected, the circuit is calibrated, the calibration is not needed again, and the PWM value in the FLASH is extracted and then the step S7 is carried out;
when detecting that the PWM calibration value is not marked, it indicates that the PWM calibration value is not calibrated, and needs to be calibrated, and the process proceeds to step S4;
s4, the MCU chip U4 outputs 50% PWM duty ratio initially;
s5, connecting a direct current output interface through a sampling circuit, comparing the acquired ADC value with the reference ADC value stored in the FLASH in the step S2, and when the acquired ADC value is larger than the reference ADC value, turning down the PWM duty ratio by the MCU chip U4; when the acquired ADC value is smaller than the reference ADC value, the MCU chip U4 increases the PWM duty ratio;
s6, when the difference between the acquired ADC data and the ADC data in the FLASH is more than or equal to 8, repeating the step S5;
when the difference between the acquired ADC data and the ADC data in the FLASH is less than 8, storing the current PWM value in the FLASH as a PWM calibration value and marking the PWM calibration value;
and S7, outputting the PWM calibration value to correct the output voltage, and finishing voltage calibration.
CN202011561908.1A 2020-12-25 2020-12-25 Charger output voltage calibration circuit and calibration method Pending CN112510801A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011561908.1A CN112510801A (en) 2020-12-25 2020-12-25 Charger output voltage calibration circuit and calibration method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011561908.1A CN112510801A (en) 2020-12-25 2020-12-25 Charger output voltage calibration circuit and calibration method

Publications (1)

Publication Number Publication Date
CN112510801A true CN112510801A (en) 2021-03-16

Family

ID=74923507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011561908.1A Pending CN112510801A (en) 2020-12-25 2020-12-25 Charger output voltage calibration circuit and calibration method

Country Status (1)

Country Link
CN (1) CN112510801A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895231A (en) * 2022-07-12 2022-08-12 南京宏泰半导体科技有限公司 High-end voltage differential sampling calibration system and method
CN115842396A (en) * 2022-12-30 2023-03-24 飞杨电源技术(深圳)有限公司 Automatic output voltage calibration circuit and method of charger

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114895231A (en) * 2022-07-12 2022-08-12 南京宏泰半导体科技有限公司 High-end voltage differential sampling calibration system and method
CN115842396A (en) * 2022-12-30 2023-03-24 飞杨电源技术(深圳)有限公司 Automatic output voltage calibration circuit and method of charger
CN115842396B (en) * 2022-12-30 2023-10-24 飞杨电源技术(深圳)有限公司 Automatic calibration circuit and method for output voltage of charger

Similar Documents

Publication Publication Date Title
CN112510801A (en) Charger output voltage calibration circuit and calibration method
CN102163067B (en) Solar maximum power tracking method and solar charging device
CN111426965B (en) Method for calculating electric quantity of battery
CN201355771Y (en) Intelligent charger of electric automobile batteries
CN102053227B (en) Measurement method and unit as well as control unit and system for accumulator capacity
CN104779670A (en) Method for detecting whether storage battery is fully charged or not
CN214205064U (en) Charger output voltage calibration circuit
CN106291386A (en) A kind of method of quick detection rechargeable battery capacity and detection device thereof
CN109116255A (en) A kind of accumulator charging and discharging state judgment method based on voltage
CN207457464U (en) A kind of accumulator wireless monitor system based on technology of Internet of things
CN201226449Y (en) Voltage-boosting type charge control circuit and electronic device
CN106374609B (en) Voltage stabilizer circuit applied to solar charger
CN208078130U (en) Multichannel Li-Battery monitor and combo device
CN201937299U (en) Charging device
CN102175906A (en) Voltage detection method and charging device using same
CN212231114U (en) Lithium battery pack charging device
CN210201544U (en) Intelligent calibration output charger
CN204330989U (en) A kind of accumulator overload performance pick-up unit
CN202798085U (en) Simplified storage battery charging maximum power point tracking (MPPT) control circuit
CN220709320U (en) SOC detection circuit of battery management system, battery management system and electric vehicle
CN110061555A (en) Intelligence calibration output charger
CN218526107U (en) Intelligent charging and discharging controller for storage battery
CN2257629Y (en) Intelligence quick charger for plumbous acid accumulator
CN103457315A (en) Solar charging control circuit
CN211718478U (en) Current source type multi-string battery voltage detection circuit with error compensation function

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