Editor’s Notice: This DI is a two-part collection.
Half 1 exhibits find out how to make an oscillator with a pitch that’s proportional to a management voltage.
Half 2 exhibits find out how to modify the circuit to be used with greater provide voltages, implement it utilizing discrete components, and modify it to intently approximate a sine wave.
In Half 1, we noticed find out how to make an oscillator whose pitch, versus frequency, might be made proportional to a management voltage. On this second half, we’ll take a look at some other ways of arranging issues for different potential purposes.
Wow the engineering world together with your distinctive design: Design Concepts Submission Information
To start out with, Determine 1 exhibits a revised model of the fundamental circuit, constructed with B-series CMOS to permit rail voltages of as much as 18 or 20 V somewhat than the nominal 5 V of the unique.
Determine 1 A variant on Half 1’s Determine 2, permitting operation with a provide of as much as 20 V.
Other than U2’s change from a 74HC74 to a CD/HEF4013B, the principle distinction is in U1. With a 12 V rail, TL062/072/082s and even LM358s and MC1458s all labored properly, as did an LM393 comparator with an output pull-up resistor. The management voltage’s span will increase with provide voltage, however stays at ~±20% of Vs. Notice that as a result of we’re solely sensing inside that central portion, the restricted enter ranges of these gadgets was not an issue.
One thing that was an issue, even with the unique 5-V MCP6002, was a frequent lack of ability to start oscillating. Not like the 74HC74, a 4013 has active-high R and S inputs, so U1a’s polarity should be flipped. It tends to start out up with its output excessive, which successfully locks U2a into an all-1s situation, forcing Q1 completely on. That explains the necessity for R5/C5/Q2. If (when!) the sticky situation happens, Q2 will activate, shorting C2 in order that Q1 can flip off and oscillation start. A reverse diode throughout R5 proved pointless on the low frequencies concerned.
This is also constructed utilizing the additional constant-current sink, proven in Half 1’s Determine 4, however then U1 would want to have rail-to-rail inputs.
A model that lacks any logic
That is an extension of the primary model that I attempted, which was constructed with out logic ICs. It’s neat and works, however U1a might solely output pulses, which wanted stretching to be helpful. (Utilizing a flip-flop assured the obligation cycle, whereas the spare part, used as a monostable, generated a lot better-defined reset pulses.) The circuit proven in Determine 2 works round this and might be constructed for just about any rail voltage you select, so long as U1 and the MOSFETS are chosen appropriately.
Determine 2 This all-discrete model (other than the op-amps) makes use of a second part to provide an output having an obligation cycle near 50%.
U1b’s circuitry is a replica of U1a’s however with half the time-constant. It’s reset in the identical approach and its management voltage is identical, so its output pulses have half the width of a full cycle, giving a sq. wave (or practically so). Ideally, Q1 and Q3 needs to be matched, with C3 precisely half of C1 somewhat than the sensible 47n proven. R7 is just vital if the rail voltage exceeds the gate-source limits for Q1/3. (ZVP3306As are rated at 20 V max.)
Purity comes from overclocking a twisted ring
The ultimate variation—see Determine 3—goes again to utilizing logic and has a fairly sinusoidal output, do you have to want that.
Determine 3 Right here the oscillator runs 16 instances quicker than the output frequency. Dividing the heartbeat charge down utilizing a twisted-ring counter with resistors on its 8 outputs provides a stepped approximation to a sine wave.
The oscillator itself runs at 16 instances the output frequency. The heart beat-generating monostable multivibrator (MSMV) now makes use of a pair of cross-coupled gates, and never solely feeds Q1 but additionally clocks an 8-bit shift register (applied right here as two 4-bit ones), whose ultimate output is inverted and fed again to its D enter. That’s referred to as a twisted-ring or Johnson counter and is a kind of digital Möbius band. Because the sign is shifted previous every Q output, it has 8 excessive bits adopted by 8 low ones, repeated indefinitely. U2c not solely performs the inversion but additionally delivers a short, stable excessive to U3a’s D enter at start-up to initialize the register.
U2 and U3 are proven as high-voltage CMOS components to permit for operation at way more than 5 V. Once more, U1 would then want altering, maybe to a rail-to-rail enter (RRI) half if the additional present supply is added. 74HC132s and 74HC4015s (or ’HC164s) work high quality at ~5 V.
The Q outputs feed a typical level by way of resistors chosen to provide an output which, although stepped, is near a sine wave, as Determine 4 ought to clarify. R4 units the output degree and C4 supplies some filtering. (Totally different units of resistors may give completely different tone colours. For instance, if they’re all equal, the output (if stepped) can be a superb triangle wave.)
Determine 4 Waveforms illustrating the operation of Determine 3’s circuit when it’s delivering ~500 Hz.
The steps correspond to the fifteenth and seventeenth harmonics, which, although considerably filtered by C4/R4, are nonetheless at ~-45 dB. To scale back them, add a easy two-pole Sallen–Key filter, like that in Determine 5, which additionally exhibits the filtered spectrum for an output of round 500 Hz.
Determine 5 An acceptable output filter for including to Determine 3, and the ensuing spectrum.
The 2nd and third harmonics are nonetheless at round -60 dB, however the others are actually properly under -70 dB, so we will declare round -57 dB or 0.16% THD, which can be worse at 250 Hz and higher at 2 kHz. This method gained’t work too properly if you’d like the complete 4–5-octave span (further present sink) until the filter is made tunable: maybe a few resistive opto-isolators mixed with R14/15, pushed by one other voltage-controlled present supply?
All that’s attention-grabbing, however somewhat pointless. In spite of everything, the principle objective of this design concept was to make helpful audible tones, not precision sine waves, which sound boring anyway. However a secondary objective needs to be to push issues so far as potential, whereas having enjoyable experimenting!
A musical coda
Given a pitch-linear tone supply, it appeared foolish to not attempt make some form of musical thingy utilizing a tappable linear resistance. A few ft, or about 10kΩ’s-worth, of Teledeltos chart paper (which I at all times knew would come in useful, because the saying goes) wrapped spherical a size of plastic pipe with a clean, shiny croc clip for the faucet or slider (plus a 330k pull-down) labored fairly properly, permitting tunes to be picked out as on a Stylophone or an air guitar. Electro-punk lives! Although it’s not a lot “Eat your coronary heart out, Jimi Hendrix” as “Get these earplugs in”.
—Nick Cornford constructed his first crystal set at 10, and since then has designed skilled audio gear, many datacomm merchandise, and technical safety package. He has eventually retired. Largely. Kind of.
Associated Content material
- A pitch-linear VCO, half 1: Getting it going
- VCO utilizing the TL431 reference
- Extremely-low distortion oscillator, half 1: how to not do it.
- Find out how to management your impulses—half 1
- Squashed triangles: sines, however with enamel?
- Easy 5-component oscillator works under 0.8V
- A two transistor sine wave oscillator
The publish A pitch-linear VCO, half 2: taking it additional appeared first on EDN.