Project tutorial
Arduino Fall-Detector

Arduino Fall-Detector © CC BY-NC-SA

People are always going to age but technology will always be advancing so lets use the advancing technology to fight against aging bodies!

  • 3,349 views
  • 0 comments
  • 6 respects

Components and supplies

Necessary tools and machines

09507 01
Soldering iron (generic)

Apps and online services

About this project

Step 1: Program the Arduino 101

Arduino Create

or

Download it from hackster

Step 2: Solder the Battery Plug

Step 3: Mount the Battery

I used hot glue to hold the battery on.

Step 4: Setup App (Android Only as of 1/16/17)

  • Make a BLE Widget

Step 5: Connect BLE and Test

Connect your device and drop it (not to far up) and see if you get a E-Mail, it could take up to 5 minutes depending on your E-Mail server.

Step 6: Troubleshooting

  • No Email? Check the URL make sure everything is correct!
  • No Email? Check to make sure its sensing by connecting the usb cord
  • Not Sensing? Change the sensitivity
  • Not connecting? Restart your phones bluetooth and un-pair the Arduino
  • Anything Else? Let me know in the comments

Code

Fall DetectorC/C++
//THIS CODE WAS CREATED ON 1/12/2017 THE CODE MAY BE OUTDATED BY THE TIME YOU USE IT, BUT YOU ARE WELCOME TO TRY
//CODE DEVELOPED BY FUNGUYPRO
//BLYNK IS REQUIRED
//USES BLE
//VISIT https:www.funguypro.net for more infomation

//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial

//#define BLYNK_USE_DIRECT_CONNECT

#include <BlynkSimpleCurieBLE.h>
#include <CurieBLE.h>
#include "CurieIMU.h"


// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "YourAuthToken";

BLEPeripheral  blePeripheral;

void setup() {
  Serial.begin(9600);
  delay(1000);

  CurieIMU.begin();
  //CurieIMU.attachInterrupt(eventCallback);
  CurieIMU.setDetectionThreshold(CURIE_IMU_SHOCK, 1500); // 1.5g = 1500 mg
  CurieIMU.setDetectionDuration(CURIE_IMU_SHOCK, 50);   // 50ms
  CurieIMU.interrupts(CURIE_IMU_SHOCK);

  blePeripheral.setLocalName("Funguy");
  blePeripheral.setDeviceName("Funguy");
  blePeripheral.setAppearance(384);

  Blynk.begin(blePeripheral, auth);

  blePeripheral.begin();

  Serial.println("Waiting for connections...");
}

void loop() {
  Blynk.run();
  blePeripheral.poll();
  if (CurieIMU.getInterruptStatus(CURIE_IMU_SHOCK)){
    Blynk.virtualWrite(V0, "t");
    Blynk.virtualWrite(V1, HIGH);
    Serial.println("GOT");
  }
}

Comments

Similar projects you might like

SMART CUBE: A New Way to Control Your Home

Project tutorial by Alberto Sartori

  • 13,529 views
  • 7 comments
  • 30 respects

Intel Arduino 101 BLE Blynk Tank

Project tutorial by Johnathan Hottell

  • 10,437 views
  • 6 comments
  • 41 respects

Handheld Infinity Kaleidoscope Group Kit

Project tutorial by Lucas Ainsworth

  • 8,596 views
  • 4 comments
  • 63 respects

Pedometer (Arduino 101)

Project tutorial by Bruno Gabriel

  • 4,970 views
  • 0 comments
  • 20 respects

Smart Garbage Monitoring System Using Arduino 101

Project tutorial by Technovation

  • 21,419 views
  • 7 comments
  • 32 respects

Arduino 101 - Intel Curie Pattern Matching Dress

Project tutorial by Kitty Yeung

  • 9,476 views
  • 17 comments
  • 50 respects
Add projectSign up / Login