Electronic – arduino – How much current is consumed by an avr analog sensor

analogarduinoavrcapacitorsensor

I'm trying to measure a small analog device that emits about a volt (I believe up to 5V, but I've not measured at extremes yet) AC. I rectify the reading to DC, but I'm really interested in getting something a bit smoother out of it because I just want to know approximately what it's doing.

I'm looking to size a reservoir capacitor, but that requires me to know how much current is actually flowing through this circuit. I assume it's non-zero, but must be somewhat close to that.

I can compensate by just taking a few samples and picking the biggest one, but I'd like to be able to just take any given sample and have it properly represent the current state (in practice, "current" is on the "second or so" scale).

I've seen RMS ICs, but I don't really want to add another $10 to the project when I've already got a reasonable workaround. More importantly, I'd like to understand the stuff I'm working with a bit better.

Best Answer

The ATMEGA328P that the Arduino runs on (assuming an UNO or similar) has an input resistance of 100MΩ on the analogue inputs:

enter image description here

So, at a maximum of 5V, the current draw would be:

\$I = \frac{V}{R} = \frac{5}{100000000} = 0.00000005A = 50nA\$

Half level would be 2.5V, so 25nA, etc.