For the love of circuits

Hamish Sams

Established July 2020

Abstract

This is a website dedicated to simpifying and explaining the operation of common building block circuits.

Contents

1 Passive Circuits
2 Active Circuits
3 Opamp Circuits

1   Passive Circuits

A collection of key passive circuits.

1.1   Potential Divider

Figure 1:Simple potential divider circuit

Summing currents Ir1=Ir2+Io vivoR1=voR2+Io Rearrange for vo=R2viIoR1R2R1+R2 Assuming Io is negligible vovi=R2R1+R2 This derevation is common place and usually assumed in many calculations.

1.2   First-Order Standard Form

τ=1ω0 and s=jω
Low-pass vovi=k11+sτ=k11+jωω0 High-pass vovi=ksτ1+sτ=kjωω01+jωω0 Lead-Lag vovi=k1+sτ11+sτ2=k1+jωω11+jωω2

1.3   Second-Order Standard Form

Low-pass vovi=k11+sτQ+s2τ2=k11+jωQω0ω2ω02 High-pass vovi=ks2τ21+sτQ+s2τ2=kω2ω021+jωQω0ω2ω02 Band-pass vovi=ksτQ1+sτQ+s2τ2=kjωQω01+jωQω0ω2ω02 Band-stop vovi=k1s2τ21+sτQ+s2τ2=k1+ωω021+jωQω0ω2ω02

1.4   Low-pass C

Figure 2:First order low pass capacitor circuit

Ir1=Ic1+Io vivoR1=vo1jωC1+Io Rearrange for vo=viIoR11+jωC1R1 Assuming Io is negligible vovi=11+jωC1R1 Convert into first-order Standard form vovi=111+jω1C1R1

1.5   Low-pass L

Figure 3:First order low pass inductor circuit

Ir1=Il1+Io vivoR1=vojωL1+Io Rearrange for vo=vijωL1IoR1jωL1R1+jωL1 Assuming Io is negligible vovi=jωL1R1+jωL1 Convert into first-order Standard form vovi=jωL1R111+jωR1L1

1.6   Low-pass LC

Figure 4:Second order low pass LC circuit

Il1=Ic1+Io vivojωL1=vo1jωC1+Io Rearrange for vo=viIojωL11ω2C1L1 Assuming Io is negligible vovi=11ω2C1L1 Convert into second-order Standard form vovi=111ω21C1L1

1.7   High-pass C

Figure 5:First order high pass capacitor circuit

Ic1=Ir1+Io vivo1jωC1=voR1+Io Rearrange for vo=vijωC1R1IoR11+jωC1R1 Assuming Io is negligible vovi=vijωC1R11+jωC1R1 Convert into first-order Standard form vovi=1jω1C1R11+jω1C1R1

1.8   High-pass L

Figure 6:First order high pass inductor circuit

Ir1=Il1+Io vivoR1=vojωL1+Io Rearrange for vo=vijωL1jIoR1ωL1R1+jωL1 Assuming Io is negligible vovi=jωL1R1+jωL1 Convert into first-order Standard form vovi=1jωR1L11+jωR1L1

1.9   High-pass LC

Figure 7:Second order high pass LC circuit

Ic1=Il1+Io vivo1jωC1=vojωL1+Io Rearrange for vo=viω2C1L1+IojωL11ω2C1L1 Assuming Io is negligible vovi=ω2C1L11ω2C1L1 Convert into second-order Standard form vovi=1ω21C1L11ω21C1L1

1.10   Wheatstone Bridge

Figure 8:Wheatstone bridge circuit

v+=viR3R3+R1 v=viR4R4+R2 vo=v+v=vi(R3R3+R1R4R4+R2) vovi=R3R3+R1R4R4+R2 If R3=R1 and R4=R2 vovi=R12R1R22R2=0 If R3=R1+ΔR and R4=R2 vovi=R1+ΔR2R1+ΔR12=ΔR4R1+2ΔR

2   Active Circuits

A collection of key active circuits.

2.1   Simplified Hybrid-Pi

Figure 9:Simplified hybrid-pi equivalent NPN

The Hybrid-Pi circuit is the most common small signal transistor eqivalent circuit. The model assumes the transistor is correctly biased in the linear region and working with low frequency signals. When these assumptions are acceptable the hybrid-pi model is very accurate. For circuits where these assumptions cannot be made the full hybrid-pi model can be used.
Transistors are often described as transconductance amplifiers, that is because for a voltage on the base vbe a current is generated through the collector ic. This gain is therefore gm=icvbe. As the input resistance of the transistor is purely resistive in the model the transconductance can be described as a current gain aka for an input ib the collector current is ic this current gain is given the value β=icib. These equations can be seen in the hybrid-pi model on the current source.

2.2   Emitter follower

Figure 10:Basic emitter follower circuit

Figure 11:Emitter follower equivaltent hybrid-pi circuit

Voltage over Re vo=ieRe ic=βib ie=ib+ic=ib(β+1) vo=(β+1)ibRe Summing ve and vbe for vi vi=vbe+ve=ibRπ+(β+1)ibRe vovi=(β+1)ReRπ+(β+1)Re

2.3   Common Emitter

Figure 12:Basic common emitter circuit

Figure 13:Common emitter equivalent hybrid-pi circuit

For small signal analysis sources are shorted v+=0,looking at vc vo=vc=icRc ic=gmvbe=gmvi vo=gmviRc Rearranged vovi=gmRc

2.4   Common Emitter with Degeneration

Figure 14:Basic common emitter circuit with degeneration

Figure 15:Common emitter with degeneration equivalent hybrid-pi circuit

For small signal analysis sources are shorted v+=0,looking at vc vo=vc=icRc ic=βib vo=βibRc Summing ve and vbe for vi vi=ve+vbe=ieRe+ibRπ=ib(β+1)Re+ibRπ=ib((β+1)Re+Rπ) Subsituting and re=arranging vovi=βRc(β+1)Re+Rπ

2.5   Common Base Common base circuits are generally used as a current buffer given the 1:1 input to output current.

Figure 16:Basic common base circuit

Figure 17:Common base equivalent hybrid-pi circuit

vbe=vi For small signal analysis sources are shorted v+=0,looking at vc vo=vc=icRc ic=gm(vi) Substituting vo=gmviRc Rearranging vovi=gmRc To derive the current characteristics instead look at an input of ii ibe+ii+ic=0 ii=ibic=0 Where βib=ic ib=iiβ+1 ic=ibβ=iiββ+1ii icii1 Showing a current close to ib out from ic

3   Opamp Circuits

A collection of key opamp circuits.

3.1   Opamp

Figure 18:Ideal opamp symbol.

For an input of v+ and v the output vo is the difference between the inputs multiplied by an open loop gain Av, usually in the range of hundreds of thousands. This simplification can be represented as the equation below. vo=Av(v+v) Opamp calculations commonly assume Av= which, when in negative feedback leads to the assumption v=v+. It is also commonly assumed opamps take no current on the input, like all assumptions this is valid until this current draw effects the voltage at the input.

3.2   Voltage Follower

Figure 19:Opamp voltage follower

Given vo=Av(v+v) v=vo v+=vi Subsitute in vo=Av(vivo) Rearrange for vovi=AvAv+1 Assuming Av>>1 vovi=1

3.3   Inverting Amplifier

Figure 20:Opamp inverting amplifier

Given v+=0 and vo=Av(v+v). vo=Avv Assuming no current into the opamp and treating R1 and R2 as a potential divider. (vovi)R1R1+R2+vi=v Subsituting for (vovi)R1R1+R2+vi=voAv vo(R1R1+R2+1Av)=vi(R1R1+R21) Rearranging for vovi=R1R1+R21R1R1+R2+1Av=R2R1+R1+R2Av Assuming assuming Av= and the opamp isn't saturated vovi=R2R1

3.4   Schmitt Trigger

Figure 21:Opamp schmitt trigger

In a Schmitt Trigger the op-amp is setup in positive feedback meaning for an increase in voltage at v+ will increase vo and visa versa and therefore v+ leading to a system always in saturation. Assuming vo is currently saturated to the positive rail vo=vs and treating R1 and R2 as a potential divider. v+=(vsvi)R1R1+R2+vi To stop the system being in positive saturation v+<=0 Substituting in for 0=(vsvi)R1R1+R2+vi Rearranging for vi=vsR1R2 This can be proven in the other direction similarly giving vi=vsR1R2 Giving a direction based resonse as seen below.

Figure 22:Schmitt Trigger response

3.5   Complex Inverting Amplifier

Figure 23:Opamp complex inverting amplifier

Similar to a typical inverting amplifier but with a complex impedances z1 and z2 instead of R1 and R2.
Given v+=0 and vo=Av(v+v). vo=Avv Assuming no current into the opamp and treating z1 and z2 as a complex potential divider. (vovi)z1z1+z2+vi=v Subsituting for (vovi)z1z1+z2+vi=voAv vo(z1z1+z2+1Av)=vi(z1z1+z21) Rearranging for vovi=z1z1+z21z1z1+z2+1Av=z2z1+z1+z2Av Assuming assuming Av= and the opamp isn't saturated vovi=z2z1

3.6   Noninverting Amplifier

Figure 24:Opamp non-inverting amplifier

Assuming no current into the opamp i1=i2 v=voR2R1+R2 Given vo=Av(v+v) Substituing in for vo=Av(vivoR2R1+R2) Rearranging for vovi=11Av+R2R1+R2 Assuming assuming Av= and the opamp isn't saturated vovi=1+R1R2

3.7   Complex Noninverting Amplifier

Figure 25:Opamp complex non-inverting amplifier

Similar to a typical noninverting amplifier but with a complex impedances z1 and z2 instead of R1 and R2.
Assuming no current into the opamp i1=i2 v=voz2z1+z2 Given vo=Av(v+v) Substituing in for vo=Av(vivoz2z1+z2) Rearranging for vovi=11Av+z2z1+z2 Assuming assuming Av= and the opamp isn't saturated vovi=1+z1z2

3.8   Integrator

Figure 26:Opamp integrator

It is possible to derive the integrating action using the equations already derived in the complex inverting amplifier but will be explained from scratch here. Assuming no current into the opamp ir+ic=0 Using I=Cdvdt Ic=C1dvodvdt=vivR1 Assuming Av= then v=v+=0 C1dvodt=viR1 Integrate for 0 to t where the opamp never saturates and R1 and C1 are constant vo=1R1C10tvidt

3.9   Differentiator

Figure 27:Opamp differentiator

It is possible to derive the integrating action using the equations already derived in the complex inverting amplifier but will be explained from scratch here. Assuming no current into the opamp ir+ic=0 Using I=Cdvdt Ic=C1dvidvdt=vovR1 Assuming Av= then v=v+=0 C1dvidt=voR1 Rearrange for vo=R1C1dvidt

3.10   Summing Inverting Amplifier

Figure 28:Opamp summing inverting amplifier

Assuming no current into the opamp i1+i2+i3=i4 vi1vR1+vi2vR2+vi3vR3=vovR4 vi1R2R3R4+vi2R1R3R4+vi3R1R2R4+voR1R2R3R2R3R4+R1R3R4+R1R2R4+R1R2R3=v vo=Avvi1R2R3R4+vi2R1R3R4+vi3R1R2R4R2R3R4+R1R3R4+R1R2R4+R1R2R31+AvR1R2R3R2R3R4+R1R3R4+R1R2R4+R1R2R3 Assuming AvR1R2R3R2R3R4+R1R3R4+R1R2R4+R1R2R3>>1 vo=vi1R2R3R4+vi2R1R3R4+vi3R1R2R4R1R2R3 if R1=R2=R3=Ri vo=R4Ri(vi1+vi3+vi3)

3.11   Summing Non-Inverting Amplifier

Figure 29:Opamp summing non-inverting amplifier

Assuming no current into the opamp i1+i2+i3=0 vi1v+R1+vi2v+R2+vi3v+R3=0 if R1=R2=R3=Ri vi1+vi2+vi33=v+ looking at v and assuming no current into the opamp v=voR5R4+R5 Subsitute into vo=Av(v+v) vo=Av(vi1+vi2+vi33voR5R4+R5) vo=Av(vi1+vi2+vi33)(1+AvR5R4+R5) Assuming AvR5R4+R5>>1 vo=R4+R5R5(vi1+vi2+vi33)

3.12   Differential Amplifier

Figure 30:Opamp differential amplifier

Looking at v and assuming no current into the opamp. i1+i2=0 vi1vR1+vovR2=0 R2vi1+R1vo=v(R1+R2) R2vi1+R1voR1+R2=v Looking at v+ and assuming no current into the opamp. v+=vi2R4R3+R4 Subsitute into vo=Av(v+v) vo=Av(vi2R4R3+R4R2vi1+R1voR1+R2) vo=Av(vi2R4R3+R4R2vi1R1+R2)1+AvR1R1+R2 Assuming AvR1(R1+R2)>>1 vo=vi2R4R3+R4R2vi1R1+R2R1R1+R2 vo=vi2R4(R1+R2)R1(R3+R4)R2vi1R1 if R1=R3 and R2=R4 vo=R2R1(vi2vi1)