Simple Project, Due On Friday 13-01-2012.
[login to view URL] interface with 2 tabs: Alarm & History
[login to view URL] the Alarm tab the user is advised to plug in his iDevice, because its going to be operational all night then the user chooses the time from a time picker and then presses a button "Go To Sleep".
[login to view URL] "Go To Sleep" is pressed the History tab is locked and time picker is locked and doesn't accept changes anymore, and user is told to turn the iDevice on its face and put it on the bed where he is sleeping.
[login to view URL] proximity detects when the iDevice in flipped and turns off the screen.
[login to view URL] accelerometer starts detecting movements when the button is pressed.
[login to view URL] average is calculated for the last 60 second of accelerometer data.
[login to view URL] new accelerometer data returned, is compared to the average, if its 30% larger than the average (lets call it peek time), its time of appearance is then compared to the previous saved peek time, and if the time difference is less than 10 minutes, the previous peek time is replaced by the last peek time (same as current peek time) and saved into the XML file.
[login to view URL] the previous point we know that there will be not 2 peek times saved in XML file that have difference less than 10 minutes in between.
[login to view URL] this, the average of the difference, between each 2 peek times saved, is calculated after each new peek time added to the XML file.
[login to view URL] based on the average of time difference, a prediction of when will the last recorded peek time will be before the specified alarm time in 1.1, if the predicted time of the last peek time is less than 45 minutes before the specified alarm time, the alarm is triggered on the predicted time, else if its more that 45 minutes, the prediction of the first peek time after the specified alarm in 1.1 is calculated, and if its less that 15 min after the alarm, the alarm s triggered on that prediction time, else its triggered on the specified alarm time in 1.1 and the accelerometer stops recording, the history tab and time picker are enabled again.
[login to view URL] History tab is always disabled when the accelerometer is working.
[login to view URL] the history tab is pressed, the XML file that holds the peek times is parsed and displayed in a table view, what ever the way you want.
Hi, I have worked on a few apps that used accelerometer of an iOS device, including one where accelerometer data was used for diagnosis of a medical condition. Please check your Inbox for details. Thank you.
Hi,
Your timeframe for this app leaves no time for testing and frankly, not much time for development either. In order to get a quality app which will earn you back your investment I think a timeframe of four weeks is more appropriate.
I'd love to create this app for you together with my freelance partner.