Intention
One morning my roommate was overslept for his class. I was in the room and did not notice until he came out of the room. I could help to wake him up if I knew he was in the room. This incident inspired this project.
At the beginning of design, I planned to do a alarm clock that sends message to the roommate if the user failed to wake up. A pressing question is what UI to be used for user to set the alarm time. A text message requires user to type only in correct syntax, while a standalone app is definitely overkill for just an alarm. With this in mind, I looked for method to allow the device to synchronize with with the users' own alarm. Then I choose to use a mic to detect the alarm sound from the phone and triggers the system.
How does it work:
Starting 6am, the device will started to monitor the sound in the room. Once alarm sound detected, it starts the timing and activates the PIR motion sensor placed near the ground. If no motion of leaving the bed detected in 5mins, it will activate its own alarm sound. In another 5mins, the devices sends a message to the roommate for help. If motion detected anytime, the alarm will be stopped. The system will only be triggered once in the day to prevent false alarm triggered by the noise in the day time. System resets at 6am.
I spent tremendous time debugging both software and hardware. Surprises were everywhere.
Other than this, the data from mic is not reliable enough. As analog input, random noise affects the reliability of the system. A low-pass filter should be added to process the data.
You can upload files of up to 20MB using this form.