LAB #8: SPEED CONTROL OF A DC MOTOR MOTOR DRIVE

Similar documents
The 2N3393 Bipolar Junction Transistor

LAB VIII. BIPOLAR JUNCTION TRANSISTOR CHARACTERISTICS

BJT Characteristics and Amplifiers

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

LABORATORY 2 THE DIFFERENTIAL AMPLIFIER

Lab 5 Operational Amplifiers

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

Table 1 Comparison of DC, Uni-Polar and Bi-polar Stepper Motors

Unit/Standard Number. High School Graduation Years 2010, 2011 and 2012

Electronics. Discrete assembly of an operational amplifier as a transistor circuit. LD Physics Leaflets P

Lecture 18: Common Emitter Amplifier. Maximum Efficiency of Class A Amplifiers. Transformer Coupled Loads.

Step Response of RC Circuits

LAB VII. BIPOLAR JUNCTION TRANSISTOR CHARACTERISTICS

Series and Parallel Circuits

Bipolar Junction Transistor Basics

Transistor Amplifiers

Operational Amplifier - IC 741

Design Project: Power inverter

Physics 623 Transistor Characteristics and Single Transistor Amplifier Sept. 13, 2006

Experiment 8 : Pulse Width Modulation

ENEE 307 Electronic Circuit Design Laboratory Spring A. Iliadis Electrical Engineering Department University of Maryland College Park MD 20742

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Bipolar Transistor Amplifiers

School of Engineering Department of Electrical and Computer Engineering

GLOLAB Two Wire Stepper Motor Positioner

Experiment 5. Strain Gage Measurements

Inductors in AC Circuits

LABORATORY MANUAL DEPARTMENT OF ELECTRICAL & COMPUTER ENGINEERING

Objectives The purpose of this lab is build and analyze Differential amplifiers based on NPN transistors (or NMOS transistors).

Basic Electronics Prof. Dr. Chitralekha Mahanta Department of Electronics and Communication Engineering Indian Institute of Technology, Guwahati

High voltage power supply (1 to 20 KV)

Amplifier Teaching Aid

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Lab 1: DC Circuits. Student 1, Partner : Student 2, student2@ufl.edu

Content Map For Career & Technology

Application Note AN- 1118

Laboratory 4: Feedback and Compensation

OPERATIONAL AMPLIFIERS

Transistor Models. ampel

Reading: HH Sections , (pgs , )

DC Motor control Reversing

EET272 Worksheet Week 9

The Flyback Converter

See Horenstein 4.3 and 4.4

Analog Servo Drive 25A8

The full wave rectifier consists of two diodes and a resister as shown in Figure

A Digital Timer Implementation using 7 Segment Displays

PHYSICS 111 LABORATORY Experiment #3 Current, Voltage and Resistance in Series and Parallel Circuits

W04 Transistors and Applications. Yrd. Doç. Dr. Aytaç Gören

AN2680 Application note

2N6056. NPN Darlington Silicon Power Transistor DARLINGTON 8 AMPERE SILICON POWER TRANSISTOR 80 VOLTS, 100 WATTS

Chapter 19 Operational Amplifiers

Gates, Circuits, and Boolean Algebra

IGBT Protection in AC or BLDC Motor Drives by Toshio Takahashi

Micro-Step Driving for Stepper Motors: A Case Study

ε: Voltage output of Signal Generator (also called the Source voltage or Applied

EGR 278 Digital Logic Lab File: N278L3A Lab # 3 Open-Collector and Driver Gates

= V peak 2 = 0.707V peak

AMPLIFIERS BJT BJT TRANSISTOR. Types of BJT BJT. devices that increase the voltage, current, or power level

Switch Mode Power Supply Topologies

ARRL Morse Code Oscillator, How It Works By: Mark Spencer, WA8SME

Study Guide for the Electronics Technician Pre-Employment Examination

Oscilloscope, Function Generator, and Voltage Division

Copyright 2011 Linear Technology. All rights reserved.

12. Transformers, Impedance Matching and Maximum Power Transfer

Experiment #11: LRC Circuit (Power Amplifier, Voltage Sensor)

Diode Applications. by Kenneth A. Kuhn Sept. 1, This note illustrates some common applications of diodes.

Current Loop Tuning Procedure. Servo Drive Current Loop Tuning Procedure (intended for Analog input PWM output servo drives) General Procedure AN-015

Chapter 20: Permanent Magnet Brushed DC Motor Applications

Theory of Operation. Figure 1 illustrates a fan motor circuit used in an automobile application. The TPIC kω AREF.

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

3-Phase DC Brushless Motor Pre-Drivers Technical Information NJM2625A

Lecture 22: Class C Power Amplifiers

AMZ-FX Guitar effects. (2007) Mosfet Body Diodes. Accessed 22/12/09.

Power supplies. EE328 Power Electronics Assoc. Prof. Dr. Mutlu BOZTEPE Ege University, Dept. of E&E

DIGITAL-TO-ANALOGUE AND ANALOGUE-TO-DIGITAL CONVERSION

Frequency Response of Filters

Common-Emitter Amplifier

electronics fundamentals

Basic Pulse Width Modulation

High Voltage Current Shunt Monitor AD8212

WHY DIFFERENTIAL? instruments connected to the circuit under test and results in V COMMON.

VCE Physics and VCE Systems Engineering: Table of electronic symbols

Programmable Single-/Dual-/Triple- Tone Gong SAE 800

LM 358 Op Amp. If you have small signals and need a more useful reading we could amplify it using the op amp, this is commonly used in sensors.

Lab E1: Introduction to Circuits

Lab 3 Rectifier Circuits

RLC Series Resonance

Microcontroller for Variable Speed BLDC Fan Control System. T.C. Lun System Engineer, Freescale Semiconductor, Inc.

Equipment: Power Supply, DAI, Transformer (8341), Variable resistance (8311), Variable inductance (8321), Variable capacitance (8331)

Measuring Electric Phenomena: the Ammeter and Voltmeter

Display Board Pulse Width Modulation (PWM) Power/Speed Controller Module

Talon VFD / Inverter Meter

MAS.836 HOW TO BIAS AN OP-AMP

Three Axis TB6560 CNC Driver Users Manual

Four/Five Axis TB6560 CNC Driver Users Manual

SYSTEM 4C. C R H Electronics Design

Diodes and Transistors

Introduction to Power Supplies

Transcription:

LAB #8: SPEED CONTROL OF A DC MOTOR MOTOR DRIVE BACKGROUND The term project develops a speed control system for a direct current (dc) motor. The system illustrated in Fig. 1 operates the motor at one of ten speeds, as selected by a keypad. The project is designed, tested, and evaluated over several weeks, and has the following parts: 1. PWM waveform generation (previous week). 2. Hardware to drive the motor (this week s lab). 3. Hardware and software to measure the speed of the motor (next two weeks). 4. Measurement of the motor characteristics. 5. A control program to control the speed of the motor. 6. Demonstration and presentation of results (final week of lab). This week, students design and test the amplifier that drives the dc motor. Such an amplifier is commonly called a motor drive. 12v DC Motor Tachometer 9 Vdc Power Supply Amplifier Signal Conditioning Microcontroller Keypad Figure 1. Dc motor control system. SINGLE SWITCH MOTOR DRIVE The single switch motor drive circuit shown in Fig. 2 has been presented in the lab lecture; review the lecture slides to understand the various elements. Some design considerations are described next. A suitable transistor Q satisfies several ratings: In the ON state, the transistor must be able to conduct the full (maximum) load current. On a transistor datasheet, one should study the maximum rating for collector current IC. In the OFF state, the transistor must withstand the full power supply voltage VCC. On a transistor datasheet, one should study the maximum rating for collector-to-emitter voltage VCE. In the lab, either the 2N3904 or 2N2222 NPN small-signal transistors are provided, but students are also free to select other devices. Warning: If the motor load is high (for example, stalling the motor by locking the shaft), then neither transistor type can carry the increased current; one can expect smoke from the transistor! For normal operation, the maximum ratings of either transistor type are marginally acceptable. Power transistors having higher rating are used in commercial practice. 8-1

Fig 2. Motor drive circuit using a single transistor. Input V in is from the microcontroller. Diode D protects transistor Q during the turn OFF" transient that occurs once every PWM cycle. A suitable diode D quickly switches state in response to the voltage transients associated with the inductive nature of the motor winding. In the lab, the 1N4148 or equivalent 1N914 switching diode is provided. These diodes are underrated for continuous full load current, but are marginally acceptable to conduct such current during the brief turn OFF transient time periods. The resistor R must be designed this week. The resistor limits the base current IB, so as to not exceed the microcontroller s output current rating. On the other hand, an excessively large value of R prevents transistor Q from operating in the saturated state when turned ON. In the saturated state, the transistor s collector-to-emitter voltage is called VCE(sat), and the value can be found in the transistor datasheet; typical values for a bipolar transistor are in the range of a few tenths of a volt. To design the resistance value, the following must be known: maximum collector current expected by the load (call this Iload) bipolar transistor gain (β or hfe) and base-to-emitter turn on voltage (VBE(on)) microcontroller output current characteristic for logic high (IIO) microcontroller output voltage characteristic for logic high (VOH) For the transistor to operate in a saturated state when ON, the base current IB must be significantly larger than the ratio of the load current divided by the transistor gain, yet not exceed the microcontroller output current rating. That is: The resistance value can then be calculated as II IO II BB II llllllll h FFFF. RR = VV OH VV BE(on) II BB. 8-2

In modern power electronics, the MOSFET is very widely used for PWM applications. Design equations using a MOSFET for the saturating switch can be found in textbooks. DIGILENT EEBOARD ADJUSTABLE POWER SUPPLY As illustrated in Fig. 1, a power supply will supply the amplifier or motor drive. The Digilent EEboard has adjustable positive and negative power supplies, labeled VP+ and VP, respectively, on the power distribution block located at the bottom of the board. Output voltages are adjustable from 0 to ±9 Vdc, with current limits adjustable from 0 to 1.5 A. These values are selected in the Waveforms Power Supplies and Voltmeters instrument, shown in Fig. 3. Note that power must be turned on (in the upper left pane) and button VP+ ON must also be checked. The VP+ output will be used to supply the motor drive circuit (also labeled VCC in Fig. 2). The VP+ supply is to be configured for 9 Vdc with current limit 1.5 A. The ground connection of the VP+ supply is the ground connection in Fig. 2. (The VP supply is not used for this lab.) Important Note: The notation VCC is widely used to denote power supplies, but this can create confusion when multiple power supplies are in a system. The notation is used two different ways in this lab, i.e. two different power supplies are both labeled VCC. In Waveforms, the notation VCC refers to the fixed supply (3.3 or 5 Vdc), which is not needed here, and can be turned OFF. But the same notation VCC is used in Fig. 2 to denote the power supply for the motor drive, which runs on 9 Vdc. BE VERY CAREFUL to distinguish between the various uses of the symbol VCC. The microcontroller board will be very unhappy if 9 Vdc appears on any of its pins! Figure 3. Waveforms window, showing positive power supply setting VP+ ON. 8-3

Figure 4. Grounds in the system should be connected in this laboratory, as shown in blue. Introducing an external supply means that multiple grounds also exist, as illustrated in Fig. 4. In this lab, all grounds should be interconnected, as illustrated by the blue lines in the figure. PRE-LAB ASSIGNMENT Prior to lab, design a motor drive circuit as described in the lab lecture. Use voltage and current characteristics for the 2N2222 BJT and 1N914 diode. These are the devices provided in lab, but students are free to choose other devices on their own. Study the ARM STM32L100RC microcontroller datasheet to determine typical voltage and current characteristics of the output pin (VOH, IIO: See Table 43 on page 74, Table 10 on page 43, and read the last sentence on page 73, The GPIOs can ). Then, design a value for the base resistor R. In your laboratory notebook, write a test plan for testing the motor drive circuit characteristics. Describe methods to measure the following operating characteristics. 1. VCE For the curious: Measure with and without diode D in the circuit. Do not be surprised if transistor Q becomes damaged while D is removed. 2. VCE(sat) to verify that transistor Q is saturating during ON periods of the PWM signal 3. VBE(on) 4. VOH output of the microcontroller pin PA6, or motor drive input voltage 5. IB - transistor base current, or microcontroller output current 6. IC - transistor collector current, or motor load current 8-4

The C program from the previous lab should be modified as necessary to produce the PWM signal to control the motor. The period T of the PWM signal should be constant, with a variable duty cycle. This program should start the motor at a low speed. In your laboratory notebook, include a draft program (or directions to your content on H:drive). LABORATORY EXPERIMENTS 1. Beginning this week, teams will need to design their own experiments to test designed hardware and software. Be sure to document each experiment in lab notebooks, and summarize the most significant ones in progress reports. 2. Construct and test circuits in stages, ensuring that each stage works properly before proceeding to the next stage. a. Double- and triple-check all power supply connections, to prevent damage to any components. (See earlier warning about VCC and grounds!) b. Verify the desired PWM signal at the microcontroller output, before connecting the signal to the motor drive input. c. Verify the motor drive operation with a dummy load (resistor), before connecting the actual motor. Confirm that drive circuit characteristics (voltages and currents) are similar to theoretical values, initially using the dummy load, and then with the actual dc motor. Create a table of data that displays: i. voltages and currents in the drive circuit, e.g. base current, IB ii. the theoretical, design values of these signals (with units) iii. the measured, actual values of these signals, and iv. the percent difference between (b) and (c). d. Compare various drive circuit signals using the oscilloscope, initially using the dummy load, and then with the actual dc motor. Does changing the type of load (resistor vs. motor) change any circuit characteristics? The dc motor with tachometer is shown in Fig. 4. The motor is mounted to a wooden baseplate, with labeled quick connect terminals for easy connection of hookup wire to respective leads of the motor and tachometer. Press the top of a quick connect terminal to open the terminal, insert the bare end of the hookup wire, and then release the terminal top to clamp the wire end in place. 8-5

3. Use the oscilloscope to measure the tachometer signal as the motor turns. Observe the tachometer signal amplitude and frequency -- both are proportional to motor speed. Measure the tachometer signal for different keypad selected PWM duty cycles. Plot tachometer signal amplitude (or frequency) vs. duty cycle or (button number). The ideal relationship is linear, but your results may vary. If the keypad interface is not working, then select the PWM duty cycle with switches. However, the keypad is a required element of the final project. 4. Repeat Step 3 several times, each time using a different PWM signal frequency over a range of values between 10 Hz and 1 khz. Determine which frequency gives the best performance, i.e. produces the most linear increase in motor speed (tachometer signal) with respect to changes in duty cycle. INFORMATION FOR FUTURE LABORATORY REPORTS 1. Briefly describe the circuit (but not wire by wire ) and the test program (attach a circuit diagram and C program source listing). 2. Discuss your results, including a table and a plot of motor speed vs. PWM signal duty cycle. Compare the theoretical and actual motor drive characteristics. Compare experimental and theoretical results, including what you observed at different PWM signal frequencies. Figure 4. Buehler permanent magnet dc motor with tachometer 8-6