Wiki

This version is outdated by a newer approved version.DiffThis version (24 May 2015 21:22) was approved by Doug Mercer.

This is an old revision of the document!


Activity 4S: BJT device as a switch

Objective:

A bipolar junction transistor (BJT) can be used in many circuit configurations such as an amplifier, oscillator, filter, rectifier or just used as an on-off switch. If the transistor is biased into the linear region, it will operate as an amplifier or other linear circuit, if biased alternately in the saturation and cut-off regions, then it is being used as a switch, allowing current to flow or not to flow in other parts of the circuit. This lab activity describes the BJT when operated as a switch.

Notes:

As in all the ALM labs we use the following terminology when referring to the connections to the M1000 connector and configuring the hardware. The green shaded rectangles indicate connections to the M1000 analog I/O connector. The analog I/O channel pins are referred to as CA and CB. When configured to force voltage / measure current -V is added as in CA-V or when configured to force current / measure voltage -I is added as in CA-I. When a channel is configured in the high impedance mode to only measure voltage -H is added as CA-H.

Scope traces are similarly referred to by channel and voltage / current. Such as CA-V , CB-V for the voltage waveforms and CA-I , CB-I for the current waveforms.

Background:

Switching circuits are significantly different than linear circuits. They are also easier to understand. Before investigating more complex circuits, we will begin by introducing discrete solid-state switching circuits: those built around BJTs.

A switch consists of a BJT transistor that is alternately driven between the saturation and cutoff regions. A simple version of the switch is shown in figure 1. When the input equals -Vin , the base-emitter junction is reverse biased or off so no current flows in the collector. This is illustrated by the red load line shown in the figure. When the BJT is in cutoff, the circuit (ideally) has the following values:

V_CE = V_CC and I_C = 0 A

This state is similar to an open switch.

When the input equals +Vin, the transistor is driven into saturation and the following conditions occur:

V_CE ˜ 0V and I_Csat = V_CC/R_C

This state is similar to a closed switch connecting the bottom of RC to ground.

Figure 1 NPN BJT switch and its load line.

The characteristics for a BJT switch assume that:

  1. -Vin is low enough to drive the transistor into cutoff.
  2. +Vin must produce enough base current through RB to drive the transistor into saturation.
  3. The transistor is an ideal component.

These conditions can be assured by designing the circuit so that:

  1. -Vin = VBE
  2. +Vin = VBE + IBRB (VCC is a good maximum)
  3. IB > ICsat

Condition 1 guarantees that the circuit is driven into the cutoff region by the input. Conditions 2 and 3 assure that the transistor will be driven into the saturation region. An actual BJT switch differs from the ideal switch in several aspects. In practice, even in cutoff there is some small leakage current through the transistor. Also, in saturation, there is always some voltage dropped across the transistor's internal resistance. Typically, this will be between 0.2 and 0.4 V in saturation depending on the collector current and size of the device. These variations from the ideal are generally minor with a properly sized device, so we can assume near ideal conditions when analyzing or designing a BJT switch circuit.

Materials:

ADALM1000 Hardware module
Solder-less Breadboard
1 - 6.8KΩ Resistor (RB)
1 - 100Ω Resistor (RC)
1 - 5mm LED (any color)
1 - small signal NPN transistor (2N3904)

Directions:

One common application for a BJT (or any other) switch is to drive an LED. An LED driver is shown in figure 2. The driver shown in this figure is used to couple a low current part of the circuit to a relatively high current device (the LED). When the output from the low current circuit is low (0 V), the transistor is in cutoff and the LED is off. When the output from the low current circuit goes high (+3 V), the transistor is driven into saturation and the LED lights. The driver is used because the low-current part of the circuit may not have the current capability to supply the 20 mA (typical) required to light the LED to full brightness.

Build the LED switch circuit shown in figure 2 on your solder-less breadboard. RC serves to limit the current that flows in the LED from the +5 V power supply. The switch is controlled by the channel A voltage output from the I/O connector. Scope channel B will display the voltage across the switch transistor Q1 (VCE) or the voltage at the LED as indicated by the green arrows.

Figure 2, NPN LED switch

Hardware Setup:

The CA generator should be configured for a 100 Hz square wave with a 3 volt Max and 0 volt Min. Scope channel B is connected to measure the voltage across the transistor or the at the top of the LED. The current flowing through the transistor can be calculated as the voltage difference between the +5 V supply and CB-V divided by the resistor value (100Ω). The Channel A current trace measures the current in RB.

Procedure:

Save the voltage trace across the transistor collector-emitter ( channel B dashed green line ) and at the LED ( channel B solid green line ) and include them in your lab write-up.

Questions:

How much current is flowing in resistors RC and RB when the LED is on and when the LED is off?

Calculate the ß when Q1 is saturated. How does this value compare to the spec listed in the datasheet?

For Further Reading:

http://en.wikipedia.org/wiki/Transistor
https://en.wikipedia.org/wiki/Light-emitting_diode
https://en.wikipedia.org/wiki/LED_circuit

Return to ALM Lab Activity Table of Contents.

university/courses/alm1k/alm-lab-4s.1428882649.txt.gz · Last modified: 13 Apr 2015 01:50 by Doug Mercer