You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+56-26Lines changed: 56 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,24 @@ Chords Python script is designed to interface with an Arduino-based bio-potentia
37
37
```bash
38
38
.\venv\Scripts\activate
39
39
```
40
-
3. Install the required Python libraries:
40
+
41
+
> [!IMPORTANT]
42
+
> You may get an execution policy error if scripts are restricted. To fix it, run:
43
+
44
+
> ```bash
45
+
> Set-ExecutionPolicy Unrestricted -Scope Process
46
+
>```
47
+
48
+
3. Install the required Python libraries needed to run the python script:
41
49
```bash
42
50
pip install -r chords_requirements.txt
43
51
```
44
52
53
+
4. Install the required Python libraries needed to run the applications:
54
+
```bash
55
+
pip install -r app_requirements.txt
56
+
```
57
+
45
58
## Usage
46
59
47
60
To use the script, run it from the command line with various options:
@@ -57,6 +70,12 @@ To use the script, run it from the command line with various options:
57
70
- `-v`, `--verbose`: Enable verbose output with detailed statistics and error reporting.
58
71
- `-t`: Enable the timer to run program fora set timein seconds.
59
72
73
+
### Example:
74
+
```bash
75
+
python chords.py --lsl -v --csv -t 60
76
+
```
77
+
- This command executes the Python script `chords.py`, initiates the LSL stream, enables verbose output, activates CSV logging, and sets a timer for 60 seconds:
78
+
60
79
### Data Logging
61
80
62
81
- **CSV Output**: The script saves the processed data in a CSV file with a timestamped name.
This will launch a Web interface. Use the interface to control the applications:
124
151
125
-
1. Click the `Start LSL Stream` button to initiate the LSL stream.
152
+
1. Click the `Start LSL Stream` button to initiate the LSL stream or `Start NPG Stream` button to initiate the NPG stream.
126
153
2. Then, click on any application button to run the desired module.
154
+
Important: Keep the `python app.py` script running in the background while using any application.
127
155
128
156
### Available Applications
129
-
- `ffteeg`: Real-time EEG analysis with FFT and brainwave power calculation.
130
-
- `heartbeat_ecg`: Analyze ECG data and extract heartbeat metrics.
131
-
- `eog`: Real-time EOG monitoring with blink detection.
132
-
- `emgenvelope`: Real-time EMG monitor with filtering and RMS envelope.
133
-
- `keystroke`: GUI for EOG-based blink detection triggering a keystroke.
134
-
- `game`: Launch an EEG game for 2 players (Tug of War).
135
-
- `csv_plotter`: Plot data from a CSV file.
136
-
- `gui`: Launch the GUI for real time signal visualization.
157
+
- `ECG with Heart Rate`: Analyze ECG data and extract heartbeat metrics.
158
+
- `EMG with Envelope`: Real-time EMG monitor with filtering and RMS envelope.
159
+
- `EOG with Blinks`: Real-time EOG monitoring with blink detection.
160
+
- `EEG with FFT`: Real-time EEG analysis with FFT and brainwave power calculation.
161
+
- `EEG Tug of War`: A 2-player game where brain activity determines the winner in a battle of focus.
162
+
- `EEG Beetle Game`: Use your concentration to control a beetle's movement in this brain-powered challenge.
163
+
- `GUI of Channels`: Launch the GUI for real time signal visualization.
164
+
- `EOG Keystroke Emulator`: GUI for EOG-based blink detection triggering a keystroke.
165
+
- `CSV Plotter`: Plot data from a CSV file.
137
166
138
167
## Troubleshooting
139
168
140
169
- **Arduino Not Detected:** Ensure the Arduino is properly connected and powered. Check the serial port and baud rate settings.
141
170
- **CSV File Not Created:** Ensure you have write permissions in the directory where the script is run.
142
-
- **LSL Stream Issues:**Verify that the `pylsl` library is installed and configured correctly.
171
+
- **LSL Stream Issues:** Ensure that the `pylsl` library is properly installed and configured. Additionally, confirm that Bluetooth is turned off.
143
172
144
173
## Contributors
145
174
146
175
We are thankful to our awesome contributors, the list below is alphabetically sorted.
147
176
177
+
- [Aman Maheshwari](https://github.com/Amanmahe)
148
178
- [Payal Lakra](https://github.com/payallakra)
149
179
150
180
The audio file used in `game.py` is sourced from [Pixabay](https://pixabay.com/sound-effects/brass-fanfare-with-timpani-and-windchimes-reverberated-146260/)
0 commit comments