3 // 300 to 3000 band stop filter
5 // http://www.schwietering.com/jayduino/filtuino/index.php?characteristic=bu&passmode=bs&order=2&usesr=usesr&sr=100000&frequencyLow=300¬eLow=&frequencyHigh=3000¬eHigh=&pw=pw&calctype=float&run=Send
7 //Band stop butterworth filter order=2 alpha1=0.003 alpha2=0.03
13 for(int i=0; i <= 4; i++)
25 v[4] = (8.869368704884e-1 * x)
26 + ( -0.7866981284 * v[0])
27 + ( 3.3285093824 * v[1])
28 + ( -5.2961761521 * v[2])
29 + ( 3.7543536539 * v[3]);
33 - 3.992879 * (v[1] + v[3])
47 int r = analogRead(A0);
48 float filtered = f.step(r);
49 Serial.print(r); Serial.print(","); Serial.println((int)filtered);