by dvh · 1y ago · 0 comments
I made a program that generate random topology and uses spice simulation to find if it oscillate. The goal was to find some novel LC oscillators. It worked, it found many different oscillators. I let it ran for a while and soon I found out that the simplest possible LC oscillator has 1 inductor, 2 capacitors, 1 resistor and 1 transistor. I found many different variations of it, I called this class of oscillators "LCCRT oscillator" and it also always had 2 internal nodes so that's not very large search space (40000 combinations) so I generated all possible combinations and I found out there are exactly 12 distinct LCCRT topologies.
Basically any time cap connects to a rail it can be placed to other rail as well, and any time one rail connects via resistor, the resistor can also be moved to other rail. This creates 12 possible combinations. I tested them in real life and they are stable, even used one in metal detector.
Of course it found many different topologies. Some times they were unique, other times they could be simplified into already found oscillator. It can also use multiple transistors not just one. You can find entire project on github, it is a ngspicejs script: https://github.com/dvhx/lc-oscillator-finder
One of my favorite books is Tremaine's Passive Audio Network Design, seems appropriate right now. Passive circuit design is great fun and a lost art.
Most in electronics never learn to drive without power steering, they view passive circuits as simple little things that need active components between them so they don't interact with each other in maddening ways but those interactions are not maddening once you understand them and learn to exploit them.
I don't think anyone used novel to mean rare.
I get the impression that there was some requirement to use transistors that I was missing. The article briefly mentions some kind of inductor as a rare component.
And you always need an active component like a transistor. A pure LC can oscillate for hundreds of cycles but not indefinitely.