Experiment 8 : Pulse Width Modulation



Similar documents
Operational Amplifier - IC 741

Laboratory 4: Feedback and Compensation

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

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

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

Pulse Width Modulation

RC Circuits and The Oscilloscope Physics Lab X

= V peak 2 = 0.707V peak

EET272 Worksheet Week 9

DIODE CIRCUITS LABORATORY. Fig. 8.1a Fig 8.1b

The Time Constant of an RC Circuit

Inductors in AC Circuits

OPERATIONAL AMPLIFIERS

Op-Amp Simulation EE/CS 5720/6720. Read Chapter 5 in Johns & Martin before you begin this assignment.

CHAPTER 11: Flip Flops

EXPERIMENT NUMBER 5 BASIC OSCILLOSCOPE OPERATIONS

The 2N3393 Bipolar Junction Transistor

BJT Characteristics and Amplifiers

Electronics 5: Arduino, PWM, Mosfetts and Motors

Bipolar Transistor Amplifiers

Transistor Characteristics and Single Transistor Amplifier Sept. 8, 1997

LABORATORY 10 TIME AVERAGES, RMS VALUES AND THE BRIDGE RECTIFIER. Bridge Rectifier

EE 1202 Experiment #4 Capacitors, Inductors, and Transient Circuits

Electricity & Electronics 5: Alternating Current and Voltage

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

Measuring Electric Phenomena: the Ammeter and Voltmeter

ETEC Digital Controls PIC Lab 10 Pulse Width Modulation

Transistor Amplifiers

EXPERIMENT NUMBER 8 CAPACITOR CURRENT-VOLTAGE RELATIONSHIP

Reading: HH Sections , (pgs , )

Frequency Response of Filters

Step Response of RC Circuits

Lab E1: Introduction to Circuits

RLC Series Resonance

Design Project: Power inverter

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

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

RC & RL Transient Response

SERIES-PARALLEL DC CIRCUITS

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

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

Welcome to this presentation on Switch Mode Drivers, part of OSRAM Opto Semiconductors LED Fundamentals series. In this presentation we will look at:

DC mesh current analysis

Chapter 19 Operational Amplifiers

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

Lab #9: AC Steady State Analysis

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

ANADOLU UNIVERSITY DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING

Lab 7: Operational Amplifiers Part I

Kirchhoff s Laws Physics Lab IX

Electrical Resonance

See Horenstein 4.3 and 4.4

Reading assignment: All students should read the Appendix about using oscilloscopes.

Using an Oscilloscope

Resistors in Series and Parallel

EDEXCEL NATIONAL CERTIFICATE/DIPLOMA UNIT 5 - ELECTRICAL AND ELECTRONIC PRINCIPLES NQF LEVEL 3 OUTCOME 4 - ALTERNATING CURRENT

Lab 3 - DC Circuits and Ohm s Law

LAB 12: ACTIVE FILTERS

Tutorial 12 Solutions

TESTS OF 1 MHZ SIGNAL SOURCE FOR SPECTRUM ANALYZER CALIBRATION 7/8/08 Sam Wetterlin

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

LAB 7 MOSFET CHARACTERISTICS AND APPLICATIONS

Small Signal Analysis of a PMOS transistor Consider the following PMOS transistor to be in saturation. Then, 1 2

Fundamentals of Signature Analysis

Basic DC Motor Circuits. Living with the Lab Gerald Recktenwald Portland State University

8 coil stator 11 coil stator

Using Arduino Microcontrollers to Sense DC Motor Speed and Position

Basic DC Motor Circuits

Lab 1: Introduction to PSpice

Oscilloscope, Function Generator, and Voltage Division

Objectives. Electric Current

Tamura Closed Loop Hall Effect Current Sensors

Lecture - 4 Diode Rectifier Circuits

Iowa State University Electrical and Computer Engineering. E E 452. Electric Machines and Power Electronic Drives. Laboratory #3 Figures of Merit

Tutorial 2: Using Excel in Data Analysis

Electronic WorkBench tutorial

Power Supplies. 1.0 Power Supply Basics. Module

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

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

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

6.101 Final Project Proposal Class G Audio Amplifier. Mark Spatz

Power Electronics. Prof. K. Gopakumar. Centre for Electronics Design and Technology. Indian Institute of Science, Bangalore.

Drive circuit basics + V. τ e. Industrial Circuits Application Note. Winding resistance and inductance

Panasonic Microwave Oven Inverter HV Power Supply

A Practical Guide to Free Energy Devices

Operational Amplifier as mono stable multi vibrator

Low Cost Pure Sine Wave Solar Inverter Circuit

V out. Figure 1: A voltage divider on the left, and potentiometer on the right.

Chapter 22 Further Electronics

Maximum value. resistance. 1. Connect the Current Probe to Channel 1 and the Differential Voltage Probe to Channel 2 of the interface.

Lecture 27: Mixers. Gilbert Cell

DC Motor with Shaft Encoder

MAS.836 HOW TO BIAS AN OP-AMP

PLL frequency synthesizer

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

GENERAL SCIENCE LABORATORY 1110L Lab Experiment 6: Ohm s Law

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

Wiki Lab Book. This week is practice for wiki usage during the project.

Introduction to Electronic Signals

Pulse Width Modulated (PWM)

Transcription:

Name/NetID: Teammate/NetID: Experiment 8 : 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 average voltage applied to the motors using pulse width modulation (PWM). This method has some advantages over the constant voltage method. 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 the method used in Experiment #5. 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 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 Quick Measure to measure the average voltage. = (experimental) Question 2: Use the cursors on the oscilloscope to measure and of your square wave and compute the duty cycle. Record your data and computations here.

Question 3: Mathematically compute the average voltage and determine if the oscope measurement agrees. = = (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.!"#$! % =100 = #$!

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?

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 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 (%) % &'( % ) &'( *+* Comments Table 1: I-V curve for motor with PWM signal while Increasing Duty Cycle. *While will be measured by the scope,, 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. 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. (- = 100./, 0 1 = 10 2Ω, 0 4 = 22 2Ω)

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: 6-= 7 8 7 9 :7 8 = Apply the following formula to estimate the duty cycle of this oscillator.

Question 10: Suppose we replace R2 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 0 4 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 0 1 so that the motor slows as much as possible without stalling. Question 12: Draw the circuit diagram for the full circuit 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. Learn More! As time permits, please continue your experimentation using the Modules as recommended by your TAs.

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 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. Self-assessment This table has been thoughtfully completed.