Design and Implementation of Digital Heart Rate Monitor Based on FPGA

Heart rate monitor is a commonly used medical examination equipment. Real-time accurate heart rate measurement has a wide range of applications in patient monitoring, clinical treatment and sports competition. Heart rate measurements include instantaneous heart rate measurements and average heart rate measurements. Instantaneous heart rate can not only reflect the speed of heart rate. At the same time, it can reflect whether the heart rate is uniform; although the average heart rate can only reflect the speed of the heart rate, but the record is convenient, so these two parameters are necessary in the measurement.

There are both analog and digital methods for measuring heart rate. The simulation method is to calculate the number of pulses of the R wave (or pulse wave) in a given time interval, and then multiply the pulse count by an appropriate constant to measure the heart rate. The disadvantages of this method are that the measurement error is large, the component parameters are difficult to debug, and the reliability is poor. The digital method is to measure the time between adjacent R waves, and then convert this time into the heart rate per minute to measure the heart rate. The advantages of this method are high measurement accuracy, good reliability, and simultaneous measurement of instantaneous heart rate and average heart rate. Circuits that measure heart rate digitally are divided into two types: one is to use a preset counter to implement the current divide circuit; the other is to measure the time between adjacent R waves by the automatically falling clock frequency.

Based on the digital heart rate monitor, the heart rate monitor is implemented in FPGA and VHDL language, which reduces the number of components used and improves measurement accuracy and reliability. The circuit can collect and measure the instantaneous and average heart rate of the human heartbeat in real time, and judge and display the heart rate state (ie whether the heartbeat is normal, whether it is too fast or too slow, and whether there is a heart rate disorder). If the heart rate is too fast or too slow or there is a heart rate disorder, the flashing alarm will be displayed with different color tubes.

1 measurement method and circuit composition

1.1 test method

As described above, when the instantaneous heart rate (IHR) is measured digitally, the time between two adjacent R waves (ie, the heart rate cycle) is measured, and then the heart rate cycle is converted into the heartbeat number per minute. As shown in Fig. 1, if the heart rate period is T seconds, the instantaneous heart rate is calculated as IHR=60/T. If the clock pulse with frequency f0 is used as the measurement time reference, the clock pulse is counted in T seconds, and the design value is N, then T=N/f0 seconds, so the formula for calculating the instantaneous heart rate is IHR=60f0/N. . When f0 = 1 kHz, IHR = 60 × 1000 / N = 60000 / N.

Design and Implementation of Digital Heart Rate Monitor Based on FPGA

The average heart rate (AverageHeartRate) is measured by averaging the instantaneous heart rates measured over a period of time. Let the measured instantaneous heart rate IHR1, IHR2, ..., IHRn, then the average heart rate is calculated as:

AHR=(IHR1+IHR2+...+IHRn)/n

1.2 circuit composition

The block diagram of the system is shown in Figure 2. Pressing the start switch will start the measurement process. The analog ECG signal (R wave or pulse wave) obtained by the sensor is amplified and applied to one input of the comparator, compared with the reference voltage of the other input, and the ECG signal is compared. Convert to a square wave signal of the same period and input it to the FPGA for heart rate measurement.

Design and Implementation of Digital Heart Rate Monitor Based on FPGA

In the FPGA, the waveform conversion circuit first differentiates the square wave signal with a wide pulse width, and converts it into a square wave signal with a pulse width equal to one cycle of the clock signal (clk1), and clocks the signal through the cycle counter in the heart rate period T. Counting, and then dividing according to the instantaneous heart rate calculation formula given above can get the instantaneous heart rate. The instantaneous heart rate is converted into a seven-segment display code by the decoding circuit and sent to the three LED displays outside the FPGA for display. At the end of a measurement, the heart rate calculation module averages the measured instantaneous heart rates, and the resulting average heart rate is converted into a seven-segment display code and sent to three LED displays for display.

Kombucha PH Test Strips

Drinking tea is a kind of drink originating in China made from the leaves or buds of the tea plant. Also refers to the leaves of the evergreen shrub tea tree that can be used for drinking tea, and drinks made with these leaves, and later extended to all herbal tea made with plant flowers, leaves, seeds and roots, such as "Tieguanyin" and so on.
Tea, as a famous health drink, is the contribution of the southern Chinese people to the Chinese food culture and the Chinese people's contribution to the world food culture

Kombucha Ph Test Strips,Kombucha Ph Strips,Kombucha Test Strips,Ph Tester For Kombucha

Changchun LYZ Technology Co., Ltd , https://www.lyzstrips.com

Posted on