Presentation is loading. Please wait.

Presentation is loading. Please wait.

ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola.

Similar presentations


Presentation on theme: "ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola."— Presentation transcript:

1 ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola

2 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error

3 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error

4 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity)

5 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in.

6 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want

7 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates

8 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates for the speaker

9 Experimental Error There is always an assumption that what you measure is the sum, or some combination of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) For now we can use the voltage to represent what ever physical quantity we might be interested in. We use a sensitivity to relate the voltage to the thing we want for the accelerates for the speaker

10 Experimental Error The error can be broke down into two categories

11 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise)

12 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run.

13 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error

14 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration

15 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity

16 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity 3)Digitizer noise (bit noise)

17 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Systematic error is error that occurs the say way every time an experiment is run. Examples of systematic error 1)Bad calibration 2)Non-linearity 3)Digitizer noise (bit noise) 4)Saturating the digitizer (hitting the rail)

18 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise)

19 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment.

20 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error

21 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise

22 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise 2)You lab partner

23 Experimental Error The error can be broke down into two categories 1)Systematic error (a.k.a. bias) 2)Random error (a.k.a. noise) Random error is error that is different every time you run your experiment. Examples of random error 1)Electronic noise 2)You lab partner 3)Environmental effect (room temperature, humidity…)

24 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error

25 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity)

26 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) And we make the measurement many times

27 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error Typically we measure a voltage that represents a physical quantity like temperature or velocity and then multiply or divide by some constant (the sensitivity) And we make the measurement many times

28 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error For this plot we can think of this as finding the “best” horizontal line that represents the data

29 Aggregate Comparisons There is always an assumption that what you measure is the sum of the real phenomena plus some error For this plot we can think of this as finding the “best” horizontal line that represents the data But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

30 Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

31 Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

32 Curve Fitting If we have reason to expect that the data will follow some functional form But what if we don’t expect the data to remain the same with each measurement and we want to know something about the trend?

33 Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Horizontal line (average)

34 Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Sloping line (linear fit)

35 Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a

36 Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Any polynomial (linear fit)

37 Curve Fitting We use the polyfit command in Matlab to find the closest polynomial to a set of data The polynomial might be a Maybe a parabola

38 Ultimately we would like to make a plot where we can compare data to some predictive model

39 Using “polyfit.m” for Curve Fitting So in Matlab we can make these fits by first reading in the data infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t);

40 Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,1); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 1 for a straight line

41 Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 2 for a parabola

42 Using “polyfit.m” for Curve Fitting … using “polyfit.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,6); % p is a vector of the coefficients of the polynomial The first two inputs are your x – y data pair The third input is the order of the fit, 6 for a …

43 Using “polyfit.m” for Curve Fitting..and then evaluate the polynomial using “polyval.m” infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial

44 Using “polyfit.m” for Curve Fitting …and plotting as we have earlier. infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial zf(5) = figure(5);clf za(1) = axes; zp = plot(t,height,'o’,t,y_fit);grid xlabel('time (months)’) ylabel('childs height (in)’) ss0 = ['data']; ss1 = ['fit = ' num2str(p2(1)) 'x^2 + ' num2str(p2(2)) 'x +' num2str(p2(3))]; zl = legend(ss0,ss1);

45 Using “polyfit.m” for Curve Fitting infile = 'height_data.mat'; load(infile) % this file has a pair of vector t & height (same length) N = length(t); p = polyfit(t,height,2); % p is a vector of the coefficients of the polynomial [y_fit] = polyval(p,t);% polyval evaluates the polynomial zf(5) = figure(5);clf za(1) = axes; zp = plot(t,height,'o’,t,y_fit);grid xlabel('time (months)’) ylabel('childs height (in)’) ss0 = ['data']; ss1 = ['fit = ' num2str(p2(1)) 'x^2 + ' num2str(p2(2)) 'x +' num2str(p2(3))]; zl = legend(ss0,ss1);

46 Today’s Assignment There are notes on the web page for fitting to a function of your choosing

47 Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it

48 Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it At something like 10 amplitudes

49 Today's Assignment The current assignment is to put an accelerometer on the tip of the shaker and shake it At something like 10 amplitudes And something like 3 frequencies maybe 10Hz, 100Hz, 1kHz

50 Today's Assignment Then for each frequencies

51 Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit.

52 Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit. You will need the amplifier gain for this.

53 Today's Assignment Then for each frequencies Determine the displacement amplitude per input voltage to the shaker using a linear curve fit. You will need the amplifier gain for this. Please measure it with something like a 0.1 V sinusoid at about 500Hz.

54 Non-Linearity There is one other thing I would like you to look at that is not on the assignment sheet Non-linearity Both the amplifier and the shaker will start producing harmonic responses when the their inputs exceed some level


Download ppt "ME 392 Chapter 6 Data Processing ME 392 Chapter 6 Data Processing March 12, 2012 week 9 Joseph Vignola."

Similar presentations


Ads by Google