Testing is performed to verify the BPM calculation, threshold logic, display, LED, buzzer, analog input, and overall system behavior.
| Test ID | Test Condition | Expected Result |
|---|---|---|
| T01 | No valid pulse/input | WAITING or no valid BPM |
| T02 | Normal simulated BPM | NORMAL status |
| T03 | Low simulated BPM | LOW alert |
| T04 | High simulated BPM | HIGH alert |
| T05 | Input variation/noise | Stable or reasonably filtered output |
| T06 | Repeated signal peaks | No obvious double counting |
| T07 | Sensor/input disconnected | No valid BPM |
| T08 | Normal BPM | Green LED ON |
| T09 | Low BPM | Red LED + buzzer ON |
| T10 | High BPM | Red LED + buzzer ON |
| T11 | OLED connected | BPM and status displayed |
| T12 | System startup | Initialization message displayed |
Input:
Approximately 80 BPM.
Expected:
- BPM approximately 80
- Status NORMAL
- Green LED ON
- Red LED OFF
- Buzzer OFF
- OLED displays NORMAL
Input:
Approximately 40-50 BPM.
Expected:
- BPM below 60
- Status LOW
- Green LED OFF
- Red LED ON
- Buzzer ON
- OLED displays LOW
Input:
Approximately 110-140 BPM.
Expected:
- BPM above 100
- Status HIGH
- Green LED OFF
- Red LED ON
- Buzzer ON
- OLED displays HIGH
Verify that the Serial Monitor displays:
- Analog input value
- Calculated BPM
- Current status
Example:
Analog: 512 | BPM: 90 | STATUS: NORMAL
Verify that the OLED displays:
HEARTBEAT MONITOR
BPM: XX
STATUS: NORMAL / LOW / HIGH
Verify:
NORMAL -> Green LED ON
LOW -> Red LED ON
HIGH -> Red LED ON
Verify:
NORMAL -> Buzzer OFF
LOW -> Buzzer ON
HIGH -> Buzzer ON
A test is considered PASS when the actual output matches the expected output.
A test is considered FAIL when:
- Incorrect BPM status is displayed.
- Incorrect LED is activated.
- Buzzer operates during NORMAL condition.
- OLED fails to display the result.
- Serial Monitor does not provide the expected output.
- The system produces clearly incorrect behavior for the tested input.
Store screenshots and test results in:
screenshots/
and:
outputs/
The testing validates the embedded prototype and its software logic.
It does not establish medical accuracy, clinical reliability, or diagnostic capability.