-
-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restore support for pieeg #729
Conversation
Signed-off-by: Andrey Parfenov <[email protected]> Author: Nick Gamb <[email protected]> Date: Sun Jun 30 02:40:04 2024 +0200
Signed-off-by: Andrey Parfenov <[email protected]>
Signed-off-by: Andrey Parfenov <[email protected]>
We need a final testing round on it, cannot be merged wo confirmation from somebody with device and I dont have one |
Hi @Andrey1994 I have the board and can try but I notice the amplitude on the data when using ConsciousLabs ThinkPulse electrodes is low. I typically need change the gain when using these to 8 or more.
Other than that things seem to be working. I compiled this branch on a pi4 with a pieeg hat connected and used brainflow to acquire the data. I did not apply any filtering. When I have time this weekend I will increase the gain and recompile to see if that can improve the result with my setup. Hope that helps some - if not perfect. |
can you store all the data as in brainflow? without filtering for eeg channels. One of tests to run is to run it for 10 seconds and see how many rows there are in the file |
I am not sure about gain, as far as I understand somehow its used here
And assuming that everything is correct, if you change the gain you need to update these equations. In the end resulting voltage will be the same I think |
Maybe @Ildaron knows how to update equations for a new gain, to be honest I stll dont get why this conversion is not the same as for openbci devices |
It may not be required. @Ildaron has already looked and said it probably is not important. I do set the gain via register in pieeg (which is supported) when I switch acquisition mode in my app to not use BrainFlow. But we can ignore gain for now. Since your request seems to just be related to export format - let me pull some data again today for you that just exports the raw BrainFlow data. That will allow you to hopefully finish validation. I can fork/PR with some suggestions to make things like gain more configurable and you can consider if it is a fit. Might be more specific to my setup than others though. Give me a few hours to be a dad and then I will get to it. ✌️
|
we can add support for setting gain via config_board method, it may look like this:
Other formats for it are also ok. |
and config_board stuff can be done in a separated PR |
Yep, agree. And yes it is a sensitivity thing. I have read that ThinkPulse electrodes benefit from a gain of 8 or more but I have noticed it adds more noise than anything else. We should definitely take it to a new PR. 👍.
|
Hi @Andrey1994 . This data was taken using brainflow_get_data.py using my headset sitting in a forest far away from most interference. I think it is looking promising. |
thanks! looks awesome, I will create new release with pieeg support |
Recreate #723 from a local branch
Hi @nickgamb! Great work on this, I wanted to push some minor changes in code style fixes and also wanted to remove some extra stuff which remained from Android part. And to dont affect your master branch(also think I have no permissions for pushing there) recreated your PR frrom a local branch with some extra changes made by me