Aim: To operate the BJT as an amplifier in the common emitter configuration.
The input and output waveforms are traced on the oscilloscope using two channels. The gain can be calculated directly using the measure gain button. This experiment can be modified to calculate the bandwidth of the amplifier by varying the frequency of the input waveform and noting the corresponding gain.
Resulting Data:
The same can also be achieved using code
from SEEL import interface
I=interface.connect()
#fetch 5000 points each from CH1, CH2 with 2uS between each
x,y1,y2 = I.capture2(5000,2)
from SEEL.analyticsClass import analytics
math = analytics()
amp1,freq,phase,offset = math.sineFit(x,y1) #Calculate parameters of input waveform
amp2,freq2,phase2,offset2 = math.sineFit(x,y2) #calculate parameters of output
print (amp1,amp2,'gain = %.3e'%(amp2/amp1)) #calculate and print gain
from pylab import *
plot(x,y1)
plot(x,y2)
show()
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.