GithubHelp home page GithubHelp logo

pyobci's Introduction

Python Library for OpenBCI

alt tag

  • open_bci.py manages the connection between the OpenBCI board and Python
  • udp_server.py exposes the data over UDP
  • socket_server.js a Node.js server that retransmits the data over a Web Socket
  • htdocs/index.html a hack to display data using D3.js

Running the Server

  • Plugin the board
  • python udp_server.py --json (add the --filter_data command to enable the band-stop filter on the board)
  • Optionally use python udp_client.py --json to verify data is coming through
  • Run npm install to make sure you have the dependencies
  • Run node socket_server.js
  • Visit http://127.0.0.1:8880 to see your brain waves
  • Optionally use python socket_client.py to view the Web Socket data coming back into Python (requires socketio-client)

Running the Python server/client without the --json flag will cause the OpenBCISample object to be used as the data transmission mechanism. This is for people that want to do some processing in Python.

Dependency List

Python UDP demos require:

  • pyserial

Node sample requires:

  • socket.io

Python Web Socket requires:

  • socketio-client

pyobci's People

Contributors

therealwardo avatar derekrazo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.