WakeupNow – Smart Alarm Clock

Introduction: WakeupNow – Smart Alarm Clock

As everyone knows, life of students are very hard, they have a long day with lectures, a lot of homework and in general, they have a crazy life. They have time for nothing, and if you suggest them to add some hours to the day they will be glad. Unfortunately, we can't do that, but now the students can use our WakeupNow alarm clock that will ensure you will wake up on time and fast.

WakeupNow is a smart alarm clock, created to ensure tired people will wake up fast and on time.

Who we are?

Three Computer Science students from the Interdisciplinary Center (IDC), Herzliya, Israel that are very tired from combining stressful and busy schedules – school, job, family, and so on.

All of us have some difficulties to wake up early in the morning and because of that, we know all the tricks to make people wake up even when you try to manipulate the alarm.

WakeupNow is our final project in the course “The Internet of Things (IOT)” course thought by Zvika Markfeld. Thank you for teaching us this amazing course.

We hope this alarm will make your wake up easier, and you will like.

Supplies

• 1 x ESP8266 Board (we used Wemos D1 mini)

• 1 x Micro-USB Cables

• 1 x Breadboard

• 1 x Sonar

• 1 x Led

• 1 x Piezo

• 1 x RGB Led

• 20 x Jumper Cables

• 1 x Temperature & Humidity Sensor (We used DHT22)

• 3 x 10K Ohm Resistor

• 1 x NeoPixel Matrix 8x8

• 1 x Speaker

Step 1: Connections

  1. Put the ESP8266 board on the up middle of Breadboard.
  2. Connect the Micro-USB Cable from the ESP8266 board to the USB port on the computer.
  3. Connect between 5V pin on ESP8266 board to plus (+) on Breadboard (red jumper cable) and between G on ESP8266 board to minus (-) on Breadboard (blue jumper cable (like in the picture).
  4. Sonar connection
    1. Connect Gnd to minus (-) on Breadboard.
    2. Connect Echo to pin D3 on the ESP8266 board.
    3. Connect Trig to pin D2 on the ESP8266 board.
    4. Connect Vcc to plus (+) on Breadboard.
  5. Led connection
    1. Connect long leg with 10K Ohm resistor to pin D4 on the ESP8266 board.
    2. Connect short leg to minus (-) on Breadboard.
  6. Piezo connection
    1. Connect black jumper cable to minus (-) on Breadboard.
    2. Connect red jumper cable to pin A0 on the ESP8266 board.
  7. Speaker connection
    1. Connect one of the jumper cables to minus (-) on Breadboard and the second with 10K Ohm resistor to pin D8 on the ESP8266 board.
  8. RGB Led connection
    1. Connect yellow jumper cable to pin D5 on the ESP8266 board.
    2. Connect red jumper cable with 10K Ohm resistor to plus (+) on Breadboard.
    3. Connect green jumper cable to pin D6 on the ESP8266 board.
    4. Connect blue jumper cable to pin D7 on the ESP8266 board.
  9. Temperature & Humidity sensor connection
    1. Connect 3.3V to pin 3.3V on the ESP8266 board.
    2. Connect #D4 to pin D4 on the ESP8266 board.
    3. Connect GND to minus (-) on Breadboard.
  10. NeoPixel Matrix connection
    1. Connect DOUT to pin D1 on the ESP8266 board.
    2. Connect 5V to plus (+) on Breadboard.
    3. Connect GND to minus (-) on Breadboard.

Comment

We did not have a space to insert all of the components so we connected only part of them for each stage of the alarm.

Step 2: Software Preperations

Arduino IDE

  1. Arduino Installation
  2. ESP8266 Support

Adafruit IO

  1. Create Account
  2. Add 3 new feeds
    • FaceReaction
    • Temperature
    • WakeupTime
  3. Add new Dashboard named "Alarm Diagnostic"
    1. Add a Line Chart with settings like in the pictures.
    2. Add a Gauge Block with settings like in the pictures.
    3. Add a Stream Block with a setting like the pictures
  • You can see how the dashboard looks like in the pictures.

Blynk

  1. Download to your phone
  2. Scan the QR Code in the pictures to get the project.

Step 3: Code

Download the file "finalProject.ino" for the code of this project.

Open the code in Arduino IDE, and choose the relevant board – "LOLIN (WENOS) D1 R2 & mini".

When you run the serial monitor make sure you are on 9600baud – the will help you track if you have any errors.

In order to connect to Wi-Fi, Adfruit IO and BLYNK you need to modify all the relevant places in the code – make sure you do it.

Step 4: Choosing When to Wake Up

Take your cellphone and choose the time to wake up in the Blynk app.

The Led will turn on to notify you that you have set an alarm and the time chosen to wake up will be shown on the led matrix in the red color.

Step 5: Alarm Is Ringing

When it is the time to wake up, the alarm will play a modern version of "A Whole New World" and the RGB

led will blink in different colors.

This will continue until the user successfully deactivated the alarm (in the next videos you will not hear the alarm and will not see the led because of space problems).

Step 6: Stopping the Alarm - First Steps

In order to stop the alarm you need first to follow those steps:

  1. Get close to the alarm, specifically the Sonar, it will pick you up and will unlock the next step.
  2. In the next step, the Piazo will be activated and you will need to knock 3 times (there is no time restriction between knocks) to unlock the last step

Step 7: Stopping the Alarm - Final Step

In the last step, the display in the NeoPixel Matrix will change to an equation and you will need to send the answer using Blynk, answer correctly and the alarm will stop.

Step 8: After Deactivateing the Alarm

After you deactivate the alarm, you will see the room temperature (we wanted it to be the temperature of the current location using a service but every way we tried it did not work) in the NeoPixel Matrix, the temperature is being sent to Afafruit IO and you can check in the dashboard to see the last recorded temperature.

This alarm clock saves the time from when the alarm was activated until deactivated and send this to Adafuit IO. If the wake-up time is less than 3 minutes the user will get notified in the Fast Reaction Block, else if it took more than 5 minutes to wake up the user will get an email to remind him he needs to work on himself.

Be the First to Share

    Recommendations

    • DIY Summer Camp Contest

      DIY Summer Camp Contest
    • Metal Contest

      Metal Contest
    • Fandom Contest

      Fandom Contest

    Comments