Hi guys I am on a little project (ecg with an arduino) I followed all the topics , the diagrams to wiring
, electrodes placement.... But never I can get an classic ECG GRAPHIC Please help Best regards
Void setup() {
// initialize the serial communication:
Serial.begin(9600);
pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -
}
void loop() {
if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
Serial.println('!');
}
else{
// send the value of analog input 0:
Serial.println(analogRead(A0));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}
//Wait for a bit to keep serial data from saturating
delay(1);
That is more of a joke, isn't it?
Hi guys I am on a little project (ecg with an arduino) I followed all the topics , the diagrams to wiring
, electrodes placement.... But never I can get an classic ECG GRAPHIC Please help Best regards
So you're absolutely sure you haven't made any error in that all? So how should we help? You don't make errors, so the signal must be correct. You followed some tutorials (I didn't find the links to them), you probably use some breakout board (again found no link to it) and you didn't read the sticky post at the top of the forum ("How to use the forum") as if you did you would have used code tags in your post.
In the output pictures you posted we cannot see the time axis, so they are useless.
The heart usually beats about once a second, if you're nervous or under load it may be twice a second. If you have 100 measurements a second you have more than enough data points. Using your sketch you get about 900 measurements a second but only until the serial buffer filled up.
If your wiring and electrode placement is as good as the code I assume improvement potential is substantial.