17
010010001000 01001000100000110000001000001100 Digital Guitar Effects Pedal Jonathan Fong John Shefchik Advisor: Dr. Brian Nutter Texas Tech University [email protected] SPRP499

Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

Embed Size (px)

Citation preview

Page 1: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

01001000100001001000100000110000001000001100

Digital Guitar Effects Pedal

Jonathan FongJohn ShefchikAdvisor: Dr. Brian NutterTexas Tech [email protected]

Page 2: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

2

Presentation Outline

Block DiagramInput SignalDSP Configuration (Audio Processing)

Audio Daughter Card• Codec

MSP Configuration (User Peripheral Control)Pin ConnectionsUser InterfacesDSP Connection

MSP and DSP ConnectionsSimulink ModelingMSP and DSP Software Flowcharts

Page 3: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

3

Objective \ StatementsTo create a digital guitar effects pedalAll audio processing will be done with a DSP 6711 DSK board

With an audio daughter cardAll user peripherals will be controlled using a MSP430 evaluation board

Using the F149 model chipUser Peripherals include…

Floor board switchesLCD on main unit

Most guitar effect hardware that is available on the market is analog.Having a digital system would allow the user to update the system with new features without having to buy new hardware.

Page 4: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

4

MSP430F149

ADC / DAC

FootboardSwitch

TMS320C6711GPIO (3)

Serial 2 TX [16 bit]

Serial 2 RX [16 bit]

Switch Select (4)

Input from Guitar

Output toAmplifier

Serial 2 Clock

Block Diagram

LCDDisplay

Data Bus (8)

Frame Sync

Audio Daughter Card

RS

R/W ENLEDs (4)

VoltageRegulator

+5VGND

+3.3V to MSP+5V to LCD+0.7V to LCD Drive

Outlet Power Supply

DSP 6711 DSK Board

MSP 430 Evaluation Board

Data Path

Page 5: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

5

Guitar Input Signal

Voltage Range of Input Signal

Nominal ~ 300 mV peak-to-peakMaximum ~ 3 V

Frequency RangeStandard Tuning500 Hz – 1500 Hz

Page 6: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

01001000100001001000100000110000001000001100

Hardware: DSP and MSP

Page 7: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

7

PCM3002 Analog Audio Codec2 in 1 – ADC and DACSampling

16/20 bit 8 kHz – 48 kHz

• Meets 44.1 kHz for CD quality

Performance20 Hz – 20 kHz range

• Meets 500 – 1500 Hz guitar range85 dB ADC93 dB DACBuilt-in Filtering and Anti-Aliasing

Serial OutputApplications

Voice/Audio Processing

Page 8: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

8

MSP Controlled Peripherals

Liquid Crystal Display (LCD)Lumex - LCM – S020022x20 Character DisplayBuilt in Microcontroller (LCD Driver)16 (8x2) Pin Connection

• 11 pins to MSP

Floor Board 4 output pins to MSP input pins

• Effect Selection4 MSP output pins for LED control

Page 9: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

9

MSP and DSP Connection

MSP430F149 TMS320C6711

www.ti.com – slas272f.pdf

Chorus

Distortion

Reverb

http://focus.ti.com/graphics/tool/C6711brd1.gif

LCD Data BusP 2.0:7

LC

D_R

WL

CD

_RS

LC

D_E

N

Floor BoardInput P 6.3:6

Chorus

DistortionBypass

Reverb

Page 10: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

01001000100001001000100000110000001000001100

Simulink Models for the DSP

Page 11: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

11

Simulink System Diagram

ADC

Distortion

Switch 1

Chorus

Switch 2

Reverb

Switch 3

Floor Board Switches

DACSample-By-Sample Processing (No Buffering)

There is no audible delay from processing.

Page 12: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

12

Distortion Model

•Distortion is a music effect that gives a distinct, “heavy” sound. •The signal is amplified to give it a certain gain. •The amplitude of the signal is then limited symmetrically.

http://users.chariot.net.au/~gmarts/fx-desc.htm#Cho

Page 13: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

13

Chorus Model

• The chorus effect allows a single instrument to be modeled into a sound that replicates a group of instruments playing the same part.

• This is achieved by adding a single delayed signal (echo) to theoriginal input.

• However, the delay of this echo is varied continuously between a minimum delay and maximum delay at a certain rate.

Page 14: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

14

Reverb Model

• Reverb simulates the acoustical effect of rooms and enclosed buildings.

• The sound heard = source + reflected sound. • Reverberation time = the time taken for an impulse to decrease

by 60dB of it's original magnitude.

http://www.geocities.com/gitaarwerk/fxexp/reverb/Reverb.htm

Page 15: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

15

MSP Software Flowchart Port

Initialization

while(1)

ChorusLCD OutputLED/DSP

Output

ReverbLCD OutputLED/DSP

Output

if 6.3 else if 6.4

LCDInitialization

DistortionLCD OutputLED/DSP

Output

BypassLCD OutputLED/DSP

Output

else if 6.5 else if 6.6

Programmed in C

Using IAR Workbench

Input read from floor

board

Page 16: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

16

DSP Software FlowchartConverted C Code from

Matlab’s SimulinkBoard interfaced using Code Composer Studio

v2.1

Page 17: Digital Guitar Effects Pedal - Texas Instruments - TI. · PDF fileTo create a digital guitar effects pedal ... Having a digital system would allow the user to ... •Reverb simulates

17

Digital Guitar Effects Pedal

Jonathan FongJohn ShefchikAdvisor: Dr. Brian Nutter

Texas Tech [email protected]