Tuesday, December 3, 2013

Today, a relay was added to isolate the power sources of each Arduino board. We also installed a reset push button for the secondary Arduino board so that it can be easily accessed.

In the beginning of the alarm code we added a variable flag "trap" which was equal to zero.
We changed the alarm code so that the alarm is initiated when it either receives a high signal from the primary board or when the flag "trap" is equal to one. When the secondary board receives a high signal, it initiates the alarm and sets "trap" equal to one so that the Arduino continues in the alarm loop even without the high signal. Pressing the reset button on the sound board sets the variable "trap" back to zero therefore ending the alarm loop.

In simpler terms, the alarm goes off at the designated alarm time and keeps sounding and flashing until the reset button is pressed. This is helpful so that the alarm doesn't keep sounding obnoxiously for a minute straight. When the person wakes up, they can shut it off and start their day!

A video is shown below to show the alarm clocks current functionality.

No comments:

Post a Comment