My intention is to use the TGAM EEG chip connected to an Arduino nano to flash an LED at a certain frequency when brainwaves are in the delta and theta ranges. I do not want the circuit to be reliant on a computer for processing, the goal is that it works independently of one. I am not sure how to code the arduino for this purpose, or whether I need to alter the TGAM’s output to specify the delta or theta range, or if arduino can do that. Any coding assistance or input that can be provided would be extremely helpful.
If explanations could be as detailed but simple to understand as possible, that would be ideal as I am new to coding