The objective of the project is to convert a conventional alarm clock into a "smart" alarm clock that can be snoozed remotely and can report a weather condition back to the user. The remote snooze function is achieved using an IR sensor on the second Argon, and a solar cell connected to the third Argon reports if the weather is either sunny or not sunny. When in use, the solar cell is to be placed near a window where the outside is visible, and the IR sensor is to be placed on the floor near the user's bed to detect movement of his/her feet when exiting the bed. The purpose of the project is to provide the user with a real time weather report before leaving the bed, and also to allow the user to snooze the alarm by exiting the bed.
Argon Circuits
The Argon on the clock circuit is connected to a transistor, which is then connected directly to the board in the clock that activates the snooze button. When the output pin is set to write a high voltage, the transistor acts as a switch to allow 12 volts from the clock output to move back into the snooze button, turning the alarm off. The circuit also includes a button that can be pressed to publish an event asking for the weather report from the solar sensor.
When in use, the IR sensor assembly is to be placed on the floor next to the user's bed with the sensor facing where the user would step as he/she gets out of the bed. The purpose of the IR motion sensor as a remote snooze button is so the user turns the alarm off by getting out of his/her bed, requiring them to be standing upright to snooze the alarm.
The positive wire of the solar panel is connected to a digital pin, which is set to read the voltage coming from the panel itself. If the panel feeds a high enough voltage, the D7 LED will light up and the Argon will publish an event telling the clock Argon that it is sunny. If the voltage is too low, the LED will not light up, indicating that it is cloudy.
The "alarm" event is published when the button on the alarm circuit is pressed, and the other two Argons subscribe to this event. In response, the solar sensor Argon will publish the "sunny" event, which the clock Argon subscribes to, lighting the D7 LED if the weather is sunny. The IR sensor Argon publishes the "motion" event if it detects motion, which the alarm Argon subscribes to, sending a high voltage through the alarm clock itself to snooze it.
VideoConsole Events
Live Data Graphing
Using Thingspeak, live data was collected from the IR sensor as it detected motion.
Above is the spreadsheet populated by the Thingspeak Data
Above is the plot showing IR sensor detection vs no detection. The valley in the plot indicates that the sensor is detecting motion and publishing an event.
Live data link: https://docs.google.com/spreadsheets/d/1viorw8fnw8Xi6FaRrd1qjL6_8bdPZGa2vkPhx6l-F-Y/edit?usp=sharing
Conclusion:The three Argons are capable of working together to accomplish the project goal, converting a conventional alarm clock to a smart clock with remote alarm snoozing and a weather reporting function.
Comments