Hi,
Basically you have to connect the analog output to a comparator with comparison threshold adjusted to mid value of QRS signal so that you get clean pulses corresponding to QRS. Now any micro can be used to compute the R-R interval or the heart rate by counting these pulses.