How can I measure the frequency of a Colpitts oscillator in LTspice?

simulation

Hello! I have recently been learning about electronics and radio and I'd like to build an RF transmitter (and later a receiver) from passive components. I'm trying to first learn how to simulate circuits so that I can use the results to double-check my understanding and design before ordering components and soldering connections.

I'll confess, that while I've been studying electronics theory I've tried to jump in and understand circuits to help keep me motivated.

Here is the schematic for a basic "practical" Colpitts oscillator found on the Wikipedia page for the same which should resonate at 50 MHz.

Here is an image of the schematic I replicated in LTspice and here is the actual LTspice schematic file.

Originally, the LTspice schematic had no ground node, but I added a single node as I read SPICE expects to find this even if a negative terminal is used.

The problem is when I run the simulation using the .ac directive shown with the schematic (.ac lin 20 10000k 100000k) the resulting plot for the VOut node is a perfectly horizontal line. If I'm doing this right, I would expect to see a peak around 50 MHz.

Though if only C1, C2, and L1 are involved in the calculation, it looks like the resonant frequency is theoretically 58.12 MHz?

From the reading I've done, it sounds like SPICE is a little finicky. Is there anything obvious that I'm doing wrong?

Thanks for any help.

Posted Mar 2, 2016, 3:15 AM UTC

14
fdbk•

You probably want to run a .transient simulation. Not an .ac simulation.

I got it (oscillating) by putting an initial condition of 1V on the capacitor C2. You can change your BJT model, as well, to the 2n2222 by right clicking the part.

4
mattreplOP•

Thanks, running a transient simulation is what I should have been doing.

1
fatangaboo•

You will have better luck simulating it using transient analysis with the "startup" option selected. Let it run for about 40 microseconds.

I wouldn't advise using a generic "NPN" transistor in the simulation; I suggest you pick a 2N2369 or a 2N4126, these are RF speed devices and will give a better idea how the oscillator might function.

edit- I just tried the above advice and the oscillator worked great in LTSPICE. Its frequency was within 10% of your estimate, namely, 45 MHz < LTSPICE_osc_freq < 55 MHz.

3
mattreplOP•

Thanks! I'm also getting this now after picking an actual transistor model and running a transient analysis.

1