Hi Arduino Forum! I'm actually quite new to Arduino twinkering and I had a project in mind that I wanted to bring to life. I recently bought an Arduino Uno and wanted to make an alarm clock that would prompt the user in the morning to shout at a certain volume in order to prevent the alarm from going off. If you don't shout within the given time from (i.e. 10 seconds), the alarm would sound and the user would have to get up physically to shut it off.
I've already gotten a Wave Shield from Adafruit for the audio interface and I plan on storing voice samples for the user prompt in the SD card. I also acquired an Electret Microphone MAX4466 for the analog input and have been able to measure voltage levels to determine the appropriate threshold needed to turn the alarm off. I also just got the DS1307 Real Time Clock in the mail to hook up to keep time.
My feasibility questions are: - Is there some way to have the Arduino on at all times and then when the Real Time Clock sense that the time is, for example, 6:30 AM, a sketch or function would run to activate the user prompt? - Is there a way to link sketches (like would I use the #include feature?) so when I prompt the user to input a shout, the microphone would then be active to listen for analog input? - Is there a way to listen for input for 10 seconds (or any given amount of time) and then if the threshold is not met, the function defaults to the alarm being played?
Thank you for reading this far! This is my first ever Arduino project and I just want to make sure I'm headed on the right track. If any help or pointers are available, that would be great.