November 08, 2024, 11:34:19 AM

Display ECG in Arduino IDE 1.8.1

Started by svan, March 11, 2017, 05:15:03 AM

Previous topic - Next topic

svan

It is now possible to display an ECG with the Olimex EKG shield in the Arduino IDE (version 1.8.1) using menu item Tools/Serial Plotter.  A simple Arduino sketch for UNO follows:

/*
* Generic Arduino sketch to display ECG
* in Arduino IDE 1.8.1 using Tools/Serial Plotter
*/

const int analogInPin = A5;

void setup() {
  Serial.begin(9600);
}

void loop() {
  int sensorValue = analogRead(analogInPin);
  Serial.println(sensorValue);
}

I used it with a Mac, but should work for Windows also.