Click here to Skip to main content
15,887,822 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I get a final project about iphone application. I have to detect fall down of people. So, when a person falls down, the app will call the emergency service. Do you know a project similar to this, or any resources where I can find information about changes of accelerometer or gyro inputs during falling down activity.


Thanks,
Posted
Comments
Andrew Rissing 14-Mar-12 10:39am    
Problem, what happens when the phone is accidentally dropped? There isn't really a clear way to determine the difference between the two situations.
Sergey Alexandrovich Kryukov 14-Mar-12 12:19pm    
Poor owner of the phone... no sports, no jumps...

However, most people using them are already slaves, so who cares what a slave wants?
--SA
Ed Nutting 14-Mar-12 15:14pm    
Haven't thousands of pounds been invested in an app similar to this that ended up being scrapped as products such as this are far more sophisticated than even the latest phones...

1 solution

Not technically feasible.

iPhone apps only run in the foreground.

You can't run an app in the background on iOS and you can't have your app get accelerometer or gyro events unless it's in the foreground.

Normally an iPhone will power down if left idle for a short amount of time.

There are tricks to prevent it from doing that, but then your battery runs down very quickly.

Essentially, the best you could hope for is an app that will detect if the iPhone drops within an hour or two (or whatever the battery life of a continuously running iPhone is) -- or you could detect it indefinitely while the iPhone is plugged into a charger. Neither is particularly practical.

If you just want to find out how to access the accelerometer, you can google "iPhone accelerometer tutorial" you'll find lots of examples of how to access it, here's one: http://www.switchonthecode.com/tutorials/iphone-tutorial-reading-the-accelerometer[^]

As a practical application, though, it won't work on the existing iPhone.

It might be something that could be done on Android -- I haven't developed for Android, but you may be able to run a background/low-power app in that environment.

Of course, you still have the problem as other people said of determining the difference between the phone falling and a person falling. Perhaps, if the phone falls, the app could activate and give the person a certain amount of time to hit a button to indicate he is okay -- and if he isn't okay it sends a text message to someone to alert them. (I'm not sure if alerting emergency services is appropriate if the cat knocks the phone off the table and no one is there to turn the app off...)
 
Share this answer
 
Comments
Çağlar Tolga Tetik 19-May-12 19:16pm    
I saw your respond now, but thanks a lot for your help. I succeeded to solved this problem. I found a few articles and tried hundreds of fall down simulations. I finally get a couple different ways to detect it. Matching of old fall down data, using high and pass filters etc. It isn't perfect, but it is selected as the second best final project in my university.
TRK3 22-May-12 13:16pm    
I didn't realize it was a univeristy project. It's definitely an interesting technical challenge -- well done on solving it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900