I am currently trying to build a fall detection wristband with arduino. I'm trying to grab the real time accelerometer data and store them in the database regularly (every 0.5 sec).
What I'm going to do next is to analyze the raw data and detect for a fall, and if there's a fall, it should send a push notification to the android apps.
My main problem is, how should I analyze the data? Do i analyze them whenever there's a new set of data enters the database via php? Or do i have to set a cronjob to run another separate php script? Please provide me with some insights. Thank you.