Pages: [1]   Go Down
Author Topic: Auto-Range Capacitance Meter  (Read 1088 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 164
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!

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?
« Last Edit: December 30, 2012, 01:49:36 pm by GoingForGold » Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Mark
Logged

Offline Offline
Full Member
***
Karma: 0
Posts: 164
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Santa Fe
Offline Offline
Full Member
***
Karma: 1
Posts: 201
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

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.
Logged

Offline Offline
Edison Member
*
Karma: 116
Posts: 2205
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Poole, Dorset, UK
Offline Offline
Edison Member
*
Karma: 25
Posts: 1872
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The example given here requires just one wire! Well I was going to give a link to the capacitive sensing section of the playground but the main site is playing up.

Mark
Logged

Anaheim CA.
Offline Offline
Faraday Member
**
Karma: 44
Posts: 2808
...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
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.

That is too complicated... WAAAY too complicated.. but typical of *dhenry*.
Build the circuit and use the internal ADC reference (1.1V) and calibrate the circuit with a known capacitor.
Better yet use (borrow) a capacitance meter and use it as the comparison standard... It can't be any worse than the measurement required to find the "Exact" value of the ADC reference voltage. The only thing important is that the reference voltage must be a constant and not vary. The rest is all number crunching.

Bob
Logged

--> WA7EMS <--
“The solution of every problem is another problem.” -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

Pages: [1]   Go Up
Jump to: