I am doing something very similar as your described. I think the reason you are getting that error is because of the filter is taking in an analog signal as the input, while the output from the Arduino is in digital. I am unsure as to how to make that rectification. But i presume this must be the reason. By the way, the Scope of my ECG is displaying in steps. Do you know how to make the scope more continuous?