lcd music display and graphic equalizer l.
Skip this Video
Loading SlideShow in 5 Seconds..
LCD Music Display and Graphic Equalizer PowerPoint Presentation
Download Presentation
LCD Music Display and Graphic Equalizer

Loading in 2 Seconds...

play fullscreen
1 / 22

LCD Music Display and Graphic Equalizer - PowerPoint PPT Presentation

  • Uploaded on

LCD Music Display and Graphic Equalizer. Adam Krzesinski and Cristina Vasco. Introduction. Purpose Graphical display of frequency components present in audio signal Visual representation of audio levels to aid in setting EQ parameters Real time equalization of audio signal

I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
Download Presentation

PowerPoint Slideshow about 'LCD Music Display and Graphic Equalizer' - Solomon

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.

- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
lcd music display and graphic equalizer

LCD Music Display and Graphic Equalizer

Adam Krzesinski

andCristina Vasco

  • Purpose
    • Graphical display of frequency components present in audio signal
    • Visual representation of audio levels to aid in setting EQ parameters
    • Real time equalization of audio signal
    • EQ frequency bands correspond to displayed bands
features lcd display
Features – LCD Display
  • HD44780 display controller
  • 4 channels monitored
  • Amplitude resolution - 16 levels
  • Highly responsive with imperceptible delay (< 30ms)
features equalizer
Features – Equalizer
  • Four modification bands that correlate to display
  • FFT Convolution method equivalent to 500-tap FIR filter
  • User input through faders
filterbank original design
Filterbank – Original Design
  • 8 hardware oscillator filters – LCR filter design
  • Output reflects energy of input signal in different frequency ranges
  • Constant Q over 8 octaves
  • 1 lowpass, 1 highpass, 6 bandpass
filterbank problems
Filterbank - Problems
  • Impractical L and C values for low-frequency filters eg. 4.4mH
  • Large component values would produce unresponsive display
  • Large physical size of inductors and capacitors leading to expensive or inaccurate component values
  • 4.4mH => 878 turns with largest AL available (core T68-2)
filterbank dsp implementation
Filterbank – DSP Implementation
  • Reduced to 4 bands
  • Operates on averaging FFT energy in each band
  • Each channel corresponds to trace of FFT in one of four frequency ranges
  • PIC interprets instantaneous DC values for display as magnitude of bar
filterbank dsp implementation8
Filterbank – DSP Implementation
  • Response of 4 filters to log chirp stimulus
filterbank dsp implementation9
Filterbank – DSP Implementation
  • Frequency bands chosen to cover equal space in log-frequency
  • Each band should also cover ranges with similar human hearing sensitivity
filterbank dsp implementation10
Filterbank – DSP Implementation
  • FFT energy ≠ loudness
  • Capture above shows most energy is focused in low frequencies
  • Display should parallel perceptual loudness of each frequency band
  • Solution – amplify higher bands before display
dsp equalizer fft convolution
DSP Equalizer – FFT Convolution
  • Manipulation of FFT samples – frequency domain
  • Equivalent to convolution – time domain operation
  • Speed advantage when implementing higher-order filters

( > 60 taps)

  • Algorithm explanation at
dsp equalizer fft convolution12
DSP Equalizer – FFT Convolution

Figure 18-2 from - The Scientist and Engineer's Guide to Digital Signal Processing by Steven W. Smith, Ph.D.

  • AC coupling on DSP
    • Since signal is fluctuating, average is zeroed out by DSP’s AC coupling
    • Should just be interpreted as non-negative DC value
    • Result is negative when signal should small or 0 Volts
    • Solution - change negative reference voltage on PIC
challenges ac coupling on dsp
Challenges – AC Coupling on DSP
  • Cursors show LCD driver output is -359mV at times
  • -333mV reference used for PIC to ensure negative values are displayed as non-negative
  • LCD Speed
    • Original PIC program was written to accommodate worst case timing for LCD display (anticipated 10ms draw time)
    • Sluggish performance with original code
    • PIC program had to be optimized to exit display interrupt as quickly as possible
    • Solution is to poll busy flag generated by LCD
    • Result is high frame rates and overall responsiveness of LCD
  • DSP Fixed-point arithmetic
    • FFT scales outputs by 0.5 after each stage to avoid overflow
    • Radix-2 1024-pt FFT => 10 stages => loss of 10 bits of precision of 16 bits possible
    • Magnitude scaled by 1/20
    • Output is barely audible and pervaded by quantization noise, evident after amplification
    • FFT Convolution algorithm works well in Matlab where environment is floating-point
  • Graphic LCD
    • Higher resolution and more flexible for applications with complex graphics
    • Insufficient documentation
    • Manufacturer’s site lacked a quality datasheet
  • Solution:
    • HD44780 character display
    • Very well documented with many examples
    • Suitable for our application
  • Serial Communication
    • Did not fully implement PIC to DSP serial communication
    • PIC was able to generate a stream of serial bits but DSP code incorrectly interpreted them
  • Equal log-spaced filters as desired
  • Filters cover entire audible range
  • Responsive LCD Display
  • High quality equalizer results in Matlab
  • PIC able to output information serially
  • Implement both display and EQ with embedded system
    • More channels of display and control
    • Larger memory capacity than DSP board for more accurate FFTs, more channel buffers
    • Floating-point CPU for preserving information when manipulating audio through FFT
thank you
Thank You
  • Questions?