Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

capacitance measurement with PIC

Status
Not open for further replies.

16F676

Member level 2
Member level 2
Joined
Aug 14, 2006
Messages
44
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Activity points
1,531
Hi, Friends
Anybody can Explain how capacitance being measured in PIC based capacitance meter.
thanks in advance
 

kender

Advanced Member level 4
Advanced Member level 4
Joined
Jun 19, 2005
Messages
1,422
Helped
138
Reputation
276
Reaction score
39
Trophy points
1,328
Location
Stanford, SF Bay Peninsula, California, Earth, Sol
Activity points
9,983
In short, there is an RC oscillator made with a capacitance, which you're trying to measure. The frequency of the oscillator depends on the capacitance. Then the frequency is fed into the frequency to voltage converter (F/V converter). Out of the F/V converter comes the analog voltage, which can be measured by the A/D converter on a PIC.
 

    16F676

    Points: 2
    Helpful Answer Positive Rating

manu

Full Member level 3
Full Member level 3
Joined
Mar 14, 2004
Messages
179
Helped
11
Reputation
22
Reaction score
2
Trophy points
1,298
Location
France
Activity points
1,297
kender said:
In short, there is an RC oscillator made with a capacitance, which you're trying to measure. The frequency of the oscillator depends on the capacitance. Then the frequency is fed into the frequency to voltage converter (F/V converter). Out of the F/V converter comes the analog voltage, which can be measured by the A/D converter on a PIC.

You could make it more reliable and low cost, use a constant currect source ( 1 signal transistor, 1 zener diode and 2 resistors ), and charge your capacitor. Next you take measurements with the ADC at constant time intervals.

Vs = ( I * t ) / C

Vs in volts, I in amperes, t in seconds and C in farads
 

    16F676

    Points: 2
    Helpful Answer Positive Rating

rmitoday

Newbie level 4
Newbie level 4
Joined
Aug 15, 2006
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,315
Can you post an example circuit?
 

16F676

Member level 2
Member level 2
Joined
Aug 14, 2006
Messages
44
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Activity points
1,531
thanks to all
Please post an example diagram "manu"
actually I need to measure very low capacitances
is it possible with your method?
 

manu

Full Member level 3
Full Member level 3
Joined
Mar 14, 2004
Messages
179
Helped
11
Reputation
22
Reaction score
2
Trophy points
1,298
Location
France
Activity points
1,297
Yes, that's possible for any value of capacitance, but you might varies your charge current to measures correctly with your ADC a full range of capacitors, from 1pF to 10 000µF.

Considering that components are perfect ( Vz and Vbe are constant ) :

Ir1 = ( Vz-Veb ) / R1

D1 can be standard silicium diode, or a zener diode.

in this case, Vc = ( Ie * t ) / C

Have fun :)
 

    16F676

    Points: 2
    Helpful Answer Positive Rating

haytham

Full Member level 4
Full Member level 4
Joined
Jun 6, 2004
Messages
228
Helped
16
Reputation
32
Reaction score
3
Trophy points
1,298
Activity points
1,365
Hi
U can used capacitinace as a frequency signal. PUT your variable capacitance in as OSC circuit like 555 timer circuit and based on the frequncy of oscillation which can be measured by PIC through PIC counters modules or PIC interrupt pins, you can calculate your capacitance simply. Also if you are carfule enogh in choosing your oscillator components value you can get a very easy transform equation.

Thanks
Haytham
 

    16F676

    Points: 2
    Helpful Answer Positive Rating

16F676

Member level 2
Member level 2
Joined
Aug 14, 2006
Messages
44
Helped
5
Reputation
10
Reaction score
2
Trophy points
1,288
Activity points
1,531
thanks all for the coments.
My aim is to measure the volume of water in a tank by immersing an insulated wire and measure the capacitance of internal conductor to the water.
your suggessions are appreciated.
 

manu

Full Member level 3
Full Member level 3
Joined
Mar 14, 2004
Messages
179
Helped
11
Reputation
22
Reaction score
2
Trophy points
1,298
Location
France
Activity points
1,297
Here is attached an example of an oscillogram of voltage across the pins of the capacitor, the "Standard I/O pin" supply the constant current generator with a 50% duty cycle signal.

My aim is to measure the volume of water in a tank by immersing an insulated wire and measure the capacitance of internal conductor to the water.

You also can use a "J' shaped tube that you connect to a standard pressure sensor ( MPX2xxx ), this pressure sensor is placed on the bottom of your tank.

But your solution might be a good idea, I will try :)
 

    16F676

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top