Air pump driving method, device and electronic equipment
By obtaining real-time voltage in the sphygmomanometer air pump and adjusting the drive duty cycle, the problem of the air pump failing to start in low temperature environments is solved, ensuring the accuracy of measurement results and user experience.
Patent Information
- Application Number
- CN202210621734.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2042-06-01
AI Technical Summary
The sphygmomanometer air pump failed to start due to reduced battery voltage in low-temperature environments, leading to customer complaints. In addition, the inflation rate and noise were inconsistent, affecting the accuracy of measurement results and user experience.
By obtaining the real-time voltage of the air pump at a preset time point, the target drive voltage and drive duty cycle are determined, and the PWM signal of the air pump drive circuit is adjusted to ensure that the air pump can start normally and maintain a constant inflation rate in low temperature environments.
It enables the air pump to start normally in low-temperature environments, avoids customer complaints, maintains the consistency and accuracy of inflation time, reduces noise impact, and improves user experience.
Smart Images

Figure CN115013278B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of air pumps, and in particular to an air pump driving method, device and electronic equipment. Background Art
[0002] When measuring with a sphygmomanometer, there are many factors that may affect the failure of the air pump to start, such as the motor, air pump structural parts, etc. Simply calculating the relationship between the motor starting current, voltage, torque and speed will not solve the problems caused by the structural parts. In addition, the sphygmomanometer air pump generally needs to be tested and qualified before leaving the factory. Therefore, the main reason for the failure of the air pump to start will come from changes in the battery voltage itself and deviations in the performance of the motor and air pump structural parts under different environments.
[0003] Traditionally, in order to maintain a uniform inflation rate, the air pump of an ascending sphygmomanometer is generally driven according to a fixed PWM duty cycle. In fact, after the air pump is started, the battery voltage will drop. In a low-temperature environment, if the battery voltage drops to a certain level, it is still driven according to the same PWM duty cycle and the air pump may not be started, leading to customer complaints. Summary of the invention
[0004] The purpose of the present invention is to provide an air pump driving method, device and electronic equipment to improve user experience and avoid customer complaints.
[0005] The present invention provides an air pump driving method, in which the air pump is powered by a battery, and the method includes: obtaining a target driving voltage for driving the air pump; collecting the real-time voltage of the battery at a preset time point; determining the real-time driving duty cycle of the driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and controlling the driving circuit to drive the air pump according to the target driving voltage according to the real-time driving duty cycle.
[0006] Furthermore, the step of obtaining the target driving voltage of the air pump includes: obtaining the minimum starting voltage of the air pump under preset environmental conditions; determining the target driving voltage based on the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage.
[0007] Furthermore, the preset time point includes: a first designated time point within a first preset time period before the air pump is started, and a second designated time point within a second preset time period after the air pump is started.
[0008] Furthermore, according to the real-time driving duty cycle, the step of controlling the driving circuit to drive the air pump according to the target driving voltage includes: according to the first driving duty cycle corresponding to the first specified time point, controlling the driving circuit to generate a first PWM signal with a duty cycle equal to the first driving duty cycle; outputting the first PWM signal to enable the driving circuit to output the target driving voltage and start the air pump, and drive the air pump to operate according to the target driving voltage; when the air pump runs to a second specified time point, according to the second driving duty cycle corresponding to the second specified time point, controlling the driving circuit to generate a second PWM signal with a duty cycle equal to the second driving duty cycle; and outputting the second PWM signal to enable the driving circuit to output the target driving voltage and drive the air pump to operate continuously.
[0009] Furthermore, based on the real-time voltage of the battery at a preset time point and the target driving voltage, the step of determining the real-time driving duty cycle of the driving circuit of the air pump at a preset time point includes: calculating the ratio of the target driving voltage and the real-time voltage of the battery at the preset time point to obtain a calculation result; and determining the calculation result as the real-time driving duty cycle of the driving circuit of the air pump at the preset time point.
[0010] The present invention provides an air pump driving device, in which the air pump is powered by a battery, and the device includes: an acquisition module, used to acquire a target driving voltage for driving the air pump; a collection module, used to collect the real-time voltage of the battery at a preset time point; a determination module, used to determine the real-time driving duty cycle of the driving circuit of the air pump at a preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and a control module, used to control the driving circuit to drive the air pump according to the target driving voltage based on the real-time driving duty cycle.
[0011] Furthermore, the acquisition module is also used to: obtain the minimum starting voltage of the air pump under preset environmental conditions; determine the target driving voltage according to the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage.
[0012] Furthermore, the preset time point includes: a first designated time point within a first preset time period before the air pump is started, and a second designated time point within a second preset time period after the air pump is started.
[0013] The present invention provides an electronic device, which includes a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement any of the above-mentioned air pump driving methods.
[0014] The present invention provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement any of the above-mentioned air pump driving methods.
[0015] The air pump driving method, device and electronic device provided by the present invention, the air pump is powered by a battery, and the method includes: obtaining a target driving voltage for driving the air pump; collecting the real-time voltage of the battery at a preset time point; determining the real-time driving duty cycle of the driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and controlling the driving circuit to drive the air pump according to the target driving voltage according to the real-time driving duty cycle. In this method, the duty cycle of the driving circuit of the air pump is adjusted by the target driving voltage and the real-time voltage of the battery at the preset time point, and then the driving circuit is controlled to drive the air pump according to the target driving voltage according to the adjusted driving duty cycle. When the battery voltage drops to a certain level, the air pump can be started normally according to the target driving voltage in a low temperature environment, thereby improving the user experience and avoiding customer complaints. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 A flow chart of an air pump driving method provided by an embodiment of the present invention;
[0018] Figure 2 A flow chart of another air pump driving method provided by an embodiment of the present invention;
[0019] Figure 3 A schematic structural diagram of an air pump driving device provided by an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The technical solution of the present invention is clearly and completely described in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] The sphygmomanometer includes an air pump. When the air pump is driven, the sphygmomanometer starts to measure the blood pressure. In order to improve the accuracy of the measurement results, it is usually necessary to maintain a uniform inflation rate. To achieve a uniform inflation rate, the control of the air pump is critical. In the current prior art, the sphygmomanometer air pump is generally powered by a battery. The inflation rate is related to the battery voltage of the air pump. The air pump is generally driven according to a fixed PWM (Pulse Width Modulation) duty cycle.
[0023] The existing technology mainly has the following disadvantages:
[0024] The blood pressure monitor air pump is generally powered by a battery, and the battery voltage will decrease after the air pump is driven. If it is still driven according to a fixed PWM duty cycle as the battery voltage decreases, there will be problems such as a low air pump inflation rate and an increasingly long inflation time, which will affect the consistency and accuracy of the measurement results.
[0025] At the same time, if the battery voltage is too low and the air pump is still driven according to a fixed PWM duty cycle, the air pump will not be able to start in a low temperature environment, which will affect the customer experience and lead to customer complaints.
[0026] In addition, the noise will be inconsistent when the air pump is driven under different voltages. If you inflate at full speed at the moment of turning on the power, it will cause excessive noise and large impact current, which will affect the user experience and product battery life.
[0027] To facilitate understanding of this embodiment, firstly, a method for driving an air pump disclosed in an embodiment of the present invention is described in detail; the air pump is powered by a battery, such as Figure 1 As shown, the method comprises the following steps:
[0028] Step S102, obtaining a target driving voltage for driving the air pump.
[0029] The above-mentioned air pump can be a sphygmomanometer air pump, an aquarium air pump, etc. In the specific implementation process, the above-mentioned target driving voltage can be understood as the safety voltage required for normal driving of the air pump. In actual implementation, the safety voltage required for the sphygmomanometer air pump is first obtained to ensure normal driving of the air pump.
[0030] Step S104, collecting the real-time voltage of the battery at a preset time point.
[0031] In the specific implementation process, the air pump is powered by an auxiliary power supply, which can be a battery. The battery voltage is not constant, and the change of the battery voltage itself is closely related to the air pump drive. The above-mentioned preset time points can be one, two, or more. In actual implementation, the real-time voltage of the battery at one, two or more time points set in advance can be collected. Optionally, the above-mentioned preset time points can also be any continuous and uninterrupted current moment, so as to collect the real-time voltage of the battery at the current moment in real time.
[0032] Step S106, determining the real-time driving duty cycle of the driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage.
[0033] Step S108, according to the real-time driving duty cycle, controlling the driving circuit to drive the air pump according to the target driving voltage.
[0034] The driving circuit of the above-mentioned air pump generally adopts a PWM circuit, and the target driving voltage of the air pump can be adjusted by adjusting the PWM duty cycle to keep the target driving voltage constant to ensure that the output power remains unchanged. The real-time driving duty cycle of the driving circuit of the above-mentioned air pump at a preset time point is equal to the obtained target driving voltage divided by the real-time voltage of the battery collected at the preset time point.
[0035] In the specific implementation, the ratio of the target driving voltage and the real-time voltage of the battery at a preset time point is calculated to obtain a calculation result; the calculation result is determined as the real-time driving duty cycle of the driving circuit of the air pump at the preset time point. After the real-time driving duty cycle of the driving circuit of the air pump at the preset time point is determined, the driving circuit is controlled to drive the air pump according to the target driving voltage to achieve safe driving of the air pump.
[0036] In the above-mentioned air pump driving method, the air pump is powered by a battery, and the method includes: obtaining a target driving voltage for driving the air pump; collecting the real-time voltage of the battery at a preset time point; determining the real-time driving duty cycle of the air pump driving circuit at a preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and controlling the driving circuit to drive the air pump according to the target driving voltage according to the real-time driving duty cycle. In this method, the duty cycle of the air pump driving circuit is adjusted by the target driving voltage and the real-time voltage of the battery at the preset time point, and then the driving circuit is controlled to drive the air pump according to the target driving voltage according to the adjusted driving duty cycle. When the battery voltage drops to a certain level, the air pump can be started normally according to the target driving voltage in a low temperature environment, thereby improving the user experience and avoiding customer complaints.
[0037] The embodiment of the present invention further provides another air pump driving method, which is implemented on the basis of the above embodiment method; in this method, the preset time point includes: a first specified time point within a first preset time period before the air pump is started, and a second specified time point within a second preset time period after the air pump is started; Figure 2 As shown, the method comprises the following steps:
[0038] Step S202, obtaining the minimum starting voltage of the air pump under preset environmental conditions.
[0039] Generally, when the battery power is low, the air pump is most difficult to start under low temperature conditions. Therefore, the above-mentioned preset environmental conditions can be low temperature conditions, such as a temperature below minus 20 degrees Celsius, specifically minus 25 degrees Celsius. The above-mentioned minimum starting voltage can be the voltage at which the air pump can just start normally under low temperature conditions when the battery voltage is low. The minimum starting voltage can be obtained through experimental testing. When it is specifically implemented, the driving voltage can be slowly adjusted upward from 0V at a temperature of minus 25 degrees Celsius until the voltage at which the air pump can just start normally is found, and the voltage at which the air pump can just start normally is determined as the above-mentioned minimum starting voltage.
[0040] Step S204, determining a target driving voltage according to the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage.
[0041] Specifically, after the minimum starting voltage is obtained in step S202, in this step, the target driving voltage can be calculated based on the obtained minimum starting voltage and the preset first algorithm, wherein the target driving voltage being greater than the minimum starting voltage is a prerequisite for the air pump to be started, that is, the battery voltage should be detected before starting. The air pump can only be started when the battery voltage is greater than the minimum starting voltage. Otherwise, it will be prompted that the battery voltage is too low and cannot work normally. In order to ensure the safe driving of the air pump, the above-mentioned preset first algorithm usually requires that the target driving voltage is 130% greater than the minimum starting voltage.
[0042] Step S206, collecting the real-time voltage of the battery at a preset time point.
[0043] The air pump can be a sphygmomanometer air pump, which is generally set in the sphygmomanometer to drive the sphygmomanometer to measure. In actual implementation, since the blood pressure measurement time is almost very short, the battery voltage changes greatly only before the air pump is started (without load) and after it is started (with load). After the air pump is started, the battery voltage does not change much. Therefore, in order to avoid the different load capacities of batteries of different brands, which leads to deviations in the detected battery voltage drop, in addition to detecting the current battery voltage before starting the air pump, it is generally necessary to detect the battery voltage again within a short time when the air pump is driven.
[0044] Specifically, before the air pump is started, the real-time voltage of the battery at a first specified time point within a first preset time period can be collected, and after the air pump is started, the real-time voltage of the battery at a second specified time point within a second preset time period can be collected.
[0045] The first preset time period and the second preset time period are usually both relatively short periods of time, wherein the first preset time period may be an interval time period from before the air pump is started to the start time, which is generally 5 seconds, and the first designated time point may be any time node within the interval time period from before the air pump is started to the start time, for example, if the interval time from before the air pump is started to the start time is 5 seconds, then the first designated time point may be 3 seconds before the air pump is started, that is, before the air pump is started, the real-time voltage of the battery is collected, and the air pump is started after 3 seconds. Similarly, the second preset time period may be an interval time period from after the air pump is started to the start time, which is generally 2 seconds, and the second designated time point may be any time node within the interval time period from after the air pump is started to the start time, for example, if the interval time from after the air pump is started to the start time is 2 seconds, then the second designated time point may be 1 second after the air pump is started, that is, after the air pump is started, the real-time voltage of the battery is collected after 1 second.
[0046] Step S208, determining the real-time driving duty cycle of the driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage.
[0047] Step S210 , according to a first driving duty cycle corresponding to a first designated time point, controlling the driving circuit to generate a first PWM signal having a duty cycle equal to the first driving duty cycle.
[0048] Step S212, outputting a first PWM signal so that the driving circuit outputs a target driving voltage and starts the air pump, and drives the air pump to operate according to the target driving voltage.
[0049] After the real-time voltage of the battery at the first specified time point is collected in step S206, the first drive duty cycle corresponding to the first specified time point can be determined according to the PWM real-time adjustable duty cycle formula, wherein the first drive duty cycle is equal to the target drive voltage divided by the real-time voltage at the first specified time point.
[0050] Step S214, when the air pump runs to a second designated time point, according to a second driving duty cycle corresponding to the second designated time point, the driving circuit is controlled to generate a second PWM signal with a duty cycle equal to the second driving duty cycle.
[0051] Step S216: output a second PWM signal to enable the driving circuit to output a target driving voltage and drive the air pump to continue to operate.
[0052] After the real-time voltage of the battery at the second specified time point is collected in step S206, the second drive duty cycle corresponding to the second specified time point can be determined according to the PWM real-time adjustable duty cycle formula, wherein the second drive duty cycle is equal to the target drive voltage divided by the real-time voltage at the second specified time point.
[0053] In order to better understand the above embodiment, the present application provides a PWM real-time adjustable duty cycle formula:
[0054] k%=V1 / Vbat
[0055] Wherein, k% is the PWM duty cycle, V1 is the target driving voltage, and Vbat is the actual voltage of the battery.
[0056] In fact, the battery voltage will gradually decrease with the use time; therefore, in order to ensure that the set target drive voltage remains unchanged even if the battery voltage changes, it is necessary to use the above-mentioned PWM real-time adjustable duty cycle formula to control the PWM duty cycle, so that the air pump can be driven and operated according to the target drive voltage.
[0057] Since V1 has been selected in the experimental test, it is only necessary to collect the actual voltage Vbat of the battery to obtain the real-time control K%; assuming that the above-mentioned minimum starting voltage obtained through the experiment is 3.0V, the target driving voltage V1 can be selected as 4.0V according to the preset first algorithm. At this time, if the real-time voltage of the battery collected 3 seconds before the air pump starts is 8.0V, the first driving duty cycle K1%=50% can be calculated according to the PWM real-time adjustable duty cycle formula, and the drive circuit is controlled to generate a first PWM signal with a duty cycle equal to 50%, and the first PWM signal is output so that the drive circuit drives the air pump to operate according to the target driving voltage of 4.0V. Assuming that after the air pump is driven for 1 second, the voltage of the battery collected at the current moment is 5.0V, the second driving duty cycle K2%=80% can be calculated according to the PWM real-time adjustable duty cycle formula, and the drive circuit is controlled to generate a second PWM signal with a duty cycle equal to 80%, and the second PWM signal is output so that the drive circuit still drives the air pump to operate according to the target driving voltage of 4.0V.
[0058] The above-mentioned air pump driving method tests the low-temperature performance of the air pump through experiments to obtain a reliable minimum starting voltage, determines the target driving voltage for safe starting of the air pump according to the preset first algorithm, and adjusts the PWM duty cycle based on the battery voltage collected before and after the air pump is started to keep the target driving voltage unchanged, thereby controlling the drive circuit to drive the air pump according to the target driving voltage. This method can discard complicated calculation formulas. Even if the battery voltage drops to a certain level, the air pump can be started normally according to the target driving voltage in a low temperature environment, thereby improving the user experience and avoiding customer complaints. Moreover, the air pump is driven according to the target driving voltage all the time, which can maintain a uniform inflation speed and the inflation time does not change, further ensuring the consistency and accuracy of the measurement results. At the same time, the target driving voltage does not change, which can ensure consistent noise and avoid excessive noise.
[0059] The embodiment of the present invention also provides an air pump driving device, the air pump is powered by a battery, such as Figure 3 As shown, the device includes: an acquisition module 30, used to acquire a target driving voltage for driving an air pump; an acquisition module 31, used to acquire a real-time voltage of a battery at a preset time point; a determination module 32, used to determine a real-time driving duty cycle of a driving circuit of the air pump at a preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and a control module 33, used to control the driving circuit to drive the air pump according to the target driving voltage according to the real-time driving duty cycle.
[0060] In the above-mentioned air pump driving device, the air pump is powered by a battery, and the method includes: obtaining a target driving voltage for driving the air pump; collecting the real-time voltage of the battery at a preset time point; determining the real-time driving duty cycle of the air pump driving circuit at a preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; and controlling the driving circuit to drive the air pump according to the target driving voltage according to the real-time driving duty cycle. In this method, the duty cycle of the air pump driving circuit is adjusted by the target driving voltage and the real-time voltage of the battery at the preset time point, and then the driving circuit is controlled to drive the air pump according to the target driving voltage according to the adjusted driving duty cycle. When the battery voltage drops to a certain level, the air pump can be started normally according to the target driving voltage in a low temperature environment, thereby improving the user experience and avoiding customer complaints.
[0061] Furthermore, the acquisition module is also used to: obtain the minimum starting voltage of the air pump under preset environmental conditions; determine the target driving voltage according to the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage.
[0062] Furthermore, the preset time point includes: a first designated time point within a first preset time period before the air pump is started, and a second designated time point within a second preset time period after the air pump is started.
[0063] Furthermore, the control module is also used to: control the drive circuit to generate a first PWM signal with a duty cycle equal to the first drive duty cycle according to a first drive duty cycle corresponding to a first specified time point; output the first PWM signal to enable the drive circuit to output a target drive voltage and start the air pump, and drive the air pump to operate according to the target drive voltage; when the air pump runs to a second specified time point, control the drive circuit to generate a second PWM signal with a duty cycle equal to the second drive duty cycle according to the second drive duty cycle corresponding to the second specified time point; and output the second PWM signal to enable the drive circuit to output the target drive voltage and drive the air pump to operate continuously.
[0064] Furthermore, the determination module is also used to: based on the real-time voltage of the battery at a preset time point and the target driving voltage, the step of determining the real-time driving duty cycle of the driving circuit of the air pump at a preset time point includes: calculating the ratio of the target driving voltage and the real-time voltage of the battery at the preset time point to obtain a calculation result; determining the calculation result as the real-time driving duty cycle of the driving circuit of the air pump at the preset time point.
[0065] The air pump driving device provided in the embodiment of the present invention has the same implementation principle and technical effects as those of the aforementioned air pump driving method embodiment. For the part of the embodiment of the air pump driving device, reference may be made to the corresponding contents in the aforementioned air pump driving method embodiment.
[0066] The embodiment of the present invention further provides an electronic device, see Figure 4As shown, the electronic device includes a processor 130 and a memory 131 , wherein the memory 131 stores machine executable instructions that can be executed by the processor 130 , and the processor 130 executes the machine executable instructions to implement the above-mentioned air pump driving method.
[0067] Further, Figure 4 The electronic device shown further includes a bus 132 and a communication interface 133 , and the processor 130 , the communication interface 133 and the memory 131 are connected via the bus 132 .
[0068] The memory 131 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 133 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 132 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0069] The processor 130 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 130. The above processor 130 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 131, and the processor 130 reads the information in the memory 131 and completes the steps of the method of the above embodiment in combination with its hardware.
[0070] An embodiment of the present invention also provides a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned air pump driving method. The specific implementation can be found in the method embodiment, which will not be repeated here.
[0071] The air pump driving method, device and electronic device provided in the embodiments of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the previous method embodiments. The specific implementation can be found in the method embodiments and will not be repeated here.
[0072] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0073] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for driving an air pump, characterized in that: The air pump is powered by a battery, and the air pump is a sphygmomanometer air pump, which is arranged in the sphygmomanometer. The method comprises: obtaining a target driving voltage for driving the air pump; Collecting the real-time voltage of the battery at a preset time point; Determining a real-time driving duty cycle of a driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage; According to the real-time driving duty cycle, controlling the driving circuit to drive the air pump according to the target driving voltage; The step of obtaining the target driving voltage of the air pump comprises: Obtaining the minimum starting voltage of the air pump under preset environmental conditions; Determining the target driving voltage according to the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage; The preset time point includes: a first designated time point within a first preset time period before the air pump is started, and a second designated time point within a second preset time period after the air pump is started; According to the real-time driving duty cycle, the step of controlling the driving circuit to drive the air pump according to the target driving voltage comprises: According to a first driving duty cycle corresponding to the first designated time point, controlling the driving circuit to generate a first PWM signal having a duty cycle equal to the first driving duty cycle; Outputting the first PWM signal so that the driving circuit outputs the target driving voltage and starts the air pump, and drives the air pump to operate according to the target driving voltage; When the air pump runs to the second designated time point, according to the second driving duty cycle corresponding to the second designated time point, the driving circuit is controlled to generate a second PWM signal with a duty cycle equal to the second driving duty cycle; The second PWM signal is outputted to enable the driving circuit to output the target driving voltage and drive the air pump to continuously operate.
2. The method according to claim 1, characterized in that The step of determining the real-time driving duty cycle of the driving circuit of the air pump at the preset time point based on the real-time voltage of the battery at the preset time point and the target driving voltage comprises: Calculating a ratio of the target driving voltage to the real-time voltage of the battery at a preset time point to obtain a calculation result; The calculation result is determined as the real-time driving duty cycle of the driving circuit of the air pump at the preset time point.
3. An air pump driving device, characterized in that: The air pump is powered by a battery, and the air pump is a sphygmomanometer air pump, which is arranged in the sphygmomanometer. The device comprises: An acquisition module, used for acquiring a target driving voltage for driving the air pump; A collection module, used to collect the real-time voltage of the battery at a preset time point; A determination module, configured to determine a real-time driving duty cycle of a driving circuit of the air pump at a preset time point based on a real-time voltage of the battery at the preset time point and the target driving voltage; A control module, configured to control the drive circuit to drive the air pump according to the target drive voltage according to the real-time drive duty cycle; The acquisition module is also used for: Obtaining the minimum starting voltage of the air pump under preset environmental conditions; Determining the target driving voltage according to the minimum starting voltage and a preset first algorithm; wherein the target driving voltage is greater than the minimum starting voltage; The preset time point includes: a first designated time point within a first preset time period before the air pump is started, and a second designated time point within a second preset time period after the air pump is started; The control module is further configured to control the drive circuit to generate a first PWM signal having a duty cycle equal to the first drive duty cycle according to the first drive duty cycle corresponding to the first designated time point; Outputting the first PWM signal so that the driving circuit outputs the target driving voltage and starts the air pump, and drives the air pump to operate according to the target driving voltage; When the air pump runs to the second designated time point, according to the second driving duty cycle corresponding to the second designated time point, the driving circuit is controlled to generate a second PWM signal with a duty cycle equal to the second driving duty cycle; The second PWM signal is outputted to enable the driving circuit to output the target driving voltage and drive the air pump to continuously operate.
4. An electronic device, characterized in that: The electronic device comprises a processor and a memory, wherein the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the air pump driving method according to any one of claims 1 to 3.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the air pump driving method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Power supply device and power supply system for fuel cell vehicle
CN102186696A
Corona sterilization device powered by storage battery
CN111107707A
Cleaning device and flow control method thereof
CN113827144A
Food processor air pump control method for extraction
CN114504246A
Portable multifunctional air gun
CN212429156U
