I am trying to connect a Mindwave (NOT Mindwave Mobile) headset to my raspberry pi4 in order to complete my MSc project.
I am struggling to get it to consistently report the attention setting and have recently found out that - despite all documentation - the blink function is not present either.
My supervisor has suggested some code using the NeuroPy library instead but he only has the mindwave mobile headset available (due to covid lockdown) and I was wondering if anyone in this fine community had succeeded in modifying the connection code to work.
The line in question (I assume) is:
neuropy = NeuroPy(port="/dev/rfcomm1")
I don't even know if its possible to be fair but am hoping as this is I think my last chance to get the system working. Any help or suggestions for getting a blink reading would be gratefully accepted too.
Use this for Python 3+
https://github.com/dweidai/NeuroPy-Python3.0
and then call it like this:
In python 3 you may want to use
NeuroPy.NeuroPy("COM9")<- Use your port ofcTo get the blink variable you will need to call the socket on the Neurosky connector, because it is broken in the NeuroPy library. To do that connect to the socket with any good lib and get the variable. (duh)