An alarm clock has no respect for it’s user -- fact. No matter what an alarm clock will go off at the time you set it to. We were tired of waking up feeling groggy, clouded, and sad.

What it does

There are three main stages of sleep: light sleep, deep sleep, and REM (Rapid Eye Movement) sleep. Depending on the stage one is in during sleep, interruptions may have a varying impact on cognition, awakeness, and mood. Namely, being interupted up in REM sleep can lead to grogginess, ability to concentrate, and consolidating information.

By tracking heart rate from a sensor worn by the user, our application monitors important sleep cycles (in light sleep heart BPM is relatively low, in REM sleep heart rate is high). Once the user’s heart rate changes to the light sleep window, the alarm clock knows to send a Twilio call to the user’s phone, at the time the user configured the alarm. The alarm call gives a pleasant “good morning” message, the time, and a song.

Additionally, the information is made available in a web application so that the user may view previous sleep cycles, average bpm, and information about your medical provider, in the case that further analysis on how the user is sleeping is needed.

How I built it

Rise-N-Shine is built on several different technologies, including: Flask, twilio, Arduino, serial, Celery, matplotlib, numpy, bootstrap, button, and flot.

Challenges I ran into

Working with serial signal input from the heartbeat sensor, integrating the SQLite database, flot charts, bootstrap templates.

Accomplishments that I'm proud of

Drinking 2 redbulls in rapid succession. Definite win.

What I learned

SQL Database implementation, bootstrap configurations, things about sleep (should probably get more of it)

“Never make more than two python files” - Jack

What's next for Rise N' Shine

Affordable bedside alarm clocks for households across the country.

Share this project: