ChrisVeigl / BrainBay

Open Source Biofeedback Software
http://brainbay.lo-res.org
Other
163 stars 52 forks source link

Interfacing ADS1299 EVM with (MMBO Board) and Arduino Uno #43

Open rohithkumarrk opened 5 months ago

rohithkumarrk commented 5 months ago

Greetings ! I am developing a project of EEG Kit (8 channel) using ADS1299 MMBO board interfaced with Arduino UNO board. I have done the Code for Reading Registers and SPI works Perfectly and somewhere am able to read the Raw EEG Data. Can someone please help me to Use BrainBay and Read perfectly accurate Brain Signal using only BrainBay. Since it is one of the best Application to plot the EEG Graph. Also what type of filters should be used and the arduino code also. Mainly , if a pre written Arduino code is available , please provide me along with the steps to use it. Link to ADS1299 Data sheet: https://www.ti.com/lit/ds/symlink/ads1299.pdf

Thank You

wjcroft commented 5 months ago

Hi Rohith,

The easiest path would likely be if you 'emulated' the serial data stream used by another device already supported by BrainBay. Since OpenBCI Cyton also uses the ADS1299, using that serial format is easy.

https://docs.openbci.com/Cyton/CytonDataFormat/ https://docs.openbci.com/Cyton/CytonSDK/

In addition to BrainBay, you also have a whole range of possibilities using the Brainflow library, supported by Python, C, and other languages.

https://brainflow.org/

All your filtering should be done on the laptop, not by the Arduino, since your Uno is so low powered computation wise.

Regards, William

rohithkumarrk commented 5 months ago

So You are suggesting me to use Cyton board by OpenBci. If this is correct , then in settings , Insert element -> Boards -> Cyton board should be my Input Source board. Since it is a Stand Alone project and Cyton board has similar configurations to my project, will it work ? I am a beginner and I still need some clear clarifications and details for completing this project.Please guide me . I am using only Arduino Uno and ADS1299 as hardware and Software is BrainBay. How do I integrate them and get the Desired waves on BrainBay ? I shall hereby attach my mail ID : rohithkumarrk248@gmail.com

Thank You for the support !

wjcroft commented 5 months ago

I already explained this including links above.

The complete source for the OpenBCI Cyton firmware (an Arduino based system) is located here:

https://github.com/OpenBCI/OpenBCI_Cyton_Library

The section in the firmware that sends the packets is here:

https://github.com/OpenBCI/OpenBCI_Cyton_Library/blob/master/OpenBCI_32bit_Library.cpp#L1586

I'm not suggesting you 'duplicate' the entire firmware source code. Only the sections needed to send the packets that BrainBay then knows how to decode.

If BrainBay device 'Cyton' does not work, try another device that you know the packet format.

Regards,