In audio world it is nice to have some oscillators around to test audio-equipment like amplifiers, mixers and filters. Oscillators are also great musical devices though! I will show some very interesting sounding simple to build oscillators. When these simple oscillators are combined with sensor-values, some great sounds can be revealed.
The principle of an oscillator is feedback. Think of a microphone that is too near to the speaker – it will make a harsh high beeping tone. This is what we call feedback. In general we want to avoid feedback, but in case of an oscillator design it’s a great feature.
The most simple oscillator you can make is one based upon a ‘Schmitt trigger’ (digital) port. There are several chips available that have this function like: HEF40106, or CD40106, 7413, 7414 and a lot more.
In this part I will use the 40106 chip. This is a hex schmitt-trigger inverter chip – hex means there are in total 6 of those ports embedded in one physical chip (housing).
A schmitt trigger port has two thresholds upon which it will change its state. If the input of this inverter port goes above the upper threshold (say 4,5V), the output will change value, in this case will switch to zero – since it’s an inverter. If input goes below the lower threshold-value (say 2,5V), the output will change from “0” to “1” (0 – 5V).
The circuit on the the right shows the simplest setup of an oscillator. How does that work? Pin 2 (the output of the inverter port) is connected to the input of the same port through a resistor R. The input is also connected to a capacitor.
– Suppose the input at pin 1 is 0V (in case of start-up for example), the output will be ‘high’. If the power-supply of the chip is (say) 9V, the output is also 9V.
At that moment the voltage at pin 2 is higher than pin 1, the current will flow through the resistor R, into the capacitor C.
The value of the voltage parallel to the capacitor will ‘slowly’ rise above the upper threshold and the output will switch from 9V to 0V. At that moment we are back at the beginning and the cycle will keep on going. It will resonate its own static frequency. The frequency depends on the value of the capacitor and the resistor. They determine the ‘speed’ of the process. The bigger the capacitor and the resistor are, the slower the system lower frequency).
If you use a resistor that can change value, like a potentiometer or a sensor (Force Sensing Resistor), the frequency of the oscillator will change up/down. The more interesting results will start when you combine more ports together.
The circuit shown is called a master-slave combination. The ‘ slave’ is only working when the output of the ‘master’ is ‘high’, due to the diode.
The capacitor and the resistor of the master have higher values and will resonate on a lower frequency. The ‘slave’ has smaller values and is oscillating on a higher frequency. On pin 4, the output of the slave, the ‘master envelope’ is filled with the signal of the slave. Both resistor symbols do have an small arrow. This means you can use ANY variable resistor you want (LDR, FSR, Potentiometer, Digital potmeter, NTC, …).
An example of an circuit that consists of 4 master-slave combinations:
To make this oscillator suitable for control voltage, a nice way to do this is with a ‘vactrol’. This is a combination of a LED (light emitting diode) and a LDR (light dependent resistor) in one package.
When the CV is going form 0V to (say) 5V, the light intensity of the internal LED will increase. Since the LED is coupled to a resistor that changes value when the light is more/less bright, a coupling is created
Oscillator with the NE555
The NE555 is a very popular timer chip, often used in electronic circuits. That doesn’t mean it an ideal chip, but it is a very easy chip to create wave-shapes of different frequencies. You only need to connect some resistors (R) and capacitors (C) en there you go, it will run. I do not want to explain al the in’s and out’s of the chip, because if you “Google” the NE555, you will find more than enough information to tweak your design. Take a look at the circuit below:
The NE555 is (again) a 8-pin chip. The resistors R1, R2 and C1 determine the frequency and duty cycle of the signal on the output.
If R1=R2=10K and the capacitor C1 = 47uF, the frequency will be around 1kHz and the duty-cycle around 66%. Take a look at think link to calculate other values.
You can exchange the resistors for potentiometers and change the frequency / duty-cycle on the fly. Just try it out!