Unit 5 - Notes
Unit 5: Oscillators
1. Condition for Sustained Oscillation
An oscillator is an electronic circuit that generates a periodic, oscillating signal (usually a sine wave, square wave, or triangle wave) from a direct current (DC) power supply without requiring any external input signal. It relies on the principle of positive feedback.
The Barkhausen Criterion
For an oscillator circuit to generate and maintain sustained, stable oscillations, it must satisfy the Barkhausen Criterion. In a closed-loop feedback system with an amplifier gain of and a feedback network gain of , the closed-loop transfer function is given by:
To achieve sustained oscillation, the system must meet two specific conditions:
- Phase Shift Requirement: The total phase shift around the closed loop must be or an integer multiple of ( radians). This ensures that the feedback signal is perfectly in phase with the original signal, reinforcing it (positive feedback).
- Gain Requirement: The magnitude of the loop gain must be exactly equal to unity (1).
Note: In practical design, the initial loop gain is set slightly greater than 1 () so that oscillations can build up from background noise. Once the desired amplitude is reached, non-linearities in the amplifier reduce the loop gain to exactly 1, sustaining the oscillation.
2. RC Phase Shift Oscillator
The RC Phase Shift Oscillator is a linear oscillator used to produce low-frequency (audio frequency, typically up to 100 kHz) sine waves.
Circuit Architecture
- Amplifier Stage: Generally implemented using an inverting Operational Amplifier (Op-Amp) or a Bipolar Junction Transistor (BJT) in Common Emitter (CE) configuration. This stage inherently introduces a phase shift.
- Feedback Network: To satisfy the Barkhausen criterion (total phase shift of ), the feedback network must provide an additional phase shift. This is achieved using three cascaded RC (Resistor-Capacitor) high-pass filter sections.
Operating Principle
- Each individual RC section provides a phase shift of at a specific frequency ().
- The feedback signal is routed back to the inverting input of the amplifier.
- Frequency of Oscillation ():
- Condition for Oscillation: The feedback network attenuates the signal significantly (specifically by a factor of ). Therefore, to maintain , the amplifier must have a minimum voltage gain of:
3. Wien-Bridge Oscillator
The Wien-Bridge oscillator is another popular low-frequency (audio to low RF) sine wave generator, highly regarded for its excellent frequency stability and low distortion.
Circuit Architecture
- Amplifier Stage: Implemented using a non-inverting Op-Amp setup. Because it is non-inverting, it introduces a phase shift.
- Feedback Network: Utilizes a Wien Bridge circuit, consisting of a series RC circuit connected to a parallel RC circuit (a lead-lag network).
Operating Principle
- At a specific resonant frequency, the lead-lag network produces exactly phase shift. This directly satisfies the Barkhausen phase criterion without needing additional inversion.
- At this resonant frequency, the feedback network attenuates the signal by exactly (i.e., ).
- Frequency of Oscillation ():
(Assuming and ) - Condition for Oscillation: To satisfy , the non-inverting amplifier must have a gain of at least 3.
4. LC Oscillators: Hartley & Colpitts
LC oscillators are used for generating high-frequency signals (Radio Frequency - RF), typically ranging from 100 kHz to hundreds of MHz. They utilize a resonant "tank" circuit consisting of inductors (L) and capacitors (C).
The resonant frequency for both oscillators is fundamentally derived from the tank circuit resonance:
Hartley Oscillator
- Tank Circuit Topology: Features a tapped inductor (two inductors and in series) placed in parallel with a single capacitor ().
- Feedback Mechanism: The tapping point between and is usually grounded. The voltage across is fed to the input, and the voltage across comes from the output.
- Equivalent Inductance ():
(where is the mutual inductance between the coils). - Feedback Fraction ():
Colpitts Oscillator
- Tank Circuit Topology: Features a tapped capacitor (two capacitors and in series) placed in parallel with a single inductor ().
- Advantages over Hartley: The capacitive voltage divider provides better high-frequency stability and a purer sine wave output (capacitors offer low impedance paths to high-frequency harmonics).
- Equivalent Capacitance ():
- Feedback Fraction ():
5. The 555 Timer IC
The 555 timer is one of the most versatile and widely used integrated circuits in electronics and robotics, used for timing, delay, pulse generation, and oscillator applications.
Internal Architecture
- Voltage Divider: Three resistors in series create two reference voltages at and . (Hence the name "555").
- Comparators:
- Threshold Comparator: Compares the input to .
- Trigger Comparator: Compares the input to .
- SR Flip-Flop: Stores the state of the timer based on the comparator outputs.
- Discharge Transistor: An NPN transistor that discharges an external timing capacitor.
- Output Stage: A robust push-pull output capable of sourcing/sinking up to 200mA (ideal for driving small robot actuators or relays).
Pin Configuration (Standard 8-Pin DIP)
- GND: Ground.
- TRIG: Trigger (initiates the timing interval when voltage drops below ).
- OUT: Output.
- RESET: Active-low reset.
- CTRL: Control Voltage (overrides the reference; usually bypassed to ground via a 10nF cap).
- THR: Threshold (ends the timing interval when voltage exceeds ).
- DISCH: Discharge (discharges the external capacitor).
- VCC: Supply Voltage (typically 4.5V to 15V).
6. Monostable and Astable Multivibrators
Monostable Multivibrator (One-Shot)
A monostable multivibrator has one stable state (usually LOW). It requires an external trigger pulse to switch to its unstable state (HIGH) for a predetermined amount of time before automatically returning to its stable state.
- Circuit Configuration: Uses one external resistor () and one capacitor (). Pin 7 is connected between R and C.
- Operation:
- A negative pulse on Pin 2 (TRIG) sets the internal flip-flop.
- The output goes HIGH, and the discharge transistor turns off.
- The external capacitor charges through .
- When the voltage across reaches , the Threshold comparator resets the flip-flop.
- The output goes LOW, and the transistor discharges the capacitor instantly.
- Time Delay (): The width of the output pulse is determined by:
- Robotics Applications: Switch debouncing, creating precise time delays (e.g., keeping an automated door open for 5 seconds).
Astable Multivibrator (Free-Running Oscillator)
An astable multivibrator has no stable states. It continuously switches back and forth between HIGH and LOW states, generating a continuous square wave without external triggering.
- Circuit Configuration: Uses two resistors ( and ) and one capacitor (). Pins 2 and 6 are tied together. connects to Pin 7, and connects Pin 7 to Pins 2/6.
- Operation:
- Capacitor charges through until it reaches . Output is HIGH.
- The flip-flop resets, output goes LOW, and the discharge transistor turns on.
- Capacitor discharges through into Pin 7 until it drops to .
- The trigger comparator sets the flip-flop, output goes HIGH, and the cycle repeats.
- Design Formulas:
- Time HIGH ():
- Time LOW ():
- Total Period ():
- Frequency ():
- Duty Cycle ():
- Robotics Applications: Generating clock pulses for digital logic, creating PWM (Pulse Width Modulation) signals for motor speed control, flashing LED indicators.
7. Voltage-Controlled Oscillator (VCO)
A Voltage-Controlled Oscillator (VCO) is an oscillator whose output frequency is strictly determined by the magnitude of a DC input control voltage.
Operating Principle
- A typical VCO relies on an astable multivibrator-like core, but instead of a capacitor charging through a fixed resistor, it is charged/discharged by a voltage-controlled current source.
- By changing the input control voltage, the current charging the capacitor varies.
- Higher control voltage Higher charging current Faster charging/discharging Higher frequency.
- Lower control voltage Lower charging current Slower charging/discharging Lower frequency.
- Mathematical Relation: or (where is the VCO sensitivity in Hz/V).
- IC Examples: LM566, and the VCO section of the CD4046 IC.
Robotics Applications
- Frequency Modulation (FM): Transmitting telemetry data from a robot.
- Tone Generation: Creating varying audio alerts (e.g., siren sounds).
- Integral part of PLLs.
8. Phase-Locked Loop (PLL)
A Phase-Locked Loop (PLL) is a sophisticated, closed-loop feedback control system that synchronizes its output signal with a reference input signal in both frequency and phase.
Core Components
- Phase Detector (PD): Compares the phase/frequency of the external input signal () with the phase/frequency of the internal VCO output (). It generates an "error" voltage proportional to the phase difference between the two signals.
- Low-Pass Filter (LPF): Cleans up the high-frequency AC noise and pulses from the phase detector, converting it into a smooth DC control voltage. The LPF also determines the dynamic characteristics (capture range and lock time) of the PLL.
- Voltage-Controlled Oscillator (VCO): Takes the smoothed DC voltage from the LPF and adjusts its output frequency () accordingly to match the input frequency.
Stages of Operation
- Free-Running: No input signal is applied. The VCO oscillates at its natural center frequency.
- Capture Mode: An input signal is applied. The Phase Detector generates an error voltage, and the VCO frequency begins shifting toward the input frequency.
- Phase Lock: The VCO frequency exactly matches the input frequency (). There is a constant, static phase difference between the two, meaning the error voltage is steady, holding the VCO exactly on target.
Robotics Applications
- Motor Speed Control: Synchronizing a DC/stepper motor's speed precisely to a reference clock.
- Signal Synchronization & Decoding: Demodulating FSK (Frequency Shift Keying) for wireless robotic communication.
- Rotary Encoders: Multiplying the frequency of low-resolution optical encoders to achieve higher-resolution position tracking (Frequency Synthesis).