I'm using an arduino along with an EMG board to obtain surface EMG data. I'm looking to filter and process the incoming signal in real time to provide feedback on stress levels. I have two main questions:
1) Is it possible to filter the signal within the loop and output the signal using only Arduino in real time or do I need to interface it with another software? I'm having a hard time understanding how the memory works in terms of storing the data, processing it, and then outputting it.
2) I'm looking to have a set sampling rate. The EMG provides an analog signal, but I haven't been able to come up with an efficient way of setting the sampling rate so any suggestions would be helpful!