Hello,
I would like to build an Arduino micro controller that can drive a resonant transformer, with DC square wave pulses, with a frequency sweep from 0 Hz - 20 kHz - 0 Hz, that has a feedback coil that can sense resonance in the transformer (highest voltage) and lock onto this frequency with a phase lock loop to keep it in resonance, the operational parameters of the circuit might make the resonant frequency vary up to 20%, and it is desired that the controller will sweep and lock on, then sweep and lock on if it looses the resonance.
I have been looking for such a way to accomplish the PLL, the frequency sweep I believe I can accomplish with code, so I am looking for a way to take the signal from the feedback coil, and turn it into an input to the controller (with the help of a PLL chip, I assume) where the input is then recognized in the code to lock onto that frequency.
I have not yet come across what I am looking for with a PLL to do this, maybe I am approaching the problem in the wrong manner, maybe there is another way to do this that I am not yet aware of.