/MPU6050FallDetection

Detect a fall based pitch and roll tilt calculations using accelerometer

Primary LanguageC++Creative Commons Zero v1.0 UniversalCC0-1.0

MPU6050 Fall Detection

About

Arduino sketch to detect a fall based pitch and roll tilt calculations using the MPU6050 accelerometer.

Algorithm

Start

  • Set fallcount = 0;

Loop

  • Calculate Pitch and Roll
  • If Pitch or Roll are greater than lesser trigger
    • Increment fallcount
    • If fallcount > large trigger
      • Report fallen on ground
    • Else if fallcount > medium trigger
      • Report has fallen
  • Else if fallcount >0
    • Report Stumble
    • Set fallcount = 0