ArduinoArduino UnoExact chip

Heartbeat to Plotter

A pulse sensor on A0, sampled every 10 ms. Open the Plotter.

Heartbeat to Plotter in Argynix Lab

The code

sketch.inoC++
// A pulse sensor on A0, sampled every 10 ms: open the Plotter to watch the beat.
// Set the heart rate in the inspector.

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

void loop() {
  Serial.print("pulse:");
  Serial.println(analogRead(A0));
  delay(10);
}