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
AD8232
Gnd-gnd
3,3v -3,3 v
Output -a0
Lo- dig 11
Lo+- dig 10
Sdn- none
Code:
Mod edit: code tags - JohnInTX
, electrodes placement.... But never I can get an classic ECG GRAPHIC Please help Best regards
AD8232
Gnd-gnd
3,3v -3,3 v
Output -a0
Lo- dig 11
Lo+- dig 10
Sdn- none
Code:
C:
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);
}
Attachments
-
70.9 KB Views: 2
-
84.5 KB Views: 2
Last edited by a moderator: