Ignore the stalker-like title.
I am thinking about creating a project with Arduino that can sense you sleep habits, when you're asleep, and how much you sleep. It would be convenient to not have to turn it on/off at night; it should know how to do this.
Some ideas that I have:
- Motion sensor
- Breathing patterns (if an Arduino microphone could even pick that out... I would be surprised if it could)
- A RTC clock could assist in deciding It's midnight. Usual, Steve isn't asleep at this time on Fridays. He's probably not sleeping now. It won't always be there to help you, but you might be able to try to get more accurate results this way
How can I accomplish this? (Extra points for some sort of algorithm that can tell dozing off from a deep sleep.)