Just wondering if you can tell us what method you use for rate detection. Thinking of writing my own but do not want to reinvent the wheel. I am not looking for details, just general statements. eg. ECG based heart rate monitors try and pick the peaks then filter the RR interval.