LM555 Measure Capacitance between 10pF and 500pF

Dear reader,
I want to measure a Capacitance between 10pF and 500pF and feed that information to a microcontroller. I was wondering if an LM555 configured in Astable Operation could do the job. The problem I have is that most LM555 charts show the relation between capacitance connected at the threshold pin and the frequency but they don't go lower then 1nF however the specification don't say anything about the lowest value of this capacitor.

Does anyone have experience with this and can tell me what the minimum capacitance can be on this threshold pin.
Is there an other better and cheap way to measure this capacitance.
hope someone can help.

regards Oscar Goos

First of all, did you read the data sheet?

It won't work. The capacitance value is too small for that. Let's go on from there... how frequently do you need to measure? What accuracy do you require? Is a floating two terminal measurement needed, or can one terminal be grounded?

Why don't you use the microcontroller to measure the capacitance directly?

https://electronoobs.com/eng_arduino_tut10_1.php

Any solution is welcome, as I said the spec only shows the graph till 1nF the spec doesn't say this is the limit. Im looking for some who can confirm that he or she used the LM555 with lower Capacitors than the 1nF and it still worked.
I have done a simulation in spice and I didn't see any problems. Around 10pF the linearity became an issue, but it did work with no problem.
Here a link about what others say.

Explain how to do that? there is no function on a controller that can do that to my knowlage.

That type of meter is based on and RC time period. The time for an AnalogRead() function is 104us and that is to long for these small RC times you have with low pF capacitor values. Nice principal but can't work for low values.

How small? You wrote from 10pF to 500pF.

The link that @johnerrington gave you explained 2 methods:
Range 0.1 μF to 3900 μF and Range 1 pF to 1 nF.
Did you read the manual at all?

With an arduino running at 16MHz it is certainly possible.

Using a 1M ohm resistor and a 10pf capacitor gives a time constant of 0.01 second. You would have to use the actual port read operations (digitalRead is too slow) or set up a custom timer interrupt to do it, but a Mega328 can certainly time that accurately.

I built a basic capacitance meter as a proof of concept a few years ago using this principle, but unfortunately I can't find the code.

This thread will roll off the page and disappear before that happens. Better to engage in some kind of dialogue.

IMHO, the 555 never worked very well even with the right capacitors. It's antiquated, obsolete technology.

By the way, you linked to project details on a LinkedIn page, but it's not public. It would behoove you to follow the forum guidelines and repost that information here.

You can take the Spice simulation with a mountain of salt.

1pf sounds rather ambitious considering the capacitance and leakage of Arduino pins.
Of course, it depends which components you use but, for example. the ATmega328P analog comparator electrical characteristics are not well enough documented for this.
From the timing aspect, Input Capture would certainly do this accurately enough.

It may be so. However, the OP wants from 10pF (to 500pF).

Yes I did

Yes I agree a time constant of 0.01s can be done by atmega328. However, I assume you can't use the ADC because that one has a conversion time starting from 104us. Thing about that.... that is still 100 cycles not bad. So yes you might be right, an Arduino might be capable to do this using its ADC.

Thanks

I did back in EE lab a 555 capacitance meter. Your need, 10pF is 2-orders of magnitude too low for good stability even with 5% parts and rock-solid DC power. Of course, that was a lifetime ago with the TTL version of the 555. I have a bunch of CMOS 555 in the lab that have not seen sunlight in 15 years.

Ray

Where are the project details?

The infamous Ardutester is not capable of the Ops needs:

​Connect a capacitor with a value between 100nF (0.1μF) and 20μF across Test Points 1 and 3.

I was suggesting that you use a digital input and time it. You could possibly use the analog input. Avoiding the arduino libraries and going straight to the A/D converter you'd get ISTR about 100kHz rate.

There's also the analog comparator between AIN0 and AIN1 (pins 6&7 on the Uno), as used by Arduino Pulse Induction meta detectors. For example Pulse Induction Metal Detector | Hackaday.io

Here's some code for ADC sampling a pulse and decay at about 6.5us or 13us: foxyPulseInduction_Discrimination/ArduinoPulseADCSample at discrimination · drf5n/foxyPulseInduction_Discrimination · GitHub

1Mohm * 10pF = 0.00001s
1Mohm * 10nF = 0.01s