This is the sketch we used for the detection of giant depolarizing potentials (GDPs). Upon GDPs detection a signal was delivered to the recording amplifier after a fixed or random delay. Setting of GDPs detection and delay are possible via an LCD/5-button shield.
GDP_Threshold_8_3.ino (20.9 KB)