IFD:Analog Circuits and Interfaces/introduction to electronics: Difference between revisions
No edit summary |
No edit summary |
||
(16 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
* A very powerful concept is the voltage divider, it allows us to attenuate (but not amplify!) any voltage in any circuit | * A very powerful concept is the voltage divider, it allows us to attenuate (but not amplify!) any voltage in any circuit | ||
[http://tinyurl.com/yxhsk8sc voltage divider with even resistors] | [http://tinyurl.com/yxhsk8sc voltage divider with even resistors] | ||
== Amplifiers (and Attenuators) == | |||
* We will use the OpAmp (=operational amplifier) to amplify the small signals from our microphones to usable and less noisy signals before we digitize them in the computer. The opamp (= operational amplifier) is a three port device and its circuit diagram is a triangle. It has a positive and a negative input terminal and an output terminal. The most basic opamp circuit is the "comparator". | * We will use the OpAmp (=operational amplifier) to amplify the small signals from our microphones to usable and less noisy signals before we digitize them in the computer. The opamp (= operational amplifier) is a three port device and its circuit diagram is a triangle. It has a positive and a negative input terminal and an output terminal. The most basic opamp circuit is the "comparator". | ||
[http://tinyurl.com/yxrdh8gx opamp as a comparator] | [http://tinyurl.com/yxrdh8gx opamp as a comparator] | ||
Line 20: | Line 24: | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.20027730826997+50+5+43%0Ag+-448+80+-448+96+0%0Av+-448+80+-448+16+0+1+100+1+0+0+0.5%0Ax+-411+-158+-192+-155+4+18+The%5CsNon-Inverting%5CsAmplifier%0Aa+-304+0+-192+0+8+15+-15+1000000+0.6913109108869245+0.691386955087122+100000%0A207+-192+0+-144+0+4+output%0Aw+-192+0+-192+-64+0%0Aw+-304+-64+-304+-16+0%0Ar+-288+-64+-208+-64+0+10000%0Aw+-288+-64+-304+-64+0%0Aw+-208+-64+-192+-64+0%0Ar+-448+-64+-304+-64+0+1000%0Aw+-448+16+-304+16+0%0Ag+-448+-64+-448+-32+0%0Ax+-344+68+-147+71+4+12+Gain%5Cs%5Cq%5Cs1%5Cs%5Cp%5CsR2%5Cs/%5CsR1%5Cs%5Cq%5Cs1%5Cs%5Cp%5Cs10k/1K%5Cs%5Cq%5Cs11%0Ax+-253+-41+-238+-38+4+12+R2%0Ax+-383+-42+-368+-39+4+12+R1%0Ax+-469+11+-439+14+4+14+input%0Ao+1+64+0+4098+5+0.1+0+2+1+3%0Ao+4+64+0+4098+20+0.00009765625+1+2+4+3%0A Non-Inverting Opamp] | [http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+10.20027730826997+50+5+43%0Ag+-448+80+-448+96+0%0Av+-448+80+-448+16+0+1+100+1+0+0+0.5%0Ax+-411+-158+-192+-155+4+18+The%5CsNon-Inverting%5CsAmplifier%0Aa+-304+0+-192+0+8+15+-15+1000000+0.6913109108869245+0.691386955087122+100000%0A207+-192+0+-144+0+4+output%0Aw+-192+0+-192+-64+0%0Aw+-304+-64+-304+-16+0%0Ar+-288+-64+-208+-64+0+10000%0Aw+-288+-64+-304+-64+0%0Aw+-208+-64+-192+-64+0%0Ar+-448+-64+-304+-64+0+1000%0Aw+-448+16+-304+16+0%0Ag+-448+-64+-448+-32+0%0Ax+-344+68+-147+71+4+12+Gain%5Cs%5Cq%5Cs1%5Cs%5Cp%5CsR2%5Cs/%5CsR1%5Cs%5Cq%5Cs1%5Cs%5Cp%5Cs10k/1K%5Cs%5Cq%5Cs11%0Ax+-253+-41+-238+-38+4+12+R2%0Ax+-383+-42+-368+-39+4+12+R1%0Ax+-469+11+-439+14+4+14+input%0Ao+1+64+0+4098+5+0.1+0+2+1+3%0Ao+4+64+0+4098+20+0.00009765625+1+2+4+3%0A Non-Inverting Opamp] | ||
== Oscillators == | |||
* We can use a special configuration of the Opamp together with a capacitor as a simple oscillator. The following simulation is a square wave oscillator. At the positive input terminal, there is a voltage divider, that divides down the output of the opamp in half. Since it is positive feedback, the opamp will drive to the maximum point, which in our case is +-15V. The voltage divider divides this voltage down to half. Depending on whether the output drives high or low, the voltag at the positive input is thus +-7.5V. The capacitor gets constantly charged and discharged from the output of the opamp through the resistor. The voltage at the capacitor on the negative input compares to this threshold voltage and inverts the signal when it exceeds the respective treshold. Since this process is endlessly repeating, the output oscillates. The frequency is dependend on the size of the capacitor and the resistance of the negative feedback resistor. | * We can use a special configuration of the Opamp together with a capacitor as a simple oscillator. The following simulation is a square wave oscillator. At the positive input terminal, there is a voltage divider, that divides down the output of the opamp in half. Since it is positive feedback, the opamp will drive to the maximum point, which in our case is +-15V. The voltage divider divides this voltage down to half. Depending on whether the output drives high or low, the voltag at the positive input is thus +-7.5V. The capacitor gets constantly charged and discharged from the output of the opamp through the resistor. The voltage at the capacitor on the negative input compares to this threshold voltage and inverts the signal when it exceeds the respective treshold. Since this process is endlessly repeating, the output oscillates. The frequency is dependend on the size of the capacitor and the resistance of the negative feedback resistor. | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ag+-240+96+-240+112+0%0Ax+-134+-188+297+-185+4+18+Self-Oscillating%5CsComparator%5Cs(Square%5CsWave%5CsGenerator)%0Aa+-240+0+-128+0+8+15+-15+1000000+6.090293760309295+7.500070481327725+100000%0Aw+-128+0+-96+0+0%0Ag+-304+-16+-304+0+0%0A207+-96+0+-48+0+4+output%0Ac+-304+-16+-240+-16+0+1.0000000000000001e-7+-6.090293760309295%0Ar+-240+48+-240+96+0+100000%0Ar+-240+48+-128+48+0+100000%0Aw+-240+16+-240+48+2%0Aw+-128+0+-128+48+0%0Ar+-240+-64+-128+-64+0+100000%0Aw+-128+-64+-128+0+0%0Aw+-240+-64+-240+-16+2%0Ao+9+64+0+4098+10+0.00009765625+0+2+9+3%0Ao+13+64+0+4098+10+0.00078125+1+2+13+3%0A Square Wave Generator] | [http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ag+-240+96+-240+112+0%0Ax+-134+-188+297+-185+4+18+Self-Oscillating%5CsComparator%5Cs(Square%5CsWave%5CsGenerator)%0Aa+-240+0+-128+0+8+15+-15+1000000+6.090293760309295+7.500070481327725+100000%0Aw+-128+0+-96+0+0%0Ag+-304+-16+-304+0+0%0A207+-96+0+-48+0+4+output%0Ac+-304+-16+-240+-16+0+1.0000000000000001e-7+-6.090293760309295%0Ar+-240+48+-240+96+0+100000%0Ar+-240+48+-128+48+0+100000%0Aw+-240+16+-240+48+2%0Aw+-128+0+-128+48+0%0Ar+-240+-64+-128+-64+0+100000%0Aw+-128+-64+-128+0+0%0Aw+-240+-64+-240+-16+2%0Ao+9+64+0+4098+10+0.00009765625+0+2+9+3%0Ao+13+64+0+4098+10+0.00078125+1+2+13+3%0A Square Wave Generator] | ||
[[file: square_wave_oscillator.png]] This is the breadboard version of the square wave oscillator. The output frequency should be around 50-100Hz. You can connect this to a small speaker or headphone directly. To connect it to a Hifi amplifier input, you need to convert the output voltage from around +-4V to +-1V by using a voltage divider. | |||
== Filters == | |||
* To shape the spectrum of our oscillators we will use a lowpass filter. The simplest form of a lowpass filter is the passive lowpass filter. You can view this lowpass filter as an elaborated voltage divider: the capacitor has a frequency dependent resistance (which we call an impedance). This impedance is very high for static voltages (DC) and low frequencies. The impedance goes down the higher the frequency is at its input. The higher the frequency, the lower the impedance at the capacitor and the lower will be the voltage at the capacitor. This will effectively filter out high frequencies and leave lower frequencies in the signal. | * To shape the spectrum of our oscillators we will use a lowpass filter. The simplest form of a lowpass filter is the passive lowpass filter. You can view this lowpass filter as an elaborated voltage divider: the capacitor has a frequency dependent resistance (which we call an impedance). This impedance is very high for static voltages (DC) and low frequencies. The impedance goes down the higher the frequency is at its input. The higher the frequency, the lower the impedance at the capacitor and the lower will be the voltage at the capacitor. This will effectively filter out high frequencies and leave lower frequencies in the signal. | ||
Line 37: | Line 51: | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ax+-164+-202+6+-199+4+18+Active%5CsLowpass%5CsFilter%0A207+-128+0+-80+0+4+output%0Ac+-128+-112+-240+-112+0+1.0000000000000001e-7+-0.06865131933234453%0Ar+-128+-64+-240+-64+0+1000%0AR+-336+-64+-384+-64+0+1+1591.5+1+0+0+0.5%0Ax+-13+-92+99+-89+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*R2*C)%0Ax+-14+-67+180+-64+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*10%5E3%5CsOhm*10%5E-7%5CsF)%0Ax+-14+-40+156+-37+4+14+f%5Cs%5Cq%5Cs10%5E4%5Cs/%5Cs(2*pi)%5Cq10000/%5Cs2pi%0Ax+-14+-12+69+-9+4+14+f%5Cs%5Cq%5Cs1591,5%5CsHz%0Ax+-13+-130+293+-127+4+14+Calculation%5Csof%5Csfilter%5Cscutoff%5Cspoint%5Cs(-3dB%5CsFrequency)%0Aw+-240+-64+-240+-16+0%0Aw+-128+0+-128+-64+0%0Aa+-240+0+-128+0+8+15+-15+1000000+6.865063282601628e-7+0+100000%0Aw+-240+-112+-240+-64+0%0Ar+-240+-64+-336+-64+0+1000%0Ag+-240+16+-240+32+0%0Aw+-128+-112+-128+-64+0%0Ax+-298+-40+-280+-37+4+14+R1%0Ax+-194+-40+-176+-37+4+14+R2%0Ax+-14+42+81+45+4+14+-R2/R1%5Cs...%5CsGain%0Ax+-14+95+226+98+4+14+R2%5Cs...%5CsSets%5Cscutoff%5Csfrequency%5Cs(and%5Csgain)%0Ax+-14+69+83+72+4+14+R1%5Cs...%5CsSets%5Csgain%0Ao+1+4+0+4106+1.25+0.00009765625+0+2+1+3%0A Active Low Pass Filter] | [http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ax+-164+-202+6+-199+4+18+Active%5CsLowpass%5CsFilter%0A207+-128+0+-80+0+4+output%0Ac+-128+-112+-240+-112+0+1.0000000000000001e-7+-0.06865131933234453%0Ar+-128+-64+-240+-64+0+1000%0AR+-336+-64+-384+-64+0+1+1591.5+1+0+0+0.5%0Ax+-13+-92+99+-89+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*R2*C)%0Ax+-14+-67+180+-64+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*10%5E3%5CsOhm*10%5E-7%5CsF)%0Ax+-14+-40+156+-37+4+14+f%5Cs%5Cq%5Cs10%5E4%5Cs/%5Cs(2*pi)%5Cq10000/%5Cs2pi%0Ax+-14+-12+69+-9+4+14+f%5Cs%5Cq%5Cs1591,5%5CsHz%0Ax+-13+-130+293+-127+4+14+Calculation%5Csof%5Csfilter%5Cscutoff%5Cspoint%5Cs(-3dB%5CsFrequency)%0Aw+-240+-64+-240+-16+0%0Aw+-128+0+-128+-64+0%0Aa+-240+0+-128+0+8+15+-15+1000000+6.865063282601628e-7+0+100000%0Aw+-240+-112+-240+-64+0%0Ar+-240+-64+-336+-64+0+1000%0Ag+-240+16+-240+32+0%0Aw+-128+-112+-128+-64+0%0Ax+-298+-40+-280+-37+4+14+R1%0Ax+-194+-40+-176+-37+4+14+R2%0Ax+-14+42+81+45+4+14+-R2/R1%5Cs...%5CsGain%0Ax+-14+95+226+98+4+14+R2%5Cs...%5CsSets%5Cscutoff%5Csfrequency%5Cs(and%5Csgain)%0Ax+-14+69+83+72+4+14+R1%5Cs...%5CsSets%5Csgain%0Ao+1+4+0+4106+1.25+0.00009765625+0+2+1+3%0A Active Low Pass Filter] | ||
* Unfortunately we can't set the cutoff frequency independently of the gain of our filter with just one resistor (e.g. a potentiometer). With another filter topology, the "bridged T low pass filter". | * Unfortunately we can't set the cutoff frequency independently of the gain of our filter with just one resistor (e.g. a potentiometer). With another filter topology, the "bridged T low pass filter", we can tune the filter without changing its gain. To get a bridged T filter, we exchange the capacitor in the feedback loop with two capacitors in series and add a resistor. | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ax+-167+-245+39+-242+4+18+Bridged%5CsT%5CsLow%5CsPass%5CsFilter%0A207+-112+0+-80+0+4+output%0Ac+-176+-192+-240+-192+0+1.0000000000000001e-7+0.07208828582967249%0Ar+-112+-64+-240+-64+0+1000%0AR+-320+-64+-368+-64+0+6+1591+1+0+0+0.5%0Ax+-20+-133+185+-130+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*sqrt(R1*R2*C1*C2)))%0Ax+-21+-108+173+-105+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*10%5E3%5CsOhm*10%5E-7%5CsF)%0Ax+-21+-81+149+-78+4+14+f%5Cs%5Cq%5Cs10%5E4%5Cs/%5Cs(2*pi)%5Cq10000/%5Cs2pi%0Ax+-21+-53+62+-50+4+14+f%5Cs%5Cq%5Cs1591,5%5CsHz%0Ax+-20+-171+170+-168+4+14+Calculation%5Csof%5Csfilter%5Cscutoff%5Cspoint%0Aw+-240+-64+-240+-16+0%0Aw+-112+0+-112+-64+0%0Aa+-240+0+-112+0+8+15+-15+1000000+8.53353504561735e-8+0+100000%0Aw+-240+-192+-240+-64+0%0Aw+-112+-192+-112+-64+0%0Ax+-181+-37+-163+-34+4+14+R1%0Ax+-210+-152+-192+-149+4+14+R2%0Ax+-14+42+81+45+4+14+-R2/R1%5Cs...%5CsGain%0Ax+-14+95+157+98+4+14+R2%5Cs...%5CsSets%5Cscutoff%5Csfrequency%0Ax+-14+69+83+72+4+14+R3%5Cs...%5CsSets%5Csgain%0Ac+-112+-192+-176+-192+0+1.0000000000000001e-7+-0.08062190621064029%0Ar+-320+-64+-240+-64+0+1000%0Ag+-240+16+-240+48+0%0Ar+-176+-192+-176+-128+0+1000%0Ag+-176+-128+-176+-112+0%0Ax+-291+-36+-273+-33+4+14+R3%0Ax+-13+123+276+126+4+14+R1%5Cs...%5CsThe%5Csbigger%5CsR1,%5Csthe%5Csmore%5CsQ%5Cs(resonance)%0Ao+1+4+0+5128+2.5+0.00009765625+0+2+1+3%0A Bridged T Low Pass Filter] | |||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ax+- | * modifiying the capacitor and resistor values, we can use a 100k potentiometer to have a variable cutoff frequency filter | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+12.050203812241895+54+5+43%0Ax+-167+-245+39+-242+4+18+Bridged%5CsT%5CsLow%5CsPass%5CsFilter%0A207+-112+0+-80+0+4+output%0Ac+-176+-192+-240+-192+0+2e-9+0.09900202645250962%0Ar+-112+-64+-240+-64+0+100000%0AR+-320+-64+-368+-64+0+6+1591+1+0+0+0.5%0Ax+-20+-133+183+-130+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*sqrt(R1*R2*C1*C2)))%0Ax+-21+-108+173+-105+4+14+f%5Cs%5Cq%5Cs1%5Cs/%5Cs(2*pi*10%5E3%5CsOhm*10%5E-7%5CsF)%0Ax+-21+-81+147+-78+4+14+f%5Cs%5Cq%5Cs10%5E4%5Cs/%5Cs(2*pi)%5Cq10000/%5Cs2pi%0Ax+-21+-53+62+-50+4+14+f%5Cs%5Cq%5Cs1591,5%5CsHz%0Ax+-20+-171+167+-168+4+14+Calculation%5Csof%5Csfilter%5Cscutoff%5Cspoint%0Aw+-240+-64+-240+-16+0%0Aw+-112+0+-112+-64+0%0Aa+-240+0+-112+0+8+15+-15+1000000+-0.000002138187387850065+0+100000%0Aw+-240+-192+-240+-64+0%0Aw+-112+-192+-112+-64+0%0Ax+-181+-37+-164+-34+4+14+R1%0Ax+-210+-152+-193+-149+4+14+R2%0Ax+-14+42+79+45+4+14+-R3/R1%5Cs...%5CsGain%0Ax+-14+95+154+98+4+14+R2%5Cs...%5CsSets%5Cscutoff%5Csfrequency%0Ax+-14+69+81+72+4+14+R3%5Cs...%5CsSets%5Csgain%0Ac+-112+-192+-176+-192+0+2e-9+0.11481885051988475%0Ar+-320+-64+-240+-64+0+100000%0Ag+-240+16+-240+48+0%0Ag+-176+-128+-176+-112+0%0Ax+-291+-36+-274+-33+4+14+R3%0Ax+-13+123+269+126+4+14+R1%5Cs...%5CsThe%5Csbigger%5CsR1,%5Csthe%5Csmore%5CsQ%5Cs(resonance)%0A174+-176+-192+-176+-128+1+100000+0.33170000000000005+Cutoff%0Aw+-160+-160+-128+-160+0%0Aw+-128+-160+-128+-128+0%0Aw+-128+-128+-176+-128+0%0Ao+1+4+0+5128+2.5+0.00009765625+0+2+1+3%0A Variable Cutoff Active Filter] | |||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+9.001713130052181+54+5+43%0Ax+-132+-156+68+-153+4+18+Triangle%5Cs/%5CsSaw%5CsGenerator%0Aa+-240+0+-128+0+8+15+-15+1000000+0+3.6818713027031436+100000%0Ag+16+32+16+64+0%0A207+128+16+176+16+4+output%0Ac+16+-64+128+-64+0+1e-8+0.5101696765160468%0Ar+-240+48+-240+128+0+100000%0Ar+-240+48+-128+48+0+270000%0Aw+-240+16+-240+48+2%0Aw+-128+0+-128+48+0%0Ar+-64+0+16+0+0+100000%0Ad+-80+-64+-128+-64+2+default%0Aa+16+16+128+16+8+15+-15+1000000+0.000005101645748702981+0+100000%0Aw+16+-64+16+0+0%0Aw+128+-64+128+16+0%0Aw+128+16+128+128+0%0Aw+128+128+-240+128+0%0Ag+-240+-16+-288+-16+0%0Ag+-64+64+-64+80+0%0Ar+-64+0+-64+64+0+50000%0Ar+-128+0+-64+0+0+50000%0Aw+-128+-64+-128+0+0%0Ar+-80+-64+-32+-64+0+1000%0As+-32+-64+16+-64+0+1+false%0Ax+-21+-87+5+-84+4+8+triangle%0Ax+-16+-44+-3+-41+4+8+saw%0Ao+7+8+0+4098+20+0.00009765625+0+2+7+3%0Ao+8+8+0+4106+20+0.1+1+2+8+3%0Ao+3+8+0+4106+20+0.1+2+2+3+3%0A Trianlge / Saw Generator] | [http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000005+9.001713130052181+54+5+43%0Ax+-132+-156+68+-153+4+18+Triangle%5Cs/%5CsSaw%5CsGenerator%0Aa+-240+0+-128+0+8+15+-15+1000000+0+3.6818713027031436+100000%0Ag+16+32+16+64+0%0A207+128+16+176+16+4+output%0Ac+16+-64+128+-64+0+1e-8+0.5101696765160468%0Ar+-240+48+-240+128+0+100000%0Ar+-240+48+-128+48+0+270000%0Aw+-240+16+-240+48+2%0Aw+-128+0+-128+48+0%0Ar+-64+0+16+0+0+100000%0Ad+-80+-64+-128+-64+2+default%0Aa+16+16+128+16+8+15+-15+1000000+0.000005101645748702981+0+100000%0Aw+16+-64+16+0+0%0Aw+128+-64+128+16+0%0Aw+128+16+128+128+0%0Aw+128+128+-240+128+0%0Ag+-240+-16+-288+-16+0%0Ag+-64+64+-64+80+0%0Ar+-64+0+-64+64+0+50000%0Ar+-128+0+-64+0+0+50000%0Aw+-128+-64+-128+0+0%0Ar+-80+-64+-32+-64+0+1000%0As+-32+-64+16+-64+0+1+false%0Ax+-21+-87+5+-84+4+8+triangle%0Ax+-16+-44+-3+-41+4+8+saw%0Ao+7+8+0+4098+20+0.00009765625+0+2+7+3%0Ao+8+8+0+4106+20+0.1+1+2+8+3%0Ao+3+8+0+4106+20+0.1+2+2+3+3%0A Trianlge / Saw Generator] | ||
Line 57: | Line 75: | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000015625+5.934295036739208+30+5+43%0Ax+-656+70+-609+73+4+18+Osc%5Cs1%0Aa+-800+16+-688+16+8+9+-9+1000000+0+-8.239893428179101+100000%0Ag+-544+48+-544+80+0%0Ac+-544+-48+-432+-48+0+1e-8+7.8823348912163524%0Ar+-800+144+-432+144+0+47000%0Ar+-800+64+-688+64+0+100000%0Aw+-800+32+-800+64+2%0Aw+-688+16+-688+64+0%0Aa+-544+32+-432+32+8+9+-9+1000000+0.00007882256068655666+0+100000%0Aw+-544+-48+-544+16+0%0Aw+-432+-48+-432+32+0%0Aw+-432+32+-432+144+0%0Ag+-800+0+-800+16+0%0Ax+-576+-28+-563+-25+4+8+saw%0Ar+-608+-432+-816+-432+0+1000%0Ax+-585+111+-438+114+4+12+w.%5Csexponential%5Csfrequency%5Cscv%0At+-608+-112+-608+16+0+-1+9.359435104843852+0.3585323019403481+100%0Aw+-592+16+-544+16+0%0Aw+-624+16+-688+16+0%0Aa+-1200+-160+-1088+-160+8+15+-15+1000000+-0.0000035861112460203464+0+100000%0Aw+-1200+-224+-1200+-176+0%0Ag+-1200+-144+-1200+-112+0%0Ar+-1200+-224+-1312+-224+0+100000%0AR+-1312+-224+-1376+-224+0+0+40+5+0+0+0.5%0A174+-1472+-144+-1424+-208+1+5000+0.5198+Freq+Offset%0AR+-1472+-272+-1472+-304+0+0+40+9+0+0+0.5%0Ar+-1328+-176+-1200+-176+0+20000%0Ar+-1088+-224+-1088+-160+0+1500%0A174+-1200+-224+-1104+-256+1+500+0.6683+Scaling%0Aw+-1152+-256+-1088+-256+0%0Aw+-1088+-256+-1088+-224+0%0Aw+-1088+-224+-1104+-224+0%0Aw+-1088+-160+-1088+-112+0%0Ar+-1472+-144+-1472+-80+0+47000%0AR+-1472+-80+-1472+-32+0+0+40+-9+0+0+0.5%0Ar+-1472+-272+-1472+-208+0+4700%0Ax+-1421+-281+-1340+-278+4+14+1V/Oct%5CsCV%5CsIn%0Aw+-1328+-176+-1424+-176+0%0Ax+-1428+-141+-1357+-138+4+14+Freq%5CsOffset%0Ar+-432+32+-224+32+0+100000%0Aw+-800+144+-800+64+0%0Aw+-800+-176+-800+-256+0%0Ar+-432+-288+-224+-288+0+100000%0Aw+-624+-304+-688+-304+0%0Aw+-592+-304+-544+-304+0%0At+-608+-432+-608+-304+0+-1+9.319559871642642+0.3195776710668722+100%0Ax+-576+-348+-563+-345+4+8+saw%0Ag+-800+-320+-800+-304+0%0Aw+-432+-288+-432+-176+0%0Aw+-432+-368+-432+-288+0%0Aw+-544+-368+-544+-304+0%0Aa+-544+-288+-432+-288+8+9+-9+1000000+-0.00003915893003584169+0+100000%0Aw+-688+-304+-688+-256+0%0Aw+-800+-288+-800+-256+2%0Ar+-800+-256+-688+-256+0+100000%0Ar+-800+-176+-432+-176+0+47000%0Ac+-544+-368+-432+-368+0+1e-8+-3.915932162514205%0Ag+-544+-272+-544+-240+0%0Aa+-800+-304+-688+-304+8+9+-9+1000000+0+-0.2136850580747307+100000%0Ax+-643+-227+-596+-224+4+18+Osc%5Cs2%0Ar+-608+-112+-720+-112+0+1000%0Aw+-720+-112+-928+-112+0%0Aw+-816+-432+-928+-432+0%0Aw+-928+-432+-928+-112+0%0A174+-896+-640+-816+-560+1+100000+0.9059+Osc+2+Detune%0Aw+-608+-432+-608+-592+0%0A174+-224+-288+-144+32+1+100000+0.5+Osc+Mix%0Ag+-144+-128+-144+-96+0%0Ar+-224+-288+-16+-288+0+47000%0Ar+-224+32+-16+32+0+47000%0Aw+-16+-288+-16+32+0%0AR+-896+-672+-896+-704+0+0+40+9+0+0+0.5%0Ar+-608+-592+-816+-592+0+1000%0AR+-896+-512+-896+-480+0+0+40+-9+0+0+0.5%0Ar+-896+-544+-896+-512+0+100000%0Ar+-896+-640+-896+-672+0+100000%0Ax+-196+-168+-131+-165+4+18+Osc%5CsMix%0Ax+-1052+-580+-942+-577+4+18+Osc%5Cs2%5CsDetune%0Aw+-1088+-112+-928+-112+0%0AR+-1200+-496+-1200+-560+0+0+40+-9+0+0+0.5%0Ar+-1376+-416+-1456+-416+0+100000%0At+-1232+-480+-1200+-480+1+-1+7.919593689508796+-0.5775263839171167+100%0Aw+-1376+-480+-1360+-480+0%0Ar+-1376+-480+-1440+-480+0+47000%0Aw+-1200+-224+-1200+-400+0%0Ar+-1200+-464+-1200+-400+0+1000%0Ax+-1169+-478+-1130+-475+4+18+Gate%0Ax+-1167+-455+-1043+-452+4+12+switches%5Csoscillators%5Csoff%0Ax+-1168+-433+-996+-430+4+12+when%5Cs1V/Oct%5Cs%3C%5Cs0V%5Cs(JP1%5Csbridged)%0Ax+-1425+-258+-1329+-255+4+12+Range:%5Cs-9V%5Cs--%5Cs%5Cp9V%0Ax+-575+-654+-137+-651+4+28+Saw%5CsOsc%5Cs%5Cp-9V%5Cswith%5CsGate%5Cson%5Cs1V/Oct%0A211+192+-400+256+-400+0+1+8000+1%0Ax+84+-163+137+-160+4+24+Filter%0Aw+64+-448+0+-448+0%0Aw+64+-496+64+-448+0%0AR+-96+-448+-96+-416+0+0+40+-9+0+0+0.5%0A174+-96+-544+-48+-464+1+100000+0.38120000000000004+Cutoff%0Ar+-48+-496+64+-496+0+10000%0Ar+112+-352+32+-352+0+0.01%0Aw+112+-528+112+-544+0%0Aw+128+-528+128+-512+0%0Aw+112+-528+128+-528+0%0Aw+96+-528+112+-528+0%0Aw+96+-512+96+-528+0%0Aw+96+-464+96+-480+0%0Aw+112+-464+96+-464+0%0Aw+128+-464+128+-480+0%0Aw+112+-464+128+-464+0%0Ar+128+-512+128+-480+0+100000%0AR+112+-464+112+-432+0+0+40+-9+0+0+0.5%0At+64+-496+96+-496+1+1+0.5654118130839247+0.5651546611663889+100%0Aw+192+-544+192+-400+0%0Ac+112+-544+192+-544+0+2.2000000000000002e-8+-10.645479220954861%0Ac+32+-544+112+-544+0+2.2000000000000002e-8+8.999726390718735%0Aw+32+-400+32+-544+0%0Aw+192+-400+192+-352+0%0Aw+32+-400+32+-352+0%0Ar+32+-400+192+-400+0+100000%0Ag+32+-256+32+-224+0%0A207+288+-272+336+-272+4+output%0Ac+112+-352+192+-352+0+1e-9+-1.6457528302362212%0Aa+32+-272+192+-272+8+9+-9+1000000+-0.000016457363728723974+0+100000%0Aw+32+-352+32+-288+0%0Aw+192+-352+192+-272+0%0Aw+-16+-288+32+-288+0%0AR+-96+-544+-96+-592+0+0+40+9+0+0+0.5%0Ar+192+-272+288+-272+0+4700%0Ar+288+-272+288+-192+0+1000%0Ag+288+-192+288+-176+0%0AR+-1376+-352+-1376+-320+0+0+40+-9+0+0+0.5%0AR+-1504+-480+-1568+-480+0+0+40+1.9+0+0+0.5%0Ar+-1376+-416+-1376+-352+0+100000%0Ag+-1456+-416+-1456+-400+0%0Aw+-1376+-416+-1376+-480+0%0As+-1504+-480+-1440+-480+0+0+false%0Aw+-1360+-480+-1312+-480+0%0Aw+-1312+-480+-1232+-480+0%0As+-1312+-224+-1312+-480+0+1+false%0Ax+-1169+-408+-1039+-405+4+12+or%5CsGate%5Cs%3C%5Cs2V%5Cs(JP1%5Csopen)%0Ax+-1296+-350+-1275+-347+4+12+JP1%0Ax+-1594+-515+-1320+-512+4+18+Gate%5CsInput:%5Cs0V%5Cs..%5CsClosed%5Cs5V%5Cs..open%0Ao+119+4+0+4106+1.25+0.1+0+2+119+3%0Ao+10+16+0+4106+10+0.1+1+2+10+3%0A38+23+0+-9+9+1V/Oct%0A Oscillators, Filter and Gate] | [http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.000015625+5.934295036739208+30+5+43%0Ax+-656+70+-609+73+4+18+Osc%5Cs1%0Aa+-800+16+-688+16+8+9+-9+1000000+0+-8.239893428179101+100000%0Ag+-544+48+-544+80+0%0Ac+-544+-48+-432+-48+0+1e-8+7.8823348912163524%0Ar+-800+144+-432+144+0+47000%0Ar+-800+64+-688+64+0+100000%0Aw+-800+32+-800+64+2%0Aw+-688+16+-688+64+0%0Aa+-544+32+-432+32+8+9+-9+1000000+0.00007882256068655666+0+100000%0Aw+-544+-48+-544+16+0%0Aw+-432+-48+-432+32+0%0Aw+-432+32+-432+144+0%0Ag+-800+0+-800+16+0%0Ax+-576+-28+-563+-25+4+8+saw%0Ar+-608+-432+-816+-432+0+1000%0Ax+-585+111+-438+114+4+12+w.%5Csexponential%5Csfrequency%5Cscv%0At+-608+-112+-608+16+0+-1+9.359435104843852+0.3585323019403481+100%0Aw+-592+16+-544+16+0%0Aw+-624+16+-688+16+0%0Aa+-1200+-160+-1088+-160+8+15+-15+1000000+-0.0000035861112460203464+0+100000%0Aw+-1200+-224+-1200+-176+0%0Ag+-1200+-144+-1200+-112+0%0Ar+-1200+-224+-1312+-224+0+100000%0AR+-1312+-224+-1376+-224+0+0+40+5+0+0+0.5%0A174+-1472+-144+-1424+-208+1+5000+0.5198+Freq+Offset%0AR+-1472+-272+-1472+-304+0+0+40+9+0+0+0.5%0Ar+-1328+-176+-1200+-176+0+20000%0Ar+-1088+-224+-1088+-160+0+1500%0A174+-1200+-224+-1104+-256+1+500+0.6683+Scaling%0Aw+-1152+-256+-1088+-256+0%0Aw+-1088+-256+-1088+-224+0%0Aw+-1088+-224+-1104+-224+0%0Aw+-1088+-160+-1088+-112+0%0Ar+-1472+-144+-1472+-80+0+47000%0AR+-1472+-80+-1472+-32+0+0+40+-9+0+0+0.5%0Ar+-1472+-272+-1472+-208+0+4700%0Ax+-1421+-281+-1340+-278+4+14+1V/Oct%5CsCV%5CsIn%0Aw+-1328+-176+-1424+-176+0%0Ax+-1428+-141+-1357+-138+4+14+Freq%5CsOffset%0Ar+-432+32+-224+32+0+100000%0Aw+-800+144+-800+64+0%0Aw+-800+-176+-800+-256+0%0Ar+-432+-288+-224+-288+0+100000%0Aw+-624+-304+-688+-304+0%0Aw+-592+-304+-544+-304+0%0At+-608+-432+-608+-304+0+-1+9.319559871642642+0.3195776710668722+100%0Ax+-576+-348+-563+-345+4+8+saw%0Ag+-800+-320+-800+-304+0%0Aw+-432+-288+-432+-176+0%0Aw+-432+-368+-432+-288+0%0Aw+-544+-368+-544+-304+0%0Aa+-544+-288+-432+-288+8+9+-9+1000000+-0.00003915893003584169+0+100000%0Aw+-688+-304+-688+-256+0%0Aw+-800+-288+-800+-256+2%0Ar+-800+-256+-688+-256+0+100000%0Ar+-800+-176+-432+-176+0+47000%0Ac+-544+-368+-432+-368+0+1e-8+-3.915932162514205%0Ag+-544+-272+-544+-240+0%0Aa+-800+-304+-688+-304+8+9+-9+1000000+0+-0.2136850580747307+100000%0Ax+-643+-227+-596+-224+4+18+Osc%5Cs2%0Ar+-608+-112+-720+-112+0+1000%0Aw+-720+-112+-928+-112+0%0Aw+-816+-432+-928+-432+0%0Aw+-928+-432+-928+-112+0%0A174+-896+-640+-816+-560+1+100000+0.9059+Osc+2+Detune%0Aw+-608+-432+-608+-592+0%0A174+-224+-288+-144+32+1+100000+0.5+Osc+Mix%0Ag+-144+-128+-144+-96+0%0Ar+-224+-288+-16+-288+0+47000%0Ar+-224+32+-16+32+0+47000%0Aw+-16+-288+-16+32+0%0AR+-896+-672+-896+-704+0+0+40+9+0+0+0.5%0Ar+-608+-592+-816+-592+0+1000%0AR+-896+-512+-896+-480+0+0+40+-9+0+0+0.5%0Ar+-896+-544+-896+-512+0+100000%0Ar+-896+-640+-896+-672+0+100000%0Ax+-196+-168+-131+-165+4+18+Osc%5CsMix%0Ax+-1052+-580+-942+-577+4+18+Osc%5Cs2%5CsDetune%0Aw+-1088+-112+-928+-112+0%0AR+-1200+-496+-1200+-560+0+0+40+-9+0+0+0.5%0Ar+-1376+-416+-1456+-416+0+100000%0At+-1232+-480+-1200+-480+1+-1+7.919593689508796+-0.5775263839171167+100%0Aw+-1376+-480+-1360+-480+0%0Ar+-1376+-480+-1440+-480+0+47000%0Aw+-1200+-224+-1200+-400+0%0Ar+-1200+-464+-1200+-400+0+1000%0Ax+-1169+-478+-1130+-475+4+18+Gate%0Ax+-1167+-455+-1043+-452+4+12+switches%5Csoscillators%5Csoff%0Ax+-1168+-433+-996+-430+4+12+when%5Cs1V/Oct%5Cs%3C%5Cs0V%5Cs(JP1%5Csbridged)%0Ax+-1425+-258+-1329+-255+4+12+Range:%5Cs-9V%5Cs--%5Cs%5Cp9V%0Ax+-575+-654+-137+-651+4+28+Saw%5CsOsc%5Cs%5Cp-9V%5Cswith%5CsGate%5Cson%5Cs1V/Oct%0A211+192+-400+256+-400+0+1+8000+1%0Ax+84+-163+137+-160+4+24+Filter%0Aw+64+-448+0+-448+0%0Aw+64+-496+64+-448+0%0AR+-96+-448+-96+-416+0+0+40+-9+0+0+0.5%0A174+-96+-544+-48+-464+1+100000+0.38120000000000004+Cutoff%0Ar+-48+-496+64+-496+0+10000%0Ar+112+-352+32+-352+0+0.01%0Aw+112+-528+112+-544+0%0Aw+128+-528+128+-512+0%0Aw+112+-528+128+-528+0%0Aw+96+-528+112+-528+0%0Aw+96+-512+96+-528+0%0Aw+96+-464+96+-480+0%0Aw+112+-464+96+-464+0%0Aw+128+-464+128+-480+0%0Aw+112+-464+128+-464+0%0Ar+128+-512+128+-480+0+100000%0AR+112+-464+112+-432+0+0+40+-9+0+0+0.5%0At+64+-496+96+-496+1+1+0.5654118130839247+0.5651546611663889+100%0Aw+192+-544+192+-400+0%0Ac+112+-544+192+-544+0+2.2000000000000002e-8+-10.645479220954861%0Ac+32+-544+112+-544+0+2.2000000000000002e-8+8.999726390718735%0Aw+32+-400+32+-544+0%0Aw+192+-400+192+-352+0%0Aw+32+-400+32+-352+0%0Ar+32+-400+192+-400+0+100000%0Ag+32+-256+32+-224+0%0A207+288+-272+336+-272+4+output%0Ac+112+-352+192+-352+0+1e-9+-1.6457528302362212%0Aa+32+-272+192+-272+8+9+-9+1000000+-0.000016457363728723974+0+100000%0Aw+32+-352+32+-288+0%0Aw+192+-352+192+-272+0%0Aw+-16+-288+32+-288+0%0AR+-96+-544+-96+-592+0+0+40+9+0+0+0.5%0Ar+192+-272+288+-272+0+4700%0Ar+288+-272+288+-192+0+1000%0Ag+288+-192+288+-176+0%0AR+-1376+-352+-1376+-320+0+0+40+-9+0+0+0.5%0AR+-1504+-480+-1568+-480+0+0+40+1.9+0+0+0.5%0Ar+-1376+-416+-1376+-352+0+100000%0Ag+-1456+-416+-1456+-400+0%0Aw+-1376+-416+-1376+-480+0%0As+-1504+-480+-1440+-480+0+0+false%0Aw+-1360+-480+-1312+-480+0%0Aw+-1312+-480+-1232+-480+0%0As+-1312+-224+-1312+-480+0+1+false%0Ax+-1169+-408+-1039+-405+4+12+or%5CsGate%5Cs%3C%5Cs2V%5Cs(JP1%5Csopen)%0Ax+-1296+-350+-1275+-347+4+12+JP1%0Ax+-1594+-515+-1320+-512+4+18+Gate%5CsInput:%5Cs0V%5Cs..%5CsClosed%5Cs5V%5Cs..open%0Ao+119+4+0+4106+1.25+0.1+0+2+119+3%0Ao+10+16+0+4106+10+0.1+1+2+10+3%0A38+23+0+-9+9+1V/Oct%0A Oscillators, Filter and Gate] | ||
[http://www.falstad.com/circuit/circuitjs.html?cct=$+1+0.0000026041666666666666+188.4969023643409+50+5+43%0A411+-416+-48+-512+-48+0+1+40+5+0+0+0.5+5+0+1%0Ad+-416+-48+-336+-48+2+default%0Ag+-336+0+-336+16+0%0Ar+-336+-48+-336+0+0+1000%0Ar+-336+-48+-208+-48+0+1000%0Ac+-208+-48+-208+16+0+0.00001+0.04855852264853732%0Ag+-208+16+-208+48+0%0Aw+-96+-64+-32+-64+0%0Aa+-176+-64+-96+-64+8+15+-15+1000000+0.04853377042562026+0.04855852264853732+100000%0Aw+-96+-64+-96+-144+0%0Aw+-176+-144+-176+-80+0%0A211+-32+-64+32+-64+0+1+48000+1%0Ar+-240+-144+-176+-144+0+10000%0Ar+-176+-144+-96+-144+0+500000%0Ag+-240+-144+-240+-128+0%0Aw+-176+-48+-208+-48+0%0Ax+-338+-232+-132+-229+4+24+Envelope%5CsFollower%0Ao+0+64+0+4098+2.5+0.00078125+0+2+0+3%0Ao+7+64+0+4099+5+0.00009765625+1+2+7+3%0A Envelope Follower] |
Latest revision as of 13:41, 30 November 2020
Here you find learning material in the form of circuit simulations, that lead you to the understanding of amplifiers and other signal conditioning circuits that we use throughout the course. Feel free to experiment with them, they are editable and saved via the encoded URL. You cannot destroy them and it is easy to share edited versions. Here is an introduction to the circuit simulator.
- The foundation of understanding electric circuits is Ohm's law.
- We can calculate series and parallel resistances with Ohm's law:
series and parallel resistances
- A very powerful concept is the voltage divider, it allows us to attenuate (but not amplify!) any voltage in any circuit
voltage divider with even resistors
Amplifiers (and Attenuators)
- We will use the OpAmp (=operational amplifier) to amplify the small signals from our microphones to usable and less noisy signals before we digitize them in the computer. The opamp (= operational amplifier) is a three port device and its circuit diagram is a triangle. It has a positive and a negative input terminal and an output terminal. The most basic opamp circuit is the "comparator".
- the opamp's output can also directly follow one of its input voltages, but providing more current. This is the basis building block of opamp based amplifiers and is called "voltage follower" or "buffer".
stabilized opamp as a source follower
- once you provide a voltage divider circuit in the feedback loop of an voltage follower, you are able to control the gain of the output port. This means the voltage of the output can be a scaled version of the input, either attenuating or amplifying the input voltage. Depending on whether the voltage divider is applied on the positive or negative input, the output is an inverted or non-inverted version of the input voltage. The two basic building blocks are shown below.
Oscillators
- We can use a special configuration of the Opamp together with a capacitor as a simple oscillator. The following simulation is a square wave oscillator. At the positive input terminal, there is a voltage divider, that divides down the output of the opamp in half. Since it is positive feedback, the opamp will drive to the maximum point, which in our case is +-15V. The voltage divider divides this voltage down to half. Depending on whether the output drives high or low, the voltag at the positive input is thus +-7.5V. The capacitor gets constantly charged and discharged from the output of the opamp through the resistor. The voltage at the capacitor on the negative input compares to this threshold voltage and inverts the signal when it exceeds the respective treshold. Since this process is endlessly repeating, the output oscillates. The frequency is dependend on the size of the capacitor and the resistance of the negative feedback resistor.
This is the breadboard version of the square wave oscillator. The output frequency should be around 50-100Hz. You can connect this to a small speaker or headphone directly. To connect it to a Hifi amplifier input, you need to convert the output voltage from around +-4V to +-1V by using a voltage divider.
Filters
- To shape the spectrum of our oscillators we will use a lowpass filter. The simplest form of a lowpass filter is the passive lowpass filter. You can view this lowpass filter as an elaborated voltage divider: the capacitor has a frequency dependent resistance (which we call an impedance). This impedance is very high for static voltages (DC) and low frequencies. The impedance goes down the higher the frequency is at its input. The higher the frequency, the lower the impedance at the capacitor and the lower will be the voltage at the capacitor. This will effectively filter out high frequencies and leave lower frequencies in the signal.
- The passive low pass filter has the same disadvantage as the voltage divider: the output cannot be loaded without changing its characteristics. To prevent this, we can just put a buffer at the output of the low pass filter.
- Still, since the resistance of our source adds to our first resistor, the cutoff point will change, when the resistance of the source changes. To mitigate this we can change the topologie of our filter like so:
- Unfortunately we can't set the cutoff frequency independently of the gain of our filter with just one resistor (e.g. a potentiometer). With another filter topology, the "bridged T low pass filter", we can tune the filter without changing its gain. To get a bridged T filter, we exchange the capacitor in the feedback loop with two capacitors in series and add a resistor.
- modifiying the capacitor and resistor values, we can use a 100k potentiometer to have a variable cutoff frequency filter
Trianlge / Saw Generator Lin Freq CV
Trianlge / Saw Generator Exp Freq CV