CN114814605A - Infusion device battery power calculation method, infusion device and storage medium - Google Patents
Infusion device battery power calculation method, infusion device and storage medium Download PDFInfo
- Publication number
- CN114814605A CN114814605A CN202110109147.4A CN202110109147A CN114814605A CN 114814605 A CN114814605 A CN 114814605A CN 202110109147 A CN202110109147 A CN 202110109147A CN 114814605 A CN114814605 A CN 114814605A
- Authority
- CN
- China
- Prior art keywords
- battery
- voltage drop
- electric quantity
- infusion device
- battery 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/36—Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
- G01R31/382—Arrangements for monitoring battery or accumulator variables, e.g. SoC
- G01R31/3835—Arrangements for monitoring battery or accumulator variables, e.g. SoC involving only voltage measurements
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Infusion, Injection, And Reservoir Apparatuses (AREA)
Abstract
The application relates to a method for calculating the battery power of an infusion device, the infusion device and a storage medium. The method is applied to a controller of an infusion device, and comprises the following steps: sending a driving device starting instruction to the motor driver; obtaining the voltage drop duration of the battery; calculating the current battery voltage drop within the battery voltage drop duration by taking the sending moment of the driving equipment starting instruction as a starting point; and calculating the current battery electric quantity corresponding to the current battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity. The method can accurately calculate the electric quantity of the battery.
Description
Technical Field
The present application relates to the field of electronic devices, and in particular, to a method for calculating battery power of an infusion device, and a storage medium.
Background
The infusion equipment is one of the most common products in the medical field, is used for realizing the continuous infusion of liquid medicine, and is widely applied to the treatment of diseases such as diabetes, hypogonadotropic hormone hypogonadism and the like.
The portable infusion device is generally limited by the volume of the portable product, and a small-capacity disposable small-volume battery such as a AAA battery, a customized lithium manganese or lithium thionyl chloride battery and the like which are commonly used as a power supply mode is used as a power supply. The small volume of the battery is for the infusion device itself to be light and convenient, and convenient for the customer to use and live. However, in the conventional small portable infusion device, the problem of large error in electric quantity judgment exists, and adverse effects are brought to the use feeling and safety of a user. The current common electric quantity judgment mode is that a system judges the capacity of a battery through detected electrified voltage: when the voltage is lower than a certain set voltage, the system judges that the electric quantity is low; and in the safety range of the system voltage, setting a safety voltage, and when the voltage is lower than the safety voltage, displaying the mark of the exhausted electric quantity by the system.
Specifically, as shown in fig. 1, fig. 1 is a discharge graph of a battery with constant current of 10ma discharge in the prior art, wherein the current method for testing the capacity of the battery is to use constant current discharge (for example, 5 ma, 10 ma) and detect the voltage. Taking fig. 1 as an example, when the battery is discharged at a current of 10ma, the whole discharge interval of the battery starts to discharge from 3.2V to a safe voltage of 2.7V. If the product is displayed according to 4 grids of electricity, setting 2.8-3.2 as full grid display, 2.78-2.8 as 3 grids, 2.75-2.78 as 2 grids and 2.7-2.75 as 1 grid.
However, the above-mentioned power estimation has two problems, which are also the main reasons for the deviation of the power estimation of the small portable infusion device:
firstly, the method comprises the following steps: the working mode of the small portable infusion device is different from that of the traditional constant-current charging and discharging, the infusion device comprises a sleep state and a working state, the current in the sleep state is uA level, and the working current in the working state is 100mA level, so that the voltage detected in the sleep state of the device is obviously different from the voltage detected in the working state of the device.
Secondly, the method comprises the following steps: the battery system has a virtual electricity condition, namely, the open-circuit voltage is very high, and the voltage value of the system restart is instantly reduced once a load exists, so that the condition directly causes that the estimation of the electric quantity by taking the voltage value as a standard has a high probability of misjudgment.
Disclosure of Invention
In view of the above, it is necessary to provide an infusion apparatus battery level calculation method, an infusion apparatus, and a storage medium capable of accurately acquiring a battery level in response to the above technical problems.
An infusion device battery power calculation method applied to a controller of an infusion device, the method comprising:
sending a driving device starting instruction;
beginning to calculate the battery voltage drop duration;
after the battery voltage drop duration is finished, calculating the battery voltage drop within the battery voltage drop duration;
and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, a first voltage of the battery is collected when the battery voltage drop duration is calculated;
collecting a second voltage of the battery after the voltage drop duration of the battery is over;
the calculating the battery voltage drop over the battery voltage drop duration includes:
and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
In one embodiment, the battery pressure drop duration is determined based on hardware parameters of the infusion device.
In one embodiment, the obtaining manner of the corresponding relationship between the battery voltage drop and the battery capacity includes:
discharging the battery of the infusion device, and acquiring the voltage drop of the battery in each discharging process;
acquiring the battery electric quantity of the battery after each discharge;
recording the corresponding relation between the battery voltage drop and the battery electric quantity of the battery;
and fitting the recorded battery voltage drop and the battery electric quantity to obtain a corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, the obtaining the battery power of the battery after each discharge includes:
and acquiring the number of the sections of the battery with the stored electric quantity left after each discharge, and calculating the electric quantity of the battery according to the number of the sections of the battery with the stored electric quantity left.
In one embodiment, after the calculating the current battery power corresponding to the battery voltage drop according to the corresponding relationship between the battery voltage drop and the battery power, the method further includes:
and sending the current battery power to a display module.
An infusion device, comprising:
a battery for providing electrical energy to the infusion device;
a motor driver connected to a drive device that controls movement of the infusion assembly;
the controller is connected with the motor driver and is used for sending a driving device starting instruction to the motor driver; beginning to calculate the battery voltage drop duration; after the battery voltage drop duration is finished, calculating the battery voltage drop within the battery voltage drop duration; and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, the infusion device further comprises a power conversion module connected with the battery and the controller;
the controller is further used for collecting a first voltage of the battery through the power supply conversion module when the battery voltage drop duration begins to be calculated; after the voltage drop duration of the battery is over, acquiring a second voltage of the battery through the power supply conversion module; and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
In one embodiment, the motor driver of the infusion device, the controller, and the power conversion module are integrated on a PCB board.
In one embodiment, the infusion device further includes a display module, the display module is connected to the controller, and the display module is configured to receive and display the current battery level sent by the controller.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any of the above embodiments.
According to the infusion device battery capacity calculation method, the infusion device and the storage medium, when the starting instruction is sent to the driving device, the battery voltage drop of the starting instruction in the battery voltage drop duration is recorded, the current battery capacity corresponding to the battery voltage drop is calculated according to the corresponding relation between the battery voltage drop and the battery capacity, the capacity estimation of the infusion device under different current loads is completed at low cost through the corresponding relation between the battery voltage drop and the battery capacity, and the accuracy of battery capacity judgment is improved.
Drawings
FIG. 1 is a schematic diagram of a discharge curve of a conventional prior art battery with a constant current of 10 mA;
FIG. 2 is a block diagram of the structure of an infusion device in one embodiment;
FIG. 3 is a schematic flow chart of a method for calculating the battery charge of an infusion device in accordance with one embodiment;
FIG. 4 is a plot of cell drop versus cell drop duration for one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be connected to the other element through intervening elements. Further, "connection" in the following embodiments is understood to mean "electrical connection", "communication connection", or the like, if there is a transfer of electrical signals or data between the connected objects.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
The infusion device battery power calculation method provided by the application can be applied to the infusion device shown in fig. 2. The infusion device comprises a controller, a power supply conversion module and a motor driver, wherein the controller is respectively connected with the power supply conversion module and the motor driver, the power supply conversion module is also connected with a battery, and the motor driving module is connected with a driving device. In addition, the infusion device also comprises a display module, and the controller is also connected with the display module.
Specifically, the battery is used to supply power to each module of the infusion device, and the present embodiment has no particular limitation on the type and capacity of the battery. For example, the battery can be a disposable lithium battery with AAA capacity of 100-300 mAh.
The power conversion module is used for transmitting the electric energy provided by the battery to each module, namely providing required input voltage for each module. Specifically, in practice, since the input voltages required by the controller, the motor driver, the driving device, and the display module are different from each other, the power conversion module needs to convert the electric energy provided by the battery to the required input voltages respectively and then transmit the electric energy to the respective modules. In addition, the power supply conversion module also collects the output voltage of the battery according to the instruction of the controller.
The motor driver is adapted to receive a drive device activation command from the controller to drive movement of the device, wherein the drive device is preferably a motor such that the motor can drive an infusion set connected thereto, e.g. the motor drives an infusion pump to deliver fluid to a patient, e.g. the infusion pump delivers medical fluid to the patient under the drive of the motor.
The controller is used for controlling the motor driver to realize the on-off of the driving device, and the controller can also control the power supply conversion module to collect the output voltage of the battery, so that the current battery voltage drop within the battery voltage drop duration time can be calculated, and the battery electric quantity corresponding to the current battery voltage drop can be acquired. Further optionally, the controller may send the battery power to the display module for display.
In one embodiment, as shown in fig. 3, there is provided an infusion apparatus battery charge calculation method, which is described by taking the method as an example applied to the controller in fig. 2, and includes the following steps:
s302: and sending a driving device starting instruction.
Specifically, the driving device start instruction is sent to the motor driver by the controller, so that the motor driver can output a pulse width modulation signal to the driving device according to the driving device start instruction to enable the driving device to start running.
Wherein the infusion device includes a plurality of modes, such as a sleep mode, an active mode, and an inactive mode, wherein when the infusion device is in the sleep mode or the inactive mode, the controller may send a drive device activation command to the motor driver to cause the drive device to activate to place the infusion device in the active mode.
S304: the battery voltage drop duration begins to be calculated.
S306: and after the battery voltage drop duration is finished, calculating the battery voltage drop in the battery voltage drop duration.
Specifically, the battery voltage drop duration refers to a time period during which the voltage of the battery continues to drop due to a current surge at the instant when the driving apparatus is started, and the voltage of the battery is increased after the time period, which is the battery voltage drop duration. Specifically, as shown in fig. 4, a time point m in fig. 4 is a moment when the driving device starts to send a command, at which the driving device starts to start, the battery continuously drops voltage, and reaches a time point n, the battery is boosted, where a period of time between the time point m and the time point n is a battery voltage drop duration, where the battery voltage drop duration may be obtained in advance, and is related to a hardware parameter of the infusion device.
The current battery voltage drop refers to the absolute value of the voltage drop generated by the battery, namely the difference value of the battery voltage corresponding to the time point m and the time point n, during the battery voltage drop duration. In order to avoid the calculation of the absolute value, in practice, the current battery voltage drop may be obtained directly by subtracting the battery voltage corresponding to the previous time point, i.e., the time point m, from the battery voltage corresponding to the subsequent time point, i.e., the time point n.
S308: and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
Specifically, when the battery is fully charged, at the instant of starting the driving device, the voltage drop of the battery caused by current surge is small; when the battery is about to be used up, the voltage drop of the battery caused by the current impact at the moment of starting the driving equipment is large, and the corresponding relation, namely the proportional relation, exists between the voltage drop of the battery and the electric quantity of the battery.
Therefore, the controller stores the corresponding relationship between the battery voltage drop and the battery capacity in advance, for example, a table or a conversion formula between the battery voltage drop and the battery capacity is stored, so that the controller can calculate the current battery capacity according to the current battery voltage drop after calculating the current battery voltage drop.
In addition, it should be noted that, since the power consumption of the infusion device mainly lies in the start-up phase of the driving device, and the power consumption is very small in the working and sleep states of the infusion device and can be ignored compared with the start-up phase of the driving device, the controller only collects the battery power in the start-up phase of the driving device, and the battery power of the infusion device still depends on the battery power collected when the driving device is started up at present before the next start-up of the driving device.
According to the method for calculating the battery power of the infusion equipment, when the starting instruction is sent to the driving equipment, the battery voltage drop of the starting instruction within the battery voltage drop duration is recorded, the current battery power corresponding to the battery voltage drop is calculated according to the corresponding relation between the battery voltage drop and the battery power, the capacity estimation of the infusion equipment under different current loads is completed at low cost through the corresponding relation between the battery voltage drop and the battery power, and the accuracy of battery power judgment is improved.
In one embodiment, after the battery voltage drop duration is over, calculating the battery voltage drop during the battery voltage drop duration includes: collecting a first voltage of the battery when the voltage drop duration of the battery begins to be calculated; collecting a second voltage of the battery after the voltage drop duration of the battery is over; calculating the cell voltage drop over the cell voltage drop duration, comprising: and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
Specifically, under the condition that the battery is fully charged, the voltage drop of the battery caused by the instant current impact of the starting of the driving equipment is small, and when the battery is about to be used up, the voltage drop of the battery caused by the instant current impact of the starting of the driving equipment is large; and a linear relationship exists between the magnitude of the battery voltage drop and the battery charge.
Therefore, the controller can perform parallel processing on the command for starting the driving device and the command for sending the first voltage for collecting the battery to the power conversion module, so that when the controller starts to calculate the duration of the battery voltage drop, the controller collects the first voltage of the battery at the same time, and the timer of the controller performs timing, so that when the timer determines that the sending moment of the command for starting the driving device is taken as a starting point and the duration of the battery voltage drop is passed, the controller sends the collecting command to the power conversion module again to collect the second voltage of the battery. Thus, the voltage drop of the battery can be obtained by subtracting the second voltage from the first voltage.
In the embodiment, the voltage of the battery is accurately calculated by collecting the voltage of the battery at the starting point and the ending point of the voltage drop duration of the battery, so that the accuracy of subsequent battery electric quantity calculation is ensured.
In one embodiment, the battery pressure drop duration is determined based on hardware parameters of the infusion device.
In particular, the battery voltage drop duration is relatively fixed while the drive relationship between the motor driver, the drive device, the infusion set, and the three of the device is maintained.
Therefore, the battery voltage drop duration can be obtained through an experiment mode, and in order to ensure the accuracy of the battery voltage drop duration, the battery voltage drop duration is preferably calculated through a mode of averaging through multiple experiments. Therefore, in practical application, after the starting instruction of the driving equipment is sent, the instant current impact time of the driving equipment is consistent, and the instant current impact time can be accurately obtained and evaluated, so that the controller can store the battery voltage drop duration in advance to calculate the battery voltage drop.
In the above embodiment, since the battery voltage drop duration is determined according to the hardware parameters of the infusion device, the battery voltage drop duration may be obtained by experimental calculation after the hardware parameters are determined in advance.
In one embodiment, the obtaining manner of the corresponding relationship between the battery voltage drop and the battery capacity includes: discharging a battery of the infusion device, and acquiring the voltage drop of the battery in each discharging process; acquiring the battery electric quantity of the battery after each discharge; recording the corresponding relation between the battery voltage drop and the battery electric quantity of the battery; and fitting the recorded battery voltage drop and the battery electric quantity to obtain a corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, obtaining the battery level of the battery after each discharge comprises: and acquiring the number of the sections of the battery with the stored electric quantity left after each discharge, and calculating the electric quantity of the battery according to the number of the sections of the battery with the stored electric quantity left.
Specifically, in order to obtain the corresponding relationship between the battery voltage drop and the battery capacity, experiments may be performed in advance, that is, the battery of the infusion apparatus is obtained, for example, a plurality of batteries used by the infusion apparatus are obtained, so that each capacity segment needs x batteries according to the different ratios of the battery capacity display, and if the capacity segment is divided into 4 segments, that is, 1 grid corresponds to 25% of the battery capacity, 2 grid corresponds to 50% of the battery capacity, 3 grid corresponds to 75% of the battery capacity, and 4 grid corresponds to 100% of the battery capacity, 4x batteries are needed in total.
In the experiment, discharge to different capacity sections to snatch different capacity section batteries and in the use battery pressure drop, record the corresponding relation between battery pressure drop and the battery electric quantity of battery. And finally, fitting the recorded battery voltage drop and the battery electric quantity to obtain a corresponding relation between the battery voltage drop and the battery electric quantity, wherein the fitted corresponding relation is a linear relation, so that the battery electric quantity can be calculated according to the battery voltage drop. The battery is discharged in different capacity sections, and the battery can be discharged according to the battery section number, so that the remaining electric quantity, namely the battery electric quantity, can be obtained by calculating the section number of the battery which stores the electric quantity and is left after each discharge. And the corresponding relation between the battery electric quantity and the battery voltage drop is more accurate.
For convenience of understanding, practical products such as an LF-S-1 type pituitary hormone infusion pump and an A/E type insulin pump are taken as examples for explanation:
the electric quantity of the product is displayed in 4 equal parts: 3 check electricity, 2 check electricity, 1 check electricity and electric quantity are exhausted, so adopt the battery quantity 120 section, divide into 4 groups, do corresponding experiment discharge experiment.
Wherein 30 sections discharge 25% electricity, then 30 sections continue to discharge, thus total discharge 50% electricity, and continue 30 sections to discharge, thus total discharge 75% electricity, and continue 30 sections discharge to the end of electricity, the infusion device can not start the drive device, only can provide the display for early warning.
Under different battery capacities, the driving device is started to capture voltage drop caused by instantaneous current impact of the motor, specifically, as shown in fig. 4, the interval from the start of the driving device to the impact of the mass flow is 15ms, that is, the interval between the m point and the n point in fig. 4 is 15ms, and the sampling time of the controller is designed as the start instruction sending time of the driving device and the 15ms time after the start instruction is sent. Preferably, in order to ensure the accuracy of the obtained correspondence between the battery capacity and the battery voltage drop, 120 sets of voltage acquisition may be performed, that is, each time 1 battery is discharged, the battery voltage drop acquisition is performed once.
And finally, fitting the battery voltage drops corresponding to different battery capacities to obtain the linear relation between the battery electric quantity and the battery voltage drops.
In the embodiment, the corresponding relation between the battery capacity and the battery voltage drop corresponding to the infusion device is obtained in advance through a discharge experiment, and the corresponding relation is directly stored in the controller, so that the battery capacity can be directly obtained by the controller after the current battery voltage drop is obtained, and the accuracy is ensured.
In one embodiment, after calculating the current battery power corresponding to the battery voltage drop according to the corresponding relationship between the battery voltage drop and the battery power, the method further includes: and sending the current battery power to a display module.
In particular, the display module is preferably a liquid crystal display module.
As described above, the controller is further connected to the display module, wherein after the controller obtains the current battery power, that is, after the number of the grids required to be displayed is determined, the controller sends the number of the grids required to be displayed to the display module for displaying. So that the user can know the electric quantity in time.
In the above embodiment, after the current battery power is obtained through calculation, the current battery power is sent to the display module for display.
It should be understood that, although the steps in the flowchart of fig. 3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 2, there is provided an infusion device comprising: a battery, a motor driver, and a controller, wherein: the battery is used for providing electric energy for the infusion device, and the motor driver is connected with the driving device for controlling the movement of the infusion component; the controller is connected with the motor driver and used for sending a starting instruction of the driving equipment; beginning to calculate the battery voltage drop duration; after the battery voltage drop duration is finished, calculating the battery voltage drop within the battery voltage drop duration; and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
Wherein the motor driver and the controller may be integrated on a PCB board to reduce the volume as much as possible. In other embodiments, the motor driver and the controller may also implement data transmission through data lines and the like.
When the infusion device sends the starting instruction to the driving device, the current battery voltage drop of the starting instruction within the battery voltage drop duration is recorded, the current battery electric quantity corresponding to the battery voltage drop is calculated according to the corresponding relation between the battery voltage drop and the battery electric quantity, the capacity estimation of the portable infusion device under different current loads is completed at low cost through the corresponding relation between the battery voltage drop and the battery electric quantity, and the accuracy of battery electric quantity judgment is improved.
In one embodiment, the infusion device further comprises a power conversion module, the power conversion module is connected with the battery and the controller; the controller is also used for collecting a first voltage of the battery through the power supply conversion module when the battery voltage drop duration begins to be calculated; after the voltage drop duration of the battery is over, acquiring a second voltage of the battery through a power supply conversion module; and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
The power supply conversion module is used for collecting the voltage of the battery under the indication of the controller and sending the voltage to the controller, and is used for providing required voltage for each module of the infusion equipment to ensure the normal operation of the infusion equipment.
Specific limitations on the features in this embodiment may be referred to above, and are not described herein again.
In one embodiment, the motor driver, controller and power conversion module of the infusion device are integrated on a PCB board.
In this embodiment, to reduce the volume of the infusion device, the power conversion module, the motor driver and the controller are all integrated on the PCB module. In other embodiments, one or more independent devices of the above three devices may also implement data transmission by means of data lines and the like.
In one embodiment, the infusion device further comprises a display module, the display module is connected with the controller, and the display module is used for receiving and displaying the current battery power sent by the controller.
For specific limitations of the infusion device, see the above limitations of the method for calculating the battery charge of the infusion device, which are not described herein again. The various modules in the infusion device described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: sending a driving device starting instruction; beginning to calculate the battery voltage drop duration; after the duration time of the battery voltage drop is over, calculating the battery voltage drop within the duration time of the battery voltage drop; and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, a computer program implemented when executed by a processor collects a first voltage of a battery at a time when beginning to calculate a battery voltage drop duration; collecting a second voltage of the battery after the voltage drop duration of the battery is over; and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
In one embodiment, the duration of the battery voltage drop involved in the execution of the computer program by the processor is determined in accordance with hardware parameters of the infusion device.
In one embodiment, the obtaining of the correspondence between the battery voltage drop and the battery charge level involved in the execution of the computer program by the processor comprises: discharging a battery of the infusion device, and acquiring the voltage drop of the battery in each discharging process; acquiring the battery electric quantity of the battery after each discharge; recording the corresponding relation between the battery voltage drop and the battery electric quantity of the battery; and fitting the recorded battery voltage drop and the battery electric quantity to obtain a corresponding relation between the battery voltage drop and the battery electric quantity.
In one embodiment, the obtaining battery charge of the battery after each discharge, implemented when the computer program is executed by the processor, comprises: and acquiring the number of the sections of the battery with the stored electric quantity left after each discharge, and calculating the electric quantity of the battery according to the number of the sections of the battery with the stored electric quantity left.
In one embodiment, after the computer program is executed by a processor to calculate a current battery capacity corresponding to the battery voltage drop according to a corresponding relationship between the battery voltage drop and the battery capacity, the method further includes: and sending the current battery power to a display module.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
In the description herein, references to the description of "some embodiments," "other embodiments," "desired embodiments," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, a schematic description of the above terminology may not necessarily refer to the same embodiment or example.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (11)
1. An infusion device battery power calculation method, applied to a controller of an infusion device, the method comprising:
sending a driving device starting instruction;
beginning to calculate the battery voltage drop duration;
after the battery voltage drop duration is finished, calculating the battery voltage drop within the battery voltage drop duration;
and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
2. The method of claim 1, wherein a first voltage of the battery is collected at the beginning of calculating the battery voltage drop duration;
collecting a second voltage of the battery after the voltage drop duration of the battery is over;
the calculating the battery voltage drop over the battery voltage drop duration includes:
and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
3. The method of claim 1, wherein the battery pressure drop duration is determined according to hardware parameters of the infusion device.
4. The method according to claim 1, wherein the obtaining of the correspondence between the battery voltage drop and the battery charge level comprises:
discharging the battery of the infusion device, and acquiring the voltage drop of the battery in each discharging process;
acquiring the battery electric quantity of the battery after each discharge;
recording the corresponding relation between the battery voltage drop and the battery electric quantity of the battery;
and fitting the recorded battery voltage drop and the battery electric quantity to obtain a corresponding relation between the battery voltage drop and the battery electric quantity.
5. The method of claim 4, wherein said obtaining the battery level of the battery after each discharge comprises:
and acquiring the number of the sections of the battery with the stored electric quantity left after each discharge, and calculating the electric quantity of the battery according to the number of the sections of the battery with the stored electric quantity left.
6. The method according to any one of claims 1 to 5, wherein after calculating the current battery power corresponding to the battery voltage drop according to the corresponding relationship between the battery voltage drop and the battery power, the method further comprises:
and sending the current battery power to a display module.
7. An infusion device, characterized in that it comprises:
a battery for providing electrical energy to the infusion device;
a motor driver connected to a drive device that controls movement of the infusion assembly;
the controller is connected with the motor driver and is used for sending a driving device starting instruction to the motor driver; beginning to calculate the battery voltage drop duration; after the battery voltage drop duration is finished, calculating the battery voltage drop within the battery voltage drop duration; and calculating the current battery electric quantity corresponding to the battery voltage drop according to the corresponding relation between the battery voltage drop and the battery electric quantity.
8. The infusion device of claim 7, further comprising a power conversion module connected to the battery and the controller;
the controller is further used for collecting a first voltage of the battery through the power supply conversion module when the battery voltage drop duration begins to be calculated; after the voltage drop duration of the battery is over, acquiring a second voltage of the battery through the power supply conversion module; and calculating the difference value of the first voltage and the second voltage to obtain the voltage drop of the battery.
9. The infusion device of claim 8, wherein the motor driver, the controller, and the power conversion module of the infusion device are integrated on a PCB board.
10. The infusion device of claim 7, further comprising a display module coupled to the controller, the display module configured to receive and display the current battery level sent by the controller.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110109147.4A CN114814605A (en) | 2021-01-27 | 2021-01-27 | Infusion device battery power calculation method, infusion device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110109147.4A CN114814605A (en) | 2021-01-27 | 2021-01-27 | Infusion device battery power calculation method, infusion device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114814605A true CN114814605A (en) | 2022-07-29 |
Family
ID=82523813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110109147.4A Pending CN114814605A (en) | 2021-01-27 | 2021-01-27 | Infusion device battery power calculation method, infusion device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114814605A (en) |
-
2021
- 2021-01-27 CN CN202110109147.4A patent/CN114814605A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8382701B2 (en) | Method for ensuring constant speed of a motor in an injection device | |
US8970388B2 (en) | Battery life indication techniques for an electronic device | |
US9755452B2 (en) | Power control techniques for an electronic device | |
US20180196394A1 (en) | Device for motor-driven appliance | |
US9372216B2 (en) | Electric power supply controller for vehicle | |
JP2010239817A (en) | Information display device | |
DE69711651T2 (en) | SUPPLY UNIT AND CHARGER FOR BATTERY-POWERED ELECTRICAL DEVICE AND RELATED METHOD | |
CN111781518A (en) | Method and device for displaying battery electric quantity and terminal | |
CN105227013A (en) | A kind of electric tool and control method thereof | |
CN114814605A (en) | Infusion device battery power calculation method, infusion device and storage medium | |
CN212808554U (en) | Display device for battery electric quantity | |
US20010005127A1 (en) | Battery charger and method of detecting a fully charged condition of a secondary battery | |
JP2002247773A (en) | Diagnosis for deterioration of secondary battery and remaining capacity calculation correction and control device using the same | |
CN110824253B (en) | Method and device for detecting direct current impedance of battery, electronic equipment and computer storage medium | |
CN112147523B (en) | Button cell allowance measuring method and measuring device | |
CN103089599B (en) | Compressor pump protective circuit and compressor pump controlling method | |
TWI833434B (en) | Battery management device, battery management method, battery management program | |
JPH097642A (en) | Battery charger with diagnostic function | |
CN113547954B (en) | Battery electric quantity control method, equipment, control device and motorcycle | |
JP2744066B2 (en) | Charge control circuit | |
JP2007047117A (en) | Remaining charge computing apparatus | |
CN215071739U (en) | Timing charger | |
JP4564122B2 (en) | Electronic clock | |
US11532826B2 (en) | Apparatus and method for battery passivation compensation in a medical device | |
JP3463350B2 (en) | Electric vacuum cleaner |
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 |