I am a very beginner in Ardunio. I am trying to develop an ECG sensor using AD8232 and Arduino Uno. I have used the following program
void setup() {
Serial.begin(9600);
pinMode(10,INPUT);
pinMode(11,INPUT);
}
void loop() {
if((digitalRead(10)==1)||(digitalRead(11)==1)){
Serial.println(":D");
}
else{
Serial.println(analogRead(A0));
}
delay(100);
}
But I am not able to observe P, QRS, T wave in serial plotter output. Please find the attached output waveform. It will be a great help for me if anyone can check the code and the waveform and suggest me some modifications.
Thanks in advance