https://github.com/djaus2/mpu6050falldetection
Detect a fall based pitch and roll tilt calculations using accelerometer
https://github.com/djaus2/mpu6050falldetection
Last synced: about 1 year ago
JSON representation
Detect a fall based pitch and roll tilt calculations using accelerometer
- Host: GitHub
- URL: https://github.com/djaus2/mpu6050falldetection
- Owner: djaus2
- License: cc0-1.0
- Created: 2023-09-08T15:11:43.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-09T08:24:01.000Z (almost 3 years ago)
- Last Synced: 2025-04-23T18:19:20.621Z (about 1 year ago)
- Language: C++
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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