H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant...

23
ME430 Mechatronics: Lab 2 1 Name ____________________________________ Name ____________________________________ ME430 Mechatronics Lab 2: Transistors, HBridges, and motors The lab team has demonstrated: Part (A) Driving LEDs and DC Motors by Sourcing and Sinking Current from a Logic Gate ______________ Sourcing Current ______________ Sinking Current Part (B) Driving DC Motors using Logic Gates and Transistors ______________ NPN BJT transistor ______________ Nchannel MOSFET transistor ______________ Darlington Chip (ULN2003) Part (C) Using 12 Volt Power Supplies to Drive Lamps and Fans ______________ MOSFETs ______________ BJTs ______________ Darlingtons Part (D) Using a Darlington to drive multiple LEDs ______________ Dancing lights Part (E) Bidirectional Control of Motors with HBridge chips ______________ DC Motor with bidirectional 5V drive circuit ______________ Linear actuator DC motor with bidirectional 12V drive circuit ______________ Stepper Motor at 5V with 2 sets of bidirectional phases

Transcript of H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant...

Page 1: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 1

Name ____________________________________

Name ____________________________________ ME430 Mechatronics Lab 2: Transistors, H‐Bridges, and motors The lab team has demonstrated: Part (A) Driving LEDs and DC Motors by Sourcing and Sinking Current from a Logic Gate

______________ Sourcing Current

______________ Sinking Current

Part (B) Driving DC Motors using Logic Gates and Transistors

______________ NPN BJT transistor

______________ N‐channel MOSFET transistor

______________ Darlington Chip (ULN2003)

Part (C) Using 12 Volt Power Supplies to Drive Lamps and Fans

______________ MOSFETs

______________ BJTs

______________ Darlingtons

Part (D) Using a Darlington to drive multiple LEDs

______________ Dancing lights

Part (E) Bi‐directional Control of Motors with H‐Bridge chips

______________ DC Motor with bi‐directional 5V drive circuit

______________ Linear actuator DC motor with bi‐directional 12V drive circuit

______________ Stepper Motor at 5V with 2 sets of bi‐directional phases

Page 2: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 2

Part (A) Driving LEDs and DC Motors by Sourcing and Sinking Current from a Logic Gate In the “Intro to Transistors” video lecture, you also learned about sourcing and sinking current from a logic gate. Sinking the current allows much higher current levels. In this part we would like to build the two configurations and verify that they work. (1) Sourcing Current First, rebuild the simple current sourcing circuit you built for the beginning of Lab 1. Make sure that one works before you move on. Recall that it looks like

We would like to modify the circuit to also drive (by sourcing the current from the 7404) a DC (brushed) motor. These are the ordinary‐looking silver‐grey motors. On the sketch below, show how you are planning to add the motor to the circuit:

Page 3: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 3

Now that you have a plan, go ahead and wire the circuit. The LED should still turn on when you push the button. But does the motor spin? (It may or may not, depending on the mo‐tor. You can try to turn it by hand to get it started.) When we are sourcing current from the chip, we don’t get very much current. Get this checked off on the front page. (2) Sinking Current There is a much better chance that we will be able to drive the LED and the motor if we sink the current to the chip instead. Refer to your notes on the video lecture “Intro to Transistors”, and sketch a circuit which uses a basic switch and a 7404 chip, but which sinks the current to the chip. (The LED and the motor will be on when the button is not pressed, and off when it is pressed. That’s ok.) Once you have a sketch, go ahead and wire the circuit. Does the motor spin? What if you give it a push? Get this checked off on the front page.

Page 4: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 4

Part (B) Driving DC Motors using Logic Gates and Transistors Clearly, we are not getting enough power from the 7404 logic chip to drive a motor. So, we will use the logic chip merely as input to a transistor. The transistor will act as an electronic switch to turn the power to the motor on and off. In this part, our goal is to use three kinds of transistors as electronic switches: an NPN BJT (Bi‐polar junction transistor) transistor, an N‐channel MOSFET (metal oxide semiconductor field effect transistor) transistor, and a Darlington chip (which contains many transistors). Note: saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common practice. (1) NPN BJT transistor Sketch a circuit that has a basic switch and a 7404 NOT gate. Source the current to an LED off of pin 2 of the 7404. Use pin 4 of the 7404 to drive an NPN BJT transistor. Refer to your notes on the “Intro to Transistors” video to complete the circuit diagram. Don’t forget to measure the resistance of your motor to properly size the resistors in the circuit. Now go ahead and build the circuit. There are extra resistors of various sizes in the grey cabi‐net. Demonstrate that the LED and motor work when you press the button and get it checked off on the front page.

Page 5: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 5

(2) N‐channel MOSFET transistor MOSFETs are even easier to use than BJTs, because you don’t need to figure any currents or size any resistors—the MOSFETs act as voltage controlled switches. Sketch a circuit that has a basic switch and a 7404 NOT gate. Source the current to an LED off of pin 2 of the 7404. Use pin 4 of the 7404 to drive an N‐channel MOSFET transistor. Refer to your notes on the “Intro to Transistors” video to complete the circuit diagram. Now go ahead and build the circuit. Demonstrate that the LED and motor work when you press the button and get it checked off on the front page.

Page 6: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 6

(3) Darlington Chip (ULN2003) Darlington chips are prepackaged, paired BJTs, which are intended to be used as switches. Sketch a circuit that has a basic switch and a 7404 NOT gate. Source the current to an LED off of pin 2 of the 7404. Use pin 4 of the 7404 to drive the Darlington chip. Refer to your notes on the “Intro to Transistors” video to complete the circuit diagram. Now go ahead and build the circuit. Demonstrate that the LED and motor work when you press the button and get it checked off on the front page.

Page 7: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 7

Part (C) Using 12 Volt Power Supplies to Drive Lamps and Fans

In Part (B), we used transistors to drive the motor because we needed more current than the NOT gate could provide. Now we are going to use transistors to drive devices that need a higher voltage. It is very common for motors and other actuators to require higher drive voltages. We will modify the circuits from before to control a 12 Volt power supply for the load—in this case lamps (not LEDs) and fans. (1) MOSFETs First, diagram a circuit that will let you run a lamp with a MOSFET, still using a 5 Volt power supply for everything. This is almost identical to the MOSFET circuit you used in Part (B), but you will use a lamp instead of the motor. (The lamps look a lot like clear LEDs, except that you can see a filament inside of them. The lamps are in the grey cabinet! IR emitters look like lamps, and are in your lab kit. Don’t use an IR emitter here!) Now build this circuit and make sure that the lamp turns on. The light will be rather dim, be‐cause you are running it from a 5V supply instead of the 12V it wants. You can check yourself off on this part! _________________ Lamp is lit from 5V, although dim

Page 8: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 8

Next, modify the circuit you drew to light the lamp from a 12V supply. (Notice how easy the modification is! This is why MOSFETs are wonderful.) Note that the power to the NOT chip is still running at 5V! The 12V supplies are red, and are in the grey cabinet at the back of the room. (On the front they say one voltage, but on the back they say 12V.) Remember the power to the NOT chip is still 5V‐‐ try not to burn up too many NOT chips Also, make sure that the ground for the 12V supply is the same as the ground for the 5V supply—connect the two grounds together. If you don’t do this, the two “ground” voltages could actually be different and your circuit might not work. Build this circuit and make sure that the light is brighter than it was before. You can check yourself off on this part, too. _________________ Lamp is lit from 12V, and is pretty bright now. For the last piece of this section, we are going to replace the lamp in the circuit with a fan. The fans are black, have a frame that is about 3”x3”, and are in the grey cabinet at the back of the room. The circuit a direct swap of the lamp and the fan, except that running fans backwards can break them! Make sure that the red lead on the fan goes to the +12V line! Once you have this working, demonstrate it to your instructor and get this section checked off on the front page. (2) BJTs The MOSFETs were really easy to use, but they are much more expensive than the BJTs. So, we will need to be able to use BJTs to do the same tasks we accomplished with the MOSFET. Remember that, for the BJTs, we need an input resistor to control the current. The lamps we purchased were called “12 volt, 35 mA, incandescent, lamps”. They draw 35 mA when they are running. This means that we need to choose a resistor to make the current into the base one‐tenth of the load current, or 3.5 mA. The voltage drop between the base and the emitter of the BJT is 0.7 V, so the resistor will see a voltage drop of 4.3 V. What resistor size should you choose if you could choose an arbitrary value? ___________ Now go to the cabinet and pick a real resistor. What size did you pick?____________ Build the BJT circuit to drive the lamp at 12V. You can check this part off yourself: ______________ Got the lamp running at 12V with a BJT

Page 9: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 9

Next, we would like to replace the lamp with a fan. We will need to recalculate the resistor for the base. We knew the current the lamp would draw when it was running, but we will need to measure the current drawn by the fan when it is running. (It won’t work to measure the fan resistance, because the fan has a diode that confuses the measurement.) Get the fan running directly from the power supply, then put the digital multimeter (DMM) in series with the fan and measure the current it draws. We measured a fan current of _______________. If we could choose any size resistor for the base of the BJT, we would choose_____________. However, when we went to the cabinet, we picked this resistor:________________. Get the fan running with this resistor and the BJT. Then have your instructor check you off on the front page. (3) Darlingtons Darlingtons (ULN2003 chips) are very simple to use for our switching purposes even at 12V. Build a circuit that uses a Darlington to drive the lamp, then replace the lamp with a fan. Make sure that the power for the load (the lamp or the fan) is connected to 12V, but the power for the NOT chip is connected to 5V. So you will need BOTH power supplies with the grounds connected together. Make sure that the COM line on the Darlington is connected to 12V (not 5V). Don’t use the “optional” resistor on the input to the Darlington. (The COM line is connected to the internal snubber diodes on the Darlington, so that is why we need to connect it to the 12V supply. The optional resistor on the input can actually interfere with some circuits.) You can check off the lamp yourself. ___________ Lamp running from a Darlington with 12V power to the lamp. Demonstrate the fan running from a Darlington with 12V to the fan to your instructor, and get this section checked off on the front.

Page 10: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 10

Part (D) Using a Darlington to drive multiple LEDs If we try to drive multiple LEDs in a source configuration with a single NOT chip, we will draw too much current from the chip and the lights will be weak. (The same would be true if we tried to drive multiple LEDs from one microcontroller.) However, it is quite straightforward to use the logic chip to drive a Darlington, and then let the Darlington control the LEDs. The Dar‐lington has 7 switches in each chip, and they have all of the snubber diodes and resistors in‐cluded in the package. Isn’t it nice when they include things inside the chip for you? In this part, we will use a Darlington to drive 7 LEDs. Just for fun, we will make our LEDs in this part “dance”—when the button is not pressed, 4 of the LEDs will be on, and 3 will be off. When the button is pressed, the on/off LEDs will switch. The figure below shows part of the circuit you need to build:

Our “load” is the light, so replace Rload with an LED and a 330 ohm resistor. If we just wire the circuit as shown, then the single LED will be on when the button is not pressed, and off when we press the button. (You should check this.) Now, if you haven’t already, make the connections labeled “2”, “3”, “4”, “5”, “6”, and “7” on the NOT gate, and also connect them to IN2, IN3, … IN7 on the Darlington. Check that the button press still toggles the one LED on and off, so that you haven’t messed anything up. These connections will make IN2, IN4, and IN6 go low when IN1, IN3, IN5, and IN7 are high, and vice versa. Finally, put 6 more LEDs and resistors on OUT2, OUT3, … OUT7. Each LED needs its own resis‐tor. When you press the button, the lights should “dance”. Get this checked off by your in‐structor on the front.

Page 11: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 11

Part (E) Bi‐directional Control of Motors with H‐bridge chips If we only need unidirectional control of our motors, then the transistor circuits we used in Part (B) or Part (C) are the easiest solution. If we need to run the motor forwards and backwards, then we will need bidirectional control. For this, an H‐bridge (L293) chip is definitely the way to go. We will have you create a bi‐directional control for three different motors using an H‐bridge chip:

Table 2: H‐Bridge motor circuits

Motor Type of drive

DC motor (silver‐grey) 5 Volts, bi‐directional

Linear actuator DC motor (door actuator) 12 Volts, bi‐directional

Stepper Motor (larger, silver and black) 5 Volts, 2 sets of bi‐directional phases

Page 12: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 12

(1) DC Motor with bi‐directional 5V drive circuit We want to use the H‐bridge chip to run a motor with 2 button switches—one switch will turn the motor on or off and the other one will choose whether the motor turns clockwise or coun‐ter‐clockwise. Referring to the L293 datasheet on the ME430 courseware page, we see that the suggested bi‐directional motor circuit for an L293 looks like:

There are actually three motors here—one running bi‐directionally on the left and two running uni‐directionally on the right. We will only use the connections on the left‐hand side. Recall that if we ever want uni‐directional control we’ll use a regular transistor. We’ve pasted a ver‐sion of this circuit by itself on the next page, because we are going to want to add some switches and other connections to it. In order to make sure that the right‐hand side of the H‐bridge does not interfere with the left‐hand side, we also connected pin 9 to ground. If you read through the datasheet a bit more, you find that pin 1 is the “enable” line—the signal that tells the H‐bridge to turn on. On the circuit drawing on the next page, add a basic switch circuit without an inverter to serve as the input to pin 1. This button switch will control whether the motor is on or off—the motor will normally be on, but if we press the button it will shut the H‐bridge (and the motor) off.

Page 13: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 13

Page 14: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 14

Next, we notice that pins 2 and 7 are always supposed to be opposites—when 2 is high 7 should be low, and vice versa. This instructs the motor to spin clockwise or counter‐clockwise. We want to use just one more switch to accomplish this, so we will pick up one of the inputs before a NOT gate and one of the inputs after the NOT gate. Add this circuit to the diagram on the previous page. Hook the signal line labeled Z to pin 7 and the signal line labeled Z to pin 2. Finally, we will need to connect the power to the H‐bridge. Vcc1 and Vcc2 should both be at 5 volts (for this section). Add this to your circuit diagram. Now that you have everything planned out, go ahead and build the circuit. When it works, demonstrate it to your instructor and get it signed off on the front page. (2) Linear actuator DC motor with bi‐directional 12V drive circuit This next piece is very simple, really. Get a linear actuator (door actuator) from the grey cabi‐net. It has a motor in it that makes it either move out (and stay) or move in (and stay). However, unlike the motor we just connected, it runs on 12V, since it’s for a car door. Replace the DC motor in your circuit with the door actuator. Read the datasheet for the L293 careful‐ly, and figure out which of the voltage inputs on the L293 need to get changed to 12V in order to run the linear actuator. Change the inputs appropriately, and test the circuit. It’s very cute really—it quacks like a duck when it moves. Demonstrate this to your instructor and get it checked off on the front page.

Page 15: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 15

(3) Stepper Motor at 5V with 2 sets of bi‐directional phases Stepper motors are more complicated to drive than ordinary brushed DC motors. Neverthe‐less, the L293 makes the task much simpler. From the L293 datasheet, we have a suggested circuit for a Two‐Phase Motor Driver:

In this circuit Vcc1 and Vcc2 can be connected to the 5 volt supply, even though this shows Vcc2 connected to 24V. Since this is a low power stepper motor, we could probably skip the dio‐des. Notice that the layout shown above is not a literal picture of the chip—pin 14 is shown

Page 16: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ME430 Mechatronics: Lab 2 16

right next to pin 11! Read the pin number and figure out where they are on the real device (all this information is in the L293 datasheet). We will want to set up two basic switches to control the L293. One of the switches goes di‐rectly to pin 2 of the L293, while the inverted signal from that switch goes directly to pin 7. The second switch (directly) goes to pin 10, and goes inverted to pin 15. Next, we need to hook four of the six stepper motor wires up to pins 3, 6, 11, and 14. Use your notes from the video lecture on stepper motors to understand what you need to measure in order to figure out which wires to use. Once everything is wired correctly, we should be able to make the stepper motor go through a small “step” by pushing the buttons in the correct 4‐part sequence. The sequence is the “full‐step” sequence from the video lecture. Finally, count how many times you need to go through the 4‐part sequence in order to get the motor to make one revolution. It takes _____________________times through the 4‐part sequence to go one revolution. Demonstrate your working stepper motor for your instructor and get it checked off on the front page.

Page 17: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

2N3904

SMALL SIGNAL NPN TRANSISTORPRELIMINARY DATA

SILICON EPITAXIAL PLANAR NPNTRANSISTOR

TO-92 PACKAGE SUITABLE FORTHROUGH-HOLE PCB ASSEMBLY

THE PNP COMPLEMENTARY TYPE IS2N3906

APPLICATIONS WELL SUITABLE FOR TV AND HOME

APPLIANCE EQUIPMENT SMALL LOAD SWITCH TRANSISTOR WITH

HIGH GAIN AND LOW SATURATIONVOLTAGE

®

INTERNAL SCHEMATIC DIAGRAM

June 2002

TO-92

Type Marking

2N3904 2N3904

ABSOLUTE MAXIMUM RATINGS

Symbol Parameter Value Unit

VCBO Collector-Base Voltage (IE = 0) 60 V

VCEO Collector-Emitter Voltage (IB = 0) 40 V

VEBO Emitter-Base Voltage (IC = 0) 6 V

IC Collector Current 200 mA

Ptot Total Dissipation at TC = 25 oC 625 mW

Tstg Storage Temperature -65 to 150 oC

Tj Max. Operating Junction Temperature 150 oC

1/4

Page 18: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

HEXFET® Power MOSFET

IRLZ34N

PD - 9.1307B

Fifth Generation HEXFETs from International Rectifier

utilize advanced processing techniques to achieve the

lowest possible on-resistance per silicon area. This benefit,combined with the fast switching speed and ruggedized

device design that HEXFET Power MOSFETs are wellknown for, provides the designer with an extremely efficient

device for use in a wide variety of applications.

The TO-220 package is universally preferred for all

commercial-industrial applications at power dissipationlevels to approximately 50 watts. The low thermal resistance

and low package cost of the TO-220 contribute to its wide

acceptance throughout the industry.

Logic-Level Gate Drive Advanced Process Technology

Dynamic dv/dt Rating 175°C Operating Temperature

Fast Switching Fully Avalanche Rated

Description

VDSS = 55V

RDS(on) = 0.035

ID = 30AS

D

G

TO-220AB

8/25/97

Parameter Min. Typ. Max. Units

R!JC Junction-to-Case –––– –––– 2.2

R!CS Case-to-Sink, Flat, Greased Surface –––– 0.50 –––– °C/W

R!JA Junction-to-Ambient –––– –––– 62

Thermal Resistance

Parameter Max. Units

ID @ TC = 25°C Continuous Drain Current, VGS @ 10V 30

ID @ TC = 100°C Continuous Drain Current, VGS @ 10V 21 A

IDM Pulsed Drain Current " 110

PD @TC = 25°C Power Dissipation 68 W

Linear Derating Factor 0.45 W/°C

VGS Gate-to-Source Voltage ±16 V

EAS Single Pulse Avalanche Energy ! 110 mJ

IAR Avalanche Current 16 A

EAR Repetitive Avalanche Energy 6.8 mJ

dv/dt Peak Diode Recovery dv/dt " 5.0 V/ns

TJ Operating Junction and -55 to + 175

TSTG Storage Temperature Range °C

Soldering Temperature, for 10 seconds 300 (1.6mm from case)

Mounting torque, 6-32 or M3 screw. 10 lbf•in (1.1N•m)

Absolute Maximum Ratings

GDS

Page 19: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

ULN2003A-ULN2004A

ULN2001A-ULN2002A

February 2002

SEVEN DARLINGTON ARRAYS

®

.SEVEN DARLINGTONS PER PACKAGE.OUTPUT CURRENT 500mA PER DRIVER(600mA PEAK).OUTPUT VOLTAGE 50V. INTEGRATED SUPPRESSION DIODES FORINDUCTIVE LOADS.OUTPUTS CAN BE PARALLELED FORHIGHER CURRENT.TTL/CMOS/PMOS/DTL COMPATIBLE INPUTS. INPUTS PINNED OPPOSITE OUTPUTS TOSIMPLIFY LAYOUT

DESCRIPTION

The ULN2001A, ULN2002A, ULN2003 andULN2004A are high voltage, high current darlingtonarrays each containing seven open collector dar-lington pairs with common emitters. Each channelrated at 500mA and can withstand peak currents of600mA. Suppression diodes are included for induc-tive load driving and the inputs are pinned oppositethe outputs to simplify board layout.

The four versions interface to all common logic fami-lies :

ULN2001A General Purpose, DTL, TTL, PMOS,CMOS

ULN2002A 14-25V PMOS

ULN2003A 5V TTL, CMOS

ULN2004A 6–15V CMOS, PMOS

These versatile devices are useful for driving a widerange of loads including solenoids, relays DC mo-tors, LED displays filament lamps, thermal print-heads and high power buffers.

The ULN2001A/2002A/2003A and 2004A are sup-plied in 16 pin plastic DIP packages with a copperleadframe to reduce thermal resistance. They areavailable also in small outline package (SO-16) asULN2001D/2002D/2003D/2004D.

DIP16

ORDERING NUMBERS: ULN2001A/2A/3A/4A

SO16

ORDERING NUMBERS: ULN2001D/2D/3D/4D

PIN CONNECTION

1/8

Page 20: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

!"#$ !"#&'()&*(+ , -) ./- &*01,*2

SLRS008C SEPTEMBER 1986 REVISED NOVEMBER 2004

1POST OFFICE BOX 655303 • DALLAS, TEXAS 75265

Featuring Unitrode L293 and L293D

Products Now From Texas Instruments

Wide Supply-Voltage Range: 4.5 V to 36 V

Separate Input-Logic Supply

Internal ESD Protection

Thermal Shutdown

High-Noise-Immunity Inputs

Functionally Similar to SGS L293 and

SGS L293D

Output Current 1 A Per Channel

(600 mA for L293D)

Peak Output Current 2 A Per Channel

(1.2 A for L293D)

Output Clamp Diodes for Inductive

Transient Suppression (L293D)

description/ordering information

The L293 and L293D are quadruple high-currenthalf-H drivers. The L293 is designed to providebidirectional drive currents of up to 1 A at voltagesfrom 4.5 V to 36 V. The L293D is designed toprovide bidirectional drive currents of up to600-mA at voltages from 4.5 V to 36 V. Bothdevices are designed to drive inductive loads suchas relays, solenoids, dc and bipolar steppingmotors, as well as other high-current/high-voltageloads in positive-supply applications.

All inputs are TTL compatible. Each output is acomplete totem-pole drive circuit, with aDarlington transistor sink and a pseudo-Darlington source. Drivers are enabled in pairs, with drivers 1 and 2 enabled by 1,2EN and drivers 3 and 4enabled by 3,4EN. When an enable input is high, the associated drivers are enabled, and their outputs are activeand in phase with their inputs. When the enable input is low, those drivers are disabled, and their outputs areoff and in the high-impedance state. With the proper data inputs, each pair of drivers forms a full-H (or bridge)reversible drive suitable for solenoid or motor applications.

ORDERING INFORMATION

TA PACKAGE† ORDERABLE

PART NUMBER

TOP-SIDE

MARKING

HSOP (DWP) Tube of 20 L293DWP L293DWP

0°C to 70°CPDIP (N) Tube of 25 L293N L293N

0°C to 70°C

PDIP (NE)Tube of 25 L293NE L293NE

PDIP (NE)Tube of 25 L293DNE L293DNE

† Package drawings, standard packing quantities, thermal data, symbolization, and PCB design guidelines are available at

www.ti.com/sc/package.

Copyright 2004, Texas Instruments Incorporated+*3&(45036 &)5) 789:;<=>7:8 7? @A;;B8> =? :9 CADE7@=>7:8 F=>BG+;:FA@>? @:89:;< >: ?CB@797@=>7:8? CB; >HB >B;<? :9 5BI=? 08?>;A<B8>??>=8F=;F J=;;=8>KG +;:FA@>7:8 C;:@B??78L F:B? 8:> 8B@B??=;7EK 78@EAFB>B?>78L :9 =EE C=;=<B>B;?G

Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of

Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.

HEAT SINK ANDGROUND

HEAT SINK ANDGROUND

1

2

3

4

5

6

7

8

16

15

14

13

12

11

10

9

1,2EN

1A

1Y

2Y

2A

VCC2

VCC1

4A

4Y

3Y

3A

3,4EN

L293 . . . N OR NE PACKAGE

L293D . . . NE PACKAGE

(TOP VIEW)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

28

27

26

25

24

23

22

21

20

19

18

17

16

15

1,2EN

1A

1Y

NC

NC

NC

NC

NC

2Y

2A

VCC2

VCC1

4A

4Y

NC

NC

NC

NC

NC

3Y

3A

3,4EN

L293 . . . DWP PACKAGE

(TOP VIEW)

HEAT SINK ANDGROUND

HEAT SINK ANDGROUND

Page 21: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

!"#$ !"#&'()&*(+ , -) ./- &*01,*2

SLRS008C SEPTEMBER 1986 REVISED NOVEMBER 2004

2 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265

description/ordering information (continued)

On the L293, external high-speed output clamp diodes should be used for inductive transient suppression.

A VCC1 terminal, separate from VCC2, is provided for the logic inputs to minimize device power dissipation.

The L293and L293D are characterized for operation from 0°C to 70°C.

block diagram

1

0

3

4

5

6

7

89

10

11

12

13

14

15

161

21

0

1

1

0

2

4

3

M

M

M

1

0

1

0

1

0

VCC2

VCC1

NOTE: Output diodes are internal in L293D.

FUNCTION TABLE

(each driver)

INPUTS†OUTPUT

A EN

OUTPUT

Y

H H H

L H L

X L Z

H = high level, L = low level, X = irrelevant,

Z = high impedance (off)† In the thermal shutdown mode, the output is

in the high-impedance state, regardless of

the input levels.

Page 22: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

!"#$ !"#&'()&*(+ , -) ./- &*01,*2

SLRS008C SEPTEMBER 1986 REVISED NOVEMBER 2004

8 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265

APPLICATION INFORMATION

24 V5 V

10 kΩ

VCC1 VCC2

16 8

1,2EN

1

1A

2

2A

7

3,4EN

9

3A

10

4A

15

Control A

Control B

4, 5, 12, 13

GND

ThermalShutdown

Motor

1Y

3

2Y

6

3Y

11

4Y

14

Figure 3. Two-Phase Motor Driver (L293D)

Page 23: H and motors - Rose-Hulman Institute of Technology€¦ · saying MOSFET transistor is redundant since the T stands for transistor, but, much like saying PIN number, it is common

!"#$ !"#&'()&*(+ , -) ./- &*01,*2

SLRS008C SEPTEMBER 1986 REVISED NOVEMBER 2004

10 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265

APPLICATION INFORMATION

3

4

5

6

7

8

1

2

9

10

11

12

13

14

15

16

+

+

+

+

D7

D8 D4

D3

L2 IL2

C1

D5 D1

D6 D2

VCC1L293

IL1/IL2 = 300 mA

0.22 µF

VCC2L1 IL1

D1 D8 = SES5001

Figure 6. Bipolar Stepping-Motor Control

mounting instructions

The Rthj-amp of the L293 can be reduced by soldering the GND pins to a suitable copper area of the printedcircuit board or to an external heat sink.

Figure 9 shows the maximum package power PTOT and the θJA as a function of the side of two equal squarecopper areas having a thickness of 35 µm (see Figure 7). In addition, an external heat sink can be used (seeFigure 8).

During soldering, the pin temperature must not exceed 260°C, and the soldering time must not exceed 12seconds.

The external heatsink or printed circuit copper area must be connected to electrical ground.