In our labratory this year, my friend benedikt and me, tried to build a sleep-tracker. i'll shortly outline the project. For more details check the attached report: report.pdf.

hardware

we narrowed down our three main requirements:

  1. small, similiar to a smart watch. it shouldn't hamper or disrupt the users sleep.
  2. power effiency: run for at least one night
  3. connected to a network: for long term data storage and data anlysis

therefore, we did go for the following hardware:

A_hardware-components

software

right now i can't describe the code in detail. basically it consists of three components:

  1. code for the ESP8266
  2. a web application build in Elixir Phoenix
  3. a docker-compose stack for setting up the backend

all of the code can be found in our Gitlab Project.

analysis

for our analysis we had to test our device.

Experiment (notice the wrist band?)

after gathering data for some nights, we tried to analyze the pulse, as it is the most reliable indicator of the sleep stages.

D_data-sensor02-1-bpm_sleep

the first measurements looked promising. we detected the typical 5 sleep cycles at each nights.

more details to follow if we find some spare time

Building a sleep-tracker