@michael8 wrote:
The next measurement can be done as soon as 2ms for the capacitor to have recharged enough but we would only measure once per 100ms or so. Also note that the current through R7 suddenly drops as the input offset reaches the driving threshold of the LM339.
And it beats waiting for the 74HC590 till christmas...
This is an interesting idea which I tested in LT-Spice. The default voltage of the LM339 output is Vcc and the A/D of the ESP8266 works from 0-1V. Considering that the sinking of current is with a much lower resistance than the return via the pull-up resistors R11/R12, a diode is not needed. The readout has to happen at a fixed time after the excitation of the LC. 200µs seems a good choice. It is not sure if the ESP can do the timing of such a measurement reliable. But this is a matter of testing.Could you accumulate a fixed amount of charge in a capacitor for each pulse and then read
the charge via the A/D?
The next measurement can be done as soon as 2ms for the capacitor to have recharged enough but we would only measure once per 100ms or so. Also note that the current through R7 suddenly drops as the input offset reaches the driving threshold of the LM339.
And it beats waiting for the 74HC590 till christmas...
Attachments
-
7.5 KB Views: 1