The Arduino code for the ECG reader is below in grey. This code only works with the ECG Reader application. You will need to copy and paste the code into the arduino IDE. Save the arduino file name as “arduino_ecg”. The file name should look like “arduino_ecg.ino” when complete.
void setup(void) {
Serial.begin(115200);
//analogReference(EXTERNAL);
}
void loop(void) {
while(Serial.available() == 0) {}
Serial.read();
Serial.println(analogRead(A0));
Serial.flush();
//ECG Reader Arduino Code
//For educational purposes only}