Fall Detector With Email Notification of GPS Coordinates
by TechMartian in Circuits > Arduino
1347 Views, 5 Favorites, 0 Comments
Fall Detector With Email Notification of GPS Coordinates
![Screen Shot 2017-09-01 at 12.18.00 AM.png](/proxy/?url=https://content.instructables.com/FS7/Q43P/J70QNM8N/FS7Q43PJ70QNM8N.png&filename=Screen Shot 2017-09-01 at 12.18.00 AM.png)
The average age of our population grows, yet people are also getting busier and busier with never enough time to take care of every one dear to our heart. Make this simple and small fall detector that sends an email notification of their GPS Coordinates via a Bluetooth Connection to a Smartphone. to you whenever it senses extreme motions, so that you can be there to respond as soon as possible.
Protect your loved ones! Build this arduino fall detector today!
BoM
![Screen Shot 2017-09-01 at 12.18.07 AM.png](/proxy/?url=https://content.instructables.com/FAR/6ILN/J70QNMB1/FAR6ILNJ70QNMB1.png&filename=Screen Shot 2017-09-01 at 12.18.07 AM.png)
![Screen Shot 2017-09-01 at 12.18.22 AM.png](/proxy/?url=https://content.instructables.com/FRI/RGHQ/J70QNMB5/FRIRGHQJ70QNMB5.png&filename=Screen Shot 2017-09-01 at 12.18.22 AM.png)
Materials:
- Arduino 101 board
- something to attach the board to a person (e.g. a strand of string)
- a battery pack
Additionally, you'll need:
- Arduino IDE
- FunguyPro Server
Wrap
![Screen Shot 2017-09-01 at 12.18.29 AM.png](/proxy/?url=https://content.instructables.com/FSM/0R45/J70QNMCK/FSM0R45J70QNMCK.png&filename=Screen Shot 2017-09-01 at 12.18.29 AM.png)
![Screen Shot 2017-09-01 at 12.18.36 AM.png](/proxy/?url=https://content.instructables.com/FZS/K47U/J70QNMDT/FZSK47UJ70QNMDT.png&filename=Screen Shot 2017-09-01 at 12.18.36 AM.png)
- Assemble the power unit with the board using the string
- connect the power unit to the power input of the arduino board
Code
![Screen Shot 2017-09-01 at 12.33.48 AM.png](/proxy/?url=https://content.instructables.com/FJV/2Z00/J70QNPM6/FJV2Z00J70QNPM6.png&filename=Screen Shot 2017-09-01 at 12.33.48 AM.png)
#define BLYNK_PRINT Serial<br>/* Set this to a bigger number, to enable sending longer messages */ //#define BLYNK_MAX_SENDBYTES 128 #include "WiFi.h" #include "WiFiClient.h" #include "BlynkSimpleEsp32.h" // replace"" with <>
// You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "YourAuthToken"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "YourNetworkName"; char pass[] = "YourPassword"; void emailOnButtonPress() { CurieIMU.begin(); //CurieIMU.attachInterrupt(eventCallback); CurieIMU.setDetectionThreshold(CURIE_IMU_SHOCK, 1500); // 1.5g = 1500 mg CurieIMU.setDetectionDuration(CURIE_IMU_SHOCK, 50); // 50ms if (CurieIMU.getInterruptStatus(CURIE_IMU_SHOCK)) { BLYNK_WRITE(V1) { GpsParam gps(param); Blynk.email("Subject: URGENT EMERGENCY Fall has been detected! GPS Coordinates: %d latitude, %d longitude", gps.getLat(), gps.getLon); tone (5, 10000); } } void setup() { // Debug console Serial.begin(9600); Blynk.begin(auth, ssid, pass); // get this from your phone CurieIMU.interrupts(CURIE_IMU_SHOCK);
} void loop() { Blynk.run(); }
App
![Screen Shot 2017-09-01 at 12.31.18 AM.png](/proxy/?url=https://content.instructables.com/FCK/M0BT/J70QNPHP/FCKM0BTJ70QNPHP.png&filename=Screen Shot 2017-09-01 at 12.31.18 AM.png)
- Make a bluetooth (BLE) widget to interface the Arduino board
- Make a web request widget to communicate with your email server
Deploy!
![Screen Shot 2017-09-01 at 12.18.44 AM.png](/proxy/?url=https://content.instructables.com/FP1/6BOW/J70QNME0/FP16BOWJ70QNME0.png&filename=Screen Shot 2017-09-01 at 12.18.44 AM.png)
Have the user place this in a pocket or attached to any piece of clothing, so that they are confident in that you will be there to help them if there is need, and you can continue facing challenges in your life head-on knowing that this fall detector will watch over our loved ones for you!