Help with low pass filter

I am trying to create a digital low pass and high pass filter. I am looking at the serial monitor and I am getting the same value that I intit my low pass not sure why or maybe I am understanding how the Arduino loop works. Any help would be appreciated.

B is always zero, because this is performing integer division.

Brush up on 1st order filter theory here: Arduino Tutorial: Simple High-pass, Band-pass and Band-stop Filtering – Norwegian Creations

how the Arduino loop works

It is just a function, called repeatedly from the hidden main(), and works like any other function.

thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.