CN107536605B - PWM circuit duty ratio adjusting method, controller and blood pressure measuring device - Google Patents
PWM circuit duty ratio adjusting method, controller and blood pressure measuring device Download PDFInfo
- Publication number
- CN107536605B CN107536605B CN201710790446.2A CN201710790446A CN107536605B CN 107536605 B CN107536605 B CN 107536605B CN 201710790446 A CN201710790446 A CN 201710790446A CN 107536605 B CN107536605 B CN 107536605B
- Authority
- CN
- China
- Prior art keywords
- air pressure
- driving
- cuff
- determined
- preset value
- 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.)
- Active
Links
Images
Landscapes
- Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)
Abstract
本申请提供一种PWM电路占空比调节方法、控制器和血压测量装置。本申请提供的PWM电路占空比调节方法,包括:在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压;在袖带内的气压首次超过第一预设值时,计算驱动能量与气压之间的函数关系式中的第一系数;在袖带内的气压超过第一预设值后,基于计算出的第一系数,根据当前时刻的气压和驱动能量与气压之间的函数关系式确定当前时刻的驱动能量;并根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,进而指示PWM电路生成占空比等于上述驱动占空比的PWM信号。本申请提供的PWM电路占空比调节方法、控制器和血压测量装置,可适应较宽的驱动电压。
The present application provides a PWM circuit duty cycle adjustment method, controller and blood pressure measurement device. The method for adjusting the duty cycle of a PWM circuit provided by the present application includes: when the blood pressure measuring device is working, acquiring the air pressure in the cuff and the driving voltage of the air pump in real time; when the air pressure in the cuff exceeds a first preset value for the first time, calculating The first coefficient in the functional relationship between driving energy and air pressure; after the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, according to the current air pressure and the difference between the driving energy and air pressure Determine the driving energy at the current moment according to the functional relationship of . The method for adjusting the duty cycle of the PWM circuit, the controller and the blood pressure measuring device provided by the present application can adapt to a wider driving voltage.
Description
技术领域technical field
本申请涉及电子技术领域,尤其涉及一种PWM电路占空比调节方法、控制器和血压测量装置。The present application relates to the field of electronic technology, and in particular, to a PWM circuit duty cycle adjustment method, a controller and a blood pressure measurement device.
背景技术Background technique
在血压测量装置工作时,当血压测量装置袖带内的气压大于人体的正常血压(20mmHg)后,为了提高测量结果的准确性,通常需要保持袖带内气压的升压速度恒定。为了实现恒速加压,气泵的控制显得尤为重要,气泵的驱动电路一般采用脉冲宽度调制(PulseWidth Modulation,简称PWM)电路,可通过调节PWM信号的占空比来调节气泵的打气功率,实现恒速加压。When the blood pressure measuring device is working, when the air pressure in the cuff of the blood pressure measuring device is greater than the normal blood pressure (20 mmHg) of the human body, in order to improve the accuracy of the measurement results, it is usually necessary to keep the increasing speed of the air pressure in the cuff constant. In order to achieve constant-speed pressurization, the control of the air pump is particularly important. The drive circuit of the air pump generally adopts a pulse width modulation (Pulse Width Modulation, referred to as PWM) circuit. Rapid pressurization.
现有的PWM电路占空比调节方法,包括以下步骤:在血压测量过程中,获取袖带内的实时气压;根据上述实时气压和占空比与气压关系模型计算血压测量装置中PWM电路的占空比,其中,上述占空比与气压关系模型表示占空比与袖带内气压上升速度恒定时的气压之间的函数关系;根据上述占空比调节PWM电路的工作占空比。The existing PWM circuit duty cycle adjustment method includes the following steps: in the blood pressure measurement process, obtain the real-time air pressure in the cuff; Duty ratio, wherein, the above duty ratio and air pressure relationship model represents the functional relationship between the duty ratio and the air pressure when the air pressure in the cuff is rising at a constant speed; the duty ratio of the PWM circuit is adjusted according to the above duty ratio.
但是,当采用上述方法来调节PWM电路的占空比,进而通过占空比来调节气泵的打气功率,实现恒速加压时。由于袖带内气压的升压速度还与气泵的驱动电压的大小有关,而血压测量装置一般是由电池供电的,这样,在占空比一定的情况下,在电池的输出电压(即气泵的驱动电压)较低时,相应的打气功率较低,袖带内气压的升压速度较低;在电池的输出电压较大时,相应的打气功率较高,袖带内气压的升压速度较高,因此,现有技术中的方法不能适应较宽的驱动电压(即在驱动电压较低或驱动电压较高时,不能保证恒速加压)。However, when the above method is used to adjust the duty cycle of the PWM circuit, and then adjust the pumping power of the air pump through the duty cycle to achieve constant-speed pressurization. Since the boosting speed of the air pressure in the cuff is also related to the driving voltage of the air pump, and the blood pressure measurement device is generally powered by a battery, in this way, under the condition of a certain duty cycle, the output voltage of the battery (that is, the output voltage of the air pump When the driving voltage) is lower, the corresponding pumping power is lower, and the boosting speed of the air pressure in the cuff is lower; when the output voltage of the battery is higher, the corresponding pumping power is higher, and the boosting speed of the air pressure in the cuff is faster. Therefore, the methods in the prior art cannot adapt to a wider driving voltage (ie, when the driving voltage is lower or the driving voltage is higher, the constant-speed pressurization cannot be guaranteed).
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种PWM电路占空比调节方法、控制器和血压测量装置,以解决现有的调节方法不能适应较宽的驱动电压的问题。In view of this, the present application provides a PWM circuit duty cycle adjustment method, a controller and a blood pressure measurement device to solve the problem that the existing adjustment method cannot adapt to a wide driving voltage.
本申请第一方面提供一种PWM电路占空比调节方法,包括:A first aspect of the present application provides a method for adjusting the duty cycle of a PWM circuit, including:
在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压;When the blood pressure measuring device is working, obtain the air pressure in the cuff and the driving voltage of the air pump in real time;
在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数;其中,驱动能量等于驱动电压和驱动占空比的乘积;When the air pressure in the cuff exceeds the first preset value for the first time, according to the preset pressure increase speed, the air pressure when the air pressure exceeds the first preset value for the first time, the pressure increase speed and the air pressure when the air pressure exceeds the first preset value for the first time For the driving voltage when the first preset value is exceeded for the first time, the first coefficient in the functional relationship between the determined driving energy and the air pressure is calculated; wherein, the driving energy is equal to the product of the driving voltage and the driving duty cycle;
在袖带内的气压超过所述第一预设值后,基于计算出的第一系数,根据当前时刻的气压和所述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量;After the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, determine the driving energy at the current moment according to the air pressure at the current moment and the functional relationship between the driving energy and the air pressure;
根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,并指示PWM电路生成占空比等于所述驱动占空比的PWM信号。The driving duty ratio at the current moment is determined according to the determined driving energy and the driving voltage at the current moment, and the PWM circuit is instructed to generate a PWM signal whose duty ratio is equal to the driving duty ratio.
进一步地,所述驱动能量与气压之间的函数关系式为:其中,E为驱动能量;P为袖带内的气压;a、b为常数;P1为第二预设值;A为第一系数;所述计算已确定的驱动能量与气压之间的函数关系式中的第一系数,具体包括:Further, the functional relationship between the driving energy and air pressure is: Wherein, E is the driving energy; P is the air pressure in the cuff; a and b are constants; P1 is the second preset value; A is the first coefficient; the functional relationship between the driving energy and air pressure determined by the calculation The first coefficient in the formula specifically includes:
根据如下公式确定微调系数的初始值:其中,m为微调系数;q为常数;S0为预设的升压速度;S1为气压首次超过第一预设值时的升压速度;Determine the initial value of the fine-tuning coefficient according to the following formula: Wherein, m is the fine-tuning coefficient; q is a constant; S0 is the preset boosting speed; S1 is the boosting speed when the air pressure exceeds the first preset value for the first time;
根据如下公式计算第一系数:A=(c*U0/m0-(a*75+b))/(P0-75)^2,其中,m0为确定出的微调系数的初始值;U0为气压首次超过第一预设值时的驱动电压;P0为气压首次超过第一预设值时的气压;c为常数。Calculate the first coefficient according to the following formula: A=(c*U0/m0-(a*75+b))/(P0-75)^2, where m0 is the determined initial value of the fine-tuning coefficient; U0 is the air pressure The driving voltage when it exceeds the first preset value for the first time; P0 is the air pressure when the air pressure exceeds the first preset value for the first time; c is a constant.
进一步地,在袖带内的气压首次超过所述第一预设值后,所述方法还包括:Further, after the air pressure in the cuff exceeds the first preset value for the first time, the method further includes:
计算当前时刻的升压速度;Calculate the boost speed at the current moment;
根据如下公式更新所述微调系数:其中,S为当前时刻的升压速度;The fine-tuning coefficients are updated according to the following formula: Among them, S is the boost speed at the current moment;
所述根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之前,所述方法还包括:Before determining the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, the method further includes:
将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数。The determined driving energy is updated by multiplying the determined driving energy by the updated fine-tuning coefficient.
进一步地,所述将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数之前,所述方法还包括:Further, before updating the determined driving energy to the determined driving energy multiplied by the updated fine-tuning coefficient, the method further includes:
判断所述更新后的微调系数是否处于预设的微调系数区间内;judging whether the updated fine-tuning coefficient is within a preset fine-tuning coefficient interval;
若所述更新后的微调系数大于所述微调系数区间的上限值,将所述更新后的微调系数设定为所述上限值;If the updated fine-tuning coefficient is greater than the upper limit value of the fine-tuning coefficient interval, setting the updated fine-tuning coefficient as the upper limit value;
若所述更新后的微调系数小于所述微调系数区间的下限值,将所述更新后的微调系数设定为所述下限值。If the updated fine-tuning coefficient is smaller than the lower limit value of the fine-tuning coefficient interval, the updated fine-tuning coefficient is set as the lower limit value.
进一步地,所述方法还包括:Further, the method also includes:
在袖带内的气压低于所述第一预设值时,指示所述PWM电路生成占空比等于所述常数c的PWM信号。When the air pressure in the cuff is lower than the first preset value, the PWM circuit is instructed to generate a PWM signal with a duty cycle equal to the constant c.
进一步地,所述根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之后,所述方法还包括:Further, after the driving duty ratio at the current moment is determined according to the determined driving energy and the driving voltage at the current moment, the method further includes:
根据公式D[i]=nD[i-1]+(1-n)D更新当前时刻的驱动占空比,其中,D为根据确定出的驱动能量和当前时刻的驱动电压值确定出的当前时刻的驱动占空比,D[i]为当前时刻更新后的驱动占空比,D[i-1]为当前时刻的前一时刻所述PWM电路生成的PWM信号的占空比。The driving duty ratio at the current moment is updated according to the formula D[i]=nD[i-1]+(1-n)D, where D is the current driving energy determined according to the determined driving energy and the driving voltage value at the current moment The driving duty ratio at the moment, D[i] is the driving duty ratio updated at the current moment, and D[i-1] is the duty ratio of the PWM signal generated by the PWM circuit at the previous moment at the current moment.
进一步地,所述驱动能量与气压之间的函数关系式中的常数a和常数b通过以下步骤获得:Further, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained through the following steps:
在不同的驱动电压下,控制PWM电路生成占空比等于不同预设值的PWM信号,以驱动气泵对实验容器充气;Under different driving voltages, the PWM circuit is controlled to generate PWM signals with a duty cycle equal to different preset values, so as to drive the air pump to inflate the experimental container;
在每次向实验容器充气的过程中,实时获取所述实验容器的气压,并实时计算实验容器的升压速度;In the process of inflating the experimental container each time, the air pressure of the experimental container is obtained in real time, and the pressure increase speed of the experimental container is calculated in real time;
确定实验容器的升压速度等于所述预设的升压速度时实验容器的气压,并根据确定出的实验容器的气压和当前的驱动电压,计算出驱动能量;Determine the air pressure of the experimental container when the pressure increasing speed of the experimental container is equal to the preset pressure increasing speed, and calculate the driving energy according to the determined air pressure of the experimental container and the current driving voltage;
根据每次向实验容器充气的过程中确定出的实验容器的气压和计算出的驱动能量,拟合得到所述驱动能量与气压之间的函数关系式中的常数a和常数b。According to the air pressure of the experimental container and the calculated driving energy determined in the process of inflating the experimental container each time, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained by fitting.
本申请第二方面提供一种控制器,包括:获取模块和处理模块,其中,A second aspect of the present application provides a controller, comprising: an acquisition module and a processing module, wherein,
所述获取模块,用于在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压;The acquisition module is used to acquire the air pressure in the cuff and the driving voltage of the air pump in real time when the blood pressure measurement device is working;
所述处理模块,用于在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数;其中,驱动能量等于驱动电压和驱动占空比的乘积;The processing module is used for, when the air pressure in the cuff exceeds the first preset value for the first time, according to the preset boosting speed, the air pressure when the air pressure exceeds the first preset value for the first time, and the air pressure when the air pressure exceeds the first preset value for the first time When the boosting speed and the driving voltage when the air pressure exceeds the first preset value for the first time, the first coefficient in the functional relationship between the determined driving energy and the air pressure is calculated; wherein, the driving energy is equal to the driving voltage and the driving duty product of ratios;
所述处理模块,还用于在袖带内的气压超过所述第一预设值后,基于计算出的第一系数,根据当前时刻的气压和所述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量;The processing module is further configured to, after the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, according to the air pressure at the current moment and the functional relationship between the driving energy and the air pressure Determine the driving energy at the current moment;
所述处理模块,还用于根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,并指示PWM电路生成占空比等于所述驱动占空比的PWM信号。The processing module is further configured to determine the drive duty cycle at the current moment according to the determined drive energy and the drive voltage at the current moment, and instruct the PWM circuit to generate a PWM signal with a duty cycle equal to the drive duty cycle.
进一步地,所述驱动能量与气压之间的函数关系式为:其中,E为驱动能量;P为袖带内的气压;a、b为常数;P1为第二预设值;A为第一系数;Further, the functional relationship between the driving energy and air pressure is: Among them, E is the driving energy; P is the air pressure in the cuff; a and b are constants; P1 is the second preset value; A is the first coefficient;
所述处理模块,具体用于根据如下公式确定微调系数的初始值:其中,m为微调系数;q为常数;S0为预设的升压速度;S1为气压首次超过第一预设值时的升压速度;The processing module is specifically used to determine the initial value of the fine-tuning coefficient according to the following formula: Wherein, m is the fine-tuning coefficient; q is a constant; S0 is the preset boosting speed; S1 is the boosting speed when the air pressure exceeds the first preset value for the first time;
所述处理模块,还具体用于根据如下公式计算第一系数:A=(c*U0/m0-(a*75+b))/(P0-75)^2,其中,m0为确定出的微调系数的初始值;U0为气压首次超过第一预设值时的驱动电压;P0为气压首次超过第一预设值时的气压;c为常数。The processing module is also specifically configured to calculate the first coefficient according to the following formula: A=(c*U0/m0-(a*75+b))/(P0-75)^2, where m0 is determined The initial value of the fine-tuning coefficient; U0 is the driving voltage when the air pressure exceeds the first preset value for the first time; P0 is the air pressure when the air pressure exceeds the first preset value for the first time; c is a constant.
进一步地,所述处理模块200,还用于在袖带内的气压首次超过所述第一预设值后,计算当前时刻的升压速度;Further, the
所述处理模,还用于根据如下公式更新所述微调系数:其中,S为当前时刻的升压速度;The processing mode is also used to update the fine-tuning coefficient according to the following formula: Among them, S is the boost speed at the current moment;
所述处理模块200,还用于在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之前,将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数。The
进一步地,所述处理模块200,还具体用于在将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数之前,判断所述更新后的微调系数是否处于预设的微调系数区间内;并在判断所述更新后的微调系数大于所述微调系数区间的上限值时,将所述更新后的微调系数设定为所述上限值;在判断所述更新后的微调系数小于所述微调系数区间的下限值时,将所述更新后的微调系数设定为所述下限值。Further, the
进一步地,所述处理模块,还用于在袖带内的气压低于所述第一预设值时,指示所述PWM电路生成占空比等于常数c的PWM信号。Further, the processing module is further configured to instruct the PWM circuit to generate a PWM signal with a duty cycle equal to a constant c when the air pressure in the cuff is lower than the first preset value.
进一步地,所述处理模块,还用于在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之后,根据公式D[i]=nD[i-1]+(1-n)D更新当前时刻的驱动占空比,其中,D为根据确定出的驱动能量和当前时刻的驱动电压值确定出的当前时刻的驱动占空比,D[i]为当前时刻更新后的驱动占空比,D[i-1]为当前时刻的前一时刻所述PWM电路生成的PWM信号的占空比。Further, the processing module is further configured to determine the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, according to the formula D[i]=nD[i-1]+(1 -n) D updates the driving duty ratio at the current moment, where D is the driving duty ratio at the current moment determined according to the determined driving energy and the driving voltage value at the current moment, and D[i] is the updated driving duty ratio at the current moment The driving duty ratio of , D[i-1] is the duty ratio of the PWM signal generated by the PWM circuit at the previous moment of the current moment.
进一步地,所述处理模块,还用于对获取到的袖带内的气压进行滤波处理,以滤除高频信号。Further, the processing module is further configured to filter the acquired air pressure in the cuff to filter out high-frequency signals.
进一步地,所述驱动能量与气压之间的函数关系式中的常数a和常数b通过以下步骤获得:Further, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained through the following steps:
在不同的驱动电压下,控制PWM电路生成占空比等于不同预设值的PWM信号,以驱动气泵对实验容器充气;Under different driving voltages, the PWM circuit is controlled to generate PWM signals with a duty cycle equal to different preset values, so as to drive the air pump to inflate the experimental container;
在每次向实验容器充气的过程中,实时获取所述实验容器的气压,并实时计算实验容器的升压速度;In the process of inflating the experimental container each time, the air pressure of the experimental container is obtained in real time, and the pressure increase speed of the experimental container is calculated in real time;
确定实验容器的升压速度等于所述预设的升压速度时实验容器的气压,并根据确定出的实验容器的气压和当前的驱动电压,计算出驱动能量;Determine the air pressure of the experimental container when the pressure increasing speed of the experimental container is equal to the preset pressure increasing speed, and calculate the driving energy according to the determined air pressure of the experimental container and the current driving voltage;
根据每次向实验容器充气的过程中确定出的实验容器的气压和计算出的驱动能量,拟合得到所述驱动能量与气压之间的函数关系式中的常数a和常数b。According to the air pressure of the experimental container and the calculated driving energy determined in the process of inflating the experimental container each time, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained by fitting.
本申请第三方面提供一种血压测量装置,包括:气压采集装置、驱动电压采集装置、PWM电路、气泵、袖带和本申请第二方面提供的任一控制器;所述血压测量装置采用辅助电源供电;其中,A third aspect of the present application provides a blood pressure measuring device, comprising: an air pressure collecting device, a driving voltage collecting device, a PWM circuit, an air pump, a cuff, and any controller provided in the second aspect of the present application; the blood pressure measuring device adopts an auxiliary power supply; where,
所述气压采集装置,用于按照预设的采样频率采集所述袖带内的气压;the air pressure collecting device, used for collecting the air pressure in the cuff according to a preset sampling frequency;
所述驱动电压采集装置,用于按照预设的采样精度采集所述气泵的驱动电压;The driving voltage acquisition device is used to acquire the driving voltage of the air pump according to a preset sampling precision;
所述PWM电路,用于在所述控制器的指示下生成PWM信号;the PWM circuit for generating a PWM signal under the instruction of the controller;
所述气泵,用于在所述PWM电路的控制下对所述袖带充气。The air pump is used to inflate the cuff under the control of the PWM circuit.
本申请提供的PWM电路占空比调节方法、控制器和血压测量装置,在血压测量装置工作时,通过实时获取袖带内的气压和气泵的驱动电压,并在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数,进而在袖带内的气压超过第一预设值后,基于计算出的第一系数,根据当前时刻的气压和上述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量,并根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,进而指示PWM电路生成占空比等于上述驱动占空比的PWM信号,其中,驱动能量等于驱动电压和驱动占空比的乘积。这样,在调节占空比时,首先根据函数关系式确定出的是驱动能量,进而结合当前时刻的驱动电压确定出当前时刻的驱动占空比,这样,在确定出的驱动能量一定的情况下,若当前时刻的驱动电压高,确定出的驱动占空比就低,不会造成因驱动电压高引起升压速度过快的问题;相应的,若当前时刻的驱动电压低,确定出的驱动占空比就高,不会造成因驱动电压低引起升压速度低的问题,因此,本申请提供的PWM电路占空比调节方法、控制器和血压测量装置,能够适应较宽的驱动电压。The PWM circuit duty cycle adjustment method, controller and blood pressure measurement device provided by the present application, when the blood pressure measurement device is working, the air pressure in the cuff and the driving voltage of the air pump are obtained in real time, and the air pressure in the cuff exceeds the first At a preset value, according to the preset boosting speed, the air pressure when the air pressure exceeds the first preset value for the first time, the boosting speed when the air pressure exceeds the first preset value for the first time, and the pressure when the air pressure exceeds the first preset value for the first time Drive voltage, calculate the first coefficient in the functional relationship between the determined drive energy and air pressure, and then after the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, according to the current moment. The functional relationship between the air pressure and the above-mentioned driving energy and air pressure determines the driving energy at the current moment, and determines the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, and then instructs the PWM circuit to generate a duty cycle. A PWM signal equal to the above-mentioned drive duty cycle, wherein the drive energy is equal to the product of the drive voltage and the drive duty cycle. In this way, when adjusting the duty ratio, the driving energy is first determined according to the functional relationship, and then the driving duty ratio at the current moment is determined in combination with the driving voltage at the current moment. In this way, under the condition that the determined driving energy is constant , if the driving voltage at the current moment is high, the determined driving duty ratio will be low, which will not cause the problem of too fast boost speed due to high driving voltage; correspondingly, if the driving voltage at the current moment is low, the determined driving The higher the duty cycle is, the lower the boosting speed will not be caused by the low driving voltage. Therefore, the PWM circuit duty cycle adjustment method, controller and blood pressure measuring device provided by the present application can adapt to a wider driving voltage.
附图说明Description of drawings
图1为本申请PWM电路占空比调节方法实施例一的流程图;1 is a flowchart of
图2为采用实验容器进行试验时得到的驱动能量与气压之间的函数关系示意图;Fig. 2 is a schematic diagram of the functional relationship between the driving energy and the air pressure obtained when the experiment container is used for testing;
图3为采用袖带进行试验时得到的驱动能量与气压之间的函数关系示意图;Figure 3 is a schematic diagram of the functional relationship between the driving energy and the air pressure obtained when the cuff is used for the test;
图4为本申请PWM电路占空比调节方法实施例二的流程图;4 is a flowchart of
图5为按照本申请提供的方法调节占空比后PWM电路实际输出的占空比的示意图;5 is a schematic diagram of the duty ratio actually output by the PWM circuit after the duty cycle is adjusted according to the method provided by the present application;
图6为按照图5所示占空比的PWM信号控制气泵后袖带实时升压速度的示意图;6 is a schematic diagram of the real-time boosting speed of the cuff after the air pump is controlled by the PWM signal of the duty cycle shown in FIG. 5;
图7为本申请控制器实施一的结构示意图;FIG. 7 is a schematic structural diagram of the first implementation of the controller of the present application;
图8为本申请血压测量装置实施例一的结构示意图。FIG. 8 is a schematic structural diagram of
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as recited in the appended claims.
在本申请使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。在本申请和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. As used in this application and the appended claims, the singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. It will also be understood that the term "and/or" as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.
应当理解,尽管在本申请可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this application to describe various information, such information should not be limited by these terms. These terms are only used to distinguish the same type of information from each other. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information without departing from the scope of the present application. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determining."
本申请提供一种PWM电路占空比调节方法、控制器和血压测量装置,以解决现有的调节方法不能适应较宽的驱动电压的问题。The present application provides a duty cycle adjustment method, a controller and a blood pressure measurement device of a PWM circuit, so as to solve the problem that the existing adjustment method cannot adapt to a wider driving voltage.
下面以具体的实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
图1为本申请PWM电路占空比调节方法实施例一的流程图。本实施例的执行主体为设置在血压测量装置中的控制器。请参照图1,本实施例提供的PWM电路占空比调节方法,可以包括以下步骤:FIG. 1 is a flowchart of
S101、在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压。S101. When the blood pressure measuring device is working, acquire the air pressure in the cuff and the driving voltage of the air pump in real time.
具体的,血压测量装置中设置有气压采集装置和驱动电压采集装置,其中,气压采集装置,用于按照预设的采样频率采集袖带内的气压,驱动电压采集装置,用于按照预设的采样精度采集气泵的驱动电压(例如,在一实施例中,气压采集装置可以是压力传感器,且预设的采样频率可以为100Hz;驱动电压采集装置可以是电压传感器,且预设的采集精度可以为0.001V)。相应的,本步骤中,在血压测量装置工作时,控制器可从气压采集装置实时获取袖带内的气压,并从驱动电压采集装置中实时获取气泵的驱动电压;或者是,气压采集装置和驱动电压采集装置实时将采集到的数据传输给控制器,基于气压采集装置和驱动电路采集装置的数据传输,控制器实时获取袖带内的气压和气泵的驱动电压。Specifically, the blood pressure measuring device is provided with an air pressure collecting device and a driving voltage collecting device, wherein the air pressure collecting device is used to collect the air pressure in the cuff according to the preset sampling frequency, and the driving voltage collecting device is used to collect the air pressure according to the preset sampling frequency. The sampling accuracy collects the driving voltage of the air pump (for example, in one embodiment, the air pressure collection device may be a pressure sensor, and the preset sampling frequency may be 100 Hz; the driving voltage collection device may be a voltage sensor, and the preset collection accuracy may be is 0.001V). Correspondingly, in this step, when the blood pressure measuring device is working, the controller can obtain the air pressure in the cuff in real time from the air pressure collecting device, and obtain the driving voltage of the air pump in real time from the driving voltage collecting device; The driving voltage acquisition device transmits the collected data to the controller in real time. Based on the data transmission of the air pressure acquisition device and the driving circuit acquisition device, the controller acquires the air pressure in the cuff and the driving voltage of the air pump in real time.
S102、在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数;其中,驱动能量等于驱动电压和驱动占空比的乘积。S102. When the air pressure in the cuff exceeds the first preset value for the first time, according to the preset pressure increasing speed, the air pressure when the air pressure exceeds the first preset value for the first time, and the pressure increasing speed when the air pressure exceeds the first preset value for the first time and the driving voltage when the air pressure exceeds the first preset value for the first time, calculate the first coefficient in the functional relationship between the determined driving energy and the air pressure; wherein, the driving energy is equal to the product of the driving voltage and the driving duty cycle.
具体的,当袖带内的气压低于人体的正常血压(20mmHg)时,袖带内气压的升压速度对血压测量装置的测量结果不会造成影响,因此,为提高测量结果的准确性,只需要在袖带内的气压大于人体的正常血压(20mmHg)后,通过调节PWM电路的占空比,保持袖带内的气压的升压速度恒定即可。因此,第一预设值为20mmHg。需要说明的是,由于袖带内的气压低于人体的正常血压(20mmHg)时,袖带内气压的升压速度对血压测量装置的测量结果不会造成影响,因此,在袖带内的气压低于20mmHg之前,只需要指示PWM电路生成占空比等于常数c的PWM信号即可。其中,常数c是根据实际需要设定的,例如,常数c可以为70%,也可以为50%,下面以常数c为50%为例进行说明。Specifically, when the air pressure in the cuff is lower than the normal blood pressure (20mmHg) of the human body, the pressure increase speed of the air pressure in the cuff will not affect the measurement results of the blood pressure measuring device. Therefore, in order to improve the accuracy of the measurement results, After the air pressure in the cuff is greater than the normal blood pressure (20mmHg) of the human body, the boosting speed of the air pressure in the cuff can be kept constant by adjusting the duty ratio of the PWM circuit. Therefore, the first preset value is 20mmHg. It should be noted that when the air pressure in the cuff is lower than the normal blood pressure of the human body (20mmHg), the increase rate of the air pressure in the cuff will not affect the measurement results of the blood pressure measuring device. Therefore, the air pressure in the cuff Before it is lower than 20mmHg, it is only necessary to instruct the PWM circuit to generate a PWM signal with a duty cycle equal to a constant c. The constant c is set according to actual needs. For example, the constant c may be 70% or 50%. The following description will be given by taking the constant c as 50% as an example.
进一步地,已确定的驱动能量与气压之间的函数关系式如公式(1)所示:Further, the functional relationship between the determined driving energy and air pressure is shown in formula (1):
其中,E为驱动能量;P为袖带内的气压;a、b为常数;P1为第二预设值;A为第一系数。Among them, E is the driving energy; P is the air pressure in the cuff; a and b are constants; P1 is the second preset value; A is the first coefficient.
需要说明的是,公式(1)根据前期试验确定,关于公式(1)的具体确定过程将在下面介绍,此处不再赘述。进一步地,已确定的驱动能量与气压之间的函数关系式中(即公式(1)中),第一系数A为未知数,其他的系数均已知(前期试验确定)。此外,公式(1)中,当预设的升压速度为6mmHg/s时,第二预设值P1为75mmHg,a为0.0095,b为0.25。It should be noted that the formula (1) is determined according to the preliminary test, and the specific determination process of the formula (1) will be introduced below, and will not be repeated here. Further, in the functional relationship between the determined driving energy and air pressure (ie, in formula (1)), the first coefficient A is an unknown, and the other coefficients are known (determined by previous experiments). In addition, in formula (1), when the preset boosting speed is 6 mmHg/s, the second preset value P1 is 75 mmHg, a is 0.0095, and b is 0.25.
进一步地,本步骤中,可以按照如下方法来计算第一系数A,该方法包括以下步骤:Further, in this step, the first coefficient A can be calculated according to the following method, and the method includes the following steps:
(1)根据公式(2)确定微调系数的初始值:(1) Determine the initial value of the fine-tuning coefficient according to formula (2):
其中,m为微调系数;q为常数;S0为预设的升压速度;S1为气压首次超过第一预设值时的升压速度。Wherein, m is the fine-tuning coefficient; q is a constant; S0 is the preset boosting speed; S1 is the boosting speed when the air pressure exceeds the first preset value for the first time.
需要说明的是,当预设的升压速度为6mmHg/s时,q为0.6。进一步地,气压首次超过第一预设值时的升压速度可以根据气压首次超过第一预设值时之前的N个采样点(包含气压首次超过第一预设值时的采样点)采用最小二乘法计算得到。例如,在一实施例中,N个采样点为:(t1,P1),(t2,P2),……,(tn Pn),其中,tn为气压首次超过第一预设值时对应的时刻,此时,可按照公式(3)来计算升压速度:It should be noted that when the preset boosting speed is 6 mmHg/s, q is 0.6. Further, the boosting speed when the air pressure exceeds the first preset value for the first time may adopt the minimum value according to the N sampling points before the air pressure exceeds the first preset value for the first time (including the sampling points when the air pressure exceeds the first preset value for the first time). Calculated by the square method. For example, in an embodiment, the N sampling points are: (t1, P1), (t2, P2), ..., (tn Pn), where tn is the time corresponding to when the air pressure exceeds the first preset value for the first time , at this time, the boost speed can be calculated according to formula (3):
进一步地,当计算出气压首次超过第一预设值时的升压速度S1时,此时,就根据公式(2)来确定微调系数m的初始值。例如,在一实施例中,经过计算,确定气压首次超过第一预设值时的升压速度为7mmHg/s,此时,则确定微调系数m的初始值为1。Further, when the boosting speed S1 when the air pressure exceeds the first preset value for the first time is calculated, at this time, the initial value of the fine-tuning coefficient m is determined according to formula (2). For example, in one embodiment, after calculation, it is determined that the boosting speed when the air pressure exceeds the first preset value for the first time is 7 mmHg/s. At this time, the initial value of the fine-tuning coefficient m is determined to be 1.
(2)根据公式(4)计算第一系数:(2) Calculate the first coefficient according to formula (4):
A=(c*U0/m0-(a*75+b))/(P0-75)^2 (4)A=(c*U0/m0-(a*75+b))/(P0-75)^2 (4)
其中,m0为确定出的微调系数的初始值;U0为气压首次超过第一预设值时的驱动电压;P0为气压首次超过第一预设值时的气压;c为常数。Wherein, m0 is the determined initial value of the fine-tuning coefficient; U0 is the driving voltage when the air pressure exceeds the first preset value for the first time; P0 is the air pressure when the air pressure exceeds the first preset value for the first time; c is a constant.
例如,在一实施例中,气压首次超过第一预设值时的驱动电压为4.0V,气压首次超过第一预设值时的气压为22mmHg。结合上面的例子(c等于50%,m0=1),此时,可计算出第一系数A。For example, in one embodiment, the driving voltage when the air pressure exceeds the first preset value for the first time is 4.0V, and the air pressure when the air pressure exceeds the first preset value for the first time is 22 mmHg. Combined with the above example (c is equal to 50%, m0=1), at this time, the first coefficient A can be calculated.
需要说明的是,在血压测量装置工作时,经过该步骤,这样,即可计算出了已确定的驱动能量与气压之间的函数关系式中的第一系数。这样,已确定的驱动能量与气压之间的函数关系式中便不存在未知数,此时,基于计算出的第一系数,便可根据已确定的驱动能量与气压之间的函数关系式来调节PWM电路的占空比。It should be noted that, when the blood pressure measuring device is in operation, after this step, the first coefficient in the functional relationship between the determined driving energy and the air pressure can be calculated. In this way, there is no unknown in the functional relationship between the determined driving energy and air pressure. At this time, based on the calculated first coefficient, it can be adjusted according to the determined functional relationship between the driving energy and air pressure. The duty cycle of the PWM circuit.
S103、在袖带内的气压超过上述第一预设值后,基于计算出的第一系数,根据当前时刻的气压和上述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量。S103. After the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, determine the driving energy at the current moment according to the air pressure at the current moment and the functional relationship between the driving energy and the air pressure.
例如,在一实施例中,当前时刻的气压为55mmHg(小于75mmHg),此时,基于计算出的第一系数,可根据E=A(P-P1)^2+a*P1+b确定当前时刻的驱动能量。再例如,在另一实施例中,当前时刻的气压为90mmHg(大于75mmHg),此时,可根据E=aP+b确定当前时刻的驱动能量。For example, in an embodiment, the air pressure at the current moment is 55 mmHg (less than 75 mmHg). At this time, based on the calculated first coefficient, the current air pressure can be determined according to E=A(P-P1)^2+a*P1+b Momentary driving energy. For another example, in another embodiment, the air pressure at the current moment is 90 mmHg (greater than 75 mmHg). In this case, the driving energy at the current moment can be determined according to E=aP+b.
S104、根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,并指示PWM电路生成占空比等于上述驱动占空比的PWM信号。S104. Determine the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, and instruct the PWM circuit to generate a PWM signal with a duty ratio equal to the above driving duty ratio.
具体的,当经过步骤S103确定出当前时刻的驱动能量后,本步骤中,可根据确定出的驱动能量和当前时刻的驱动电压,计算出当前时刻的驱动占空比,其中,当前时刻的驱动占空比等于确定出的驱动能量除以当前时刻的驱动电压。进一步地,当确定出当前时刻的驱动占空比后,就指示PWM电路生成占空比等于上述驱动占空比的PWM信号,实现调节PWM电路占空比的目的。Specifically, after the driving energy at the current moment is determined through step S103, in this step, the driving duty ratio at the current moment can be calculated according to the determined driving energy and the driving voltage at the current moment, wherein the driving power at the current moment The duty cycle is equal to the determined driving energy divided by the current driving voltage. Further, when the driving duty ratio at the current moment is determined, the PWM circuit is instructed to generate a PWM signal whose duty ratio is equal to the above driving duty ratio, so as to realize the purpose of adjusting the duty ratio of the PWM circuit.
下面简单介绍一下驱动能量与气压之间的函数关系式的确定过程。The following is a brief introduction to the determination process of the functional relationship between the driving energy and the air pressure.
具体的,为了达到PWM电路占空比调节与当前时刻的气泵的驱动电压相关,首先定义了驱动能量的概念,其中,驱动能量等于驱动电压和驱动占空比的乘积。Specifically, in order to achieve that the duty cycle adjustment of the PWM circuit is related to the driving voltage of the air pump at the current moment, the concept of driving energy is first defined, wherein the driving energy is equal to the product of the driving voltage and the driving duty cycle.
进一步地,通过试验来确定模型参数。需要说明的是,袖带为弹性容器,其气容量(气容量为袖带可以容纳气体的体积)随着充气状态在一定范围内改变。因此,在确定驱动能量与气压之间的函数关系式时,为了构建一个较为稳定的试验环境。首先选取非弹性的容器作为实验容器进行试验。例如,实验容器为500ml钢瓶。进一步地,当确定了实验容器后,在一定的实验条件下(在不同的驱动电压和不同的驱动占空比下)对上述钢瓶进行充气,例如,分别在驱动电压为3.4V、3.6V、3.8V、4.0V、4.2V时,驱动占空比为25%、30%、35%、40%、45%、50%、55%、60%时,对500mL钢瓶进行充气(即在不同的驱动电压和不同的驱动占空比下进行40组实验),并在每次充气的过程中,实时获取实验容器的气压,实时计算实验容器的升压速度(升压速度采用最小二乘法,按照公式(3)计算)。进而确定实验容器的升压速度等于预设的升压速度(6mmHg/s)时实验容器的气压,并计算出驱动能量(即得到实验容器的升压速度等于6mmHg/s时,对应的实验容器的气压和驱动能量,即得到40个离散点),最后,根据每次向实验容器充气的过程中确定出的实验容器的气压和计算出的驱动能量,拟合得到实验容器的驱动能量与气压的函数关系,如图2所示(图2为采用实验容器进行试验时得到的驱动能量与气压之间的函数关系示意图):Further, the model parameters are determined through experiments. It should be noted that the cuff is an elastic container, and its air capacity (the air capacity is the volume of air that the cuff can hold) changes within a certain range with the inflation state. Therefore, when determining the functional relationship between driving energy and air pressure, in order to build a relatively stable test environment. Firstly, an inelastic container is selected as the experimental container for testing. For example, the experimental container is a 500ml steel cylinder. Further, when the experimental container is determined, the above-mentioned steel cylinder is inflated under certain experimental conditions (under different driving voltages and different driving duty ratios), for example, when the driving voltage is 3.4V, 3.6V, At 3.8V, 4.0V, and 4.2V, when the drive duty cycle is 25%, 30%, 35%, 40%, 45%, 50%, 55%, 60%, inflate the 500mL cylinder (that is, at different 40 sets of experiments were carried out under the driving voltage and different driving duty ratios), and in the process of each inflation, the air pressure of the experimental container was obtained in real time, and the pressure-boosting speed of the experimental container was calculated in real time (the least-squares method was used for the pressure-boosting speed, according to Equation (3) is calculated). Then determine the pressure of the experimental container when the boosting speed of the experimental container is equal to the preset boosting speed (6mmHg/s), and calculate the driving energy (that is, when the boosting speed of the experimental container is equal to 6mmHg/s, the corresponding experimental container Finally, according to the air pressure and the calculated driving energy of the experimental container determined in the process of inflating the experimental container each time, the driving energy and air pressure of the experimental container are obtained by fitting. The functional relationship of , as shown in Figure 2 (Figure 2 is a schematic diagram of the functional relationship between the driving energy and air pressure obtained when the experimental container is used for testing):
由图2可知,当升压速度恒定时(6mmHg/S),当前时刻的气压P与驱动能量E满足线性关系。It can be seen from FIG. 2 that when the boosting speed is constant (6 mmHg/S), the current air pressure P and the driving energy E satisfy a linear relationship.
进一步地,为验证准确性,采用实际的袖带绑在手臂上,以同样的方法进行数据采集,得到如图3所示曲线(图3为采用袖带进行试验时得到的驱动能量与气压之间的函数关系示意图)。由图3可以看出,在袖带的气压大于75mmHg时,实际情况与理想的钢瓶具有一致的结论。在袖带的气压小于75mmHg时,气压与驱动能量近似满足二次函数关系。因此,基于上述试验研究,确定驱动能量与气压之间的函数关系式为:其中,袖带内的气压大于P1时的函数关系中的常数a和常数b,采用前面所说的钢瓶实验拟合确定。而袖带内的气压小于P1时的函数关系的顶点为(P1 aP1+b)点,这样,袖带内的气压小于P1时的函数关系也确定了,其中,A为未知数,可在实际调节的过程中计算出。Further, in order to verify the accuracy, the actual cuff is used to bind the arm, and the data is collected in the same way to obtain the curve shown in Figure 3 (Figure 3 is the driving energy and air pressure obtained when the cuff is used for the test. Schematic diagram of the functional relationship between). It can be seen from Figure 3 that when the air pressure of the cuff is greater than 75mmHg, the actual situation is consistent with the ideal cylinder. When the air pressure of the cuff is less than 75mmHg, the air pressure and the driving energy approximately satisfy the quadratic function relationship. Therefore, based on the above experimental research, the functional relationship between the driving energy and air pressure is determined as: Among them, the constant a and the constant b in the functional relationship when the air pressure in the cuff is greater than P1 are determined by fitting with the aforementioned cylinder experiment. The vertex of the functional relationship when the air pressure in the cuff is less than P1 is the point (P1 aP1+b). In this way, the functional relationship when the air pressure in the cuff is less than P1 is also determined. Among them, A is an unknown number, which can be adjusted in practice. calculated in the process.
进一步地,采用前面所说的钢瓶实验拟合确定常数a和常数b时,按照如下公式来确定:Further, when the constant a and the constant b are determined by fitting the aforementioned steel cylinder experiment, they are determined according to the following formula:
其中:in:
需要说明的是,Pji表示驱动电压为j时、占空比为i时,确定出的实验容器的升压速度等于预设的升压速度时实验容器的气压;Pji表示驱动电压为j时、占空比为i时,计算出的驱动能量。It should be noted that Pji represents the air pressure of the experimental container when the driving voltage is j and the duty cycle is i, and the determined boosting speed of the experimental container is equal to the preset boosting speed; Pji represents that when the driving voltage is j, The calculated drive energy when the duty cycle is i.
本实施例提供的方法,在血压测量装置工作时,通过实时获取袖带内的气压和气泵的驱动电压,并在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数,进而在袖带内的气压超过第一预设值后,基于计算出的第一系数,根据当前时刻的气压和上述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量,并根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,进而指示PWM电路生成占空比等于上述驱动占空比的PWM信号,其中,驱动能量等于驱动电压和驱动占空比的乘积。这样,在调节占空比时,首先根据函数关系式确定出的是驱动能量,进而结合当前时刻的驱动电压确定出当前时刻的驱动占空比,这样,在确定出的驱动能量一定的情况下,若当前时刻的驱动电压高,确定出的驱动占空比就低,不会造成因驱动电压高引起升压速度过快的问题;相应的,若当前时刻的驱动电压低,确定出的驱动占空比就高,不会造成因驱动电压低引起升压速度低的问题,因此,本实施例提供的方法,能够适应较宽的驱动电压。此外,本实施例提供的方法,血压测量装置在工作时,袖带的升压速度稳定,气泵引入的噪声小,测量结果准确。进一步地,本实施例提供的方法,血压测量装置在工作时,袖带的升压速度稳定,被测者体验较舒适。In the method provided in this embodiment, when the blood pressure measuring device is working, the air pressure in the cuff and the driving voltage of the air pump are obtained in real time, and when the air pressure in the cuff exceeds the first preset value for the first time, the pressure is increased according to the preset pressure The speed, the air pressure when the air pressure exceeds the first preset value for the first time, the boosting speed when the air pressure exceeds the first preset value for the first time, and the driving voltage when the air pressure exceeds the first preset value for the first time, calculate the difference between the determined driving energy and the air pressure. After the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, according to the current air pressure and the functional relationship between the driving energy and air pressure The driving energy at the current moment is determined by the formula, and the driving duty ratio at the current moment is determined according to the determined driving energy and the driving voltage at the current moment, and then the PWM circuit is instructed to generate a PWM signal whose duty ratio is equal to the above driving duty ratio, wherein, The drive energy is equal to the product of the drive voltage and the drive duty cycle. In this way, when adjusting the duty ratio, the driving energy is first determined according to the functional relationship, and then the driving duty ratio at the current moment is determined in combination with the driving voltage at the current moment. In this way, under the condition that the determined driving energy is constant , if the driving voltage at the current moment is high, the determined driving duty ratio will be low, which will not cause the problem of too fast boost speed due to high driving voltage; correspondingly, if the driving voltage at the current moment is low, the determined driving The higher the duty cycle is, the lower the boosting speed will not be caused by the low driving voltage. Therefore, the method provided in this embodiment can adapt to a wider driving voltage. In addition, with the method provided in this embodiment, when the blood pressure measuring device is working, the pressure increasing speed of the cuff is stable, the noise introduced by the air pump is small, and the measurement result is accurate. Further, according to the method provided in this embodiment, when the blood pressure measuring device is working, the pressure increasing speed of the cuff is stable, and the subject experience is more comfortable.
进一步地,血压测量装置工作时,袖带绑在被测对象的胳膊上,袖带的气容量会随着胳膊的粗细不同或绑的松紧度的不同而不同。因此,在试验阶段,为进一步验证占空比调节的合理性,还进一步研究了气容量对驱动能量的影响。需要说明的是,为研究了气容量对驱动能量的影响,采样与前面所说的方法同样的方法,对1000ml的钢瓶充气,得到驱动能量与气压的函数关系为:E=d*(aP+b)。其中,d为一与其容量相关的常数。从以上试验可知,气容量的改变会影响驱动能量,进而会影响升压速度,会使实际升压速度(实际升压速度能够维持稳定)小于或者大于预设的升压速度,进而影响测量时间(即对不同的被测对象测量时,由于被测对象胳膊的粗细不同或袖带绑的松紧度的不同,袖带的气容量不同,这时,袖带的实际升压速度能够维持恒定,但袖带的实际升压速度并不能达到预设的升压速度,这样,由于不同的被测对象的实际升压速度不一样,因此,不同的被测对象,测量时间也不一样)。因此,在实际调节的过程中,为使不同的被测对象的实际升压速度一样(均能达到预设的升压速度),进而使不同被测对象的测量时间恒定,还可以进一步对确定出的驱动能量进行微调。下面给出一个更具体的实施例,用于详细说明本申请提供的PWM电路占空比调节方法。Further, when the blood pressure measuring device is working, the cuff is tied on the arm of the subject to be measured, and the gas capacity of the cuff will vary with the thickness of the arm or the tightness of the binding. Therefore, in the experimental stage, in order to further verify the rationality of the duty cycle adjustment, the effect of the gas capacity on the driving energy was further studied. It should be noted that, in order to study the influence of gas capacity on driving energy, the sampling method is the same as the method mentioned above, and a 1000ml steel cylinder is inflated, and the functional relationship between driving energy and air pressure is obtained as: E=d*(aP+ b). Among them, d is a constant related to its capacity. From the above experiments, it can be seen that the change of gas capacity will affect the driving energy, which will affect the boosting speed, which will make the actual boosting speed (the actual boosting speed can be kept stable) less than or greater than the preset boosting speed, which will affect the measurement time. (That is, when measuring different measured objects, the air capacity of the cuff is different due to the difference in the thickness of the measured object’s arm or the tightness of the cuff. At this time, the actual boosting speed of the cuff can be maintained constant. However, the actual boosting speed of the cuff cannot reach the preset boosting speed. In this way, since the actual boosting speed of different measured objects is different, the measurement time is also different for different measured objects). Therefore, in the actual adjustment process, in order to make the actual boosting speed of different measured objects the same (all can reach the preset boosting speed), and then make the measurement time of different measured objects constant, it is also possible to further determine the The output drive energy can be fine-tuned. A more specific embodiment is given below to describe in detail the method for adjusting the duty cycle of the PWM circuit provided by the present application.
图4为本申请PWM电路占空比调节方法实施例二的整个过程。本实施例涉及的是占空比调节的整个过程,请参照图4,本实施例提供的方法,可以包括以下步骤:FIG. 4 is the whole process of the second embodiment of the duty cycle adjustment method of the PWM circuit of the present application. This embodiment involves the entire process of adjusting the duty cycle. Please refer to FIG. 4 . The method provided by this embodiment may include the following steps:
S201、在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压。S201. When the blood pressure measuring device is working, acquire the air pressure in the cuff and the driving voltage of the air pump in real time.
具体的,该步骤的具体实现过程和实现原理可以参见实施例一步骤S101的描述,此处不再赘述。Specifically, for the specific implementation process and implementation principle of this step, reference may be made to the description of step S101 in the first embodiment, which will not be repeated here.
S202、对获取到的袖带内的气压进行滤波处理,以滤除高频信号。S202. Perform filtering processing on the acquired air pressure in the cuff to filter out high-frequency signals.
具体的,本步骤中,可以对获取到的袖带内的气压进行低通滤波。关于滤波处理的具体实现原理和实现过程可以参见现有技术中的描述,此处不再赘述。Specifically, in this step, low-pass filtering may be performed on the acquired air pressure in the cuff. For the specific implementation principle and implementation process of the filtering process, reference may be made to the description in the prior art, and details are not repeated here.
需要说明的是,本实施例提供的方法,在获取到袖带内的气压后,通过对获取到的袖带内的气压进行滤波处理,这样,可以滤除高频信号,得到准确的气压值。It should be noted that, in the method provided in this embodiment, after the air pressure in the cuff is obtained, the obtained air pressure in the cuff is filtered, so that high-frequency signals can be filtered out and an accurate air pressure value can be obtained .
S203、在袖带内的气压低于第一预设值时,指示PWM电路生成占空比等于常数c的PWM信号。S203. When the air pressure in the cuff is lower than the first preset value, instruct the PWM circuit to generate a PWM signal with a duty cycle equal to a constant c.
结合前面的介绍,第一预设值为20mmHg。当袖带内的气压低于人体的正常血压(20mmHg)之前,袖带内气压的升压速度对血压测量装置的测量结果不会造成影响,因此,在袖带内的气压低于20mmHg之前,只需要指示PWM电路生成占空比等于常数c的PWM信号即可。Combined with the previous introduction, the first preset value is 20mmHg. When the air pressure in the cuff is lower than the normal blood pressure (20mmHg) of the human body, the increase rate of the air pressure in the cuff will not affect the measurement results of the blood pressure measuring device. Therefore, before the air pressure in the cuff is lower than 20mmHg, It is only necessary to instruct the PWM circuit to generate a PWM signal with a duty cycle equal to the constant c.
S204、在袖带内的气压首次超过第一预设值时,计算气压首次超过第一预设值时的升压速度,并根据预设的升压速度、气压首次超过第一预设值时的升压速度和公式(2)确定微调系数的初始值,以及根据确定出的微调系数的初始值、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的驱动电压和公式(4),计算已确定的驱动能量与气压之间的函数关系式中的第一系数。S204. When the air pressure in the cuff exceeds the first preset value for the first time, calculate the pressure increase speed when the air pressure exceeds the first preset value for the first time, and according to the preset pressure increase speed, when the air pressure exceeds the first preset value for the first time and formula (2) to determine the initial value of the fine-tuning coefficient, and according to the determined initial value of the fine-tuning coefficient, the air pressure when the air pressure exceeds the first preset value for the first time, and the drive when the air pressure exceeds the first preset value for the first time Voltage and equation (4), calculate the first coefficient in the functional relationship between the determined driving energy and air pressure.
具体的,该步骤的具体实现过程及实现原理可以参见实施例一步骤S102的描述,此处不再赘述。需要说明的是,经过该步骤后,已确定的驱动能量与气压之间的函数关系式中的各个系数均已知。Specifically, for the specific implementation process and implementation principle of this step, reference may be made to the description of step S102 in the first embodiment, which will not be repeated here. It should be noted that, after this step, each coefficient in the functional relationship between the determined driving energy and the air pressure is known.
S205、在袖带内的气压超过上述第一预设值后,基于计算出的第一系数,根据当前时刻的气压和上述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量。S205. After the air pressure in the cuff exceeds the first preset value, based on the calculated first coefficient, determine the driving energy at the current moment according to the air pressure at the current moment and the functional relationship between the driving energy and the air pressure.
具体的,该步骤的具体实现过程及实现原理可以参见实施例一步骤S103的描述,此处不再赘述。Specifically, for the specific implementation process and implementation principle of this step, reference may be made to the description of step S103 in the first embodiment, which will not be repeated here.
S206、计算当前时刻的升压速度,并根据公式(5)更新微调系数。S206: Calculate the boost speed at the current moment, and update the fine-tuning coefficient according to formula (5).
具体的,当前时刻的升压速度采用当前时刻之前的N个采样点按照最小二乘法计算得到,即按照公式(3)计算得到。Specifically, the boosting speed at the current moment is calculated by using N sampling points before the current moment according to the least square method, that is, calculated according to formula (3).
进一步地,公式(5)为:Further, formula (5) is:
其中,S为当前时刻的升压速度。Among them, S is the boost speed at the current moment.
具体的,本步骤中,当计算出当前时刻的升压速度后,可根据计算出的当前时刻的升压速度、预设的升压速度和公式(5)更新微调系数。结合实施例一中的介绍(微调系数m的初始值m1等于1)。例如,本实施例中,当前时刻为气压首次超过第一预设值后的下一时刻,且计算得到当前时刻的升压速度为7.2;此时,根据公式(5)更新微调系数,更新后的微调系数为-0.44(其中,-0.44=1-(6-7.2)^2)。Specifically, in this step, after the boosting speed at the current moment is calculated, the fine-tuning coefficient can be updated according to the calculated boosting speed at the current moment, the preset boosting speed and formula (5). With reference to the introduction in the first embodiment (the initial value m1 of the fine-tuning coefficient m is equal to 1). For example, in this embodiment, the current moment is the next moment after the air pressure exceeds the first preset value for the first time, and the boosting speed at the current moment is calculated to be 7.2; at this time, the fine-tuning coefficient is updated according to formula (5), and after the update The fine-tuning coefficient of is -0.44 (where, -0.44=1-(6-7.2)^2).
S207、判断更新后的微调系数是否处于预设的微调系数区间内,若更新后的微调系数大于微调系数区间的上限值,将更新后的微调系数设定为上述上限值,若更新后的微调系数小于微调系数区间的下限值,将更新后的微调系数设定为上述下限值。S207. Determine whether the updated fine-tuning coefficient is within the preset fine-tuning coefficient interval. If the updated fine-tuning coefficient is greater than the upper limit of the fine-tuning coefficient interval, set the updated fine-tuning coefficient to the above-mentioned upper limit. The fine-tuning coefficient is less than the lower limit of the fine-tuning coefficient interval, and the updated fine-tuning coefficient is set to the above-mentioned lower limit.
具体的,为了防止占空比发生突变。因此,预先设定了微调系数区间。具体的,预设的微调系数区间是根据实际需要设定的,例如,当预设的升压速度为6mmHg/s时,预设的微调系数区间为:[0.9 1.6]。例如,结合上面的例子,当更新后的微调系数为-0.44,此时,更新后的微调系数小于微调系数区间的下限值(0.9),本步骤中,就将更新后的微调系数设定为下限值。Specifically, in order to prevent the duty cycle from changing abruptly. Therefore, the trimming coefficient interval is set in advance. Specifically, the preset fine-tuning coefficient interval is set according to actual needs. For example, when the preset boosting speed is 6 mmHg/s, the preset fine-tuning coefficient interval is: [0.9 1.6]. For example, in combination with the above example, when the updated fine-tuning coefficient is -0.44, at this time, the updated fine-tuning coefficient is less than the lower limit (0.9) of the fine-tuning coefficient interval. In this step, the updated fine-tuning coefficient is set is the lower limit.
S208、将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数。S208. Update the determined driving energy to the determined driving energy multiplied by the updated fine-tuning coefficient.
具体的,例如,确定出的驱动能量为E1,更新后的微调系数为m2。本步骤中,就将确定出的驱动能量更新为E1*m2,结合上面的例子,更新后的微调系数为0.9,此时,就将确定出的驱动能量更新为0.9E1。Specifically, for example, the determined driving energy is E1, and the updated fine-tuning coefficient is m2. In this step, the determined driving energy is updated to E1*m2. In combination with the above example, the updated fine-tuning coefficient is 0.9. At this time, the determined driving energy is updated to 0.9E1.
S209、根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,并指示PWM电路生成占空比等于上述驱动占空比的PWM信号。S209: Determine the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, and instruct the PWM circuit to generate a PWM signal whose duty ratio is equal to the above driving duty ratio.
具体的,该步骤的具体实现过程和实现原理可以参见实施一例中步骤S104的描述,此处不再赘述。Specifically, for the specific implementation process and implementation principle of this step, reference may be made to the description of step S104 in the embodiment, which will not be repeated here.
进一步地,图5为按照本申请提供的方法调节占空比后PWM电路实际输出的占空比的示意图;图6为按照图5所示占空比的PWM信号控制气泵后袖带实时升压速度的示意图。由图5和图6可知,采用本申请提供的方法调节占空比后,在袖带的气压大于人体的正常血压后,可保证袖带以稳定的升压速度升压,且可保证袖带的升压速度为预设的升压速度,使测量时间恒定。Further, Fig. 5 is a schematic diagram of the duty ratio of the actual output of the PWM circuit after adjusting the duty cycle according to the method provided by the application; Fig. 6 is a real-time boost of the cuff after the PWM signal of the duty cycle shown in Fig. 5 controls the air pump. Schematic diagram of speed. It can be seen from FIG. 5 and FIG. 6 that after the method provided by the present application is used to adjust the duty cycle, after the air pressure of the cuff is greater than the normal blood pressure of the human body, the cuff can be guaranteed to be boosted at a stable pressure-boosting speed, and the cuff can be ensured. The boosting speed is the preset boosting speed, so that the measurement time is constant.
本实施例提供的方法,在获取到袖带内的气压后,通过对获取到的袖带内的气压进行滤波处理,这样,可以滤除高频信号,得到准确的气压值,提高测量结果的准确性。此外,本实施例提供的方法,在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之前,通过计算当前时刻的升压速度,并更新微调系数,进而将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数。这样,使得该调节方法能够适应于不同的气容量,进一步提高调节的合理性,这样,当对不同的被测对象进行测量时,虽然袖带的气容量不同,但是,气容量不会对升压速度造成影响,可使测量时间恒定,进一步提高测量结果的准确性。进一步地,本实施例提供的方法,在更新微调系数后,通过判断更新后的微调系数是否处于预设的微调系数区间内,若更新后的微调系数大于微调系数区间的上限值,将更新后的微调系数设定为上述上限值,若更新后的微调系数小于微调系数区间的下限值,将更新后的微调系数设定为上述下限值,这样,可以防止占空比突变。In the method provided in this embodiment, after the air pressure in the cuff is obtained, the obtained air pressure in the cuff is filtered, so that high-frequency signals can be filtered out, an accurate air pressure value can be obtained, and the accuracy of the measurement result can be improved. accuracy. In addition, in the method provided in this embodiment, before determining the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, the step-up speed at the current moment is calculated and the fine-tuning coefficient is updated, and then the determined The driving energy of is updated by multiplying the determined driving energy by the updated fine-tuning coefficient. In this way, the adjustment method can be adapted to different air volumes, and the rationality of adjustment is further improved. In this way, when different measured objects are measured, although the air volumes of the cuffs are different, the air volume will not affect the increase in air volume. The influence of the pressure speed can make the measurement time constant and further improve the accuracy of the measurement results. Further, in the method provided by this embodiment, after the fine-tuning coefficient is updated, it is judged whether the updated fine-tuning coefficient is within the preset fine-tuning coefficient interval, and if the updated fine-tuning coefficient is greater than the upper limit of the fine-tuning coefficient interval, update the fine-tuning coefficient. The updated fine-tuning coefficient is set to the above upper limit value. If the updated fine-tuning coefficient is smaller than the lower limit value of the fine-tuning coefficient interval, the updated fine-tuning coefficient is set to the above-mentioned lower limit value, which can prevent the duty cycle from abruptly changing.
进一步地,在一可能的实现方式中,所述根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之后,所述方法还包括:Further, in a possible implementation manner, after the driving duty ratio at the current moment is determined according to the determined driving energy and the driving voltage at the current moment, the method further includes:
根据公式D[i]=nD[i-1]+(1-n)D更新当前时刻的驱动占空比,其中,D为根据确定出的驱动能量和当前时刻的驱动电压值确定出的当前时刻的驱动占空比,D[i]为当前时刻更新后的驱动占空比,D[i-1]为当前时刻的前一时刻所述PWM电路生成的PWM信号的占空比。The driving duty ratio at the current moment is updated according to the formula D[i]=nD[i-1]+(1-n)D, where D is the current driving energy determined according to the determined driving energy and the driving voltage value at the current moment The driving duty ratio at the moment, D[i] is the driving duty ratio updated at the current moment, and D[i-1] is the duty ratio of the PWM signal generated by the PWM circuit at the previous moment at the current moment.
需要说明的是,n为常数,且n根据实际需要确定,例如,n可以为0.2,也可以为0.1等,下面以n为0.2为例进行说明。例如,在一实施例中,根据确定出的驱动能量和当前时刻的驱动电压值确定出的当前时刻的驱动占空比D为35%,当前时刻的前一时刻PWM电路生成的PWM信号的占空比为32%,这样,当前时刻更新后的驱动占空比为34.4%(其中,34.4%=0.2*32%+0.8*35%)。It should be noted that n is a constant, and n is determined according to actual needs. For example, n may be 0.2 or 0.1, etc. The following description will be given by taking n being 0.2 as an example. For example, in an embodiment, the driving duty ratio D at the current moment determined according to the determined driving energy and the driving voltage value at the current moment is 35%, and the duty ratio of the PWM signal generated by the PWM circuit at the previous moment at the current moment is 35%. The duty ratio is 32%, so the updated driving duty ratio at the current moment is 34.4% (wherein, 34.4%=0.2*32%+0.8*35%).
本实施例提供的方法,在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之后,进而根据当前时刻的前一时刻PWM电路生成的PWM信号的占空比更新确定出的当前时刻的驱动占空比。这样,可根据PWM电路前一时刻的工作状态相应的调整占空比,可以进一步提高占空比调节的合理性。In the method provided by this embodiment, after determining the driving duty ratio at the current moment according to the determined driving energy and the driving voltage at the current moment, the determination is further updated according to the duty ratio of the PWM signal generated by the PWM circuit at the previous moment at the current moment. The drive duty cycle at the current moment is output. In this way, the duty ratio can be adjusted correspondingly according to the working state of the PWM circuit at the previous moment, which can further improve the rationality of the duty ratio adjustment.
图7为本申请控制器实施例一的结构示意图。该控制器可以通过软件、硬件或软硬结合的方式实现。该控制器应用于血压测量装置中。请参照图7,本实施例提供的控制器,可以包括:获取模块100和处理模块200,其中,FIG. 7 is a schematic structural diagram of
所述获取模块100,用于在血压测量装置工作时,实时获取袖带内的气压和气泵的驱动电压;The
所述处理模块200,用于在袖带内的气压首次超过第一预设值时,根据预设的升压速度、气压首次超过第一预设值时的气压、气压首次超过第一预设值时的升压速度和气压首次超过第一预设值时的驱动电压,计算已确定的驱动能量与气压之间的函数关系式中的第一系数;其中,驱动能量等于驱动电压和驱动占空比的乘积;The
所述处理模块200,还用于在袖带内的气压超过所述第一预设值后,基于计算出的第一系数,根据当前时刻的气压和所述驱动能量与气压之间的函数关系式确定当前时刻的驱动能量;The
所述处理模块200,还用于根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比,并指示PWM电路生成占空比等于所述驱动占空比的PWM信号。The
本实施例的控制器,可以用于执行图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The controller in this embodiment may be used to execute the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effect thereof are similar, and are not described herein again.
在一可能的实现方式中,所述驱动能量与气压之间的函数关系式为:其中,E为驱动能量;P为袖带内的气压;a、b为常数;P1为第二预设值;A为第一系数;In a possible implementation manner, the functional relationship between the driving energy and the air pressure is: Among them, E is the driving energy; P is the air pressure in the cuff; a and b are constants; P1 is the second preset value; A is the first coefficient;
所述处理模块200,具体用于根据如下公式确定微调系数的初始值:其中,m为微调系数;q为常数;S0为预设的升压速度;S1为气压首次超过第一预设值时的升压速度;The
所述处理模块200,还具体用于根据如下公式计算第一系数:A=(c*U0/m0-(a*75+b))/(P0-75)^2,其中,m0为确定出的微调系数的初始值;U0为气压首次超过第一预设值时的驱动电压;P0为气压首次超过第一预设值时的气压;c为常数。The
进一步地,所述处理模块200,还用于在袖带内的气压首次超过所述第一预设值后,计算当前时刻的升压速度;Further, the
所述处理模块200,还用于根据如下公式更新所述微调系数: 其中,S为当前时刻的升压速度;The
所述处理模块200,还用于在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之前,将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数。The
进一步地,所述处理模块200,还具体用于在将确定出的驱动能量更新为确定出的驱动能量乘以更新后的微调系数之前,判断所述更新后的微调系数是否处于预设的微调系数区间内;并在判断所述更新后的微调系数大于所述微调系数区间的上限值时,将所述更新后的微调系数设定为所述上限值;在判断所述更新后的微调系数小于所述微调系数区间的下限值时,将所述更新后的微调系数设定为所述下限值。Further, the
进一步地,所述处理模块200,还用于在袖带内的气压低于所述第一预设值时,指示所述PWM电路生成占空比等于常数c的PWM信号。Further, the
进一步地,所述处理模块200,还用于在根据确定出的驱动能量和当前时刻的驱动电压确定当前时刻的驱动占空比之后,根据公式D[i]=nD[i-1]+(1-n)D更新当前时刻的驱动占空比,其中,D为根据确定出的驱动能量和当前时刻的驱动电压值确定出的当前时刻的驱动占空比,D[i]为当前时刻更新后的驱动占空比,D[i-1]为当前时刻的前一时刻所述PWM电路生成的PWM信号的占空比。Further, the
进一步地,所述处理模块200,还用于对获取到的袖带内的气压进行滤波处理,以滤除高频信号。Further, the
进一步地,所述驱动能量与气压之间的函数关系式中的常数a和常数b通过以下步骤获得:Further, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained through the following steps:
在不同的驱动电压下,控制PWM电路生成占空比等于不同预设值的PWM信号,以驱动气泵对实验容器充气;Under different driving voltages, the PWM circuit is controlled to generate PWM signals with a duty cycle equal to different preset values, so as to drive the air pump to inflate the experimental container;
在每次向实验容器充气的过程中,实时获取所述实验容器的气压,并实时计算实验容器的升压速度;In the process of inflating the experimental container each time, the air pressure of the experimental container is obtained in real time, and the pressure increase speed of the experimental container is calculated in real time;
确定实验容器的升压速度等于所述预设的升压速度时实验容器的气压,并根据确定出的实验容器的气压和当前的驱动电压,计算出驱动能量;Determine the air pressure of the experimental container when the pressure increasing speed of the experimental container is equal to the preset pressure increasing speed, and calculate the driving energy according to the determined air pressure of the experimental container and the current driving voltage;
根据每次向实验容器充气的过程中确定出的实验容器的气压和计算出的驱动能量,拟合得到所述驱动能量与气压之间的函数关系式中的常数a和常数b。According to the air pressure of the experimental container and the calculated driving energy determined in the process of inflating the experimental container each time, the constant a and the constant b in the functional relationship between the driving energy and the air pressure are obtained by fitting.
图8为本申请血压测量装置实施一的结构示意图。请参照图8,本实施例提供的血压测量装置,包括:气压采集装置、驱动电压采集装置、PWM电路、气泵、袖带和本申请第二方面提供的任一控制器;所述血压测量装置采用辅助电源供电;其中,FIG. 8 is a schematic structural diagram of
所述气压采集装置,用于按照预设的采样频率采集所述袖带内的气压;the air pressure collecting device, used for collecting the air pressure in the cuff according to a preset sampling frequency;
所述驱动电压采集装置,用于按照预设的采样精度采集所述气泵的驱动电压;The driving voltage acquisition device is used to acquire the driving voltage of the air pump according to a preset sampling precision;
所述PWM电路,用于在所述控制器的指示下生成PWM信号;the PWM circuit for generating a PWM signal under the instruction of the controller;
所述气泵,用于在所述PWM电路的控制下对所述袖带充气。The air pump is used to inflate the cuff under the control of the PWM circuit.
具体的,血压测量装置采用辅助电源供电,该辅助电源可以是电池。此外,在一种可能的实现方式中,气压采集装置可以为压力传感器,驱动电压采集装置可以为电压传感器。Specifically, the blood pressure measuring device is powered by an auxiliary power source, and the auxiliary power source can be a battery. In addition, in a possible implementation manner, the air pressure collecting device may be a pressure sensor, and the driving voltage collecting device may be a voltage sensor.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the foregoing storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. scope.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710790446.2A CN107536605B (en) | 2017-09-05 | 2017-09-05 | PWM circuit duty ratio adjusting method, controller and blood pressure measuring device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710790446.2A CN107536605B (en) | 2017-09-05 | 2017-09-05 | PWM circuit duty ratio adjusting method, controller and blood pressure measuring device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN107536605A CN107536605A (en) | 2018-01-05 |
| CN107536605B true CN107536605B (en) | 2020-05-05 |
Family
ID=60958653
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710790446.2A Active CN107536605B (en) | 2017-09-05 | 2017-09-05 | PWM circuit duty ratio adjusting method, controller and blood pressure measuring device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN107536605B (en) |
Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0824230A (en) * | 1994-07-15 | 1996-01-30 | Omron Corp | Pressure reducing control device and electronic hemomanometer |
| CN1394546A (en) * | 2002-08-08 | 2003-02-05 | 天津市先石光学技术有限公司 | Blood pressure measuring device and method |
| CN1418595A (en) * | 2002-12-26 | 2003-05-21 | 天津市先石光学技术有限公司 | Wrist type electric sphygmomanometer, and its application method |
| CN102579025A (en) * | 2011-12-23 | 2012-07-18 | 深圳市理邦精密仪器股份有限公司 | Pressure protection method and pressure protection apparatus used in non-invasive blood pressure measurement process |
| CN102824167A (en) * | 2012-09-07 | 2012-12-19 | 深圳市华智康电子有限公司 | Overpressure protection device for non-invasive sphygmomanometer and threshold setting method thereof |
| CN103054567A (en) * | 2012-12-31 | 2013-04-24 | 邓亲恺 | Individual adaptive pressure increasing and decreasing control method for electronic sphygmomanometer |
| CN103889320A (en) * | 2011-10-26 | 2014-06-25 | 欧姆龙健康医疗事业株式会社 | Electronic sphygmomanometer |
| CN103930019A (en) * | 2012-01-16 | 2014-07-16 | 欧姆龙健康医疗事业株式会社 | Blood pressure measurement device and blood pressure measurement device control method |
| CN104188643A (en) * | 2014-09-17 | 2014-12-10 | 上海工程技术大学 | Pressure control circuit and control method for blood pressure measurement |
| CN104254276A (en) * | 2012-04-19 | 2014-12-31 | 欧姆龙健康医疗事业株式会社 | Sphygmomanometer and pump driving system |
| CN105286838A (en) * | 2015-11-13 | 2016-02-03 | 西安交通大学 | Automatic pump speed adjusting method for pressure increasing type blood pressure measurement and device |
| WO2016126445A1 (en) * | 2015-02-02 | 2016-08-11 | Midmark Corporation | System and method for non-invasive blood pressure measurement |
| CN106026978A (en) * | 2016-05-11 | 2016-10-12 | 广州视源电子科技股份有限公司 | PWM circuit duty ratio adjusting method and system of blood pressure measuring device |
-
2017
- 2017-09-05 CN CN201710790446.2A patent/CN107536605B/en active Active
Patent Citations (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH0824230A (en) * | 1994-07-15 | 1996-01-30 | Omron Corp | Pressure reducing control device and electronic hemomanometer |
| CN1394546A (en) * | 2002-08-08 | 2003-02-05 | 天津市先石光学技术有限公司 | Blood pressure measuring device and method |
| CN1418595A (en) * | 2002-12-26 | 2003-05-21 | 天津市先石光学技术有限公司 | Wrist type electric sphygmomanometer, and its application method |
| CN103889320A (en) * | 2011-10-26 | 2014-06-25 | 欧姆龙健康医疗事业株式会社 | Electronic sphygmomanometer |
| CN102579025A (en) * | 2011-12-23 | 2012-07-18 | 深圳市理邦精密仪器股份有限公司 | Pressure protection method and pressure protection apparatus used in non-invasive blood pressure measurement process |
| CN103930019A (en) * | 2012-01-16 | 2014-07-16 | 欧姆龙健康医疗事业株式会社 | Blood pressure measurement device and blood pressure measurement device control method |
| CN104254276A (en) * | 2012-04-19 | 2014-12-31 | 欧姆龙健康医疗事业株式会社 | Sphygmomanometer and pump driving system |
| CN102824167A (en) * | 2012-09-07 | 2012-12-19 | 深圳市华智康电子有限公司 | Overpressure protection device for non-invasive sphygmomanometer and threshold setting method thereof |
| CN103054567A (en) * | 2012-12-31 | 2013-04-24 | 邓亲恺 | Individual adaptive pressure increasing and decreasing control method for electronic sphygmomanometer |
| CN104188643A (en) * | 2014-09-17 | 2014-12-10 | 上海工程技术大学 | Pressure control circuit and control method for blood pressure measurement |
| WO2016126445A1 (en) * | 2015-02-02 | 2016-08-11 | Midmark Corporation | System and method for non-invasive blood pressure measurement |
| CN105286838A (en) * | 2015-11-13 | 2016-02-03 | 西安交通大学 | Automatic pump speed adjusting method for pressure increasing type blood pressure measurement and device |
| CN106026978A (en) * | 2016-05-11 | 2016-10-12 | 广州视源电子科技股份有限公司 | PWM circuit duty ratio adjusting method and system of blood pressure measuring device |
Non-Patent Citations (1)
| Title |
|---|
| 基于ATmega 16的电子血压计设计;史延东等;《设计与研究》;20111224;第13-16页 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN107536605A (en) | 2018-01-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP7654726B2 (en) | Wound therapy system with wound volume estimation | |
| CN103930019B (en) | The control method of blood pressure measuring device and blood pressure measuring device | |
| CN106026978B (en) | PWM circuit duty ratio adjusting method and system of blood pressure measuring device | |
| CN107920765B (en) | Non-invasive blood pressure monitoring device and method | |
| JP2015515321A5 (en) | ||
| CN107614029A (en) | Datum mark optimizes | |
| US10868486B2 (en) | Low power adaptive linear resonant actuator driver using accelerometer | |
| CN101884529B (en) | Electronic sphygmomanometer and calibration method thereof | |
| CN107544245A (en) | Discrete repetitive control method for motor servo system adopting disturbance expansion compensation first-order inertia attraction law | |
| CN113289880A (en) | Ultrasonic transducer amplitude constant control method and device | |
| CN111263505A8 (en) | Reverse power reduction method and plasma power device using the same | |
| EA039070B1 (en) | Fuzzy adaptive pid control-based capacity control method of anesthesia machine | |
| CN107536605B (en) | PWM circuit duty ratio adjusting method, controller and blood pressure measuring device | |
| CN108071581B (en) | A kind of minitype piezoelectric pump inflation software control method and system | |
| WO2013157399A1 (en) | Blood pressure measuring device, control device in blood pressure measuring device, and control method of blood pressure measuring device | |
| CN112630540B (en) | Inductance quality factor measuring method, corresponding measuring circuit and application thereof | |
| CN102834995A (en) | System and method for balancing input current with parallel power supplies | |
| CN117898690B (en) | Inflation control method, system and storage medium for watch-type blood pressure detection | |
| CN109004730B (en) | Supercapacitor charging system for fault indicator and charging method therefor | |
| TWI542129B (en) | Power converter with efficiency calculation and method for operating the same | |
| CN116293045A (en) | A solenoid valve opening control method, device, electronic equipment and storage medium | |
| US10998867B2 (en) | Avoiding clipping in audio power delivery by predicting available power supply energy | |
| US20160020720A1 (en) | Drive control system and drive control method | |
| CN113890336B (en) | A voltage regulation control circuit, system and method | |
| CN113116322A (en) | Blood pressure measuring method and blood pressure measuring device |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |