Hi!
I would like to design and build my own LCR meter. The way it will operate (I think) is that it will generate either a 100Hz, 1kHz or 10kHz sine wave, pass this through a known resistor in series with the DUT and measure the voltage drop across known resistor, voltage drop across DUT and potentially look at phase shifts too.
What I am trying to do first is generate the sine wave to pass through the DUT. My current idea is for the uC to generate a square wave which I will then filter to get a nice sine wave.
I'm using the Art of Electronics to help design a Butterworth filter (eventually hopefully 6-pole). My current tests however are giving me some odd results.
I'm simulating the design for a 100Hz, 2 pole low pass filter as specified on page 408 of the 3rd edition of the Art of Electronics, however I'm not quite getting the output I would expect in LTSpice. There appears to be a DC shift in the signal! And an unusual amount of gain (see attached images).
Is this what is expected with a low pass butterworth filter? Is this an error in the simulation? Do I have the circuit wrong?
I'm sorry that this is only simulation as I don't have the equipment with me for a few months to actually build the circuit.
Thanks
