Sparkfun Electronics AD8232 Hook-Up Manual page 9

Hide thumbs Also See for AD8232:
Table of Contents

Advertisement

If you see nothing displayed, it is probably because the Processing sketch is not reading the correct COM port. Make sure to modify the following line of code if
this happens.
language:c
myPort = new Serial(this, Serial.list()[2], 9600);
You will need to change the parameter inside
based on the enumerated COM ports on your computer. A list of available COM ports will appear in the
Serial.list()[N]
lower portion of the sketch window. Remember that COM port selection begins at 0 so you would be counting each COM port from 0 (in terms of programming
not in mathematical terms) from left to right. In this case, the Arduino enumerated as COM38 when uploading so it should be in the 3rd element in the array.
Therefore, you would change the value to 2. As a result, the example code would be listed as
. Typically your Arduino will appear as the highest COM
Serial.list()[2]
number if it is the only device connected to your computer.
The Arduino shows up as COM38. This is found in the Serial List at array element "2".
Once the COM port is adjusted with your setup, hit the Run button again. If everything is working correctly, you should see a nice box pop up and start displaying
the output signal similar to the image below.
"Normal" heart rate of an SFE engineer
If your subject decides to remove the sensors, the leads off detection in the code will kick in and display a flat blue line.
"Flight, we just lost Lovell!"
Troubleshooting and Tips & Tricks
ECG's are notoriously noisy. This is because you are measuring muscle activation. The furtherthe sensor pads are from the heart, the more muscle noise you
will see. These are commonly referred to as "Motion Artifacts". So here are some simple tips to improve the signal quality.
Keep sensor pads as close to the heart as you can.
Page 9 of 12

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AD8232 and is the answer not in the manual?

Table of Contents