13 Pages

EECE 301 Note Set 9a Motor Speed Example

Course: EECE 301, Fall 2011
School: Binghamton
Rating:
 
 
 
 
 

Word Count: 1193

Document Preview

301 EECE Signals & Systems Prof. Mark Fowler Note Set #9a Example: Using D-T Convolution in an Application of Measuring the Speed of a Motor 1/13 Course Flow Diagram The arrows here show conceptual flow between ideas. Note the parallel structure between the pink blocks (C-T Freq. Analysis) and the blue blocks (D-T Freq. Analysis). New Signal Models Ch. 1 Intro C-T Signal Model Functions on Real Line...

Register Now

Unformatted Document Excerpt

Coursehero >> New York >> Binghamton >> EECE 301

Course Hero has millions of student submitted documents similar to the one
below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.

Course Hero has millions of student submitted documents similar to the one below including study guides, practice problems, reference materials, practice exams, textbook help and tutor support.
301 EECE Signals & Systems Prof. Mark Fowler Note Set #9a Example: Using D-T Convolution in an Application of Measuring the Speed of a Motor 1/13 Course Flow Diagram The arrows here show conceptual flow between ideas. Note the parallel structure between the pink blocks (C-T Freq. Analysis) and the blue blocks (D-T Freq. Analysis). New Signal Models Ch. 1 Intro C-T Signal Model Functions on Real Line System Properties LTI Causal Etc D-T Signal Model Functions on Integers Ch. 3: CT Fourier Signal Models Fourier Series Periodic Signals Fourier Transform (CTFT) Non-Periodic Signals Ch. 5: CT Fourier System Models Frequency Response Based on Fourier Transform Ch. 6 & 8: Laplace Models for CT Signals & Systems Transfer Function New System Model New System Model Ch. 2 Diff Eqs C-T System Model Differential Equations D-T Signal Model Difference Equations Zero-State Response Zero-Input Response Characteristic Eq. Ch. 2 Convolution C-T System Model Convolution Integral D-T System Model Convolution Sum New System Model New Signal Model Powerful Analysis Tool Ch. 4: DT Fourier Signal Models DTFT (for "Hand" Analysis) DFT & FFT (for Computer Analysis) Ch. 5: DT Fourier System Models Freq. Response for DT Based on DTFT Ch. 7: Z Trans. Models for DT Signals & Systems Transfer Function New System Model New System Model2/13 Example: D-T Processing for Motor Speed The m-file motor_speed.m is available for download from the course website. To run it all you need to do is: 1. Download it to a folder on your computer a. Make sure Matlab's current directory is the folder where you have put the m-file (change it if needed) 2. At the Matlab command line type: motor_speed 3. The m-file will run and create several figures 3/13 Physical Set-Up of Motor and Sensor Suppose you have a motor whose shaft is connected to a sensor that can measure the angular position of the shaft... its values will range between - and . Output of Sensor when Motor spins at constant angular rate of 5 rad/sec Motor Assume that the sensor generates 1 volt/radian Q: How do we measure the speed of the motor? 4/13 Motor and D-T System for Processing First we could sample the sensor's signal at a fast enough rate to get a D-T signal that accurately conveys the C-T signal coming from the sensor: m[n] m(t) Analog-to-Digital Computer-Based Motor Converter (ADC) D-T System C-T Signal Representing Angular Position D-T Signal Representing Angular Position The resulting samples could be put into a computer (as binary numbers) and processed using D-T convolution. Now... the trick is to determine how to design the D-T system (i.e., choose the system's impulse response h[n]) to get a measure of the angular rate rm[n] !!! Computer m[n] h1[n] Some Tricks rm[n] h2[n] 5/13 We can use matlab to explore how to do this. Simulate the Angular Position's D-T Signal in Matlab % Create time samples spaced 1 ms apart del_t=0.001; t=0:del_t:3; theta=5*pi*t; %% simulates angular position of motor shaft spinning at a constant rate %% use some matlab "tricks" to simulate the fact that measured angle lies in pi to pi theta_m=angle(exp(j*theta)); Motor ADC m[n] h1[n] Some Tricks rm[n] h2[n] Note: Discontinuities Figure 1 from motor_speed.m 6/13 1st D-T Convolution Approximates Computing a Derivative % specify impulse response of D-T system that computes %% the time derivative of the input h_1=[-3 16 -36 48 -25]/(12*del_t); Comes from Branch of Math known as "Numerical Methods" %%% Compute D-T system's output using convolution x=theta_m; % just rename position measurements to "typical" input symbol y=conv(x, h_1); Matlab % has a command for convolving two signals Motor ADC m[n] h1[n] Some Tricks rm[n] h2[n] Figure 2 from motor_speed.m Correct Values For Rate Large Spurious Values due to Discontinuities 7/13 D-T Tricks to Fix the Effects of the Discontinuities %% we can do some computer-based "exception processing" to get rid of those %% by throwing away output values whose absolute value is bigger than we would expect %% the rotational rate to be I=find(abs(y)>500); % find the indices of such large values y(I)=0; % replace the values with zeros at those locations Motor ADC m[n] h1[n] Some Tricks rm[n] h2[n] Correct Values For Rate Zeros Inserted to Replace Spurious Values from Discontinuities "Transient" values "Ramp-Up values due to convolution 8/13 Figure 3 from motor_speed.m D-T Convolution to Further Fix the Discontinuities In the previous stage we inserted zeros at the discontinuity points... so what we end up with (ignoring the transient) is many correct values with a few zero values included. So... imagine taking a small block of N such data points and taking the data average (add them up and divide by N)... the small number of zero values will have a small effect and we should end up with the average being close to the true value. If we imagine "sliding the block" used for averaging ahead by one sample each time... then we would get an average for each block that should be a good estimate of the angular rate These indicate the Etc. sliding blocks Figure 3 from motor_speed.m 9/13 With a little thought we can convince ourselves that this sliding average is nothing more that convolving the "zero-corrected" signal with a D-T signal that has N ones and zeros elsewhere and then dividing by N: y2a=conv(y,ones(1,100)) /100; % do sliding average of 100 pts to reduce effect of inserted zeros y2b=conv(y,ones(1,1000))/1000; % do sliding average of 1000 pts to explore effect of N value Motor ADC m[n] h1[n] Some Tricks rm[n] h2[n] This indicates the following trade-off for the size of the averaging block: Blue: N = 100 Red: N = 1000 Figure 4 from motor_speed.m Pro Small N Rapid Response Time Large N Small Fluctuation in Values Slow Response Time Con Large Fluctuation in Values 10/13 Admission: The way we did it (replace anomalies with zeros, smooth with convolution) is probably not the best way to do this: A better "Trick" would be to replace each anomaly with the non-anomaly value that precedes it. This would reduce the jumps due to the inserted zeros and reduce the need for the second convolution. 11/13 Exploring Impact of Abrupt Rate Change Motor ADC m[n] h1[n] Some Tricks rm[n] h2[n] Blue: N = 100 Red: N = 1000 Rate Change Figures 5&6 from motor_speed.m Bigger N gives: More accurate measure... But... slower response to changes 12/13 Things We've Seen Here Using Matlab to simulate D-T signals that will be obtained from an ADC Use D-T convolution to approximately compute the derivative of a signal The D-T signal represents samples of some "underlying" C-T signal Use tricks to correct anomalies and spurious results In practice this kind of thing is pretty common Use D-T convolution to "smooth out" jumps Here the jumps were due to physical characteristics of angle measurement We have seen a fundamental trade-off that often arises in linear systems: A system that provides more "smoothing" capability typically responds slowly to signal changes So... if we have a noisy signal, we can remove a lot of the noise but only at the expense of smoothing out some of the signal's rapid changes 13/13
Find millions of documents on Course Hero - Study Guides, Lecture Notes, Reference Materials, Practice Exams and more. Course Hero has millions of course specific materials providing students with the best way to expand their education.

Below is a small sample set of documents:

Binghamton - EECE - 301
EECE 301Signals & SystemsProf. Mark FowlerNote Set #10 C-T Systems: Convolution Representation Reading Assignment: Section 2.6 of Kamen and Heck1/11Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure
Binghamton - EECE - 301
EECE 301Signals & SystemsProf. Mark FowlerNote Set #11 C-T Systems: Computing Convolution Reading Assignment: Section 2.6 of Kamen and Heck1/20Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure betwe
Binghamton - EECE - 301
EECE 301 Signals & SystemsProf. Mark FowlerNote Set 11aExample: Using D-T Convolution to Simulate the Effect of an RC Circuit on a Guitar Signal1/9Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure bet
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #12 C-T Signals: Motivation for Fourier Series Reading Assignment: Section 3.1 of Kamen and Heck1/18Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structur
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerComplex SinusoidsComplex-Valued Sinusoidal Functions1/16A sinusoid is completely defined by its three parameters: -Amplitude A (for EE's typically in volts or amps or other physical unit) -Frequency in radia
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #13 C-T Signals: Fourier Series (for Periodic Signals) Reading Assignment: Section 3.2 & 3.3 of Kamen and Heck1/21Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the par
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #14 C-T Signals: Fourier Transform (for Non-Periodic Signals) Reading Assignment: Section 3.4 & 3.5 of Kamen and Heck1/27Course Flow DiagramThe arrows here show conceptual flow between ideas. Note
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #15 C-T Signals: Fourier Transform Properties Reading Assignment: Section 3.6 of Kamen and Heck1/39Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #16 C-T Signals: Generalized Fourier Transform Reading Assignment: Section 3.7 of Kamen and Heck1/9Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #17 C-T Systems: Frequency-Domain Analysis of Systems Reading Assignment: Section 5.1 of Kamen and Heck We're jumping over Ch. 4 for now. we'll come back later1/10Course Flow DiagramThe arrows here
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #18 C-T Systems: Frequency-Domain Analysis of Systems Reading Assignment: Section 5.2 of Kamen and Heck1/12Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel s
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #19 C-T Systems: Frequency-Domain Analysis of Systems Reading Assignment: Section 5.2 of Kamen and Heck1/17Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel s
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #20 C-T Systems: Ideal Filters - Frequency-Domain Analysis Reading Assignment: Section 5.3 of Kamen and HeckCourse Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel s
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #21 C-T to D-T Conversion: Sampling of C-T signals Reading Assignment: Section 5.4 of Kamen and Heck We study this now for two reasons: The analysis uses C-T Frequency-Domain System Analysis Methods
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #22 D-T Signals: Frequency-Domain Analysis Reading Assignment: Section 4.1 of Kamen and Heck1/12Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure be
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #23 D-T Signals: DTFT Details Reading Assignment: Section 4.1 of Kamen and Heck1/17Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel structure between the pin
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #24 D-T Signals: Definition of DFT Numerical FT Analysis Reading Assignment: Sections 4.2 of Kamen and Heck1/15Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parall
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #25 D-T Signals: Relation between DFT, DTFT, & CTFT Reading Assignment: Sections 4.2.4 & 4.3 of Kamen and Heck1/22Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the par
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #26 D-T Systems: DTFT Analysis of DT Systems Reading Assignment: Sections 5.5 & 5.6 of Kamen and Heck1/20Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel str
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #27 C-T Systems: Laplace Transform Power Tool for system analysis Reading Assignment: Sections 6.1 6.3 of Kamen and Heck1/18Course Flow DiagramThe arrows here show conceptual flow between ideas. No
Binghamton - EECE - 301
1 X ( s) = s+5At s = 5 the denominator = 0 and X(s) goes to s=5jX ( s) j
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #28 C-T Systems: Laplace Transform. Solving Differential Equations Reading Assignment: Section 6.4 of Kamen and Heck1/21Course Flow DiagramThe arrows here show conceptual flow between ideas. Note t
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #28a C-T Systems: Laplace Transform. Partial Fractions Reading Assignment: "Notes 28a Reading on Partial Fractions" (On my website)1/8Course Flow DiagramThe arrows here show conceptual flow between
Binghamton - EECE - 301
1Partial Fraction ExpansionWhen trying to find the inverse Laplace transform (or inverse z transform) it is helpful to be able to break a complicated ratio of two polynomials into forms that are on the Laplace Transform (or z transform) table. We will i
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #29 C-T Systems: Laplace Transform. Transfer Function Reading Assignment: Section 6.5 of Kamen and Heck1/17Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the parallel s
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #30 C-T Systems: Laplace Transform. and System Stability Reading Assignment: Section 8.1 of Kamen and Heck1/30Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the paralle
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #31 C-T Systems: Laplace Transform. and System Response to an Input Reading Assignment: Section 8.4 of Kamen and Heck1/7Course Flow DiagramThe arrows here show conceptual flow between ideas. Note t
Binghamton - EECE - 301
> A=[1 (R/L) 1/(L*C)]; > format long > Den=conv(A,[1 100]) Den = 1.0e+008 * 0.00000001000000 0.00002300000000 0.01396470588235 1.17647058823529>A=[1 (R/L) 1/(L*C)]; >[R,P,K]=residue([5 11002],A) R= -12.5237 17.5237 P= 1.0e+003 * -1.2831 -0.9169>A=[1 (R/
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #32 C-T Systems: Transfer Function . and Frequency Response Reading Assignment: Section 8.5 of Kamen and Heck1/37Course Flow DiagramThe arrows here show conceptual flow between ideas. Note the para
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #33 D-T Systems: Z-Transform . "Power Tool" for system analysis Reading Assignment: Sections 7.1 7.3 of Kamen and Heck1/16Course Flow DiagramThe arrows here show conceptual flow between ideas. Note
Binghamton - EECE - 301
1Partial Fraction Expansion via MATLABThe residue function of MATLAB can be used to compute the partial fraction expansion (PFE) of a ratio of two polynomials. This can be used or Laplace transforms or Z transforms, although we will illustrate it with Z
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #34 D-T Systems: Z-Transform . Solving Difference Eqs. & Transfer Func. Reading Assignment: Sections 7.4 7.5 of Kamen and Heck1/16Course Flow DiagramThe arrows here show conceptual flow between ide
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerNote Set #35 D-T Systems: Z-Transform . Stability of Systems, Frequency Response Reading Assignment: Section 7.5 of Kamen and Heck1/14Course Flow DiagramThe arrows here show conceptual flow between ideas. N
Binghamton - EECE - 301
EECE 301 Signals & Systems Prof. Mark FowlerDiscussion #12a DT Filter ApplicationThese notes explore the use of DT filters to remove an interference (in this case a single tone) from an audio signal. Imagine that you are in the your home recording stud
Binghamton - EECE - 301
Binghamton - EECE - 301
Binghamton - EECE - 301
Fourier Transform TableTime Signal 1, < t < 0.5 + u(t ) u (t ) (t ) (t c), c real e bt u(t ), b > 0 Fourier Transform 2 ( ) 1 / j ( ) + 1 / j 1, < < e jc , c real 1 , b>0 j + b 2 ( o ), o real sinc[ t / 2 ]e jot , o real p (t )2t[1 ] p (t ) sinc[
Binghamton - EECE - 301
Laplace Transform TableTime Signal u(t ) u(t ) - u(t - c), c > 0 t N u(t ), N = 1, 2, 3,K Laplace Transform 1/ s (1 - e - cs ) / s, c > 0 N! , N = 1, 2, 3,K s N +1 1 e - cs , c real 1 , b real or complex s+b N! , N = 1, 2, 3, K ( s + b) N +1 s 2 2 s + o
Binghamton - EECE - 301
Ch. 6: Logarithmic Unit The DecibelNotes from EECE 281. "Ch. 6" refers to the EECE 281 book called "Electrical Engineering Uncovered"15/24Logarithmic Scale Engineers deal with data that can take on values over a HUGE range! i.e., Plotting Y vs. X Plo
Binghamton - EECE - 301
Semi-log Paper for Bode Plots
Binghamton - EECE - 301
Simple Introduction to Transistor (BJT) Amplifier1/10Bipolar Junction Transistor Made out of n-type and p-type silicon There are two "flavors" of BJT's pnp & npnpnp TransistorTo Learn More! EECE 332 (Semiconductors) "Why do they work?"npn Transisto
Binghamton - EECE - 301
Trig Identity Tablee j = cos( ) j sin( ) e j + e j cos( ) = 2 j e e j sin( ) = 2j cos( / 2) = m sin( ) sin( / 2) = cos( ) 2 sin( ) cos( ) = sin(2 ) sin 2 ( ) + cos2 ( ) = 1 cos2 ( ) sin 2 ( ) = cos(2 )[3 cos( ) + cos(3 )] sin3 ( ) = 1 [3 sin( ) sin(3 )]
Binghamton - EECE - 301
Z Transform TableTime Signal [n ] [n - q], q = 1, 2, K Z Transform 1 1 = z -q , q = 1, 2, K q z z z -1 zq - 1 , q = 1, 2, K z q -1 (z - 1) z , a real or complex z-a z (z - 1)2 z2 (z - 1)2 z (z + 1) (z - 1)3 az (z - a )2 az (z + a ) (z - a )3 2az 2 (z - a
Binghamton - EECE - 301
Binghamton - EECE - 301
Binghamton - EECE - 301
Why are Low Impedance Microphones Better Than High-Imp.Microphones come in a variety of types based on a variety of factors. For example, there are "dynamic" microphones that use a magnet and coil to convert sound waves into electrical signals by exploit
Saddleback - ENG - 1b
Fijany1Layla FijanyProfessor JalalatSaddleback English 1BSeptember 24, 2011California Dreaming: In Need of Financial Aid1.Readers should be concerned with this topic because it affects all Americancitizens who live in California he United States
Saddleback - ENG - 1b
1FijanyLayla FijanyMrs. J. JalalatEnglish 1B16 November 2011The Logical Science of LoveColdplay released The Scientist during their second album in 2002. After surfacing,this song became an instant success, and still remains so, due to the publics
Saddleback - ENG - 1b
Fijany1Layla FijanyMs. J. JalalatEnglish 1B7 December 2011At Issues: Stem Cells/ The Debate of Life1.Stem cells, it seems, have been around in medicine since stethoscopes were first used.Yet, the argument over whether the use of these biological
Saddleback - ENG - 1b
NY TIMES, HEALTH, MONEY AND POLICYhttp:/www.nytimes.com/2010/08/24/health/policy/24stem.html?scp=1&sq=should%20stem%20cell%20research%20be%20allowed&st=cseU.S. Judge Rules Against Obamas Stem Cell PolicyBy GARDINER HARRISPublished: August 23, 2010WA
Saddleback - ENG - 1b
1FijanyLayla FijanyHorriganContemporary Lit30 October 2009
Virginia College - BUSINESS - 100
NOTES
Virginia College - BUSINESS - 100
Ifyouarelikemostpeople,youhavesomeliabilityinsurancecoveragethroughyourhomeownersandautomobilepolicies.Buthaveyourcoveragelimitskeptpacewithyourexposuretorisk?Areyoumakingmoremoney,livinginamoreexpensivehome,orholdingmoreassetsthanyouwereadecadeago?Ev
Virginia College - BUSINESS - 100
DispellingUmbrellaInsuranceMythsIts easy to tell yourself that youll probably never need to purchase extra liability insurance. After all, yourchances of being hit with a multimillion-dollar lawsuit may be fairly slim. And besides, wouldnt the liability
Virginia College - BUSINESS - 100
TheEvolvingRoleOfVoluntaryBenefitsThe last few years have brought unprecedented financial pressures to employers. As that pressure increased, so did the speculationthat ancillary benefits would fall by the wayside. It seemed like an easy way for employe
Virginia College - BUSINESS - 100
Virginia College - BUSINESS - 100
How to Approach an Employer Over Email:Step 1: Mind Your Manners:Think of the basic rules you learned growing up, like saying please and thank you. Addresspeople you don't know as Mr., Mrs., or Dr. Include their last name. Your greeting should beforma
Virginia College - BUSINESS - 100
Bodie Kane MarcusEssentials of InvestmentsFourthEditionChapter 10Bond Prices andYieldsIrwin/McGrawHill2001TheMcGrawHillCompanies,Inc.Allrightsreserved.Essentials of InvestmentsBodie Kane MarcusFourthEditionBond Characteristics Face or par va