This project is intend for CE DP2
We know from the Internet (forums) and in our daily lives that most people, especially young people, find it difficult to control themselves from going to bed early at night. After an investigation on the Internet, it was found that there is no device on the market that can truly satisfy users to solve this problem, as a result, we decide to build an alarm clock that tries to make people sleep early.
The alarm clock will monitor your phone status and environment lights. Once your light is off and your phone is not in use, the clock will consider you are asleep and record your sleep time. This sleep time will compare to others, reward the winner, and produce peer pressure by displaying what percentage of other users have gone to bed on time so far to push everyone to sleep on time.
The clock also has two modes: Normal mode and Supervision mode, which allows it to adapt to more different user groups.
We will build the hardware device using raspberry pi zero w, and implement software using mainly Python.
Member #1: Yingzhuo Yang. Email: [email protected]
Member #2: Zijie Wu. Email: [email protected]
-
Documents such as datasheet
Also contains pictures used in markdown files - Sound file used by speaker module
- Contains all low level functions and classes that can be used directly
- A demo on how to use the functions and classes in utils.py
AttributeError: module 'pygame.mixer_music' has no attribute 'unload'
update pygame to latest versionNotImplementedError: mixer module not available
install libsdl2-mixer-2.0-0 by runningsudo apt install
OSError: libespeak.so.1: cannot open shared object file: No such file or directory
Install espeak by runningsudo apt install espeak