Finger heartbeat monitoring module based on stduino

What are you developing?
Post Reply
jacobli
Posts: 42
Joined: Fri Jun 11, 2021 3:40 am

Finger heartbeat monitoring module based on stduino

Post by jacobli »

Heartbeat detection module, consisting of an infrared emitter LED and an infrared receiver. The finger heartbeat monitoring module is able to measure the pulse and works like this: when the finger is placed between the emitter and the receiver, the light emitted by the infrared emitting LED will pass through the finger to be received by the receiver. The blood pressure will change with the pulse, resulting in a change in the light flux received by the infrared receiver, so the heartbeat can be statistically monitored by the infrared light reception.

Experimental Objective

To record heart rate using a finger heartbeat monitoring module.

Equipment

Stduino UNO/Nano; DuPont cable; finger heartbeat monitoring module

Code demonstration.

Code: Select all

int ledPin = 13;
int sensorPin = A0;

double alpha = 0.75;
int period = 20;
double change = 0.0;

void setup()
{
pinMode(ledPin, OUTPUT);
pinMode(sensorPin, INPUT_ANALOG);
Serial.begin(115200);
}

void loop()
{
static double oldValue = 0;
static double oldChange = 0;
int rawValue = analogRead(sensorPin);
double value = alpha * oldValue + (1 - alpha) * rawValue;//This smoothing is the weighted average of the current and previous measurement data
Serial.println(value);

oldValue = value;
delay(period);
}
Experimental results

The values output from the serial port are copied to EXCEL, and the following line graph can be obtained (or an external LCD for real-time monitoring). It can be seen that in about 16 seconds there are 32 waves. This indicates on the one hand that the heartbeat is a bit fast, reaching 120 beats a minute. Also, this monitor is only suitable for learning and not for any medical use.

Image

Caution

Block out the module as much as possible, or even put it in a small black box for experimentation.
Do not pinch the sensor directly with your hand to measure, then you will find that the graph lines drawn are messy, which does not mean that your heart rate is not aligned. The correct method is to measure the nail cap.
ag123
Posts: 1655
Joined: Thu Dec 19, 2019 5:30 am
Answers: 24

Re: Finger heartbeat monitoring module based on stduino

Post by ag123 »

+1 nice
zoomx
Posts: 28
Joined: Fri Dec 20, 2019 10:12 am
Location: Near Mt.Etna

Re: Finger heartbeat monitoring module based on stduino

Post by zoomx »

+1!
Post Reply

Return to “Projects”