Hello there, I am trying to measure the inductance of hand-made coils by observing the frequency of an LC tank circuit. The method seems to work fine in simulator (albeit using an LM339 model because there was no LM319 model):

The ADC has Vref at ground so any small blip in the tank circuit should produce a HIGH on the output.
Now the problem arises when I try to implement this in real life. Instead of the neat digitized output seen above, I get the following output:
Here is the input at the diode: (high points are around 1V)
And the output from the ADC (high points are 4.6V, the lower points are when diode is connected to +V)


The ADC has Vref at ground so any small blip in the tank circuit should produce a HIGH on the output.
Now the problem arises when I try to implement this in real life. Instead of the neat digitized output seen above, I get the following output:
Here is the input at the diode: (high points are around 1V)

And the output from the ADC (high points are 4.6V, the lower points are when diode is connected to +V)

Last edited: