Help me implement Lucid Dreaming support for OpenBCI

Absolute0KAbsolute0K Ukraine
edited October 2016 in Software
Hi all,

Back in 2015 I tried to build a Lucid Dreaming device based on the ADS1299 chip and I failed miserably. Few months ago I restarted my efforts and I am glad to report that I have succeeded in getting it to work! The device & software detected REM stages of my sleep and played a soundtrack that I recognized & used to induce Lucid Dreams. All the details are here, including all the mathematical details involving REM detection. (I actually had an older Hackaday post on this, but I deleted the article as the overall design was crap)

I would like to port my software so that it is compatible with the OpenBCI platform, since it has much more support than my poor hardware and is much more flexible. However, the problem is that I unfortunately do not have the device (I am a student who is broke at the moment. Sorry :( ) and hence am not very familiar with its functionality.

Right now I have a standalone C++ application written in Qt that processes the data from my hardware. I think the easiest solution is to use the TCP server streaming function from the OpenBCI python interface and make my program acquire the data from it.

This is how the program looks at the moment. Here I turn on the channels and impedance monitor and begin the REM analysis procedure (this is from Hackaday post). If we go with the above approach, that means that we will be replacing this entire serial comms section with a simple TCP socket, as the OpenBCI python will take care of the setup. What do you guys think?


image

I apologize for using imgur - I cannot upload a gif for some reason...

Thanks guys. Can't wait to make this compatible for OpenBCI!

Comments

Sign In or Register to comment.