CODESEEDSign in
Explore projects
Kotlinbeginnermobile

Android Smart Alarm with ML

Android alarm that learns your sleep pattern and wakes you up in the optimal 30-min window based on detected movement (accelerometer).

5 steps

Project steps

  1. 01

    Alarm setup

    AlarmManager with a 30-min window; Compose UI for setting maximum wake-up time.

  2. 02

    Motion tracking

    Accelerometer in foreground service at night; saves activity to Room.

  3. 03

    Sleep phase detection

    Small TFLite model: classifies accelerometer data into deep sleep / light sleep / awake.

  4. 04

    Smart trigger

    Monitors sleep phase; triggers alarm in light sleep before the maximum time.

  5. 05

    Sleep stats

    Night history: deep sleep duration, wake-up time, quality 1-5.

Recommended resources

Ready to build this?

Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.

5 steps

Tech stack

KotlinJetpack ComposeRoomTensorFlow LiteAlarmManager