Skip to content

openbci-archive/_DEPRECATED_OpenBCI_Python_Node

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python and Node.js with OpenBCI

alt tag

  • open_bci_v3.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

python user.py -p "<serial port>" --add udp_server 127.0.0.1 8888 --add print

  • Modify settings according to desired behaviour. See OpenBCI_Python README
  • Start UDP server --> /start
  • Run node socket_server.js
  • Visit http://127.0.0.1:8880 to see your brain waves

Optionally

  • Use python udp_client.py --json from the scripts folder to verify data is coming through
  • Use python socket_client.py from the scripts folder to view the Web Socket data coming back into Python (requires socketio-client)

Dependency List

Python UDP demos require:

  • pyserial
  • numpy

Node sample requires:

  • socket.io

Python Web Socket requires:

  • socketio-client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.2%
  • HTML 30.8%