I was learning the circuit design before implementing to Arduino. I browsed widely in textbook and journey paper, but here is some circuit design I can't understand. It is either filter or amplifier. Is anyone know the function/purpose of this circuit?
With one input of the opamp grounded, it looks like a transimpedance amplifier. (Current to voltage converter.) But the 500M resistor between the inputs seems a bit odd.
Very obviously(*) its an integrator - opamp with capacitor feedback. R2 is to stop long-term drift. R1 may be to deal more gracefully with recovery from output saturation perhaps.
The equation for a capacitor is dV/dt = I/C, so V is proportional to the integral of input current in this circuit.
(*) obvious if you learn the common and basic opamp circuits.