Hamlet
Published © GPL3+

Running Heart Alarm T-shirt

A DIY heart-rate wereable in a running t-shirt that vibrates when your heart-rate is high, using DFROBOT components.

BeginnerShowcase (no instructions)1 hour731
Running Heart Alarm T-shirt

Things used in this project

Hardware components

Arduino Nano - DFROBOT
×1
DFRobot vibration motor module for arduino
×1
Beetle - The Smallest Arduino
DFRobot Beetle - The Smallest Arduino
×1
DFRobot heart rate monitor arduino
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Schematics of the connections

in the wereable

Code

heart-rate t-shirt

C/C++
Used in a running t-shirt for monitoring heart-rate.
//THE ANALOG PIN FOR HEART RATE
const int heartPin = A1;

//THE DIGITAL PIN FOR VIBRATION MOTOR MODULE
const int vib = 6;

void setup() {
 Serial.begin(115200);
 pinMode(vib, OUTPUT); 
}

void loop() { 
 int heartValue = analogRead(heartPin);
//printing for seeing the values at the computer, can be erased afterwards
 Serial.println(heartValue);
 delay(500);

//I use 800 for my own alarm, set your heart-rate alarm as you wish
 if (heartValue > 800){
     digitalWrite(vib,HIGH);
     delay (1000);
     digitalWrite(vib,LOW);
 }
}

Credits

Hamlet
2 projects • 4 followers
23 years old cybersecurity analyst, into investigative journalism, privacy and digital rights.

Comments