Go Down

Topic: Auto-Range Capacitance Meter (Read 1 time) previous topic - next topic


Dec 30, 2012, 07:47 pm Last Edit: Dec 30, 2012, 07:49 pm by GoingForGold Reason: 1

I want to build a capacitance meter, following this link: http://arduino.cc/en/Tutorial/CapacitanceMeter

Since the charging resistor is crucial for the time it takes for the measurement, I want to have a auto-range feature. Here is the schematic of my idea:

Where charging happens from the left, decharging with the right lower one and measurement on the upper right pin. R1-R3 are different resistor-values. I would charge through the smallest, and if the time is too short for an accurate measurement, do it again with a higher value and so on.

Does this work or will I have inaccuracies because of the changes to the original schematic?


Are you looking for a resistor who's value you can control from the Arduino?.



Are you looking for a resistor who's value you can control from the Arduino?.

Well, this would solve the problem too, didn't think about this yet.. Thanks!


got the following grouchy message when I tried to open your link


You don't have permission to access /en/Tutorial/CapacitanceMeter on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

the circuit is simple enough, maybe the easiest thing is to bread board it and see how it works if you have the script to calculate the timing.


Yes, but too complicated.

The simplest requires two pins: one to charge and the other to discharge / adc. No diodes and no dedicated discharge / adc pins.

A better approach is to use the analog comparator:

1) discharge the capacitor.
2) charge up with the appropriate energizing pin;
3) When the comparator flips, capture the timer count -> that indicates the capacitance.

Unless you have a way to measure the internal reference, I would use an external precision voltage reference as one of the source for the comparator.

Go Up