Last week i bought AD8232 sensor from AliExpress. When i unpacked it, pluged in to my Arduino Leonardo and make some coding i hoped that this will work. Unfortynately i was wrong. My serial everytime looks like this:
If we talk about leads, i used a connection to arms and leg. Last thing i find in the internet guides is the code:
void setup() {
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{
Serial.println(analogRead(A0));
}
delay(1);
}
It is very funny, that i search a lot in the internet, and a lot of people with the same connections and code is happy with their result. Unfortynately not in my case