EveryCircuit
Contact
Reviews
Home
npandolfi
modified 8 years ago

Relaxation oscillator - Single Supply

2
5
225
03:38:55
Start the oscillator by slappin' that push button. The output is the ORANGE waveform. This circuit is a square wave oscillator that utilizes a comparator. The pot connected to the two diodes controls the duty cycle of the output waveform. Notice how current that charges the capacitor flows through one half of the pot, and current that discharges the cap flows through the other. The pot connected to the non-inverting input of the op-amp controls the frequency. Notice how the op-amp is acting as a comparator, and when the blue and green waveforms touch, the output value flips to the other rail. Play with the capacitance value too and see how it affects the output! The value of the capacitor is basically the way to adjust the frequency offset of the circuit. Even though this circuit is single supply, the output can be negative. Just AC couple the output by closing the switch right next to the orange voltmeter. The waveform for the AC coupled output is in RED. Notice how this red output is centered around ground, while the orange waveform starts at ground and goes to the positive supply rail. The N and P channel MOSFETS at the output shield the actual oscillator output from the circuit's output, by providing a high impedance input for the op-amp, and an extremely powerful signal to the output load resistors. Notice its small value of 10 ohms! Woah! Note: In real life, the frequency response of this circuit ain't too hot. At around the 500kHz range, even with a fast op-amp, parasitics of the passive elements come into play and frequency and duty cycle will be skewed. Also Note: The duty cycle and frequency potentiometers aren't perfectly isolated! See how one could affect the other at a high frequency!
published 8 years ago
Nagidal
8 years ago
This is wonderful!
npandolfi
8 years ago
Why thank ya!
2ctiby
8 years ago
In your default setup here there is more than 7A sliding perpetually through the Mosfets before the button is pressed....like a short circuit.
npandolfi
8 years ago
Hm interesting
2ctiby
8 years ago
Here is a variation with a few points to ponder http://everycircuit.com/circuit/6463475804274688

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy