Research Article
A Pulse Rate-Triggered Wearable Device for Critical Assistance
Step 1: Setup serial port with baud rate 9600 | Step 2: Read current time using millis() I start_time | Step 3: Delay by 10 ms | Step 4: Setup Wifi connection | Step 5: Setup thingspeak connections | Step 6: Start loop() function | Step 7: Initialize flag with 1 | Step 8: Read input in analog form from pulse sensor in val variable | Step 9: Convert the reading into BPM using (1.0/Val) 60.0 1000 | Step 10: Print the BPM value | Step 11: Send the value to the things speak and plot the graph | Step 12: If and then | Step 13: goto step 15 | Step 14: else goto step 26 | Step 15: Loop till flag is 1 | Step 16: Initialize time1 with current time using millis() | Step 17: If time1-start_ minutes then | Step 18: go to step 20 | Step 19: else go to step 22 | Step 20: Print critical condition | Step 21: Trigger the buzzer on | Step 22: Send notification to the guardian | Step 23: If or then | Step 24: | Step 25: break the if loop | Step 26: Keep the buzzer off | Step 27: Repeat step 6 | Codes available at: https://github.com/Sumyak-Jain/Life-Saving-Alarm/tree/master/LSAhttps://github.com/Sumyak-Jain/Life-Saving-Alarm/blob/master/LSA/final.ino. |
|