GeriatricAssistant HOWTO
From BUG Wiki
Contents |
Introduction
This application is the combination of various geriatric assistance ideas (two to be exact). The first function of the application is a more modern "I've fallen and I can't get up" device which actually attempts to detect when a fall has occurred using the Motion/Accelerometer module. If a fall is detected, a log is posted to a tumblr account (http://www.tumblr.com) complete with an image (generated using the Yahoo! Maps API) which pin-points the location of the fall based on the GPS coordinates retrieved from the GPS module. The second function of the application is used to help people with memory issues (Alzheimer’s patients, etc.) by recording images throughout the day and allowing them to review those images in rapid succession before they go to bed, which has been proven to help increase their recollection of events.
Required BUG Modules
- Camera - to capture images
- GPS – to retrieve GPS coordinates
- Motion/Accelerometer – to detect "free fall"
- LCD – to display the Geriatric Assistant GUI
Requirements
- A Yahoo! application ID
- A tumblr account
- GeriatricAssistant must exist in your eclipse workspace.
- Modify the geriatricassistant.properties file in the root of the project to include your Yahoo! Application ID (yahooAppId) as well as your tumblr login credentials (tumblrEmail and tumblrPassword).
Caveats
- Currently, the IAccelerometerSampleProvider doesn't appear to be implemented in the VirtualBUG so the associated code has been commented out and a "Free Fall" can be simulated using the "Simulate Fall" menu.
- When using the "Image Viewer" (and any other elements that display images), the repaints don't seem to occur properly in the VirtualBUG environment. Sometimes you need to pass another window over the VirtualBUG frame to get the image to paint. This is particularly frustrating when using the "Image Viewer".
Instructions
- Launch the Virtual BUG
- Install GPS, LCD, MOTION and CAMERA modules
- After all the modules are installed the VirtualBUG should open a frame that looks similar to the following:
- Selecting the "Switch Perspective" lets you switch between the "Main" screen and the "Image Viewer"
- Selecting "Image Viewer" from the "Switch Perspective" menu brings up the "Image Viewer". Selecting the play button will display all the images recorded for the current day in rapid succession.
- Selecting the "Fall" menu option under the "Simulate Fall" menu will generate a "Fall Alert" which will be sent to the configured tumblr. A fall alert consists of a static map image which highlights the GPS location in which the fall occurred as well as information about who fell and at what time.
- The results of the "Fall Alert" can be seen in the following image.







