Our group members consist of me, Maung Phyo Win Zaw, Goh Cher See, Nicholas Makoto and Xin Feng.
For this project, our concept was to create an alarm clock which relies on hand pressure to switch off. The harder one presses on the alarm clock, the less amount of additional snooze time will be given. Additionally, the alarm volume will be potentially increased.
The idea is to create an alarm clock that responds based on the awareness of the user. If one is more tired, the alarm clock will instinctively react and not disturb the user, if the user is awake enough but isn’t willing, the alarm will be set louder to “push” the user out of bed. To switch off the alarm clock, the user will have to smash on the pressure switch much harder.
The project was separated into a few categories: The first function was the clock countdown element, a smaller value of five seconds was set so that we could test it quickly. Secondly, three if statements were used so as to trigger three separate countdown values.
The issue with using a pressure based sensing is that the input value constantly drops to zero whenever the user lifts his finger away from the pressure sensor, updating the computer until the input reads as zero. To solve this issue, we used a peak function to take the largest value, resetting the counter as soon as the user pressed on the pressure plate again.
Finally, we matched the three bang functions (based on the pressure) into the volume bar, and added a fourth pressure value so as to stop the audio playback. We set a new value of the countdown timer.