Welcome, Guest

Author Topic: Display ECG in Arduino IDE 1.8.1  (Read 1254 times)

svan

  • Newbie
  • *
  • Posts: 48
  • Karma: +11/-0
Display ECG in Arduino IDE 1.8.1
« on: March 11, 2017, 05:15:03 AM »
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:
Code: [Select]
/*
 * 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.