Skip to main content

Python3 library to read data from Neurosky Mindwave Mobile 2 in linux.

Project description

Description

Python3 library to read data from Neurosky Mindwave Mobile 2 on linux using pybluez2.

Contents:

Requirements

  • libbluetooth-dev

Pre-execution

You can install dependencies via setup.py

$ python -m pip install .
$ python -m pip install .[gui] # to install gui dependencies

via python package index (PyPI)

$ python -m pip install neuropy3
$ python -m pip install neuropy3[gui] # to install gui dependencies

or manually

$ python -m pip install -r requirements.txt
$ python -m pip install -r gui_requirements.txt # to install gui dependencies

Execution

Command line interface

$ python -m neuropy3
$ python -m neuropy3 --address XX:YY:ZZ:AA:BB:CC
$ python -m neuropy3 --help

Address argument helps speed up connection process, otherwise a neuropy3 will run a scan of nearby bluetooth devices (which takes a lot).

Graphical user interface

$ python -m neuropy3 --gui
$ python -m neuropy3 --address XX:YY:ZZ:AA:BB:CC --gui

Note: requires neuropy3[gui] extra dependencies

Screenshots
gui
raw

Importing library

>>> from neuropy3.neuropy3 import MindWave
>>> mw = MindWave(address='XX:YY:ZZ:AA:BB:CC', autostart=False, verbose=3)
>>> # mw = MindWave(autostart=False, verbose=3)  # Autoscan for MindWave Mobile
>>> mw.set_callback('eeg', lambda x: print(x))
>>> mw.set_callback('meditation', lambda x: print(x))
>>> mw.set_callback('attention', lambda x: print(x))
>>> mw.start()
>>> mw.unset_callback('eeg')
>>> mw.stop()

Acknowledgements

This work has been supported by National R&D Project TEC2017-84197-C4-1-R and by the Comunidad de Madrid project CYNAMON P2018/TCS-4566 and co-financed by European Structural Funds (ESF and FEDER)

License

neuropy3  Copyright (C) 2022-2023 Sergio Chica Manjarrez @ pervasive.it.uc3m.es.
Universidad Carlos III de Madrid.
This program comes with ABSOLUTELY NO WARRANTY; for details check below.
This is free software, and you are welcome to redistribute it
under certain conditions; check below for details.

LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neuropy3-1.0.4.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

neuropy3-1.0.4-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file neuropy3-1.0.4.tar.gz.

File metadata

  • Download URL: neuropy3-1.0.4.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for neuropy3-1.0.4.tar.gz
Algorithm Hash digest
SHA256 1c6d6b14f06a1111f9ac1ada404fcd063e8bc21cbcb8063f5342f7867672b5b2
MD5 6d752bb9737197ba0cc4852bee90f9a8
BLAKE2b-256 81f32f5940364e7161ff2bd241a05005bd3df382adbc5b0b3cf5855ec21df5e7

See more details on using hashes here.

File details

Details for the file neuropy3-1.0.4-py3-none-any.whl.

File metadata

  • Download URL: neuropy3-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for neuropy3-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff4364738487f57cc0bfcf092758fed34ff42f877a4dfa5fae06af6151b65c2
MD5 c66516ac2ee2b572e0c817ce856ef614
BLAKE2b-256 7f92121ceb3a48ff7855ef9e87927a389bb4385ea408600c9a524eccc9bdff59

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page