Skip to content

1st place Winner of ConUHacks VIII. Spartan is an alarm clock tool that allows you to create custom alarms with bluetooth LED control, custom music and speech. The alarm's snooze button is a computer vision push-up counter.

Notifications You must be signed in to change notification settings

ElliotFP/spartan

Repository files navigation

spartan

Product Statement

Spartan is a platform for customizing your wake up experience with various different features.

Functionality

-> Bluetooth connected LED controls for brightness, colour, mode (ex. music).

-> AI powered text-to-speech for reading motivational speeches or (not implemented yet) your notifications / the news.

-> Upload your own .mp3 file or files to play as the alarm.

-> List of your own alarm templates to choose from.

-> (HARDCORE MODE) Push-Up counter prevents the alarm from stopping until you do a set amount of push-ups.

Implementation

We are running our code on an orange pi, with an OV13850 camera, a 512 SSD and a wifi chip, running ubuntu 22.04.

-> The bluetooth LEDs are from Govee, which has an easy-to-use python api to control them.

-> The tts is implemented through *** .

-> We connected aux speakers and used the drivers provided by the orange pi's ubuntu image to output music to them.

-> The front-end UI is implemented through PyQT.

-> We used a repo https://github.com/aryanvij02/PushUpCounter for the computer vision push up counter.

Installation

Pip libraries:

  • PyQt6

  • bleak

  • mediapipe

  • govee-H613-BTcontroller

  • opencv-python

  • pygame

  • ibm-watson

  • ibm-cloud-sdk-core

  • python-crontab

  • paramiko

  • scp

    Note If the PushUp sensor does not find your camera go in PushUpCounter/PushUpCounter.py and change the capture to the right port.

About

1st place Winner of ConUHacks VIII. Spartan is an alarm clock tool that allows you to create custom alarms with bluetooth LED control, custom music and speech. The alarm's snooze button is a computer vision push-up counter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages