More accurate FFT Networking
I am using the Networking Widget of OpenBCI_GUI to output FFT to UDP.
Referring to the Networking Data Format, I understood that the bin size is 0.9765625Hz.
But the bin size is too big to use in my application.
By any chance, can I use a more accurate frequency interval and value?
In conclusion, I want more values than 125 floats or more precise intervals than 0.9765625Hz.
Networking Data Format
https://docs.google.com/document/d/e/2PACX-1vR_4DXPTh1nuiOwWKwIZN3NkGP3kRwpP4Hu6fQmy3jRAOaydOuEI1jket6V4V6PG4yIG15H1N7oFfdV/pub
Comments
Hello Han,
Have you considered writing a small Python (or other language) program using the Brainflow library? Then you have full flexibility in the FFT parameters. And Python also has UDP API calls.
https://brainflow.readthedocs.io/en/stable/Examples.html#python-band-power
William
Your own Python + Brainflow code is probably the easiest approach.
However if you are interested in the GUI source code, the Widget section is here:
https://github.com/OpenBCI/OpenBCI_GUI/blob/master/OpenBCI_GUI/W_Networking.pde#L1578
But notice it just is sending the values ALREADY packed into
fftBuff[]. If you want to see how fftBuff is created:https://github.com/OpenBCI/OpenBCI_GUI/search?q=fftBuff