Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 1.39 KB

File metadata and controls

81 lines (54 loc) · 1.39 KB

Alert Logic

Overview

The alert system compares the calculated BPM with configurable educational threshold values.

The system provides three states:

  • LOW
  • NORMAL
  • HIGH

Demonstration Thresholds

BPM Range Status Green LED Red LED Buzzer
Below 60 LOW OFF ON ON
60 to 100 NORMAL ON OFF OFF
Above 100 HIGH OFF ON ON

LOW Condition

When:

BPM < 60

The system:

  • Displays LOW on the OLED.
  • Turns OFF the green LED.
  • Turns ON the red LED.
  • Activates the buzzer.
  • Prints LOW status to the Serial Monitor.

NORMAL Condition

When:

60 <= BPM <= 100

The system:

  • Displays NORMAL on the OLED.
  • Turns ON the green LED.
  • Turns OFF the red LED.
  • Turns OFF the buzzer.
  • Prints NORMAL status to the Serial Monitor.

HIGH Condition

When:

BPM > 100

The system:

  • Displays HIGH on the OLED.
  • Turns OFF the green LED.
  • Turns ON the red LED.
  • Activates the buzzer.
  • Prints HIGH status to the Serial Monitor.

Decision Flow

BPM | +---- BPM < 60 ------> LOW | +---- 60 to 100 ------> NORMAL | +---- BPM > 100 ------> HIGH

Educational Disclaimer

The threshold values used in this project are demonstration settings only.

Actual heart-rate interpretation depends on factors such as age, physical activity, health conditions, medications, and measurement conditions.

This project is not a medical diagnostic device.