Skip to main content

Relaxation Oscillator

CI

CircuitSim

·

Created Oct 3, 2026

·

Updated Oct 3, 2026

Preview will appear once the owner saves the schematic
Details

Components

3


Schematic

Yes


Simulation

Transient analysis


Copies

Not copied yet

About this circuit

Generate a square wave by repeatedly charging a capacitor between Schmitt-trigger thresholds.

Circuit notes

Relaxation Oscillator

Generate a square wave by repeatedly charging a capacitor between Schmitt-trigger thresholds.

A1 uses RF = RG = 100 kΩ for a half-output switching threshold. R1 = 10 kΩ charges C1 = 100 nF from the output. The capacitor voltage reaches a threshold, flips the output, and then moves toward the opposite threshold. A 0.1 V capacitor initial condition starts the otherwise symmetric ideal circuit.

T=2R1C1ln⁡(1+β1−β)T=2R_1 C_1\ln\left(\frac{1+\beta}{1-\beta}\right) β=12,f≈12R1C1ln⁡3≈455 Hz\beta=\frac12,\qquad f\approx\frac{1}{2R_1 C_1\ln3}\approx455\,\mathrm{Hz}

Vcap is green, the square-wave output red and load current blue. Capacitor voltage swings near ±6 V with exponential segments. The simulation uses the specified initial condition instead of the DC operating point. Finite amplifier delay shifts frequency slightly.

Read the results. The saved transient chart uses separate voltage and current panels; the table provides numerical samples. The first voltage probe is green and the second red. The first current probe is blue; a second current probe is purple.

Model limits. The three-terminal op-amp model has implicit ±12 V output limits, 200,000 low-frequency gain and 10 MHz gain-bandwidth product. Supply pins are intentionally absent in this functional model. In Schmitt-trigger and relaxation/integrator oscillator examples, the switching amplifier uses a 100 kHz gain-bandwidth setting to resolve transitions cleanly at the saved time step. It omits detailed slew-rate, input common-mode, output-current and thermal limits.

Try it. Set R1 to 20 kΩ; the oscillation period approximately doubles. Restore the original values after comparing the results.

Components used

Components used
3 components
NameManufacturerMPNCountType

Resistor

Generic

—

4

Official

Capacitor

Generic

—

1

Official

Try this circuit yourself

Free to get started. No download — runs in your browser with a full SPICE engine.