No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Latest commit 02f9e70 May 5, 2014 @theRealWardo done
Permalink
Failed to load latest commit information.
htdocs done May 5, 2014
.gitignore add a gitignore May 5, 2014
README.md done May 5, 2014
architecture.png diagram May 5, 2014
open_bci.py demo complete May 4, 2014
package.json back to localhost May 5, 2014
socket_client.py demo complete May 4, 2014
socket_server.js done May 5, 2014
udp_client.py A web socket server of this. May 4, 2014
udp_server.py demo complete May 4, 2014

README.md

Python and Node.js with 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