Skip to main content

mindwave-lsl

This tool is for Mindwave EEG products and it was tested with Mindwave Mobile 2. You can use it to take data from a ThinkGear Connecter service using telnet and output it in a Lab Streaming Layer (LSL) outlet.

It can connect to Mindwave headsets using mindwave-python/python-mindwave as a connector too. Furthermore, you can set --output to a directory or CSV file to output the data there.

This package is available through pip

pip install mindwavelsl
mindwavelsl

If pip doesn't work, run the following to clone the library and install the tool:

cd ~
git clone https://github.com/gmierz/mindwave-lsl
cd mindwave-lsl
py setup.py install 

Then, to run it you can call it through the command line:

mindwavelsl

It has multiple options available including file output, and a mindwave-python connection option:

usage: mindwavelsl [-h] [--no-lsl] [--output OUTPUT] [--host HOST]
                   [--port PORT] [--mindwave-python-connect] [--device DEVICE]
                   [--headset-id HEADSET_ID] [--no-open-serial]

Run this tool to push Mind Wave Mobile 2 data from the ThinkGear Connector
socket, to Lab Streaming Layer (LSL).

optional arguments:
  -h, --help            show this help message and exit
  --no-lsl              Set this flag to disable LSL outlet.
  --output OUTPUT       Path to output data to, can include a CSV filename.
  --host HOST           The host for the ThinkGear Connector.
  --port PORT           The port for the ThinkGear Connector.
  --mindwave-python-connect
                        Set this to connect to Mindwave headset using
                        mindwave-python (through the module `mindwave`). It
                        needs to be installed manually, and instructions can
                        be found here: https://github.com/BarkleyUS/mindwave-
                        python. A more up-to-date version exists here as well:
                        https://github.com/faturita/python-mindwave. Must set
                        --device and --headset-id to use.
  --device DEVICE       Set this to the device of the headset to record i.e.
                        /dev/tty.MindWave2.
  --headset-id HEADSET_ID
                        Set this to the headset-id of the headset to record.
  --no-open-serial      If set, then `open_serial` in mindwave.Headset will be
                        set to False.

You can also use it as a module:

from mindwavelsl import MindwaveLSL

mwlsl = MindwaveLSL('localhost', 13854)

# Setup the LSL outlet and the ThinkGear connection
mwlsl.setup()

# Run the service
mwlsl.run()

See how the TelnetConnector and MindwavePythonWrapper connectors are implemented to add other connection options.

Metadata

Release files for mindwavelsl 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mindwavelsl 1.1.0
File Size Uploaded
mindwavelsl-1.1.0.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mindwavelsl 1.1.0
File Interpreter ABI Platform
mindwavelsl-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 23.6 kB

Release files / mindwavelsl-1.1.0.tar.gz

Download URL mindwavelsl-1.1.0.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d71b7ee0b543e9835f05666db7834c0c3ca97f47018ce31543ac342c9314813c
BLAKE2b-256 checksum
How to use checksums
ab1376a62ba4a359a137f06a61fa3b0f307e85208551dac15298d9327bedd83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

Release files / mindwavelsl-1.1.0-py3-none-any.whl

Download URL mindwavelsl-1.1.0-py3-none-any.whl
Size 13.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1d6a331bcd9cb28debd1b975ac7e90e5dd4346958bcd2b3ddce330cdb24195a
BLAKE2b-256 checksum
How to use checksums
9bab7f89349446c0bfefd97b763ef5190c05bc725de8b017f60a54a53c579713
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.4

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page