Electronic – Problem with a Relaxation Oscillator (using Op Amp)

frequencyfrequency-measurementoperational-amplifieroscillator

I'm studying a relaxation oscillator. This wikipedia circuit shows exactly my circuit with the only difference that I'm using different values for each resistor.

Circuit

I called resistor R the one connecting the inverting input of the op amp and its output, R1 the one connecting the non inverting input of the op amp and the ground and R2 the last one.

I've used an oscilloscope to measure the frequency of the output wave. The strange fact is that I measure frequencies always lower than expected. I calculated the expected frequencies using this formula:
$$
f = \frac{1}{2RCln(\frac{1+k}{1-k})}
$$
where
$$
k = \frac{R1}{R1+R2}
$$
Can anybody explain me why I'm always getting lower frequencies than expected? I also tried to change the resistors and capacitor values but I got again lower frequencies than expected. I'm using a TL081 op amp, resistors that go from 500 ohm to 46k ohm and capacitors that go from 45 nF to 1.7 microFarad.

Best Answer

Your formula is written such that it assumes that Vdd and Vss are symmetric with respect to ground. If this is not true — e.g., you are using only a single power supply with Vss tied to ground — this formula does not apply.

If you want to use this circuit with a single supply (or asymmetric supplies), you'll need to connect the grounded end of R1 to a "virtual ground" at (Vdd+Vss)/2. In fact, what you can do is simply split R1 into two separate resistors with twice the value, and connect one between R2 and Vss and the other between R2 and Vdd.