ABabcdfghiejkl Network for supporting the REALSIMPLE project - - PowerPoint PPT Presentation

ababcdfghiejkl
SMART_READER_LITE
LIVE PREVIEW

ABabcdfghiejkl Network for supporting the REALSIMPLE project - - PowerPoint PPT Presentation

Collocated proportional-integral-derivative (PID) control of acoustic musical instruments Edgar Berdahl and Julius O. Smith III Department of Electrical Engineering Center for Computer Research in Music and Acoustics (CCRMA) Stanford University


slide-1
SLIDE 1

ABabcdfghiejkl

Collocated proportional-integral-derivative (PID) control of acoustic musical instruments

Edgar Berdahl and Julius O. Smith III

Department of Electrical Engineering Center for Computer Research in Music and Acoustics (CCRMA) Stanford University Stanford, CA, 94305

Education in Acoustics: Tools for Teaching Acoustics Thursday Morning at 10:20AM, June 7th, 2007 —

Special thanks to the Wallenberg Global Learning Network for supporting the REALSIMPLE project

slide-2
SLIDE 2

ABabcdfghiejkl

Outline

Overview Theory Laboratory Exercise In Pure Data

slide-3
SLIDE 3

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

slide-4
SLIDE 4

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

◮ Music is a good way to interest young people in math,

science, and engineering.

slide-5
SLIDE 5

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

◮ Music is a good way to interest young people in math,

science, and engineering.

◮ Physical experiments and pedagogical computer-based

simulations of the same systems run in parallel and interconnected.

slide-6
SLIDE 6

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

◮ Music is a good way to interest young people in math,

science, and engineering.

◮ Physical experiments and pedagogical computer-based

simulations of the same systems run in parallel and interconnected.

◮ The traditional lab bench is enhanced rather than replaced.

slide-7
SLIDE 7

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

◮ Music is a good way to interest young people in math,

science, and engineering.

◮ Physical experiments and pedagogical computer-based

simulations of the same systems run in parallel and interconnected.

◮ The traditional lab bench is enhanced rather than replaced. ◮ Only standard computers and some inexpensive,

easy-to-build hardware are required.

slide-8
SLIDE 8

ABabcdfghiejkl

The RealSimPLE Project

◮ RealSimPLE is a web-based teacher’s resource for student

laboratory sessions in musical acoustics.

◮ Music is a good way to interest young people in math,

science, and engineering.

◮ Physical experiments and pedagogical computer-based

simulations of the same systems run in parallel and interconnected.

◮ The traditional lab bench is enhanced rather than replaced. ◮ Only standard computers and some inexpensive,

easy-to-build hardware are required.

◮ The RealSimPLE Project is a collaboration between

Stanford University and KTH in Sweden.

slide-9
SLIDE 9

RealSimPLE Laboratory Assignment Dependencies

Transfer Function Psychoacoustics Lab Harmonic Content

  • f a Plucked String

Experiments Monochord Monochord Activity Weighted Control PID Plucked String Digital Waveguide Model Traveling Waves In A Vibrating String Auditory Filter Bank Lab Illusions Lab Musical Flute Lab Virtual Virtual Acoustic Tube Lab Monochord Assembly Soundcard Setup START Introduction to STK and Reverberation Time−Varying Delay Effects Guitar Model Electric and Piano Models Acoustic Guitar Measurement Toolbox

slide-10
SLIDE 10

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control.

slide-11
SLIDE 11

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control. ◮ Describe how this discipline may be applied to a vibrating

string.

slide-12
SLIDE 12

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control. ◮ Describe how this discipline may be applied to a vibrating

string.

◮ Describe how modifying the control parameters affects the

harmonic content.

slide-13
SLIDE 13

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control. ◮ Describe how this discipline may be applied to a vibrating

string.

◮ Describe how modifying the control parameters affects the

harmonic content.

◮ Explain what instability is and how it may arise.

slide-14
SLIDE 14

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control. ◮ Describe how this discipline may be applied to a vibrating

string.

◮ Describe how modifying the control parameters affects the

harmonic content.

◮ Explain what instability is and how it may arise. ◮ Experiment with a virtual controlled string using the Pure

Data software.

slide-15
SLIDE 15

ABabcdfghiejkl

Summary Of PID Control Lab Objectives

◮ Explain the basic idea behind feedback control. ◮ Describe how this discipline may be applied to a vibrating

string.

◮ Describe how modifying the control parameters affects the

harmonic content.

◮ Explain what instability is and how it may arise. ◮ Experiment with a virtual controlled string using the Pure

Data software.

◮ Gain experience using Pure Data.

slide-16
SLIDE 16

ABabcdfghiejkl

Feedback control

Feedback control is the discipline in which system dynamics are studied and altered by creating feedback loops.

System

+ r x u

Controller

Figure: Typical block diagram for a control application

slide-17
SLIDE 17

ABabcdfghiejkl

Feedback control

Feedback control is the discipline in which system dynamics are studied and altered by creating feedback loops.

System

+ r x u

Controller

Figure: Typical block diagram for a control application

◮ Application to cruise control

slide-18
SLIDE 18

ABabcdfghiejkl

Feedback control

Feedback control is the discipline in which system dynamics are studied and altered by creating feedback loops.

System

+ r x u

Controller

Figure: Typical block diagram for a control application

◮ Application to cruise control ◮ Application to a vibrating string

slide-19
SLIDE 19

ABabcdfghiejkl

Outline

Overview Theory Laboratory Exercise In Pure Data

slide-20
SLIDE 20

ABabcdfghiejkl

System Model

◮ If we collocate the sensor and actuator, then we can use the

following model of the lowest resonance:

Figure: Lightly-damped harmonic oscillator (R is small)

slide-21
SLIDE 21

ABabcdfghiejkl

System Model

◮ If we collocate the sensor and actuator, then we can use the

following model of the lowest resonance:

Figure: Lightly-damped harmonic oscillator (R is small)

◮ Equivalent mass m, spring with constant K, and damping

parameter R

slide-22
SLIDE 22

ABabcdfghiejkl

System Model

◮ If we collocate the sensor and actuator, then we can use the

following model of the lowest resonance:

Figure: Lightly-damped harmonic oscillator (R is small)

◮ Equivalent mass m, spring with constant K, and damping

parameter R

◮ m¨

x + R ˙ x + Kx = 0

slide-23
SLIDE 23

ABabcdfghiejkl

System Model

◮ If we collocate the sensor and actuator, then we can use the

following model of the lowest resonance:

Figure: Lightly-damped harmonic oscillator (R is small)

◮ Equivalent mass m, spring with constant K, and damping

parameter R

◮ m¨

x + R ˙ x + Kx = 0

◮ Pitch f0 ≈ 1 2π

  • K

m, and the decay time constant τ = 2m R

slide-24
SLIDE 24

ABabcdfghiejkl

Proportional-Derivative (PD) Control

◮ If we implement the feedback law F = PD ˙

x + PPx, then we arrive at the following differential equation

m¨ x + R ˙ x + Kx = PD ˙ x + PPx

slide-25
SLIDE 25

ABabcdfghiejkl

Proportional-Derivative (PD) Control

◮ If we implement the feedback law F = PD ˙

x + PPx, then we arrive at the following differential equation

m¨ x + R ˙ x + Kx = PD ˙ x + PPx

◮ The controlled dynamics are

m¨ x + (R − PD) ˙ x + (K − PP)x = 0

slide-26
SLIDE 26

ABabcdfghiejkl

Proportional-Derivative (PD) Control

◮ If we implement the feedback law F = PD ˙

x + PPx, then we arrive at the following differential equation

m¨ x + R ˙ x + Kx = PD ˙ x + PPx

◮ The controlled dynamics are

m¨ x + (R − PD) ˙ x + (K − PP)x = 0

◮ ˆ

f0 ≈

1 2π

  • K−PP

m

and decay time ˆ τ =

2m R−PD

slide-27
SLIDE 27

ABabcdfghiejkl

Integral Control

◮ Similarly the feedback law F = PI

  • x dt
slide-28
SLIDE 28

ABabcdfghiejkl

Integral Control

◮ Similarly the feedback law F = PI

  • x dt

◮ The controlled dynamics are third order

m¨ x + R ˙ x + Kx = PI

  • x dt
slide-29
SLIDE 29

ABabcdfghiejkl

Integral Control

◮ Similarly the feedback law F = PI

  • x dt

◮ The controlled dynamics are third order

m¨ x + R ˙ x + Kx = PI

  • x dt

◮ The analysis is more complicated, but for small |PI|,

ˆ τ ≈

2m R+

PI 4π2f2

slide-30
SLIDE 30

ABabcdfghiejkl

Integral Control

◮ Similarly the feedback law F = PI

  • x dt

◮ The controlled dynamics are third order

m¨ x + R ˙ x + Kx = PI

  • x dt

◮ The analysis is more complicated, but for small |PI|,

ˆ τ ≈

2m R+

PI 4π2f2

◮ PID Control:

◮ Can control the damping with PD and PI

slide-31
SLIDE 31

ABabcdfghiejkl

Integral Control

◮ Similarly the feedback law F = PI

  • x dt

◮ The controlled dynamics are third order

m¨ x + R ˙ x + Kx = PI

  • x dt

◮ The analysis is more complicated, but for small |PI|,

ˆ τ ≈

2m R+

PI 4π2f2

◮ PID Control:

◮ Can control the damping with PD and PI ◮ Can control the pitch (some) with PP

slide-32
SLIDE 32

ABabcdfghiejkl

Outline

Overview Theory Laboratory Exercise In Pure Data

slide-33
SLIDE 33

ABabcdfghiejkl

Pure Data

slide-34
SLIDE 34

ABabcdfghiejkl

Instability

◮ Students can choose the control parameters PP, PI, and PD

  • ver a reasonable range.
slide-35
SLIDE 35

ABabcdfghiejkl

Instability

◮ Students can choose the control parameters PP, PI, and PD

  • ver a reasonable range.

◮ Some combinations of the control parameters result in

instability.

slide-36
SLIDE 36

ABabcdfghiejkl

Instability

◮ Students can choose the control parameters PP, PI, and PD

  • ver a reasonable range.

◮ Some combinations of the control parameters result in

instability.

◮ The patch disables sound if the level becomes too large.

slide-37
SLIDE 37

ABabcdfghiejkl

Questions For Students

After students have been given the relevant background information, they are prodded through a series of questions to conclude the following

slide-38
SLIDE 38

ABabcdfghiejkl

Questions For Students

After students have been given the relevant background information, they are prodded through a series of questions to conclude the following

  • 1. Sensors placed at nodes of particular harmonics will not

measure any energy at these frequencies.

slide-39
SLIDE 39

ABabcdfghiejkl

Questions For Students

After students have been given the relevant background information, they are prodded through a series of questions to conclude the following

  • 1. Sensors placed at nodes of particular harmonics will not

measure any energy at these frequencies.

  • 2. In comparison with PD, PI causes lower harmonics to be

damped more quickly than higher harmonics.

slide-40
SLIDE 40

ABabcdfghiejkl

Questions For Students

After students have been given the relevant background information, they are prodded through a series of questions to conclude the following

  • 1. Sensors placed at nodes of particular harmonics will not

measure any energy at these frequencies.

  • 2. In comparison with PD, PI causes lower harmonics to be

damped more quickly than higher harmonics.

  • 3. It is not possible to change the pitch as far as the model

predicts before instability sets in.

slide-41
SLIDE 41

ABabcdfghiejkl

Questions For Students

After students have been given the relevant background information, they are prodded through a series of questions to conclude the following

  • 1. Sensors placed at nodes of particular harmonics will not

measure any energy at these frequencies.

  • 2. In comparison with PD, PI causes lower harmonics to be

damped more quickly than higher harmonics.

  • 3. It is not possible to change the pitch as far as the model

predicts before instability sets in.

  • 4. This is a weakness of the simplified model.
slide-42
SLIDE 42

ABabcdfghiejkl

Challenge Problem

◮ We use Pure Data because it is easy to see how the

patches work.

slide-43
SLIDE 43

ABabcdfghiejkl

Challenge Problem

◮ We use Pure Data because it is easy to see how the

patches work.

◮ We challenge advanced students to modify the patch to

implement a time-varying amplitude effect.

slide-44
SLIDE 44

ABabcdfghiejkl

Challenge Problem

◮ We use Pure Data because it is easy to see how the

patches work.

◮ We challenge advanced students to modify the patch to

implement a time-varying amplitude effect.

◮ They are given the following hint:

slide-45
SLIDE 45

ABabcdfghiejkl

Bibliography

  • E. Berdahl and J. O. Smith III,

PID Control of a Plucked String, Online REALSIMPLE Laboratory, http://ccrma.stanford.edu/realsimple/pidcontrol, 2007.

  • C. Besnainou,

Transforming the voice of musical instruments by active control of the sound radiation, International Symposium on Active Control of Sound and Vibration, Fort Lauderdale, FL, 1999.

  • E. Berdahl, J. O. Smith III, and A. Freed,

Active damping of a vibrating string, International Symposium on Active Control of Sound and Vibration, Adelaide, Australia, 2006.

slide-46
SLIDE 46

ABabcdfghiejkl

Thanks

Questions?