I'm working on a project with a AD8232 heartbeat monitor but it doesn't show results.
The seriël moniter only shows ! (exclamation mark). And when I open the plotter I don't see anything.
This is the youtube tutorial I watched:
http://https://www.youtube.com/watch?v=01y_Vu_sAQU
My hardwear:
Arduino Uno
This is the code I used:
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);
}
[color=#212529]Can you maybe help me to get this working? :)
Greatz Mila
[/color]