I've been trying to learn about resonance circuits and filters and so forth, intending to try to build some kind of tunable filter or something.
I'm running some simulations in KiCAD to help confirm/solidify/expand my understanding. I'm getting some behavior that seems backwards to me, though.
I have an AC voltage source running through an inductor, then a capacitor system, then to ground. (I'm not sure what the voltage amplitude actually is; KiCAD's a little opaque on how it does its AC sweep stuff. It might be 1V, but changing the sine voltage source I have to 5V didn't seem to change anything, even in the varicap setup, which I would have thought it would.)
Anyway, decreasing the capacitor's capacitance increases the resonance frequency, as I'd expect. In the varicap setup, if I increase the bias voltage on the varicaps, this should decrease their effective capacitance, presumably increasing the resonance frequency - but the resonance frequency decreases instead. Here's some screencaps.
Capacitor, higher capacitance, lower resonance:
Capacitor, lower capacitance, higher resonance:
Varicaps, 0V bias, higher capacitance, but higher resonance:
Varicaps, 1V bias, lower capacitance, but lower resonance:
- Is the simulation wrong?
- Does KiCAD's AC mode not deal well with something about this?
- Am I measuring from the wrong place?
I think I'm measuring voltage just below the inductor, as well as measuring the AC line directly, for a point of reference.
Do I have the system connected wrong? Something else, maybe like this?
Edit: There were some broken lines in the spice library file I was using. Fixes found here.
D_Capacitance
comes from? I don't see a.LIB
statement or anything, and there are hundreds (thousands?) of files to sift through in the linked repo. || Did you verify that the DC conditions are as expected? (what are the.OP
results?) \$\endgroup\$