◆ BPM (Beats Per Minute): 1분 동안 심장이 뛰는 횟수 (예: 60~100 bpm이 정상 성인 기준).
◆ IBI (Inter Beat Interval): 심장 박동과 박동 사이의 시간 간격(밀리초, ms 단위)으로, 심박 변이도(HRV) 분석에 사용됨.
◆ SIG (Signal): 심박 센서(Pulse Sensor 등)에서 측정되는 아날로그/디지털 형태의 실시간 파형 신호.
const int PIN_INPUT = A0;
const int PIN_BLINK = 13; // Pin 13 is the on-board LED
const int PIN_FADE = 5;
const int THRESHOLD = 550; // Adjust this number to avoid noise when idle
PulseSensorPlayground pulseSensor;
void setup() {
Serial.begin(115200);
// Configure the PulseSensor manager.
pulseSensor.analogInput(PIN_INPUT);
pulseSensor.blinkOnPulse(PIN_BLINK);
pulseSensor.fadeOnPulse(PIN_FADE);