Docsity

Understanding Transistors: A Two-State Switch and Logic Function Implementation, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
EXPERIMENT #5
During this lab you will experiment with two different ways to control the speed of the
motors on the vehicles. One of these methods you experimented with during your lab last
week – using a variable resistor to dissipate some of the power being delivered by the battery
to slow the motors down. The second method you may already know, but not by the name of
pulse width modulation. Anyone who has applied force in short bursts of varying intervals
to control the speed of something – a toy train, a bicycle, for example, knows this method.
Summary of lab goals:
➢learn how a typical transistor – the BJT – can be used as a simple 2 state switch.
➢learn how you will be using transistors as switches to control the motors
- CURRENT AMPLIFIERS – electronically controlled switches that turn the motors on and off, but
can also regulate the amount of current delivered.
- CURRENT AMPLIFIER BRIDGE – a transistor circuit made up of 4 transistors, 2 nmos, and 2 pmos
FETs that not only switch the motors on and off, but can reverse the flow of current throught the
motors so that the they can run backwards.
➢learn how you will be using the transistors as switches to implement logic functions
- experiment with a NOR gate made of discrete components – nmos and pmos FET transistors.
- experiment with a prefabricated chip that implements the NOR logic function.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a

Partial preview of the text

Download Understanding Transistors: A Two-State Switch and Logic Function Implementation and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

EXPERIMENT

During this lab you will experiment with two different ways to control the speed of the

motors on the vehicles. One of these methods you experimented with during your lab last

week – using a variable resistor to dissipate some of the power being delivered by the battery

to slow the motors down. The second method you may already know, but not by the name of

pulse width modulation. Anyone who has applied force in short bursts of varying intervals

to control the speed of something – a toy train, a bicycle, for example, knows this method.

Summary of lab goals:

➢ learn how a typical transistor – the BJT – can be used as a simple 2 state switch.

➢ learn how you will be using transistors as switches to control the motors

  • CURRENT AMPLIFIERS – electronically controlled switches that turn the motors on and off, but can also regulate the amount of current delivered.
  • CURRENT AMPLIFIER BRIDGE – a transistor circuit made up of 4 transistors, 2 nmos, and 2 pmos FETs that not only switch the motors on and off, but can reverse the flow of current throught the motors so that the they can run backwards.

➢ learn how you will be using the transistors as switches to implement logic functions

  • experiment with a NOR gate made of discrete components – nmos and pmos FET transistors.
  • experiment with a prefabricated chip that implements the NOR logic function.

1. Draw the vehicle as shown in the right center figure with the two motors connected up

to two manual switches. Draw the figure in all 4 possible positions of the two switches

and describe what the vehicle is doing for each setting.

How do the modules that we will use provide this capability? The devices that acts as our electronic switch are transistors. The modules are actually transistors circuits whch use several transistors but to the designer - you - the module can be treated a single transistor. The block representing the electronic switch has been isolated from the drive circuit and expanded in the figure with the circuitry inside the electronic switch modeled by a single transistor.

2. Draw the vehicle as in previous part using the model above instead of the manual

switches (only one drawing is necessary). The electronic switch is connected between

the motor voltage ground at the collector and the battery ground at the emitter. The

input signal is applied to the base. To specify the signal connected to the base simply

draw a line not connected to anything, but specify the voltage levels (as either 'high' or

'low') at the two electronic switches needed to make the vehicle turn left.

3. (optional) There is another way to connect the motors to the battery through the

electronic switch. Can you find it?

A schematic of the Current Amplifier (CA) module is shown below. This circuit uses Bipolar Junction transistors The heart of the circuit is a module labeled TIP 142 whose internal circuitry is shown to the right. The TIP module has two transistors in a configuration called a Darlington pair. This is a common configuration of transistors when the load (in this case our motors) needs more current than any one transistor could handle. This module, combined with another external transistor, allows the motors to be turned on and off electronically. This is one of the modules you will use in the lab.

Current Amplifier Bridge Module

The other device that can be used to drive the car motors is called the Current Amplifier Bridge (CAB) which uses a different type of transistors - the Field Effect transistor (FET). The module that we will be using that contains the MOSFET transistors has an interesting configuration of transistors that allows the current to flow through the motor in either direction so that the motor can run either forwards or backwards. It is called an 'H-bridge' configuration. Any type of transistor could be used

  • our modules use MOSFET transistors. A typical bridge is shown in the figure below. The different transistors are turned on and off with voltages applied across the gate. These are designated in the figure below as Vswitch1, Vswitch2, Vswitch3, and Vswitch4. This bridge circuit works like the circuit on the right where the transistors have been replaced by switches. We can selectively close the switches - there are 16 different combinations but only two useful ones and a couple harmful ones that short the source to ground. Let's assume that the load is the motor of our car which is run from the voltage Vload. The four switches (transistors) connect the motor to this voltage in 16 different ways. The table below enumerates all 16 possibilties. A designation of '1' in the column of the Vswitch voltages indicates that the voltage will turn ON the appropriate transistor and the current will flow from the drain to the source or the switch in the other diagram is CLOSED. A zero indicates that the transistor is OFF or equivalently that the switch is OPEN. If the current flows from left to right - this direction is given the designation 'forward'.

The second part of your lab investigates these states and how to optimize the external circuitry connected to the transistor to optimize the switching performance. A more commonly used technology is CMOS (complementary metal-oxide-semiconductor) since components fabricated using field effect transistors with an insulated gate take almost no energy to switch between states and none once the state has been established. The last part of your lab is used to investigate how to use these FETs, both n- and p-type, to implement logic functions rather than the BJTs since TTL technology is becoming obsolete. In lecture you have learned some logical functions including NOT, AND, OR, NAND, NOR, XOR to name a few. These are abstract concepts involving the different ways of combining two states using Boolean algebra. These two states we usually call 0 and 1. In this lab we will investigate how to map these abstract concepts onto hardware. Each of the states 0 and 1 will map onto one of two distinct states of the circuit usually dintinguished by voltage levels, with lower voltages representing the 0 state and higher voltages representing the 1 state. In TTL logic, the gates accept any voltage (within reason) but divide the voltage range into two ranges, with Vin < ~.8V representing a 0 and all higher voltages represent a 1. The output voltages of TTL usually give 0V for a 0 and 5V for a 1, but this depends on what is connected to its inputs and the exact value of the voltage applied to the input power. As an example, lets look at a bipolar junction transistor, connected in the common emitter configurattion. Hopefully this example will demystify how the different states come about and how we use them to represent logic levels.

0 state -

The input circuit consists of a source labeled Vin and a resistor connected to the base of the transistor. If Vin is very small then the transistor is in the OFF state, because the voltage across the base-emitter junction is not sufficient to forward bias the base-emitter junction thereby turning on the transistor, putting the system into the ACTIVE state. The highlighted portion shows that when the transistor is OFF then no current flows from the collector to the emitter and therefore the output circuit sees an open across the collector-emitter junction so this output voltage Vce is just the voltage Vcc. In this case as long as Vbe is less that Vbeon the turn-on voltage of the transistor, the output voltage (Vce) is unchanging and is equal to the voltage Vcc.

1 state -

The next figure (below) represents the transistor circuit when the transistor in the SATURATED state. Now Vin is large enough so that Vbe > > Vbeon and large enough so that the input base current Ib is greater than that needed to drive the transistor into saturation. The output circuit now looks like a simple resistor circuit where the output Vce is constant at Vcesat which is usually quite small. A graph of how the output voltage Vce depends upon the input voltage Vin helps to see how useful the

transistor might be as a two state device. In the graph below we can see that for two ranges of Vin the transistor output is constant and easily distinguished from each other. This suggests that logic gates might be built from these devices. The middle region, where the transistor is in the active state

7. Draw the above plot and label the voltages V1, V2, V3, and V4 and label the three

different regions stating the mode that the transistor is in for each (0<V<V1, V1<V<V2,

and V>V2 are the voltage ranges of each mode).

8. If we were to call the collector to emitter voltage (Vce) the output voltage (Vout) what

logic function might this simple circuit represent?

9. A potential drawback of using the transistor this way is that for intermediate voltages

between V 1 and V 2 the output state is indeterminant - neither a high voltage like V 4 or a

low voltage like V 3. Lets see if we can make this a better logic gate by making the

region of indeterminant values as small as possible. What transistor parameters does

V 1 depend upon (Vbeon, β, Vcesat)? What transistor parameters does V 2 depend upon

(Vbeon, β, Vcesat)? How would you move V 1 and V 2 closer together?

10. Suppose we designed a circuit to emulate a NOT, gate what would the output of the

NOT gate look like if we input a sine wave (as shown

below in the figure). A perfect NOT gate would

emulate our abstract idea of a NOT gate so that only

two possible voltage level exist. This gate would

respond by outputing a square wave. Draw this square

wave (assuming the threshold dividing the 0 and 1 state

is 2V) on top of the sine wave below. Sketch what you

think might be the actual signal if we input this sine

wave into the transistor circuit above assuming that

Vbeon=.6V, β=50, and Vcesat=.2V.

schematic shows. Is your motor running (the answer should be yes)?

2. With the motor running probe the CA module with the multimeter to measure the

voltage between the collecter and the emitter, and the base and emitter. What are these

voltages?

3. By connecting pin 1 to the ground the motor should be turned off. This is what the

navigation logic that you will be designing does to the CA to turn it off. Remeasure the

voltage across the collecter and emitter with the module in the off state and record the

value.

4. Explain why the voltages are different.

5. Reconnect pin 1 to the power supply initially delivering 5V. The motor should be

running as before. We will be using this module mostly as a switch, but it is capable of

more complex behavior which you can see by slowly decreasing the voltage - you

should note a change in the speed of the motor. What happens to the speed of the

motor? A simple switch would not have any effect on the motor speed ,explain why

this module does.

Current Amplifier Bridge/MPV The other module that you can use to run the vehicle motors is called the Current Amplifier Bridge (though it really does not amplify the current - so maybe we should just call it the MOSFET bridge module). The heart of this module is the MPM3004 which contains four transistors connected to form a transistor bridge. The configuration of the transistor is more sophisticated than that discussed in the prelab since it precludes any possibilty of putting the transistors in destructive states. A schematic is shown below. As you can see, as discussed in the prelab when two opposing transistors are ON then the current flows one way through the load connected to the bridge (in this case your motor). When

the other pair is ON then the current reverses. The destructive states are eliminated because the design uses a combination of N-channel and P-channel devices so that when on pair is ON the other pair must be OFF. The CAB module incorportates the H-bridge module in a circuit with external logic that chooses between running forward or backwards depending on signals provided by the navigation circuit that you design. For today you will use the voltage and ground provided by the power supply to emulate these signals. Connect the other motor of the vehicle to this module as shown in the figure above - between pins 11/12 and 5/6. Pin 11 and 12 (and 5 and 6) must be connected together - this designation does not mean 11 OR 12 as for some of the previous modules. The positive terminal of the motor voltage Vmotor is connected to pins 9 and 10 of the module and the negative terminal to pins 7 and 8. The module is now ready to drive the motors depending on the signals applied to pins 1, 2, 3, and 4. Eventually, these signals will be provided by the navigation circuit that you will design if you choose to use the CAB module. For now these signal will be provided by the power supply. The logic voltage provided by the power supply set to 5V is connected to pins 16 (the positive terminal) and 15 (the negative terminal). Ignore pins 13 and 14. Pin 1, 2, 3, 4 provide the logic to run the motor forwards, backwards, and still. We are connecting one of them to ground and 2 and 3 together because for this lab we are using a simplified subset of all possible combinations. Let's see what happens when we vary the two inputs - that to pin 1 and to the pin 2/3 combinations.

6. Connect pin 1 to the negative terminal of the logic voltage and pin 2/3 to the negative

terminal. What happens to the motor?

7. Connect pin 1 to the negative terminal of the logic voltage and pin 2/3 to the positive

terminal. What happens?

8. Connect pin 1 to the positive terminal of the logic voltage and pin 2/3 to the positive

terminal. What happens?

9. Connect pin 1 to the positive terminal of the logic voltage and pin 2/3 to the negative

terminal. What happens?