Can anyone please explain really well, how an Oscillator works

Thread Starter

IssacSutt

Joined Jan 6, 2017
45
I can build and design many different circuits on my own past a certain point, and this is one of the specific topics I have the most trouble in. I have tried to draw up and simulate my own multiple times before, and failed, I really think I have a good idea on what needs to happen to get it to oscillate, I just don't know how to get there cause nothings working, it just seems like the conditions have to be too precise. I'm mainly just focused on square wave oscillators for now though cause it's the most basic I think. Anyways, here's my interpretation of the whole thing: For oscillation to occur, the output has to trigger its input, but with some time delay, otherwise it will not oscillate. So, this cannot happen if the output is exactly in phase with the input and in some cases, it must be ampified with a gain higher than 1??? Is this right, how does it happen?
 

BR-549

Joined Sep 22, 2013
4,928
There are several different types of oscillators. Some use just the timing of charging networks. And some use a resonance state.

What's your fancy?
 

BobTPH

Joined Jun 5, 2013
8,954
There is a specific problem with simulatng oscillators. Real oscillators rely on moise or minute dofferences in idemtical components, which do not soe up in simulstions.

When you simulate an oscillator in LTSpice, it will often not start up unless you turn off the initial static analysis or turn pn a switch to start
 

dl324

Joined Mar 30, 2015
16,916
What type of oscillator are you talking about?

When discussing circuits, it's always best to include a schematic so we know what you're talking about. You mentioned a trigger which oscillators don't typically have. They're designed to be self starting.

It's also a good idea to use paragraphs to organize your thoughts. That will make your questions stand out instead of being buried in one long rambling paragraph.
 

Thread Starter

IssacSutt

Joined Jan 6, 2017
45
What type of oscillator are you talking about?

When discussing circuits, it's always best to include a schematic so we know what you're talking about. You mentioned a trigger which oscillators don't typically have. They're designed to be self starting.

It's also a good idea to use paragraphs to organize your thoughts. That will make your questions stand out instead of being buried in one long rambling paragraph.
Ok thank you, I believe this schematic may help show you where I'm at and what I'm having trouble with in particular.
http://everycircuit.com/circuit/5543676379136000
I really don't think it works quite like this in the real world though, cause I tried simulating it with transistors and got nothing; but this simulation does a good job theoretically.
 

wayneh

Joined Sep 9, 2010
17,498
Anyways, here's my interpretation of the whole thing: For oscillation to occur, the output has to trigger its input, but with some time delay, otherwise it will not oscillate. So, this cannot happen if the output is exactly in phase with the input...
For the square wave oscillators you've likely looked at, you're correct but it may be more a description of what happens as opposed to a helpful principle that applies more broadly. Those simple square wave oscillators usually use the charging and discharging of a capacitor to delay the voltage change from keeping up with the output state. The voltage on the capacitor is always trying to catch up to the output but as soon as it gets close, the output state switches and the cap goes the other direction. This is not the same thing as resonance. There are many types of oscillators with different principles of operation. Explaining one doesn't help with the other.
 

ebeowulf17

Joined Aug 12, 2014
3,307
For the benefit of those not wanting to deal with app:
IMG_3625.PNG
Sorry about size/resolution. Best I could do from my phone.

I'm no expert on oscillators (to be honest, I barely understand them,) but two things jump out at me:
  1. Building a circuit with some transistors is nothing like using the logic gates in the schematic (unless you've put an unlikely amount of work into designing discrete transistor logic gate equivalents.)
  2. The LED needs a current limiting resistor. Without the resistor you could easily blow up the LED and/or have the LED pull the logic high outputs down to the LED's forward voltage, which would of course severely disrupt real world circuit behavior.
 

dl324

Joined Mar 30, 2015
16,916
Edited schematic:
upload_2017-11-22_16-25-14.png
Two of the inverters are extraneous. The LED is loading the output and, as previously mentioned, needs a current limiting resistor.

We need to know the technology for the inverters. CMOS? Schmitt inputs?

Ignoring the LED which loads the output. The circuit starts out with the input to the first inverter grounded. That makes the last inverter output HIGH. The capacitor will start charging to the HIGH logic voltage level through the 1k resistor. When the input to the first inverter reaches the threshold for HIGH, it will switch state and the third inverter output will now be LOW. That will discharge the capacitor through the 1k resistor until it reaches the threshold for LOW. Then the process repeats itself.

The two extraneous inverters will add some delay.
 

Thread Starter

IssacSutt

Joined Jan 6, 2017
45
For the square wave oscillators you've likely looked at, you're correct but it may be more a description of what happens as opposed to a helpful principle that applies more broadly. Those simple square wave oscillators usually use the charging and discharging of a capacitor to delay the voltage change from keeping up with the output state. The voltage on the capacitor is always trying to catch up to the output but as soon as it gets close, the output state switches and the cap goes the other direction. This is not the same thing as resonance. There are many types of oscillators with different principles of operation. Explaining one doesn't help with the other.
For the benefit of those not wanting to deal with app:
View attachment 139868
Sorry about size/resolution. Best I could do from my phone.

I'm no expert on oscillators (to be honest, I barely understand them,) but two things jump out at me:
  1. Building a circuit with some transistors is nothing like using the logic gates in the schematic (unless you've put an unlikely amount of work into designing discrete transistor logic gate equivalents.)
  2. The LED needs a current limiting resistor. Without the resistor you could easily blow up the LED and/or have the LED pull the logic high outputs down to the LED's forward voltage, which would of course severely disrupt real world circuit behavior.
Good point. I never really thought it would have that much of an effect on the operation of the gates themselves, and if what you say about implementing them with transistors is true, then that would definitely explain the phenomenon of why it' so difficult to recreate or model circuits like that with them. -Thanks
 

AnalogKid

Joined Aug 1, 2013
11,039
Two of the inverters are extraneous.
Disagree.
The two extraneous inverters will add some delay.
Agree, and that makes them important.

Normally, this circuit is built with one Schmitt Trigger gate (NAND or simple inverter). The voltage difference between the two hysteretic trip points and the R-C time constant combine to set the operating frequency. Without the Schmitt input, the operating frequency is dominated by the propagation delay through the three inverters. Depending on the chip technology (CMOS, LSTTL, etc.) this can be very short, as in nanoseconds. The R-C delay still affects the output frequency, but not nearly as much since it takes only a few millivolts of change at the R-C node to cause the inverters to change state.

ak
 

Papabravo

Joined Feb 24, 2006
21,225
Understanding how oscillators work is the end of a fairly long road that begins with understanding DC circuits and passive components. It is hard to get to the end without starting at the beginning. Seems self-evident, but you would be surprised at the number of people who think there is a shortcut. There really are no shortcuts. For a bit of background it might be helpful to familiarize yourself with:

https://en.wikipedia.org/wiki/Barkhausen_stability_criterion

This applies to linear systems, but there is a whole class of non-linear oscillators, which by their nature defy solutions in closed form to the governing equations.

https://en.wikipedia.org/wiki/Van_der_Pol_oscillator
 
Top