.. _transistor: *************** BJT Transistors *************** Objectives ============== This experiment is designed to introduce real world characteristics of bipolar junction transistors (BJT) and a few of their applications. Specifically, #. We will measure forced base current and forced base-emitter voltage IC-VCE characteristics #. We will construct a bipolar transistor inverter circuit to better understand the concepts of voltage and current saturation #. We will learn how to use a bipolar transistor to turn on a large current with a small voltage or current #. We will learn how to make voltage transfer curve (VTC) measurements, which is an important technique for designing a wide variaty of analog and digital circuits, including amplifiers and logic gates #. We will gain more experience with the ELVIS II+ breadboarding system #. We will continue to develop professional lab skills and written communication skills Required SFPs and Customized Programs ===================================== #. 3-wire I-V analyzer #. Digital Multimeter #. Digital Writer #. Signal Express program for base-collector current transfer characteristics #. Labview vi program provided for forced Vbe measurements Required Components ==================== #. 2N3904 NPN Transistor :download:`datasheet <./datasheet/transistor/2N3904.pdf>`. #. 510 :math:`\Omega` resistor #. 1 :math:`k\Omega` resistor #. 10 :math:`k\Omega` resistor #. 330 :math:`\Omega` resistor #. 4558 op-amp :download:`datasheet <./datasheet/transistor/rc4558.pdf>`. #. Your favorite color LED #. 5V DC fan Introduction ============== A thorough treatment of BJTs can be found in Chapter 5 of the ELEC 2210 textbook, *Microelectronics Circuit Design* by R.C. Jaeger. The acronym BJT stands for Bipolar Junction Transistor. BJTs can be viewed as a device that controls an output current, the collector current typically, with either an input current or voltage. The experiments here are designed to help you understand fundamental transistor current-voltage (I-V) characteristics in the real world, as well as key concepts behind the use of a bipolar transistor in amplifiers and switches. We will use 2N3904, a general purpose npn BJT with a maximum working current of 200 mA and a maximum power dissipation of 625 mW. The C, B, and E terminals can be identified in :num:`figure #fig-bjt-terminals`. .. _fig-bjt-terminals: .. figure:: images/bjt/bjt-terminals.jpg :scale: 100 % :alt: BJT terminals :align: center BJT terminals. The output characteristics of a BJT with :math:`\beta`\ Fo = 25 and VA = 8 are shown in :num:`figure #fig-output-characteristics`. .. _fig-output-characteristics: .. figure:: images/bjt/output-characteristics.png :scale: 100 % :alt: NPN output characteristics :align: center NPN output characteristics. For each curve, the forward active region is the region to the right of the knee, i.e., the nearly flat part. The region to the left of the knee is the saturation region. For switching applications, the BJT is most like a closed switch when it is in the saturation region, where VCE is small. It is most like an open switch when it is in cutoff, with iC = 0. A BJT is often used as a current-controlled switch, as illustrated in :num:`figure #fig-bjt-as-switch`. .. _fig-bjt-as-switch: .. figure:: images/bjt/bjt-as-switch.png :scale: 100 % :alt: NPN as a switch :align: center NPN used as a switch. For most switching applications, the BJT is operated in the saturation region when it is conducting current. In this region, the voltage drop across the BJT collector-emitter terminals is small, as desired. The amount of load current in this case is determined by the value of VCC and the load characteristics, and is essentially independent of input current or the BJT characteristics. Pre-Lab ======= #. Obtain the data sheet for the 2N3904 :download:`here <./datasheet/transistor/2N3904.pdf>`, and use it to find the range of forward current gain (:math:`\beta`\ Fo, also known as hFE). Learn how to tell apart the emitter, base, and collector. Draw a 2N3904 with the terminals labeled. #. Simulate the circuit shown below in Multisim. Select DC Sweep as the type of analysis. Source 1 is the voltage source. Sweep from 0 volts to 1 volt in .001 volt increments. Check the box labeled "Use source 2" to do a secondary sweep. Source 2 is the current source. Sweep from 0 amps to .00001 amps in .000001 amp increments. The output is the collector current. It is the variable called I(Q1[IC]). .. _fig-prelab: .. figure:: images/bjt/prelab.png :scale: 100 % :alt: prelab :align: center Prelab. The output characteristics of a similar circuit are shown below in :num:`figure #fig-prelab-results`. .. _fig-prelab-results: .. figure:: images/bjt/prelab-results.png :scale: 100 % :alt: prelab graph :align: center Simulated output characteristics of a 2N3904. #. In which region should the BJT be operating when it is a "closed switch?" Why? In which region should it be operating when it is an "open switch?" Why? Lab Exercise ============ **There are four parts. Have your GTA sign off on each part before proceeding to the next part.** Forced IB Output Characteristics -------------------------------------- #. Turn on both the ELVIS base and the power to the breadboard. #. Open the ELVIS instrument launcher via Start > Programs > National Instruments > NI ELVISmx for NI ELVIS & NI myDAQ > NI ELVISmx Instrument Launcher .. _fig-start-menu2: .. figure:: images/diode/start-menu.png :scale: 100 % :alt: ELVIS start menu location :align: center Instrument Launcher location. #. Open the 3-wire current voltage analyzer soft front panel. #. Carefully measure the forced IB output characteristics of the 2N3904 NPN transistor as follows. Set the Vc step to .05 volts and set number of curves to 5 as shown in :num:`figure #fig-bjt-iv`. Connect the collector to the DUT+ terminal (pin 29 on the lower left terminal strip), connect the emitter to the DUT- terminal, and connect the base to the BASE terminal shown in :num:`figure #fig-bjt-iv`. When looking at the flat side of the transistor, the leads are emitter, base, and collector from left to right, as shown above in :num:`figure #fig-bjt-terminals`. .. _fig-bjt-iv: .. figure:: images/bjt/bjt-iv.png :scale: 100 % :alt: 2N3904 3-wire analyzer :align: center Curve tracer settings for 2N3904 bjt. .. _fig-three-wire-location: .. figure:: images/bjt/three-wire-location.png :scale: 100 % :alt: left terminal strip :align: center Location of 3-wire analyzer terminals. #. Click run. The curve tracer should slowly draw the plot. #. Click log to save the data for later analysis. Save a screen shot also. Using Excel or Matlab, plot :math:`\beta` as a function of VCE for IB = 30 uA. Identify the saturation region and forward active regions from your screenshot. Forced VBE Output Characteristics ------------------------------------ We will now measure how IC changes with VCE for forced base-emitter voltages. The analog outputs will be used to set the base and collector voltages, while the collector current is measured with the ELVIS multimeter. Because the analog outputs have a very small current capacity, two non-inverting unity gain op-amps will be used. #. Build the circuit shown in :num:`figure #fig-forced-vbe-schematic`. Only one RC4558 op-amp is required; there are two amplifiers on each chip. Connect the non-inverting inputs to the ELVIS analog outputs (pins 31 and 32) as shown. .. _fig-forced-vbe-schematic: .. figure:: images/bjt/forced-vbe-schematic.png :scale: 100 % :alt: forced-vbe-schematic :align: center Schematic for measuring forced Vbe characteristics. :num:`Figure #fig-op-amp-pinout` shows the outline of a 4558 op-amp with the pins labeled. .. _fig-op-amp-pinout: .. figure:: images/bjt/op-amp-pinout.png :scale: 100 % :alt: op-amp-pinout :align: center 4558 pinout. #. Download the LabVIEW program :download:`here <./customprograms-auto-dev-name/bjt/bjt-curve-tracer2.vi>`. #. Use the following settings as shown in :num:`figure #fig-bjt-vi-program`. * vbe start = .65 volts * vbe stop = .75 volts * no. of vbe steps = 6 * vce start = 0 volts * vce stop = 1 volt * nsteps = 30 * Current Limit = 0.040 Amps .. _fig-bjt-vi-program: .. figure:: images/bjt/bjt-vi-program.png :scale: 100 % :alt: vi program :align: center Curve tracer settings for 2N3904 bjt. #. Save a screenshot and identify the forward-active and saturation regions. NPN Transistor Switching Characteristics ---------------------------------------------- A widely used technique in understanding circuit operation is to sweep an input or source voltage, and observe how an output voltage of interest responds. In circuit simulation, this is done using a DC voltage sweep analysis. The result is a voltage transfer curve (VTC). VTCs are useful in analyzing a wide range of analog and digital circuits. Here we will use the analog output AO0 to provide a programmable input voltage, and use AI0 to experimentally measure the output voltage of a NPN transistor switching circuit. The circuit here is essentially a BJT inverter, which can also be used as an amplifier when bias point is set to the region where the output voltage changes fastest with the input voltage. #. Construct the circuit shown in :num:`figure #fig-circuit-three`. The +5V terminal is the bottom pin on the lower left terminal strip. .. _fig-circuit-three: .. figure:: images/bjt/bjt-inverter.png :scale: 100 % :alt: circuit three :align: center An NPN transistor switching circuit. #. Connect AO0 to the input, AI0+ to the collector, which is the output, and AI0- to ground. #. Download the LabVIEW program :download:`here <./customprograms-auto-dev-name/mosfet/MOSFET-vtc.vi>`. #. Change the number of steps to 60 or 100. Click run. You should see a graph similar to the one in :num:`figure #fig-signalexpress`. Save a screenshot. .. _fig-signalexpress: .. figure:: images/bjt/VCE_step3.png :scale: 100 % :alt: SignalExpress :align: center BJT switching circuit VTC. #. Reconnect AI0+ and AI0- across the collector load resistor. Re-run the program. Save a screenshot. Right click on the graph and export the data for later analysis. #. Reconnect AI0+ and AI0- across the resistor in series with the base. Re-run the program, and save a screenshot. This data can be used later to calculate the base current. #. Reconnect AI0+ and AI0- across the base and emitter. Re-run the program, and save a screenshot. You can modify the sweep step if needed. .. topic:: What to do in your lab report? Discuss, at what Vin the output voltage starts to drop appreciably? How does this compare to 0.7V, the turn on voltage of a Si PN junction? Recall that the base-emitter junction is essentially a PN junction, only the electron current gets transported to the collector. Identify the 3 distinct regions of operation (cutoff, forward active, reverse active or saturation) on the Vout-Vin curve. Plot IC and IB versus Vin. Explain how beta, the ratio of IC/IB, changes with Vin. Transistor as a Switch ------------------------- Here we use the transistor as a switch to turn on and off a load, which can be an LED, a fan or a speaker. A low input voltage or current turns the collector current off. A high input voltage or base current turns the transistor on. The natural current amplifying ability of the transistor allows us to switch on and off a much larger current using a source that has limited current drive capability, e.g. the output of a digital chip. We will mimic the output of a digital chip here with the digital writer. Transistors can be used as switches when we want to connect a load to an integrated circuit that the ic cannot drive. Here the transistor is used as an electronic relay. Another way to think of it is that the transistor is used to amplify the chip's limited current output to power a much larger load. In this lab, a NPN transistor will be used to drive a fan. The transistor itself will be controlled by the ELVIS digital writer, which would not normally be able to power a fan. #. Construct the circuit shown in :num:`figure #fig-circuit-four`. The digital I/O pins are on the top right terminal strip. Use DIO 0 (pin 1). To use the multimeter to measure current, the COM and A jacks must be used, not the V :math:`\Omega` ->|- jack as used earlier. Also note that the ammeter must be connected in series with the circuit. .. _fig-circuit-four: .. figure:: images/bjt/circuit-four.png :scale: 100 % :alt: circuit four :align: center Circuit connections for demonstrating BJT as a switch. #. Open the Digital Multimeter, select DC Current, and click run as shown in :num:`figure #fig-ampmeter`. .. _fig-ampmeter: .. figure:: images/bjt/ampmeter.png :scale: 100 % :alt: ampmeter :align: center Digital Multimeter. #. Open the Digital Writer, click run, and toggle the least significant bit (right switch). .. _fig-digital-writer: .. figure:: images/bjt/digital-writer.png :scale: 100 % :alt: Digital Writer :align: center Digital Writer. #. Measure and record in a table the values of VCE, VBE, VBC, IB and IC when the LED is on and when it is off. In order to determine IB, measure the voltage drop across RB using either the Fluke DMM or the ELVIS DMM, and use Ohm's law to calculate the base current. If the onboard voltmeter is used it will be necessary to disconnect the current meter from the collector. Can you confirm that the BJT is in saturation when the LED is on, and in cutoff when the LED is off? (Hint: In saturation, both junctions should be forward biased. In cutoff, both junctions should be reverse biased.) #. Replace Rb with a 1 :math:`k\Omega` resistor. Replace the LED and 330 ohm resistor with a fan and repeat. Observe the fan polarity (black wire should be connected to the collector of the BJT, red to the DMM). Measure and record VCE, VBE, VBC, IB and IC when the fan is on and when it is off. Does the transistor still saturate when the fan is on?