Skip to content

Commit 08e749a

Browse files
committed
Create requirement.txt & update readme
1 parent a5d5e26 commit 08e749a

File tree

2 files changed

+18
-41
lines changed

2 files changed

+18
-41
lines changed

README.md

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The BioAmp Tool is a Python script designed to interface with an Arduino-based b
55
## Features
66

77
- **Automatic Arduino Detection:** Automatically detects connected Arduino devices via serial ports.
8-
- **Data Reading:** Reads and processes data packets from the Arduino.
8+
- **Data Reading:** Read ModularEEG P2 format data packets from the Arduino's serial port.
99
- **CSV Logging:** Optionally logs data to a CSV file.
1010
- **LSL Streaming:** Optionally streams data to an LSL outlet for integration with other software.
1111
- **Verbose Output:** Provides detailed statistics and error reporting, including sampling rate and drift.
@@ -26,16 +26,24 @@ The BioAmp Tool is a Python script designed to interface with an Arduino-based b
2626
1. Ensure you have Python 3.x installed.
2727
2. Install the required Python libraries:
2828
```bash
29-
pip install pyqtgraph pyqt5 numpy pyserial pylsl
29+
pip install -r requirements.txt
3030
```
3131

3232
## Usage
3333

3434
To use the script, run it from the command line with various options:
3535

36-
```bash
37-
python bioamp_tool.py [options]
38-
```
36+
First Create Virtual Environment
37+
38+
```bash
39+
python -m venv venv #Create Virtual Environment
40+
.\venv\Scripts\activate #to activate environment
41+
```
42+
Then,
43+
44+
```bash
45+
python bioamp_tool.py [options]
46+
```
3947

4048
### Options
4149

@@ -48,17 +56,6 @@ python bioamp_tool.py [options]
4856

4957
## Script Functions
5058

51-
<<<<<<< HEAD
52-
- `auto_detect_arduino(baudrate, timeout=1)`
53-
54-
Detects an Arduino connected via serial port. Returns the port name if detected.
55-
56-
- `read_arduino_data(ser, csv_writer=None)`
57-
58-
Reads and processes data from the Arduino. Writes data to CSV and/or LSL stream if enabled.
59-
60-
- `start_timer()`
61-
=======
6259
`auto_detect_arduino(baudrate, timeout=1)`
6360

6461
Detects an Arduino connected via serial port. Returns the port name if detected.
@@ -68,43 +65,26 @@ Detects an Arduino connected via serial port. Returns the port name if detected.
6865
Reads and processes data from the Arduino. Writes data to CSV and/or LSL stream if enabled.
6966

7067
`start_timer()`
71-
>>>>>>> dad0c5ce4e301f8187a6a047dda450833539ab61
7268
7369
Initializes timers for 1-second and 10-minute intervals.
7470
75-
<<<<<<< HEAD
76-
- `log_ten_second_data(verbose=False)`
77-
=======
7871
`log_one_second_data(verbose=False)`
79-
>>>>>>> dad0c5ce4e301f8187a6a047dda450833539ab61
8072
8173
Logs and resets data for the 1-second interval.
8274
83-
<<<<<<< HEAD
84-
- `log_ten_minute_data(verbose=False)`
85-
86-
Logs data and statistics for the 10-minute interval.
87-
88-
- `parse_data(port, baudrate, lsl_flag=False, csv_flag=False, verbose=False)`
89-
=======
9075
`log_ten_minute_data(verbose=False)`
9176
9277
Logs data and statistics for the 10-minute interval.
9378
9479
`parse_data(port, baudrate, lsl_flag=False, csv_flag=False, gui_flag=False, verbose=False)`
95-
>>>>>>> dad0c5ce4e301f8187a6a047dda450833539ab61
9680
9781
Parses data from Arduino and manages logging, streaming, and GUI updates.
9882
99-
<<<<<<< HEAD
100-
- `main()`
101-
=======
10283
`init_gui()`
10384
10485
Initializes and displays the GUI with six real-time plots, one for each bio-signal channel.
10586
10687
`main()`
107-
>>>>>>> dad0c5ce4e301f8187a6a047dda450833539ab61
10888
10989
Handles command-line argument parsing and initiates data processing.
11090
@@ -137,9 +117,4 @@ If GUI is not enabled, you can use an LSL viewer (e.g., BrainVision LSL Viewer)
137117
138118
We are thankful to our awesome contributors, the list below is alphabetically sorted.
139119
140-
<<<<<<< HEAD
141-
- [Payal Lakra](https://github.com/payallakra)
142-
143-
=======
144-
- [Payal Lakra](https://github.com/payallakra)
145-
>>>>>>> dad0c5ce4e301f8187a6a047dda450833539ab61
120+
- [Payal Lakra](https://github.com/payallakra)

requirements.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
pyserial==3.5
2-
pylsl==1.14.0
1+
numpy==2.1.1
2+
pylsl==1.16.2
3+
pyqtgraph==0.13.7
4+
pyserial==3.5

0 commit comments

Comments
 (0)