BCI-Operated Media Player is a mp3 player that can be controlled through a brain-computer interface (BCI). It has been designed for patients who are severely impaired and partially or completely locked in. They have lost all motor ability but have active brains. In our media player, we have created four controls that have been encoded as a combination of left-hand and right-hand movements. The OpenBCI device reads the input in the form of EEG signals from the patient’s brain and then uses the same to control the media player. It is easily scalable to multiple controls through a binary-like combination.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Basic knowledge of python scripting
- Install python 2.7 ..* Note: While installing, check the option to add Python to the path variable
- Install numpy
pip install numpy
- Install scipy package
- Install scikit-learn package
- Install wyrm package
pip install wyrm
6.Install mp3play package
pip install mp3play
While running: Before running the files, add the music you would like to play to the “songs” folder. All the music must be in mp3 format only.
1. run the gui_final.py file using the following command in the command prompt-
python gui_final.py <string_of_0s_and 1s>
For example,
python gui_final.py 01
2. run the bci_final.py file using the following command in the command prompt-
python bci_final.py
- File an issue
- Assign it to yourself or anyone who's interested
- Fork the repository
- Make changes and send a pull request
- If everything is good, the PR will get merged
References:
- Introduction to BCI
- BCI is already here
- Brainwaves 101
- Motor imagery and Mu Waves
- Wyrm toolbox for BCI experiments
- Signal processing in BCI
- Bhoomika Agarwal - Initial work - Bhoom10
- Abhiram Ravikumar - abhi12ravi
This project is licensed under the MIT License - see the LICENSE.md file for details
Shout-outs to all our contributors.