Have you ever slept through your alarm, or pressed the 'Snooze' button in your sleep? Have you ever wished for a more effective alarm to get you up and ready for the day? The Morning From Hell Alarm System will do just that! With two different methods to wake you up—a loud alarm and sunshine—there's no way you're falling back asleep.
Using a three-way communication between Internet of Things devices, this system will make you more efficient and proactive in no time!
How It WorksThe Morning From Hell Alarm System uses an IFTTT applet to set the alarm time. The applet pushes the set time to the main Photon which determines when the current time matches the alarm time and sends that to the other Photons. One Photon then activates a loud buzzer while the other uses a servo motor to rotate open the window blinds.
The buzzer circuit is designed for a quick and painful start to your morning. The most painful parts of this circuit are the two buzzers rated at about 80dB each. For maximum wake-ability, one buzzer emits a straight tone and the other turns on and off in one-second bursts. The led D7 on the photon is also coded to flash with the buzzer that is going off. This is so that if the switch in the circuit is switched and the buzzers are turned off, it can still be seen that the alarm is going off. The buzzer code only is set to run for 40 seconds.
The circuit with servo motor utilizes the particle photon to receive a published event from the IFTTT-connected photon and rotate the blinds. When the event "alarmOn" is received, the motor will rotate clockwise to open the blinds, and then close after 10 seconds. When the "alarmOff" is received, the motor will not rotate. The servo is connected to the photon's Vin, Ground, and D0 pins, and receives power from a wall outlet.
The picture below shows the final system set-up, with the motor photon attached to the turning wand via a wall attachment. When the motor is programmed to a value between 90 and 180, the motor rotates clockwise and opens the blinds. When programmed between 0 and 90, the motor rotates counterclockwise and closes the blinds.
The IFTTT applet below was coded with the main photon, with the alarm set for 8:00am.
The chart below displays the feedback the main photon receives from the buzzer photon and the blinds photon when the alarm is on or off. A value of 1 is recored when the alarm is triggered. A value of 0 is recorded when the alarm is off. https://thingspeak.com/channels/575085
The Morning from Hell Alarm System - Video
Comments