I think you'd better use an oscillator such as ours, square it immediately and do everything else in the firmware (or FPG-irmware or whatever is called, programming inside an FPGA)
I'm telling this because, in addition to ensuring the resolution, it is important to keep the noise down and to obtain this, there's nothing better than a Colpitts circuit with a low noise FET. The BF862 is designed for VFO circuits, and the best VFOs, after nearly 100 years of tests, turned out to be the Colpitts. (Note 1)
(Note 1) VFOs (Variable Frequency Oscillator) have been used throughout the last century by amateur radio operators and are the spearhead of the ultra-stable, but at the same time variable, oscillators. A VFO to decode the USB, must be stable to some Hz, while oscillating at several MHz and must have a very low phase noise. These are pretty hard performances to obtain.
I understand that a digital oscillator based on a quartz, could be more stable and with virtually zero noise. But this reasoning forgets that a perfect oscillator, which nothing can detune, would not work for a Theremin. For this application, it must be stable but at the same time, also be very sensitive to the movements of the hand.
The stability alone is not important, what you need to maximize is the result of the following formula:
(sensitivity to the hand) / (thermal shifts + noise + harmonics uptake of digital circuits)
To obtain this, the oscillator components should be well away from any source of noise (ideally in an absolute vacuum and isolated as much as possible by any other component).
All digital components (including FPGAs) generate all kinds of harmonics, because of their square waves with fast fronts. For this reason, the oscillating circuit must be physically away from the CPU and separate by an isolation preamp. The tracks of the PCB, should be very far from each other and the PCB must be single-sided (without ground layer, to reduce stray capacitance)
In practice the left part of our CapSensor. They are just four components and it is the minimum possible hardware.
We have been doing tests on capacitive sensors, for the last ten years. We too started, with digital oscillators. First we used the 4069 (which the OpenThereminUNO uses), then the 40106, then the same components but in HC version. We then tested various digital configurations with PICs, with the series 16 before and then the 24. Finally, at the beginning of 2001, we moved decisively to FET. First we used the BF245A , then the BF246A and in recent years the BF862 (specific for low noise VFOs). Same story for the inductors, in the first trials we used coils on ceramic with pre-tensioned, silver plated wire. Instead now, we use microscopic 330uH TDK impedances, with much better results.
I am sure that no digital oscillator can compete in sensitivity/noise ratio with the BF862 + TDK 330uH couple. Those who don't believe can make a test, using the left side from one of our CapSensor.
Who writes is a digital fundamentalist, I would have preferred an all-digital solution, but unfortunately at the critical points, where the noise is measured in fractions of a micro-volts, you need FETs.
A few examples:
- condenser microphones
- electret microphones
- Distance capacitive sensors, for scientific applications, with sub-micrometer precision
- MEMS accelerometers
- Charge amplifiers for PIN diodes (gamma spectrometry)
- Ion chambers for radon measurement