CN201194024Y - A battery power detection device - Google Patents

A battery power detection device Download PDF

Info

Publication number
CN201194024Y
CN201194024Y CNU2008200095406U CN200820009540U CN201194024Y CN 201194024 Y CN201194024 Y CN 201194024Y CN U2008200095406 U CNU2008200095406 U CN U2008200095406U CN 200820009540 U CN200820009540 U CN 200820009540U CN 201194024 Y CN201194024 Y CN 201194024Y
Authority
CN
China
Prior art keywords
chip microcomputer
storage battery
converter
detection device
voltage
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.)
Expired - Fee Related
Application number
CNU2008200095406U
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNU2008200095406U priority Critical patent/CN201194024Y/en
Application granted granted Critical
Publication of CN201194024Y publication Critical patent/CN201194024Y/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Measurement Of Current Or Voltage (AREA)

Abstract

本实用新型公开了一种蓄电池电量检测装置,包括:蓄电池连接预置负载,所述预置负载连接控制蓄电池放电的主控电路,所述蓄电池和所述预置负载连接测量放电信号的A/D转换器,所述A/D转换器连接运算数字信号并输出测量电量值的单片机;所述单片机和所述主控电路之间还连接保护电路;所述单片机还连接显示测量电量值的显示器;所述单片机还连接输入控制命令的键盘;本实用新型中的装置在工作过程中,单片机从A/D转换器上获取数据后,可通过多种算法运算出实际的工作电压,由于通过预置负载测量蓄电池内的电压,具有比测量实际负载中的电压更为准确,测量过程简单的优点。

Figure 200820009540

The utility model discloses a storage battery electric quantity detection device, which comprises: the storage battery is connected with a preset load, the preset load is connected with a main control circuit for controlling the discharge of the storage battery, and the storage battery and the preset load are connected to measure the discharge signal A/ D converter, the A/D converter is connected to a single-chip microcomputer for computing digital signals and outputting the measured power value; a protection circuit is also connected between the single-chip microcomputer and the main control circuit; the single-chip microcomputer is also connected to a display for displaying the measured power value The single-chip microcomputer is also connected to the keyboard of the input control command; the device in the utility model is in the working process, after the single-chip microcomputer obtains data from the A/D converter, the actual working voltage can be calculated by various algorithms. Setting the load to measure the voltage in the storage battery has the advantages of being more accurate than measuring the voltage in the actual load and the measurement process is simple.

Figure 200820009540

Description

一种蓄电池电量检测装置 A battery power detection device

技术领域 technical field

本实用新型涉及电量测量装置,特别是指一种蓄电池电量检测装置。The utility model relates to a power measuring device, in particular to a storage battery power detection device.

背景技术 Background technique

目前,各种车辆上均安装有蓄电池,如电动自行车、汽车等,用户在驾驶过程中,需要了解电池所剩容量的实际情况,如同汽车驾驶员要知道当前剩余油量一样。At present, batteries are installed on various vehicles, such as electric bicycles, cars, etc. During driving, users need to know the actual situation of the remaining capacity of the battery, just like the driver of a car needs to know the current remaining fuel capacity.

蓄电池的剩余容量的检测比较复杂,主要采用密度法、开路电压法、内阻法和电量积累法。其中密度法对于密封式蓄电池不适用;开路电压法必须要等到热力学达到平衡时再测量方准确,因此不适合在线测量;内阻法,由于电池阻与电池的剩余电量之间关系复杂,通用性也比较差;电量积累法又存在测量不准确的现象。The detection of the remaining capacity of the battery is relatively complicated, mainly using the density method, open circuit voltage method, internal resistance method and power accumulation method. Among them, the density method is not suitable for sealed batteries; the open circuit voltage method must wait until the thermodynamics reaches equilibrium before measurement is accurate, so it is not suitable for online measurement; the internal resistance method, due to the complicated relationship between the battery resistance and the remaining power of the battery, is universal. It is also relatively poor; the power accumulation method also has inaccurate measurement.

由于不能保证蓄电池每次充到满充状态,所以上述方案采用放出电量来衡量电池的剩余容量时,需要考虑电池端电压、充放电电流、初始电液比重、环境温度等因素,测量过程较复杂。Since the battery cannot be guaranteed to be fully charged every time, when the above scheme uses the discharged power to measure the remaining capacity of the battery, factors such as battery terminal voltage, charge and discharge current, initial electro-hydraulic specific gravity, and ambient temperature need to be considered, and the measurement process is more complicated. .

实用新型内容Utility model content

有鉴于此,本实用新型在于提供一种蓄电池电量检测装置,以解决上述测量过程复杂、且测量误差较大的问题。In view of this, the utility model is to provide a storage battery power detection device to solve the above-mentioned problems of complicated measurement process and large measurement error.

为解决上述问题,本实用新型提供一种蓄电池电量检测装置,包括:In order to solve the above problems, the utility model provides a battery power detection device, including:

蓄电池连接预置负载,所述预置负载连接控制蓄电池放电的主控电路,所述蓄电池和所述预置负载连接测量放电信号的A/D转换器,所述A/D转换器连接运算数字信号并输出测量电量值的单片机。The storage battery is connected to a preset load, and the preset load is connected to the main control circuit for controlling the discharge of the storage battery, and the storage battery and the preset load are connected to an A/D converter for measuring discharge signals, and the A/D converter is connected to an arithmetic Signal and output the single-chip microcomputer that measures the electric value.

优选的,所述单片机和所述主控电路之间还连接保护电路。Preferably, a protection circuit is also connected between the single-chip microcomputer and the main control circuit.

优选的,所述单片机还连接显示测量电量值的显示器。Preferably, the single-chip microcomputer is also connected to a display for displaying the measured power value.

优选的,所述单片机还连接输入控制命令的键盘。Preferably, the single-chip microcomputer is also connected to a keyboard for inputting control commands.

上述的装置在工作过程中,单片机从A/D转换器上获取数据后,可通过多种算法运算出实际的工作电压,由于通过预置负载测量蓄电池内的电压,具有比测量实际负载中的电压更为准确,测量过程简单的优点。During the working process of the above-mentioned device, after the single-chip microcomputer obtains data from the A/D converter, it can calculate the actual working voltage through various algorithms. Since the voltage in the storage battery is measured through the preset load, it has the advantage of measuring the voltage in the actual load. The voltage is more accurate and the measurement process is simple.

附图说明 Description of drawings

图1是实施例中装置的结构图;Fig. 1 is the structural diagram of device in the embodiment;

图2是主控电路中采用BUCK结构的示意图;Fig. 2 is a schematic diagram of adopting BUCK structure in the main control circuit;

图3是82C54的电路结构图;Fig. 3 is the circuit structure diagram of 82C54;

图4是驱动隔离电路的结构图;Fig. 4 is a structural diagram of a drive isolation circuit;

图5是A/D转换器和单片机的连接示意图;Fig. 5 is the connection schematic diagram of A/D converter and single-chip microcomputer;

图6是单片机获取采样数据的流程图;Fig. 6 is the flow chart that single-chip microcomputer obtains sampling data;

图7是单片机与LCD之间的接口电路的示意图。FIG. 7 is a schematic diagram of the interface circuit between the microcontroller and the LCD.

具体实施方式 Detailed ways

为清楚说明本实用新型中的技术方案,下面给出优选的实施例并结合附图详细说明。In order to clearly illustrate the technical solutions in the utility model, preferred embodiments are given below and detailed descriptions are given in conjunction with the accompanying drawings.

参见图1,图1是该装置的结构图,包括:连接蓄电池的A/D转换器和预置负载,A/D转换电路连接时序控制的单片机,预置负载连接主控电路,在单片机和主控电路之间还附加了保护电路;单片机上还连接输入控制命令的键盘和显示蓄电池剩余电量的LCD显示器。Referring to Fig. 1, Fig. 1 is a structural diagram of the device, including: an A/D converter connected to a storage battery and a preset load, the A/D conversion circuit is connected to a sequence-controlled microcontroller, and the preset load is connected to the main control circuit. A protection circuit is also added between the main control circuits; a keyboard for inputting control commands and an LCD display for displaying the remaining power of the storage battery are also connected to the single-chip microcomputer.

主控电路采用IPM智能功率模块(PM800HSA060),其内部除集成IGBT开关管及驱动电路外,还集成了完善的保护电路,如过压保护、过流保护、短路保护、欠压保护、过热保护等,实现了元件的自保护;驱动电路集成于IPM之中,实现控制基板与功率基板分离,切断来自功率器件的干扰;高度集成,减小配线电感;内设干扰滤波器,提高元件工作的可靠性和抗干扰能力。放电负载使用大功率电阻。由于控制对象为电流,因此主回路采用了电感储能的BUCK变换器结构,如图2所示。L1和D1起到续流和保护IPM的作用,C1在开关闭合时工作在放电方式,在开关断开时工作在充电方式,同时C1和L1结合使电池放电电流稳定。The main control circuit adopts IPM intelligent power module (PM800HSA060), which not only integrates IGBT switch tube and driving circuit, but also integrates perfect protection circuits, such as overvoltage protection, overcurrent protection, short circuit protection, undervoltage protection, overheat protection Etc., realize the self-protection of the components; the drive circuit is integrated in the IPM, realize the separation of the control substrate and the power substrate, and cut off the interference from the power device; highly integrated, reduce the wiring inductance; built-in interference filter, improve the work of the components reliability and anti-interference ability. Use high power resistors for discharge loads. Since the control object is current, the main circuit adopts the buck converter structure with inductive energy storage, as shown in Figure 2. L1 and D1 play the role of freewheeling and IPM protection. C1 works in discharge mode when the switch is closed, and works in charge mode when the switch is open. At the same time, the combination of C1 and L1 stabilizes the battery discharge current.

采用外部定时/计数器82C54来提供PWM波形,具有周期很短、分辫率高和反应速度快,以及所占用微处理器或单片机的时间少的优点。Using an external timer/counter 82C54 to provide PWM waveform has the advantages of very short period, high splitting rate, fast response speed, and less time occupied by microprocessor or single-chip microcomputer.

为实现PWM的输出,82C54的一个计数器被设置产生PWM所需要定时周期的工作方式;另一个计数器被设为可产生调脉冲宽度的工作方式,这个计数器的控制端GATE受到前一个计数器的输出端OUT的控制,从而产生了周期与脉冲宽度均可调节的PWM输出。周期的定时长短取决于PWM输出的分辨率。其关系式为:T=2n/fclk;其中n为分辨率的位数,为计数器的输人时钟的频率。以fclk为例,产生8位分辨率的定时周期为32us;若产生16位分辨率,定时周期为18.192ms。其硬件电路如图3所示。In order to realize the output of PWM, one counter of 82C54 is set to generate the working mode of the timing cycle required by PWM; the other counter is set to produce the working mode of modulating the pulse width, and the control terminal GATE of this counter is received by the output terminal of the previous counter OUT control, resulting in a PWM output with adjustable period and pulse width. The timing of the period depends on the resolution of the PWM output. Its relational formula is: T=2 n /f clk ; Among them n is the digit of the resolution, is the frequency of the input clock of the counter. Taking f clk as an example, the timing cycle for generating 8-bit resolution is 32us; if generating 16-bit resolution, the timing cycle is 18.192ms. Its hardware circuit is shown in Fig. 3.

所有保护信号送到单片机的中断输入端,单片机型号为89S52,当发生故障时,引起89S52单片机中断,在中断服务程序内立即封锁PWM脉冲,同时通过LED发光管和状态显示指示相应故障,以便维修。其IPM门极驱动隔离电路如图4所示,它实现对输出的PWM信号与IPM模块的光电隔离,并实现驱动和电平转换功能。高速光耦采用6N137,三极管为9014,供电电压为+15V,该三极管将来自光耦的TTL电平转换为IPM的+15V门极驱动信号。All protection signals are sent to the interrupt input terminal of the single-chip microcomputer. The single-chip microcomputer model is 89S52. When a fault occurs, the 89S52 single-chip microcomputer is interrupted, and the PWM pulse is immediately blocked in the interrupt service program. At the same time, the corresponding fault is indicated through the LED light-emitting tube and status display for maintenance. . Its IPM gate drive isolation circuit is shown in Figure 4, which realizes the photoelectric isolation of the output PWM signal and the IPM module, and realizes the driving and level conversion functions. The high-speed optocoupler uses 6N137, the triode is 9014, and the power supply voltage is +15V. The triode converts the TTL level from the optocoupler to the +15V gate drive signal of the IPM.

A/D转换器采用AD974。AD974是4通道,16位串行的A/D转换器。它的采样速率可为200KSPS。允许的输入电压范围可为:0~4V、0~5V及±10V。其A/D转换器与单片机连接的示意图如图5所示,R/C引脚用于表示AD974的工作状态,为高时表示AD974处于读状态,此时可把数据输入单片机。为低时表示处于转换状态,DATA引脚用于向单片机输入数据。DATACLK为AD974外部时钟输入端。SYNC引脚为AD974同步端口,在AD974输出数据之前一个时钟周期,SYNC端输出一高脉冲,利用此高脉冲可以同步数据传输。A0、A1为模拟输入选通端。V1A、V1B、V2A、V2B为模拟输入端。EXT/INT为时钟选择端,其值为高时使用外部时钟,反之使用内部时钟。PWRD为转换控制器,接高电平允许转换。CS为AD974片选信号,其值低时有效。AD974转换前先把R/C位清零,使AD974进入转换状态,转换结束后再置位R/C,从而进入读取状态。检测到SYNC信号为高电平,此后即可依次读取16位数据。使用单片机P1.5口的输出作为AD974的外部工作时钟,来控制数据的读取。A/D converter adopts AD974. AD974 is a 4-channel, 16-bit serial A/D converter. Its sampling rate can be 200KSPS. The allowable input voltage ranges are: 0~4V, 0~5V and ±10V. The schematic diagram of the connection between the A/D converter and the microcontroller is shown in Figure 5. The R/C pin is used to indicate the working state of the AD974. When it is high, it means that the AD974 is in the read state. At this time, the data can be input to the microcontroller. When it is low, it means that it is in the conversion state, and the DATA pin is used to input data to the microcontroller. DATACLK is the external clock input terminal of AD974. The SYNC pin is the synchronous port of AD974. One clock cycle before the AD974 outputs data, the SYNC terminal outputs a high pulse, which can be used to synchronize data transmission. A0 and A1 are analog input gates. V1A, V1B, V2A, V2B are analog input terminals. EXT/INT is the clock selection terminal, when its value is high, the external clock is used, otherwise the internal clock is used. PWRD is the conversion controller, connected to high level to allow conversion. CS is the AD974 chip selection signal, which is valid when its value is low. Clear the R/C bit before AD974 conversion, so that AD974 enters the conversion state, and then set R/C after the conversion is completed, so as to enter the read state. It is detected that the SYNC signal is high level, and 16-bit data can be read in sequence thereafter. Use the output of MCU P1.5 as the external working clock of AD974 to control the reading of data.

单片机控制AD974获取采样数据的程序流程如图6所示,当单片机选择通道后,在SYNC值为1时,单片机不断读取16位中的数据。当读取完数据后,通过连接的LCD显示,LCD采用ZY12864D,作为一种图形点阵液晶显示器,它主要由行驱动器/列驱动器及128*64全点阵液晶屏组成。可完成图形显示,也可以显示8*4个(16*16点阵)汉字。液晶屏采用总线的方式驱动,其接口的示意图可参见图7,P2口通过74LS138并配合P3.6(/WR)、P3.7(/RD)生成写入时序信号,P0.0—P0.2生成控制信号,将P0口的数据写入LCD屏,显示测量过程的状态及电量显示。The program flow of the MCU controlling the AD974 to obtain sampling data is shown in Figure 6. After the MCU selects the channel, when the SYNC value is 1, the MCU continuously reads the data in 16 bits. After reading the data, it will be displayed through the connected LCD. The LCD adopts ZY12864D, as a graphic dot matrix liquid crystal display, which is mainly composed of a row driver/column driver and a 128*64 full dot matrix LCD screen. Graphical display can be completed, and 8*4 (16*16 dot matrix) Chinese characters can also be displayed. The LCD screen is driven by bus. The schematic diagram of its interface can be seen in Figure 7. The P2 port generates write timing signals through 74LS138 and P3.6(/WR) and P3.7(/RD), P0.0—P0. 2 Generate a control signal, write the data of the P0 port into the LCD screen, and display the status of the measurement process and the power display.

上述的装置在工作过程中,单片机从A/D转换器上获取数据后,可通过多种算法运算出实际的工作电压,由于通过预置负载测量蓄电池的工作电压,具有比测量实际负载中的电压更有可比性和准确准确性,同时拥有测量过程简单的优点。During the working process of the above-mentioned device, after the single-chip microcomputer obtains data from the A/D converter, it can calculate the actual working voltage through various algorithms. Since the working voltage of the storage battery is measured through the preset load, it has the advantage of measuring the working voltage of the actual load. The voltage is more comparable and accurate, and at the same time has the advantage of a simple measurement process.

上面详细阐述了实用新型中的实施例,对于实施例中所阐述的装置,凡在本实用新型的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本实用新型的保护范围之内。The embodiments of the utility model have been described in detail above. For the devices described in the embodiments, any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the utility model shall be included in the utility model. within the scope of protection.

Claims (4)

1.一种蓄电池电量检测装置,其特征在于,包括:蓄电池连接预置负载,所述预置负载连接控制蓄电池放电的主控电路,所述蓄电池和所述预置负载连接测量放电信号的A/D转换器,所述A/D转换器连接运算数字信号并输出测量电量值的单片机。1. A battery power detection device, characterized in that it comprises: the battery is connected to a preset load, the preset load is connected to a main control circuit for controlling the discharge of the battery, and the battery and the preset load are connected to measure A of the discharge signal /D converter, the A/D converter is connected to the single-chip microcomputer for calculating the digital signal and outputting the measured power value. 2.根据权利要求1所述的一种蓄电池电量检测装置,其特征在于,所述单片机和所述主控电路之间还连接保护电路。2 . The battery power detection device according to claim 1 , wherein a protection circuit is further connected between the single-chip microcomputer and the main control circuit. 3 . 3.根据权利要求1所述的一种蓄电池电量检测装置,其特征在于,所述单片机还连接显示测量电量值的显示器。3 . The battery power detection device according to claim 1 , wherein the single-chip microcomputer is also connected to a display for displaying the measured power value. 4 . 4.根据权利要求1所述的一种蓄电池电量检测装置,其特征在于,所述单片机还连接输入控制命令的键盘。4. A storage battery power detection device according to claim 1, characterized in that the single-chip microcomputer is also connected to a keyboard for inputting control commands.
CNU2008200095406U 2008-05-13 2008-05-13 A battery power detection device Expired - Fee Related CN201194024Y (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNU2008200095406U CN201194024Y (en) 2008-05-13 2008-05-13 A battery power detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNU2008200095406U CN201194024Y (en) 2008-05-13 2008-05-13 A battery power detection device

Publications (1)

Publication Number Publication Date
CN201194024Y true CN201194024Y (en) 2009-02-11

Family

ID=40393557

Family Applications (1)

Application Number Title Priority Date Filing Date
CNU2008200095406U Expired - Fee Related CN201194024Y (en) 2008-05-13 2008-05-13 A battery power detection device

Country Status (1)

Country Link
CN (1) CN201194024Y (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846728A (en) * 2010-05-31 2010-09-29 重庆长安汽车股份有限公司 Incoming inspection device of power battery for hybrid electric vehicle and inspection method
CN103872736A (en) * 2014-03-24 2014-06-18 华南师范大学 Protected charging circuit capable of displaying electric quantity
CN104849673A (en) * 2015-05-29 2015-08-19 张释文 Storage battery detection device
CN109490782A (en) * 2018-11-28 2019-03-19 重庆欧锐特科技有限公司 A kind of electric quantity detection apparatus

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101846728A (en) * 2010-05-31 2010-09-29 重庆长安汽车股份有限公司 Incoming inspection device of power battery for hybrid electric vehicle and inspection method
CN101846728B (en) * 2010-05-31 2013-04-03 重庆长安汽车股份有限公司 Incoming inspection device of power battery for hybrid electric vehicle and inspection method
CN103872736A (en) * 2014-03-24 2014-06-18 华南师范大学 Protected charging circuit capable of displaying electric quantity
CN104849673A (en) * 2015-05-29 2015-08-19 张释文 Storage battery detection device
CN109490782A (en) * 2018-11-28 2019-03-19 重庆欧锐特科技有限公司 A kind of electric quantity detection apparatus

Similar Documents

Publication Publication Date Title
CN203522301U (en) Electric vehicle on-board charging management system
CN201194024Y (en) A battery power detection device
CN110763292A (en) Novel ultrasonic intelligent water meter
CN1598989A (en) Detecting device of mixed power electronic circuit-breaker
CN101340096A (en) Power Reactive Power Compensation Controller
CN201477136U (en) Color LCD multifunctional power instrument
CN201101398Y (en) Electric cooker controller with memory function
CN206224689U (en) A kind of Intelligent Card for Gas Meter controller based on the GPRS communication technologys
CN203084152U (en) Triode transistor characteristic parameter testing system
CN201860121U (en) Reactive compensator
CN206072476U (en) A kind of valve control device adjusted for fluid flow
CN205749669U (en) A kind of three-phase remote bill control intelligent electric energy meter
CN203157741U (en) Speed control device of electric bicycle
CN201788268U (en) Lithium battery power detection device
CN204881654U (en) Bicycle speed sensor
CN205067595U (en) Three -phase network deployment detects ammeter
CN211147748U (en) Bicycle speed measuring device based on singlechip
CN204265162U (en) A kind of elevator dragging wire rope stress harvester of low-power consumption
CN204591746U (en) A kind of fan intelligent control system
CN103338031B (en) The special driving method of a kind of RS485 circuit in two optocoupler peripheral applications
CN207502695U (en) A kind of Multifunctional power energy detection module of general purpose engine
CN206364521U (en) For electric automobile and the integral type charging pile of electric bicycle
CN203116753U (en) Bicycle speed and travel testing system based on single chip
CN206658067U (en) A kind of multifunctional storage battery quick charger
CN206719229U (en) A kind of locomotive, which is driven over the speed limit, prompts warning system

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090211

Termination date: 20100513