Data registered by Emotiv EPOC+

Data registered by Emotiv EPOC+:

This Node-Red flow is part of the Collection entitled “Fuzzy shell for developing a custom EEG BCI”. Thе flow requires EmotivBCI Node-RED Toolbox. It allows Emotiv EPOC+ data to be accessed in two different time windows, either 250 msec or 300 msec. The frequency bands of interest are stored in the global context in order to be used from the other flows in the Collection. For more details see: A. Lekova, I. Chavdarov, “A fuzzy shell for developing an interpretable BCI based on the spatiotemporal dynamics of the evoked oscillations,” Computational Intelligence and Neuroscience, 2021, DOI:https://doi.org/10.1155/2021/6685672

How to import the flow:

  1. This flow requires EmotivBCI Node-RED Toolbox. If you are not already installed - go to your command prompt and run: $ npm install node-red-contrib-emotiv-emotiv-bci
  2. Connect your Emotiv EPOC+ device by any Cortex service, e.g. Emotiv App.
  3. Start Node-RED in your command prompt.
  4. On your web-browser, open Node-RED on http://127.0.0.1:1880
  5. On the top-right screen, go to Menu/Import/Clipboard and paste the contents of the JSON file below in "example directory".
  6. Put your username in the node entitled “Emotiv profile” and deploy the flow using EmotivBCI Node-RED Toolbox.
[{"id":"827941d1.f9a6d","type":"EMOTIV","z":"2afbab69.f67744","name":"EMOTIV","x":260,"y":80,"wires":[["a5c3733a.ba3b8"]]},{"id":"a5c3733a.ba3b8","type":"Profile-Name","z":"2afbab69.f67744","name":"Profile Name","profileName":"","x":260,"y":140,"wires":[["cb86a7d8.ad86d8","e08f75.42af4088","c976855a.d54178","a036f29.f3b1e1"]]},{"id":"cb86a7d8.ad86d8","type":"Frequency-Band-Power","z":"2afbab69.f67744","name":"Frequency Band Powers","freq":0,"headset":"EPOC+","sensor":"8","x":590,"y":120,"wires":[["7147b23e.935bdc"]]},{"id":"7147b23e.935bdc","type":"function","z":"2afbab69.f67744","name":"storeO2T","func":"context.global.storeO2T=function() { return msg.payload};\n\nreturn msg;","outputs":1,"noerr":0,"x":860,"y":120,"wires":[[]]},{"id":"e08f75.42af4088","type":"Frequency-Band-Power","z":"2afbab69.f67744","name":"Frequency Band Powers ","freq":"3","headset":"EPOC+","sensor":"9","x":600,"y":60,"wires":[["64d9642b.97e9fc"]]},{"id":"64d9642b.97e9fc","type":"function","z":"2afbab69.f67744","name":"storeP8HB","func":"context.global.storeP8BH=function() { return msg.payload};\n\nreturn msg;","outputs":1,"noerr":0,"x":870,"y":60,"wires":[[]]},{"id":"c976855a.d54178","type":"Frequency-Band-Power","z":"2afbab69.f67744","name":"Frequency Band Powers ","freq":"4","headset":"EPOC+","sensor":"9","x":600,"y":240,"wires":[["570b7ff5.f2854"]]},{"id":"570b7ff5.f2854","type":"function","z":"2afbab69.f67744","name":"storeP8G","func":"context.global.storeP8G=function() { return msg.payload};\n\nreturn msg;","outputs":1,"noerr":0,"x":860,"y":240,"wires":[[]]},{"id":"a036f29.f3b1e1","type":"Frequency-Band-Power","z":"2afbab69.f67744","name":"Frequency Band Powers ","freq":"4","headset":"EPOC+","sensor":"8","x":600,"y":180,"wires":[["8127d7b8.deabe8"]]},{"id":"8127d7b8.deabe8","type":"function","z":"2afbab69.f67744","name":"storeO2G","func":"context.global.storeO2G=function() { return msg.payload};\n//msg.payload=msg.payload;\nreturn msg;","outputs":1,"noerr":0,"x":860,"y":180,"wires":[[]]},{"id":"94e8bc40.03997","type":"inject","z":"2afbab69.f67744","name":"0.125 ","repeat":"0.125","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":250,"y":280,"wires":[["a2174f70.0e45","b371af0b.691c6"]]},{"id":"a2174f70.0e45","type":"link out","z":"2afbab69.f67744","name":"Emotiv flow","links":["322676d6.a4c73a","3719401f.f0d0d","9e1b06b7.f42d78","c77b021e.35f09","aa32e0e0.1000b"],"x":255,"y":340,"wires":[]},{"id":"b371af0b.691c6","type":"function","z":"2afbab69.f67744","name":"store sample","func":"var s = context.global.get('sample')+1;\ncontext.global.set('sample',s);\n\n","outputs":1,"noerr":0,"x":250,"y":220,"wires":[[]]},{"id":"920e3f19.e30ae","type":"comment","z":"2afbab69.f67744","name":"Call this flow  - Emotiv flow","info":"","x":130,"y":20,"wires":[]},{"id":"d4b38d13.51683","type":"comment","z":"2afbab69.f67744","name":"Enter your profile","info":"","x":100,"y":80,"wires":[]}]

Flow Info

Created 4 years, 6 months ago
Updated 4 years, 3 months ago
Rating: not yet rated

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • function (x5)
  • inject (x1)
  • link out (x1)
Other

Tags

  • EmotivBCI Node-RED Toolbox, Designing BCI, TSK Fuzzy system, Training fuzzy set parameters, Genetic Algorithm in Digital Twin-based optimization
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option