Today we are going to talk about how to display the functionality of our heart on the computer using Arduino. That means how to make a Heart Rate Monitor.
We use this AD8232 module for that. You can also buy this kit from Scion Electronics with a warranty.
AD8232 Kit :-
This AD8232 is a small chip used to measure the function of the heart. This electrical activity can be displayed as an ECG or an Electrocardiogram.
Let's first see what this ECG means..
The ECG can be divided into 2 main periods.
1) PR Interval
2) QT interval
So here the ECG is drawn according to these two time limits. Our AD8232 module also creates an electronic note according to the PR Interval and RQ Interval.
We need to make this Heart Rate Display,
1) Arduino Uno * 1 :- - Rs.970/=
2) AD8232 Kit * 1 :- - Rs.1990/=
3) Jumper wire
Talking about the AD8232 Kit, this kit includes the AD8232 Module as well as the Sensor Pad 3. This sensor pad 3 is used to measure the heart rate.
In the pictures below, the pin location of this AD8232 module is explained.
This AD8232 module mainly has 9 pins and a 3.5mm female port. We use 3 of these 9 pins to connect Sensor Pad 3. But we can connect all 3 sensor pads in the kit from Scion Electronics to the 3.5mm port through the same wire. If we talk about the remaining Pin 6, that Pin is connected with the Arduino board in this way.
Pin Label Description Arduino Pin
1) GND (Ground) GND
2) 3.3V (3.3V Supply) 3.3V
3) OUTPUT (Output Signal) A0
4) LO- (Lead-Off Detect -) D11
5) LO+ (Lead-Off Detect +) D10
6) SDN (Shut Down) Not Use
We can use this SDN pin to shutdown the module. I will not use that pin in this.
Finally, take the wire connected to the Sensor Pad 3 that you get with this kit and connect it to the 3.5mm jack.
Next, upload the .ino file in the folder below to the Arduino board. After that, while the Arduino board is plugged into the computer, run the processing file inside this folder through the processing software.
AD8232 :- ...
An error may appear when you run the processing code. Because the port reserved for your Arduino board is not the same as my port. If such an error occurs, what you have to do is to see how many times the port corresponding to your Arduino board is shown among the ports shown at the bottom of your processing software.
Among the 3 ports that show my name, the first port is the port related to the Arduino board. That's why I have written this code as Serial.list()[0]. .
myPort = new Serial(this, Serial.list()[0], 9600);
This is like an array that we use in Arduino, we called the first item as 0. The second item was called 1. A similar process will happen here.
In this, the port related to your Arduino board is shown as 0 for the first, 1 for the second and 2 for the third.
After making these settings, we can run the processing code...
Next, let's see how we can connect the red, green and yellow Sensor Pad 3 found with our module to our body.
Green - Right Arm (RA)
Yellow - Left Arm (LA)
Red - Right Leg (RL)
In the images below, there are 2 main ways to connect this sensor pad to our body.
So after connecting the Sensor Pad 3 to our body as shown in these images, we can see an ECG chart like this on our computer monitor.
So now you have your own ECG machine.
This ECG signal can be weak due to various reasons. We can take some small steps to achieve it
* Keep the sensor pad as close to the heart as you can.
* Connect the RA and LA Sensors to the body from the right side.
* Stay as still as possible while connecting these sensors and taking measurements.
* Use a new sensor pad for each measurement.
Sadly, I have to say that these are the last few Arduino posts. Due to the 2019 AL Exam, we have to stop the Arduino Post temporarily. I will have to stop posting temporarily after the next few posts.
0 Comments