I've watched Eurovision every year for the past 10 years or so - this is probably the first time in the contest's history that an analog synth designer has performed on stage. A little disappointed that crazy British synth man didn't do so well this year, but it's been nice to hear murmurs of synths and vintage electronics in the news and I hope it's inspired some people.
This week
This week has been less productive than I thought it'd be, as I've found most of my time being consumed by our university group project.
I've still been able to work for a couple of hours each evening at home, and have been focusing on breadboarding both the Korg Lambda and Roland RS-505 Paraphonic master clock generators, and building up the MIDI to CV converter which will become a significant point of focus over the next few weeks.
Many pictures this week and less theory :)
The Lambda master VCO is on the left, and the Paraphonic's is on the right. Notice how many more components are required for the Paraphonic.
I've found it helpful to store pdf versions of the schematics on my tablet, highlighting as I connect the components. Mistakes are less likely, and it's immediately obvious which parts still need connecting after a break.
So...which VCO is better?
My main concern in last week's update was the compromise between the large rise-time caused by the Lambda's first-order feedback, and the possible increased parasitics of the Paraphonic's second-order feedback.
I had a suspicion that the Paraphonic's master VCO would be better performing, as the Lambda was designed as a budget synthesizer at the time of its release, but also questioned whether first-order feedback could be a better design choice. Over the past week, I've examined both circuits with the oscilloscope to get a real-world comparison, and the results are worth analysing.
Output of the Korg Lambda master VCO
This is the output of the Lambda's master VCO. The first-order charging and discharging of the 120pF capacitor is very obvious on the waveform, and the rise-time is close to our estimate, at around 120ns by inspection. Interestingly, I found that when the output resistors R9/R10 were left at 3.3kΩ, the output appeared more like a low-amplitude triangle wave. Therefore, I decreased R9/R10 by a factor of 10 to 330Ω, increasing the quiescent output voltage of Q1, and this seemed to do the job. I still need to play around with different values of R9/R10 that give the best results.
This VCO really impressed me with its fantastic frequency stability. Despite having a much less complicated negative feedback than the Paraphonic, the oscillation never varied by more than 8000Hz from its average frequency of 2.420MHz. That's a 0.3% maximum error, with standard deviation 0.2%! To put this into perspective, if the oscillator was tuned to A = 440Hz, then the oscillator's frequency would never go below 438.5Hz or above 441.5Hz. A perceptible difference, but much better than I was expecting, especially for a breadboard and my questionable wiring.
Undoubtedly a good design; the only thing letting it down is the clock rise time.
Output of the Roland Paraphonic master VCO
...and here is the Paraphonic's master VCO output. I've supplied it at Vcc = +15V and Vee = 0V for simplicity in this picture, different from the negative power supply rail used in the original design. Everything else is unchanged, except for the lack of a varactor diode used for precise frequency trimming which doesn't really affect the behaviour or stability.
The rise time is much less than the Lambda, at around 40ns, which makes it more attractive for feeding into the clock dividers of the top-octave generator to follow. If you look closely, the ringing caused by second-order effects is definitely there, but it's very well controlled and small compared to the oscillation amplitude. I made sure to use a film capacitor in the LC tank instead of a ceramic one to try and help with...
My last few exams went considerably better than the three exams I had before the last update. I might actually pass the year.
As of Tuesday all my exams are finished, which means I have much more time on my hands, and have been able to start building my home electronics lab.
In the post
BB830 solderless breadboard x2
£13.26
47pF film capacitor x4
£1.88
10K rotary pot x3
£3.15
100K trim pot x4
£3.45
180uH inductor x3
£1.38
TL074 quad JFET op-amp 14DIP x10
£5.99
J111 n-channel JFET x5
£1.70
CD4018BE 5-bit divider by N 16DIP x5
£4.70
CD4010BE buffer 16DIP x3
£1.92
8DIP IC sockets x10
£1.50
14DIP IC sockets x10
£1.42
2N3904 NPN transistor x25
£1.63
2N3906 complementary PNP transistor x25
£1.63
2N7000 n-channel MOSFET x10
£1.33
BS250P p-channel MOSFET x5
£5.65
M082AB1 13-note Top Octave Generator 16DIP x4
£35.81
This is a total expenditure of £86.40, bringing the total spend so far up to £129.25. This is a very significant order, and will probably be one of the largest of the whole project.
Choosing a VCO architecture
There are many different VCO architectures used in synths from the valve era right through to the present day. For musical use, they must all be of excellent accuracy to reproduce pitches well, no matter the temperature, environmental noise or any other initial conditions.
Phase-shift oscillator
An oscillator, in its simplest form, is an amplifier with gain greater than 1, and a feedback network providing an overall phase shift of 360 degrees (such that the feedback signal superposes with itself). This is a necessary, but not sufficient, condition for oscillation known as the Barkhausen stability criterion.
Above is a schematic of a simple phase-shift oscillator. In the example above, the three RC stages provide a combined 180 degrees of phase shift, and the op-amp adds another 180 degrees of phase shift at the output as the signal is fed into the inverting input.
The circuit produces a sinusoidal output voltage, with frequency of oscillation is given by
There are a couple of problems with this circuit that make it unsuitable for use in our synthesizer.
The op-amp output will either grow or shrink exponentially unless the feedback resistor R_fb is set to an exact value. As our op-amp supply rails are limited, significant distortion may occur if the signal grows and clips at the rails, or worse the output voltage collapses as the closed-loop gain becomes less than 1.
The output is a pure sine wave. Analog synthesizers use the principle of subtractive synthesis. This means that they start with a harmonically rich sound like a sawtooth, square or triangle wave, and shape the sound using VCFs and tone filters. A pure sine wave has no harmonics, so we cannot tailor the sound to our liking.
Voltage control of the oscillator is challenging, as we need to simultaneously modify the feedback network whilst ensuring the open-loop gain remains 1. This means it's not suitable for producing multiple frequencies.
(N.B a technique called additive synthesis also exists, where sounds are synthesized by summing sinusoidal waveforms together. As many fundamental waveforms require infinite sums of sinusoidal waveforms, additive synthesis uses a lot of hardware very quickly.)
A circuit like this may be useful for low-frequency modulation at a fixed frequency such as tremolo / vibrato, but we need to continue our search to find something better.
Relaxation oscillator
The relaxation oscillator is one of the most commonly used oscillators for producing square and triangle waves. It takes the form of an op-amp configured as a RC discharge network (R3 and C) which creates a periodic oscillation. The relaxation oscillator is the working principle behind the legendary NE555 timer chip.
The output of this circuit will be a square wave as the Schmitt trigger flips between its two output states, with the...
As predicted, none of the exams I've had this week went particularly well. But maybe I'll surprise myself like last year when results come out.
This week
Not much progress this week due to exams. As mentioned in last week's update, I hope to start building from around mid-May.
When I haven't been in Laplace transform jail, this week I've been thinking about project timelines and also about possible designs for my VCO. I'll start with discussing project timelines first.
Project stage
Things to do
Deadline
VCO and oscillator core
Decide on oscillator type, design wave generator circuits, prototype on breadboards, design PCBs, test initial prototype
31st May
MIDI control integration
Linking the VCO to a MIDI source, implement polyphony
14th June
Design of envelope generator, VCA and VCF
Decide on VCA/VCF types, decide between analog / digital implementations, prototype on breadboards, design PCBs, test initial prototype
11th July
Buffer period for integration testing / parts delay
Combining VCO, VCA and VCF designs to work effectively together, analysis of noise performance, hopefully prototype design PCBs have arrived
31st July
Improving stability
Adding improved power supply and temperature compensation for more advanced features later
mid Aug
"Nice-to-haves"
Noise generator, LFO, sample and hold, frequency modulated / sync VCOs
Sep
If I can get to having a good VCO, VCF and VCA by the end of July, I'll be happy, as this will give me a solid two months to add interesting improvements. I have an assessed university project from May-June, and an internship during July, both of which should come first, so I've given extra time to some of the earlier deadlines.
This plan almost definitely will change during the course of the project. This is my first build at this scale, and my first time making a synthesizer, so I'm prepared to anticipate and embrace delays.
Designing a VCO
A voltage controlled oscillator takes in a constant DC voltage known as a control voltage, and synthesizes an alternating wave with frequency directly proportional to the control voltage. The majority of musical synthesizers follow an exponential CV scheme known as "one volt per octave", where control voltage increases by one volt for a doubling in frequency. From a musical perspective this is a sensible control scheme, as doubling the frequency of any note results in the same pitch, but an octave up.
A VCO should also be able to generate multiple different waveforms; types commonly found on classic synths are square, sawtooth and triangle waves. Sine waves are not generally used, as they can be easily derived from filtering other waveforms.
Designing a reliable analog VCO is incredibly challenging, and there are several common types used in early analog synths. I'll discuss these more in a future update.
In the post
CV-12 ORAC chip from Midimuso (£17.49 as part of a kit containing a PCB and other components)
The CV-12 is a remarkable chip, which is capable of converting digital MIDI signals into a CV (control voltage) and a trigger (a short pulse that tells an envelope generator / amplifier when a MIDI Note On event is detected).
Many MIDI to CV/Trig converters are very expensive, with good ones costing around £100 each. These are intended more for the Eurorack market rather than for ground-up electronics builds, so don't really fit my requirements or budget.
What makes the CV-12 special is that it is capable of polyphonic MIDI to CV conversion, meaning it is capable of outputting many control voltages (corresponding to many different notes) at once. This means it becomes possible to play chords from the get-go. It's also fully configurable with various mode changes. Polyphony can be sacrificed for additional MIDI parameters like note pressure and pitch bend, and even VCF parameters like cutoff / resonance. Considering what this thing can do, £17 is an absolute bargain.