Peter suggested using an AD630 to perform the lock-in demodulation for the RetroSense signals. The datasheet does not give a noise spectrum so I wanted to see how it performed.
I wired an AD630 on a protoboard in the lock-in topology shown in Fig. 35 of the datasheet, omitting the AD711s. I powered the board with ±15 V from a benchtop supply. I used an SR560 with a gain of 20 dB and a 300 Hz 12 dB/octave lowpass in order to do the final filtering step. I drove the comparator with a ±1 V square wave at 30108 Hz, and then drove the signal input (pin 1) with another square wave. I tried various amplitudes and offsets up to 300 mVpp. In all cases the noise at 1 Hz was a few µV/Hz1/2, referred to the AD630's output. This is not good enough for us because we want to be shot noise limited with a few milliamps of photocurrent and a transimpedance of order 1 kΩ, which amounts to a noise of a few tens of nV/Hz1/2. (The gain of the AD630 is of order 0 dB — the internal amplifiers run with a gain of 6 dB and there is some loss due to the demodulation process).
I tried the following, which did not lower the noise:
I didn't add an input buffer to the signal input like shown in the datasheet figure, but I don't see why that should matter.
By using the function generator's internal AM modulation feature, I saw that there was significant harmonic content in the voltage spectrum when the signal was sent to the AD630 with a square wave, but not with a sine wave. I do not understand this behavior since mathematically, square wave demodulation should not have this feature.
Photo shows the AD630 circuit along with the AD711 Sallen-Key filter.
I retook some of these measurements. First, the SR560 I was using yesterday seems to have excess low-frequency noise, so I suspect that was part of the confusion. Second, the circuit is picking up some kind of environmental noise, so the noise floor is not entirely stationary. At the quietest times it approached 100 nV/Hz1/2 at 1 Hz.
It is probably worth redoing this board as a PCB with on-board voltage regulators and seeing how it performs with actual photocurrent signals.
I ordered PCBs of this design from JLCPCB, each with three demodulation channels (for X, Y, and sum). This is two layers, with the ground achieved through a polygon pour on the top layer. If we come to regret this then we may want to go for four layers.
These PCBs arrived and I stuffed the X channel on one of them. The voltage noise had similar nonstationary behavior when tested as described above outside the NW22 lab, so I moved it into the lab and also added an SR560 at the output with gain.
I looked on a scope to get the overall gain factors in either the sine or square drive configurations:
Compared to the 1.25 mVpp envelope of the modulated input signal, the gain for sine wave signals is about 1 and the gain for square waves is about 2... we likely want to stick with square waves, since sinusoidal input would probably require bandpassing of the photocurrent signals, which throws away SNR.
In the attached input-referred noise curves there is no indication that square wave input has worse nonlinear content than sine waves. The input-referred noise is about 200 nV/Hz1/2 from 0.1 to 1 Hz. This competes with the expected shot noise of 3 mA of total photocurrent if it is handled with a transimpedance of 4 kΩ, which produces 12 V dc in the total voltage sent to the sum channel of this demodulation board.
I did not build the capability for ac coupling into the input to this circuit, and perhaps I should have, since the dc offset voltage into the demodulator is not needed. Also, the AD711's input voltage noise is somewhat high... though I don't think it's limiting the current performance.
Tried replacing AD711 with OPA227, did not notice a difference in the 50 Ω input-terminated spectrum. We should consider running the AD630 in a gain 1 configuration by tying pin 14 to pin 13 rather than to ground (refer to the lock-in application section of the AD630 datasheet), which should be doable on the current PCB since the AD630 is a DIP in a socket. It can and should be modified in a reversible way (i.e., do not clip pins) as this part is somewhat expensive.
The AD630 datasheet does not specify a noise performance for this IC.