Experiment 9 : Pulse Width Modulation

Similar documents
Experiment 8: Semiconductor Devices

Experiment #3: Experimenting with Resistor Circuits

University of North Carolina-Charlotte Department of Electrical and Computer Engineering ECGR 3157 Electrical Engineering Design II Fall 2013

BME/ISE 3511 Laboratory One - Laboratory Equipment for Measurement. Introduction to biomedical electronic laboratory instrumentation and measurements.

University of North Carolina, Charlotte Department of Electrical and Computer Engineering ECGR 3157 EE Design II Fall 2009

Module: Arduino as Signal Generator

BME 3512 Bioelectronics Laboratory Two - Passive Filters

Electronics. RC Filter, DC Supply, and 555

OPERATIONAL AMPLIFIERS (OP-AMPS) II

University of Portland EE 271 Electrical Circuits Laboratory. Experiment: Inductors

LAB II. INTRODUCTION TO LAB EQUIPMENT

Parts to be supplied by the student: Breadboard and wires IRLZ34N N-channel enhancement-mode power MOSFET transistor

EE 368 Electronics Lab. Experiment 10 Operational Amplifier Applications (2)

Integrators, differentiators, and simple filters

Module 9C: The Voltage Comparator (Application: PWM Control via a Reference Voltage)

Lab #7: Transient Response of a 1 st Order RC Circuit

Chapter 1: DC circuit basics

Introduction to oscilloscope. and time dependent circuits

LAB I. INTRODUCTION TO LAB EQUIPMENT

Chapter 1: DC circuit basics

University of Jordan School of Engineering Electrical Engineering Department. EE 204 Electrical Engineering Lab

Laboratory Report Lab I Full Wave Rectifier. Submitted by. Date of Experiment June 16, 2016

Experiment 1.A. Working with Lab Equipment. ECEN 2270 Electronics Design Laboratory 1

CHAPTER 6. Motor Driver

Diodes This week, we look at switching diodes, LEDs, and diode rectification. Be sure to bring a flash drive for recording oscilloscope traces.

In-Class Exercises for Lab 2: Input and Output Impedance

MAE106 Laboratory Exercises Lab # 3 Open-loop control of a DC motor

Module: Characterizing an Electret Microphone

Experiment #2 Half Wave Rectifier

Topic Rectification. Draw and understand the use of diodes in half wave and full wave

Computer Controlled Curve Tracer

Experiment 18: Driven RLC Circuit

MASSACHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.02 Spring Experiment 11: Driven RLC Circuit

STATION NUMBER: LAB SECTION: RC Oscillators. LAB 5: RC Oscillators ELECTRICAL ENGINEERING 43/100. University Of California, Berkeley

Class #8: Experiment Diodes Part I

Laboratory 4: Amplification, Impedance, and Frequency Response

transformer rectifiers

PHASORS AND PHASE SHIFT CIRCUITS

ELEG 205 Analog Circuits Laboratory Manual Fall 2016

Physics 310 Lab 2 Circuit Transients and Oscilloscopes

Physics 3 Lab 5 Normal Modes and Resonance

Introduction to High-Speed Power Switching

EE 3101 ELECTRONICS I LABORATORY EXPERIMENT 9 LAB MANUAL APPLICATIONS OF IC BUILDING BLOCKS

Lab E5: Filters and Complex Impedance

Step Response of RC Circuits

Lab 3: AC Low pass filters (version 1.3)

ECE Lab #4 OpAmp Circuits with Negative Feedback and Positive Feedback

JFET amplifiers. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

JFET amplifiers. Resources and methods for learning about these subjects (list a few here, in preparation for your research):

Bring your textbook to lab.

LABORATORY 7 v2 BOOST CONVERTER

Assignment 8 Analyzing Operational Amplifiers in MATLAB and PSpice

Lab: Operational Amplifiers

Physics 303 Fall Module 4: The Operational Amplifier

EE 110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Lab 0: Course Introduction

Driving 2W LEDs with ILD4120

ECE3204 D2015 Lab 1. See suggested breadboard configuration on following page!

DEPARTMENT OF ELECTRICAL ENGINEERING AND COMPUTER SCIENCE MASSACHUSETTS INSTITUTE OF TECHNOLOGY CAMBRIDGE, MASSACHUSETTS 02139

). The THRESHOLD works in exactly the opposite way; whenever the THRESHOLD input is above 2/3V CC

University of Michigan EECS 311: Electronic Circuits Fall 2009 LAB 2 NON IDEAL OPAMPS

Experiment 8: An AC Circuit

University of Utah Electrical Engineering Department ECE 2100 Experiment No. 2 Linear Operational Amplifier Circuits II

Motomatic Servo Control

LAB 4 : FET AMPLIFIERS

ECE ECE285. Electric Circuit Analysis I. Spring Nathalia Peixoto. Rev.2.0: Rev Electric Circuits I

ET 304A Laboratory Tutorial-Circuitmaker For Transient and Frequency Analysis

EE 210: CIRCUITS AND DEVICES

EE 233 Circuit Theory Lab 4: Second-Order Filters

EXPERIMENT 5 : THE DIODE

LABORATORY 5 v3 OPERATIONAL AMPLIFIER

INTRODUCTION TO AC FILTERS AND RESONANCE

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Lab #6: Op Amps, Part 1

Instructions for the final examination:

9 Feedback and Control

UNIVERSITY OF UTAH ELECTRICAL ENGINEERING DEPARTMENT

CSE 3215 Embedded Systems Laboratory Lab 5 Digital Control System

Physics 310 Lab 6 Op Amps

AC CURRENTS, VOLTAGES, FILTERS, and RESONANCE

EE 210: CIRCUITS AND DEVICES

Experiment 9 AC Circuits

Physics 309 Lab 3 Bipolar junction transistor

Physics 123: Homework 4: Op Amps II

Lab 6: MOSFET AMPLIFIER

Experiment #2: Introduction to Lab Equipment: Function Generator, Oscilloscope, and Multisim

DC and AC Circuits. Objective. Theory. 1. Direct Current (DC) R-C Circuit

Class #9: Experiment Diodes Part II: LEDs

Laboratory Exercise 6 THE OSCILLOSCOPE

Week 8 AM Modulation and the AM Receiver

Lab 6: Exploring the Servomotor Controller Circuit

OBJECTIVE The purpose of this exercise is to design and build a pulse generator.

ECE212H1F University of Toronto 2017 EXPERIMENT #4 FIRST AND SECOND ORDER CIRCUITS ECE212H1F

Precalculations Individual Portion Introductory Lab: Basic Operation of Common Laboratory Instruments

Purpose: 1) to investigate the electrical properties of a diode; and 2) to use a diode to construct an AC to DC converter.

PHY203: General Physics III Lab page 1 of 5 PCC-Cascade. Lab: AC Circuits

EENG-201 Experiment # 4: Function Generator, Oscilloscope

Physics 364, Fall 2014, Lab #12 (transistors I: emitter follower) Monday, October 13 (section 401); Tuesday, October 14 (section 402)

PHYS 536 The Golden Rules of Op Amps. Characteristics of an Ideal Op Amp

Group: Names: (1) In this step you will examine the effects of AC coupling of an oscilloscope.

University of Utah Electrical & Computer Engineering Department ECE 1250 Lab 4 Pulse Width Modulation Circuit

Transcription:

Name/NetID: Experiment 9 : Pulse Width Modulation Laboratory Outline In experiment 5 we learned how to control the speed of a DC motor using a variable resistor. This week, we will learn an alternative method of driving the motor that requires the use of the transistor we learned about last week. Rather than adjust a constant voltage to the motors, we will change the voltage applied to the motors using pulse width modulation (PWM). This method has some significant advantages over the constant voltage method. Learning Objectives Use a PWM signal to drive the motor for IV characterization. Recognize the ability of PWM-based motor-drive circuits to be both power efficient as well as stall-avoiding. Build a flex-sensor-controlled PWM signal that can be used for motor-drive in the next lab. Teammate/NetID: Section AB/BB: 0 1 2 3 4 5 6 7 8 9 A B C D E F (circle one) Analysis of Motor Efficiency Using the motor drive that we constructed earlier, we will implement a new method of motor speed control and compare it to DC methods. There are many parameters that can be used for this comparison and we will learn how to decide which parameters are relevant to us and which are not. Methods of Generating PWM Signals We will generate PWM signals using a new circuit. In the past, you used a simple oscillator circuit and a function generator. Neither of these methods provided a convenient way to control duty cycle if this were to be inserted into an autonomous vehicle. Today, we revisit the oscillator circuit and use the magic of diodes to alter its function in a way that we can understand. In the end, the bend of a flex sensor will become the controller of the PWM s duty cycle and enable the PWM generator to be used without the experimenter adjusting a knob!

Driving Motors with PWM Analyzing a PWM Signal A problem encountered with the previous techniques of speed control is strongly related to the stall current of the motor. A lower DC voltage will eventually stall the motor, drawing a large current that drains the battery while failing to turn the motor. Pulse-Width Modulation (PWM) is a method by where the peak voltage is high enough to overcome the stall point on the IV curve and, theoretically, no current will be drawn from the battery when the voltage falls back to zero. Less energy is wasted in the speed-control mechanism. By controlling the Duty Cycle of a square-wave signal rather than the level of a DC voltage, the wheel should move continuously at a slow speed without stalling. Configure the function generator to produce a 0 5 V square-wave signal with a frequency of 500Hz and duty cycle of 80%. Configure the oscilloscope to measure the frequency and duty cycle produced by the function generator. Question 1: Use the oscilloscope s Meas button to measure the rms voltage. V rms = (experimental) Question 2: Use the cursors on the oscilloscope to measure T on and T period of your square wave and compute the duty cycle. Record your data and computations here.

Question 3: Mathematically compute the rms voltage and determine if the scope measurement agrees. V rms = T v2 (t)dt 0 T 0 dt = (theoretical) (Remember that you don t need calculus to compute this!) Question 4: Compute the %error of the two previous average voltage measurements using a theoretical value of a perfect 80% duty cycle signal as the theoretical reference below. % error = 100 experimental theoretical theoretical =

Driving a Motor The function generator cannot supply the higher current needed to drive the motor. Instead, we will employ the transistor circuit we studied earlier. If you haven t already, construct the motor drive circuit as shown and connect the function generator as the input. Figure 1: Circuit schematic of the motor drive circuit. Question 5: Use your oscilloscope to measure the voltage across the motor. Comment on what you see. Why do you think this signal might not look like a perfect square wave? Warning! The oscilloscope s black probe is connected to earth ground. Most of the Function generators in our lab are not connected to earth ground, but some may be. To avoid a possible short between the lower end of the motor and the terminal of the function generator, you may need to use two probes on the oscilloscope. Place Ch1 across the battery and Ch2 across the Emitter/Collector terminals. You can then use a Math Function to view the difference between the two probes. The difference will be the voltage across the motor!

Question 6: Use your oscilloscope to measure the average voltage across the motor when driven by the full range of duty cycles (starting from 20% to 80% in appropriately-sized steps). Be sure to use increasing V rms to find the duty cycle necessary for turn-on if you can. Note: As an alternative to collecting this data using the function generator, you may use the RedBoard to generate PWM signals (refer to earlier modules on using the Arduino, especially the one on PWM). Just be careful to record the PWM percentage produced by the board for each measurement. Duty Cycle (%) V rms (V) I rms (ma)* Comments Table 1: I-V curve for motor with PWM signal while Increasing Duty Cycle. *While V rms will be measured by the scope, I rms should be estimated from the motor IV data you collected last week.

Question 7: Decrease the duty cycle to find the stalling point if you can. Report the stalling duty cycle here. Generating PWM with a Circuit In previous experiments, we constructed an oscillator circuit using a resistor, capacitor and inverter as shown below. In this circuit, the frequency of oscillation is controlled by the time it takes for the capacitor to charge and discharge. Since the capacitor charges and discharges through the same resistor, the amount of time the oscillator spends at 5 V equals the amount of time it spends at 0 V, i.e. it has a 50% duty cycle. (Refer to Lab 6.) Figure 1: A simple oscillator circuit. Now let s make a couple of simple modifications to oscillator that allows us to control the duty cycle. Specifically, we ll modify the circuit so that the capacitor charges through one resistor and discharges through another. In addition, we ve added an extra inverter at the output of the circuit so that we can integrate this oscillator into other circuits without its behavior being affected. Construct the modified oscillator circuit shown below. (C = 1 μf, R 1 = 10 kω, R 2 = 22 kω)

Figure 6: Circuit schematic of an oscillator with a selectable duty cycle. Question 8: Measure the frequency and duty cycle of this oscillator. Question 9: DC = R 2 R 1 +R 2 = Apply the following formula to estimate the duty cycle of this oscillator. Question 10: Suppose we replace R 1 with the flex sensor. What range of duty cycles do you expect this new circuit to produce? (You ll need to measure/recall the minimum and maximum resistance of the flex sensor.)

Question 11: Replace R 1 with the flex sensor and record the minimum and maximum duty cycle. Putting it together Connect your flex-sensor-controlled PWM circuit to the input of your motor drive circuit. If necessary, adjust the value of R 2 so that the motor slows as much as possible without stalling. Question 12: Draw the circuit diagram for the full circuit (oscillator and motor-drive circuits combined) and include the values of any and all resistors.

Conclusion Question 13: Compare and contrast two methods of motor-speed control, PWM vs VDR. Armed with what you ve learned in lab all semester, you are just about ready to start building engineering designs. Next week, we ll use everything we ve been learning to build an autonomous car. What You Learned After today s lab, you will be ready to embark on your own design challenges. Think about this for just a moment. You know how to collect data. You know how to use resistive sensors. You know how to read datasheets. After today, you ll know how to efficiently control motors to drive wheels. Next week, you ll compile all this knowledge to build your autonomous vehicle. Explore More! As time permits, please continue your experimentation using the Modules as recommended by your TAs. Recommended modules include Explore More! Voltage Follower Buffer and Explore More! Voltage Comparator and Explore More! The Amplifier: Gain and Offset Control.

Lab Report Rubric The following rubric will be provided at the end of each lab procedure. As a final step in preparing your lab report, you will use this rubric to analyze your own performance. Section Criterion Comments: Experimental Setup and/or Design Description Measurements Computations Circuit Schematics are drawn neatly, accurately, and properly labeled. Decisions regarding experimental setup and design are clearly explained. Tables include units and proper precision. Any new device introduced should be characterized using measurements! Computations performed on raw data are explicitly described and follow rules for significant figures. Analysis Modeling Conclusion General Formatting Self-assessment Graphs have title, labels, units, scale, legend; Lines for curve-fitting appear in the graph when needed and parameters like the intercepts and the slope are labeled. A mathematical model for the curve-fit graph allows for more abstract references to the device s behavior. The expected behavior is explained in the context of the graph. Conclusions are drawn from your experimental results to support the reason(s) for completing the experiment. Closes the loop on the Introduction. Answers to questions clearly labeled. The overall appearance of the report is professional. This table has been thoughtfully completed.