Skip to content
Tutorials Center
My learning

Topics

Digital Signal Processing Tutorial

Learn Digital Signal Processing step by step: 38 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is Digital Signal Processing? Learn what digital signal processing is, where it is used, and how a DSP system turns a real-world signal into numbers, processes it and turns it back, with Python.
  2. 2 Sampling and Aliasing Understand how sampling turns a continuous signal into numbers, what the Nyquist rate is, and why too slow a sampling rate creates aliases. Includes Python demos.
  3. 3 Your DSP Toolkit in Python Set up a practical Python toolkit for signal processing: generate signals with NumPy, plot them with Matplotlib and use scipy.signal helpers, with runnable examples.
  4. 4 Quantization and the ADC Learn how an analog-to-digital converter rounds samples to a fixed number of bits, why quantization adds noise, and the 6 dB per bit rule, with Python experiments.

Discrete Signals

  1. 5 Sequences and Basic Signals Meet the discrete-time sequences of DSP: the unit impulse, unit step, ramp, exponentials and sinusoids, and why any signal is a sum of shifted impulses. Python examples.
  2. 6 Signal Operations, Energy and Symmetry Learn the basic operations on discrete signals (shifting, scaling, time reversal, adding), plus energy, power, even and odd parts, and correlation, in Python.
  3. 7 LTI Systems and Convolution Understand linear time-invariant systems, impulse response and discrete convolution. Implement convolution from scratch, check it with NumPy and learn its properties.
  4. 8 Difference Equations and Impulse Response Write LTI systems as difference equations, run them sample by sample, compare with scipy.signal.lfilter, and see how feedback creates infinite impulse responses.
  5. 9 The z-Transform Basics Learn the z-transform, transfer functions H(z), poles and zeros, stability, and how the frequency response comes from the unit circle, with Python checks against SciPy.

DFT and FFT

  1. 10 Fourier Series and Complex Exponentials Build intuition for the Fourier transform: phasors and complex exponentials, Fourier series, the square wave from odd harmonics, the Gibbs effect and orthogonality.
  2. 11 The DFT from Scratch Implement the discrete Fourier transform with loops and as a matrix, learn frequency bins, amplitude scaling and the inverse DFT, and check everything against NumPy's FFT.
  3. 12 The FFT Algorithm See why the fast Fourier transform is so fast: the divide-and-conquer idea behind radix-2 Cooley-Tukey, a from-scratch Python FFT, operation counts and practical FFT tips.
  4. 13 DFT Properties, Leakage and Zero Padding Learn the key DFT properties (shift, convolution theorem, circular vs linear convolution) and how spectral leakage, windowing and zero padding shape what you see.

Filters: FIR

  1. 14 FIR Filter Basics and the Moving Average Learn what FIR filters are, why the moving average is a low-pass filter, how to read magnitude and phase responses, and why symmetric coefficients give linear phase.
  2. 15 The Window Method for FIR Design Design FIR low-pass, high-pass and band-pass filters with the window method: ideal sinc, truncation, window choice, filter length, and scipy.signal.firwin.
  3. 16 Equiripple and Frequency-Sampling FIR Design Design optimal FIR filters with the Parks-McClellan equiripple method, least squares (firls) and frequency sampling (firwin2), and compare them with the window method.
  4. 17 Fast Convolution: Overlap-Add and Overlap-Save Filter long signals efficiently with FFT-based fast convolution. Implement overlap-add and overlap-save from scratch, count the cost, and compare with scipy.signal.oaconvolve.
  5. 18 FIR Design in Practice A practical FIR workflow: write the specification, pick a method, verify with freqz, remove hum and drift from a signal, use zero-phase filtfilt and test coefficient rounding.

Filters: IIR

  1. 19 IIR Filters and Recursion Learn how infinite impulse response filters use feedback, how to write their difference equations, and how to compare your own loop with scipy.signal.lfilter.
  2. 20 Designing IIR Filters with the Bilinear Transform Turn an analog prototype into a digital IIR filter with the bilinear transform, understand frequency warping and pre-warping, and design Butterworth filters with SciPy.
  3. 21 Chebyshev and Elliptic Filters Compare Butterworth, Chebyshev I and II, elliptic and Bessel IIR filters. Learn how ripple buys a sharper cutoff and how to pick the right family with SciPy.
  4. 22 Second-Order Sections and Filter Stability Learn why high-order IIR filters must be built as cascaded biquads, how to check stability from pole locations, and how to use SOS output and sosfilt in SciPy.

Spectral Analysis

  1. 23 Windowing and Spectral Leakage See why an FFT of a non-integer number of cycles smears energy across bins, and how Hann, Hamming, Blackman and Kaiser windows trade resolution against leakage.
  2. 24 The Periodogram and Welch's Method Estimate the power spectral density of noisy signals with the periodogram and Welch's averaged method, and learn how segment length trades variance for resolution.
  3. 25 The STFT and Spectrograms Build a spectrogram from scratch with the short-time Fourier transform, track a chirp over time, and understand the time-frequency resolution trade-off.
  4. 26 Zero Padding, Resolution and Peak Interpolation Understand what zero padding really does, how many samples you need to resolve two tones, and how parabolic interpolation locates a spectral peak between FFT bins.

Multirate and Adaptive Filters

  1. 27 Decimation and Aliasing Reduce the sampling rate of a signal safely. See what aliasing does when you simply drop samples, then use an anti-alias filter with scipy.signal.decimate.
  2. 28 Interpolation and Rational Resampling Increase a sampling rate by zero insertion and image filtering, then combine interpolation and decimation to change rates by a ratio such as 44.1 to 48 kHz.
  3. 29 Polyphase Filters and CIC Decimators Make multirate filters efficient with polyphase decomposition, then meet the multiplier-free CIC decimator and its compensation filter, with verified Python code.
  4. 30 The LMS Adaptive Filter Build the least-mean-squares adaptive filter step by step, learn how the step size controls convergence and noise, and use it to identify an unknown system.
  5. 31 Adaptive Noise Cancellation Remove interference from a signal using a reference noise input and an adaptive filter. Build an NLMS canceller, compare it to RLS and see why the signal survives.

Applications

  1. 32 An Audio Equalizer from Biquads Design peaking, shelving and notch biquads from the audio EQ cookbook formulas, cascade them into a multiband equalizer and verify the gains in Python.
  2. 33 ECG and Power-Line Denoising Clean a synthetic ECG with a 50 Hz notch, a baseline-wander high-pass and zero-phase filtering, then detect heartbeats and estimate the heart rate in Python.
  3. 34 AM and FM Modulation and Demodulation Modulate and demodulate AM and FM signals in software. Use the analytic signal for envelope and instantaneous frequency and mix to baseband with I/Q processing.
  4. 35 Pitch Detection Estimate the fundamental frequency of a sound with autocorrelation, the harmonic product spectrum and parabolic refinement. Learn the octave-error trap and test on synthetic voices.

Projects and Practice

  1. 36 Project: A DTMF Tone Detector with Goertzel Build a telephone keypad decoder in Python. Generate DTMF tones, implement the Goertzel algorithm from scratch, add noise, and decode a whole phone number robustly.
  2. 37 Project: Spectral Subtraction Noise Reduction Build a noise reducer with the STFT. Estimate the noise spectrum, subtract it with a spectral floor, resynthesize with overlap-add and measure the SNR improvement.
  3. 38 DSP Practice Problems with Solutions Twelve worked practice problems on IIR filters, spectral analysis, multirate processing and adaptive filters, each with a numeric check you can run and modify in Python.