Comments: AD8232 Heart Rate Monitor Hookup Guide

Pages

Comments 37 comments

  • Hi, I run the sketch in Processing at it doesn’t have any error, but the screen is totally white I mean there is nothing in the graphic, sorry for my bad english, can someone help me please?

  • ArrayindexOutOfBoundsException : 2, Trying for a while but no signs of working

  • Hi, I run the sketch in Processing. it doesn’t have any error, but the screen is totally white I mean there is no any ECG graph shown up. what could be my mistake?

  • Hi there, currently I’m doing the ECG with IOT, can I have your code in Arduino ide for calculating the heart rate (BPM)?

  • changing the line: Serial.begin(9600); to Serial.begin(19200); fixed my issue with the graph screen being totally white.

  • Hi, Anyone knows the solution for always return ‘!’ ?

  • I got an excellent stroke, doing an average of every 13 beats. This softens the stroke. Here is the code: void loop () { int average= 0; int reading; if ((digitalRead (10) == 1) || (digitalRead (11) == 1)) { Serial.println (‘!’); } else { // send the value of analog input 0: for (int i = 0; i <13; i ++) { reading + = analogRead (A0); delay (1); } average= reading / 13; Serial.println (average); } // Wait for a bit to keep serial data from saturating

    }

  • ——————– Tech Support Tips/Troubleshooting/Common Issues ——————–

    Processing IDE Version

    The example Processing sketch works with the Processing IDE v2.2.1. Later versions may not work with the example code so makes sure to download the stable release for v2.2.1 from the Processing IDE Download page . The example Processing sketch was not able to work on v3.0.2 .

  • I finally found the problem. Most of the time we take noise is due to AC ground issue from the laptop when charging. So, when I remove my charger. Problem solved. So, for this project, do not charge your laptop especially when u use arduino power up using USB. Furthermore, the frequency of Malaysia TNB AC frequency is 50Hz which is quite near to fundamental frequency of heart waveform is approximate 32Hz

  • I try the product ad8232. It is working. May I ask u how to zoom in the waveform

  • Hello. I connect all connection correctly. And my software is true. But output signal is always 0 0 0 0 1020 1020 1020 or 0 0 0 600 600 600 0 0 0 like a peak. i cant see EKG signal.

    I have got a another EKG board (my product). Its corrcetly run but AD8232 is not run.

    Is your sould board damaged or another thing? Please help me ?

    • hi sir,i have the same problem ,is your problem solved? kinly help me,i have only 1 day to submit project,Thank you

  • hello! i’m newbie using this AD8232 heart rate monitor. Can you help me?

    i have final project using this. I already have the source code from this website. but i have some problem about “how to counting the heart beat (bpm/beat per minute)” and show the bpm on the LCD 16x2. Can you help me for the source code? i really need help. thank you

    sorry for my bad english

  • It appears that the heart rate display processing is in Java -is this correct?

  • Hello,

    in my case i have changed the electrodes LA (left arm, near the heart) and RL (right leg) –> then i get a god waveform with only a little bit noise (it is a mistake by hardware !)

  • Hello… So i got this board but i cant get the waveform to appear…. i seem to get noise only. The wire i’m using is different … and i cant tell which electrode to be placed where :/ So if you guys could please tell which wire of the jack is which one from RA LA and RL i’d be really grateful for example Jack Right = RA Jack Left = LA Jack common = RL

    I cna post an image of my 3-wire jack if required.

    Another problem is that the processing sketch doesn’t work at the line: inByte = map(inByte, 0, 1023, 0, height);

    the error says that this returns NaN

    Thankyou

  • Hello! I’m using a Flora board, and when I try to run processing, I get the error “ArrayIndexOutOfBoundsException:2.” I understand that this is for the line the tutorial says to change, however I’m not sure what I should change “2” to. The Flora shows up as a COM3. Thank you!

  • Hi! I’m having trouble to run code for signal processing. I constantly get error: “map(NaN, 0, 1023, 0, 400) called, which returns NaN (not a number)” also if I set inByte for 512.0 it doesn’t plot output at all. Maybe this is connected to some missing libraries?

    • I have the same problem and I don’t know how to solve. Any way, this NaN is the string “!”, if you see in the Arduino code: if((digitalRead(10) == 1)||(digitalRead(11) == 1)){ Serial.println(‘!’); } And this is the comunication between Arduino and processing, all the signal’s that ad8232-heart-rate-monitor is picking up by the sensors: String inString = myPort.readStringUntil(‘\n’); You can verify the signals received with a “println(inString);” below the previous code line.

      • I was having the same problem. I did two things.

        1) Make sure that your analog in matches the code on the Arduino sketch. If it is hooked up correctly, you then can use a program like coolterm to monitor the serial port and start collecting data. Make sure that you are getting data that makes sense (you can copy then paste the coolterm data into excel and plot, it should look like an EKG).

        2) I was using Processing 3 and getting the same error. I downloaded Processing 2.2.1 (https://processing.org/download/?processing) and that seemed to fix the problem

  • Hi! I saw wiring scheme and got little confused on Mini Pro pins. Why two of them are red and six of them are white rounded ( pin 3, 5, 6, 9, 10 and 11) ? Should I solder them together or what (whites with whites an reds with reds) ? Otherwise seams something is missing and Processing software give out Com 4 errors (ArrayIndexOutOfBoundsException:4). Thank You!

    • That image is a bit weird. The 2 that are red are offset from the standard 0.1" spacing and are the IC2 lines (A4,A5). The ones with the white circles are the PWM pins. The physical board does have a white circle around them as well to distinguish them. Do not solder any of them together, they are each individual pins and shorting them together could damage the board. As for the error, try emailing techsupport@sparkfun.com with a description of your setup, a copy or link to the sketch you are using and a screenshot of the error and they should be able to help you.

  • Hi all! I bought this for a school project and was wondering if anyone knew the units of the output you get from the Arduino serial monitor? Also if the ‘delay(1)’ means that it takes a reading every 1ms? Thanks in advance!

  • Hi, When I am trying to compile the processing sketch it shows an error “variable or field ‘serialEvent’ declared void” with the initialization line for the horizontal position of the graph int xPos = 1 highlighted. Can you please help me with this ?

  • Hi i’m using UNO R3 too, but is showing a unexpected signal, in the breakout board description makes mention that the led should turn on and turn off in each beat of the heart but is not so.. . do you have any idea of the reason for the which are present these issues?

    appreciate your comments

  • Using UNO R3 same pins as Mini. Works like a champ! One suggested correction on your otherwise accurate and informative Hookup Guide: The “blue” wire on your breadboard wiring diagram should go to AD8232 breakout board pin L0- and not OUTPUT. The text-chart wiring diagram is accurate. Now off to make the graph on the Raspberry PI . I’m very pleased with this breakout board.

  • Hi, The Git Hub links for the Arduino Sketch are returning 404 (Not Found). Could you post the code to Git Hub please?

    Thanks

  • DAM THOUGHT THIS WOULD WOK WITH PI, MORE MONEY WASTED


If you've found a bug or have other constructive feedback for our tutorial authors, please send us your feedback!