# Measuring capacitance of a dual cable with arduino

Can anyone help me???

How can I measure capacitance of a dual cable or any cable with arduino. I found this
Capacitance Measurement using Arduino | Circuits4you.com but this is just measuring the unknown capacitor.

Thanks

If the cable has two leads, or an inner and outer conductor, use those two in the same circuit. Makle sure the wires are not connected at the far end.

You may have to change the resistor values, as the cable capacitance will usually be in the pF to nF range (unless it is quite long).

Hint: you can look up the capacitance per unit length for most cables and wiring. For example, 12 AWG "zip" cable for household lamps and audio speakers has capacitance of about 60 pF/meter.

First, Thank you for your message.

So, you say I keep the same circuit and source code but change capacitor with dual cables. Does it work

like that? I don't think that the measuring will be accurate.

I don't think that the measuring will be accurate.

Obviously, you have no basis for thinking that, until you have actually tried the experiment. Use a known capacitance for tests.

I tried to do the experiment but I do not understand how to implement the cables to the circuit. Connections may be wrong.

If the cable has two leads, or an inner and outer conductor, use two AT THE SAME END in the same circuit.
Make sure the wires are not connected at the far end.

https://learn.sparkfun.com/tutorials/capacitors/all

the design using arduino

I already know how capacitor works

No, you don't, because you don't understand that a cable with two or more leads IS a capacitor.

What is so difficult to understand about connecting two leads of a two wire cable to a circuit?

Maybe this picture will help:

My supervisor did not like the method he told me to do with TDR(Time Domain Reflectometry) so my new concern is:

I need a send a pulse to a cable(coax or simple copper wire) either sin/cos wawe or square. Then that

signal goes to end of the cable and reflected back to first position. After I understand the

exact(disconnection) open circuit location of the cable. For generating the signal can my oscillator in

arduino generate that kind of signal or I need to buy a new oscillator? And can I see the reflected signal

waweform from arduino software without an oscilloscope.

brkblbn:
My supervisor did not like the method he told me to do with TDR(Time Domain Reflectometry) so my new concern is:

TDR doesn't measure the cable capacitance, it measures its length (assuming the dielectric constant
is known, or vice versa).

You measure the cable's characteristic impedance, but that depends on the capacitance and
inductance per unit length.

I need a send a pulse to a cable(coax or simple copper wire) either sin/cos wawe or square.
[/qoute]
Rectangular pulse with very fast edges, the rise and falltimes limit the resolution.

Then that signal goes to end of the cable and reflected back to first position. After I understand the

exact(disconnection) open circuit location of the cable. For generating the signal can my oscillator in

arduino generate that kind of signal or I need to buy a new oscillator? And can I see the reflected signal

waweform from arduino software without an oscilloscope.

The fastest edges an Arduino generate is perhaps 3 to 5ns risetime, good enough for a resolution of
a few feet, but it has no way to measure arrival time to better than the system clock period, and the
complication is that the return voltage can be 0V, 5V or 10V for a 5V pulse going in.

A TDR needs some high speed auxiliary circuitry, these days most 'scopes are fast enough to do the
measurement.

Normally you can just look up the cable capacitance in the specs for the cable...

I don't measure capacitance with TDR. I 'm gonna measure length of the cable then I put it into test. In

test I measure the "known" length of a cable then I'll check the length from the TDR, if lengths are not

match so I understand that there is a open circuit fault and tell the exact location. So according to you I

can't make that circuitry with arduino. How can I do that? Do I need osciloscope?

Have ‘you’ tried to do a search, using your favorite search engine with the words “arduino tdr”?

If you did you’d find this https://forum.arduino.cc/index.php?topic=183770.0 which is quite informative.

Whoops, I got the quoting nesting wrong in my posting - I say that most 'scopes these days are fast
enough to do this (proper scopes, not toys).