Skip to content

Dream Hacker is project designed to help you sleep better. Our project plays an audio when a user is asleep.

License

Notifications You must be signed in to change notification settings

shreyExp/DreamHacker

Repository files navigation

Dream Hacker


Logo

Dream Hacker is program designed to help you have better dreams. Our projects monitors our users heart rate and plays an audio file chosen by the user. Once Dream Hacker detects the user has entered sleep ie. when the beats per minute is below a certain threshold it will play the selected audio.

This setup takes data from pulse sensor and time of the day etc, to predict when the person has slept. Then after a while start the audio stimulus.

Checkout docs »
Read the wiki »

                   

Discuss with us ·

Contents

  1. About
  2. Getting Started
  3. Contributing
  4. License
  5. Contact
  6. References

About

Dream Hacker is program designed to help you have better dreams. Our projects monitors our users heart rate and plays an audio file chosen by the user. Once Dream Hacker detects the user has entered sleep ie. when the beats per minute is below a certain threshold it will play the selected audio.

Website interface enables user to select the music they want to play while they are sleeping. They can also see their different information using web Interface. The information will include bpm (beats per minute), the threshold and when the user has slept.

Contributors Stars Issues License


If you have any questions about DreamHacker or want to share some information with us, please go to one of the following places:

Before you file an issue, make sure you have read the known issues.

Hardware

Software

See Documentation

Roadmap

[-] Next Software Release (v2.0) - ML of sleep detection using Python and ML algo

  • [-] User input integrated
  • [-] User sleep timings integrated
  • [-] Social Media Presence improvement
  • [-] Pulse sensor improvements
  • [-] Web-Server Improvments
  • [-] Gather Training Dataset
  • [-] Train sleep detection
  • [-] Test on real samples

Getting Started

Installation

Hardware

  • Set up the circuit as shown in the diagram.
  • Put a speaker with it's audio jack in the audio output of the raspberry pi.
  • For more information: Hardware Wiki

Software

1. Use SSH, VNC or a monitor and a keyboard to login to raspberry pi.
2. Install the audio player mpg123
3. Clone the repository somewhere in the Raspberry Pi.
4. Run the following commands from inside the repository 
 - cmake .
 - make

Usage

  • Put your audio files inside the directory audio/.
  • Edit the audio.txt file with the name of the audio you want to play when the sleep starts. For example if you want to play my_file.mp3 present in the audio/ directory then write audio/my_file.mp3. Make sure that the file has just one line.
  • Run ./drmhk -h to explore what are the parameters which can be feeded as the input to the program.
  • Example: If you want to run the program as a simulation and set the beats per minute threshold to 70 then run ./drmhk -s 1 -t 70.
  • To run in default mode run ./drmhk

Contributing

See CONTRIBUTING for more information.

License

Distributed under the GPL-3.0 License. See LICENSE for more information.

Contact

Team 39 in Real Time Embedded Programming

👤 Amber Dehariya (2594660d)

👤 Michael Hiluf (2529225h)

👤 Praveen (2620969t)

👤 Shreyansh Singh (2611417s)

References