completeVirtual Instruments & DSP

MATLAB Engineering Suite: Telemetry Apps, DSP Filters & Simulink

Interactive MATLAB App Designer serial oscilloscope and PIC16F84A instruction explorer, 11th-order Butterworth IIR vs 324th-order Hamming FIR audio crossover design, Simulink simulation, and HDL Coder export.

  • MATLAB
  • Simulink
  • App Designer
  • DSP
  • HDL Coder
  • Audio
MATLAB Engineering Suite: Telemetry Apps, DSP Filters & Simulink

Project Overview

A collection of desktop engineering instruments, digital signal processing (DSP) scripts, and simulation models built in MATLAB & Simulink across Embedded Systems 3 (First Class 84%) and Digital Signal Processing (Upper Second Class 68%) at the University of Brighton.

The repository brings together graphical desktop applications in MATLAB App Designer, a PIC16F84A opcode explorer, loudspeaker crossover filter synthesis comparing Butterworth IIR and Hamming-windowed FIR designs, fixed-point Q15 quantisation analysis, and synthesisable RTL export via MATLAB HDL Coder.


Flagship App 1: Multi-Channel Telemetry Dashboard

Built in MATLAB App Designer (HarryRogers_22835293_EO631_GUI_APP.mlapp) to communicate over serial telemetry with a physical microcontroller ADC. Features live real-time waveform plotting, scaling, calibration offsets, threshold alarms, and JSON-driven sensor configuration profiles (app_designer/config_schemas/).


Flagship App 2: PIC16F84A Instruction Explorer

An interactive CPU architecture explorer (PIC16F84A_Instruction_Explorer.mlapp) visualising PIC16F84A opcode decoding, register state updates (W, STATUS, PORTA, PORTB), and ALU flag transitions step-by-step.


Digital Signal Processing (DSP) Filter Design

The DSP scripts design and compare IIR (Infinite Impulse Response) and FIR (Finite Impulse Response) loudspeaker crossover filters sampled at 44.1 kHz (1,800 Hz cutoff):

Filter Type Order Design Method Passband Ripple Stopband Attenuation Phase Response
Butterworth IIR 11th Order fdesign.lowpass (butter) Flat (0 dB) Steep roll-off Non-linear
Hamming Window FIR 324th Order Windowed sinc (fir1 / Hamming) ±0.05 dB -53 dB Linear

Frequency Response & Spectrum Analysis

Comparing the attenuation characteristics and stopband rejection between the 11th-order Butterworth IIR filter and 324th-order Hamming FIR filter:

324th-Order Hamming FIR vs 11th-Order Butterworth IIR Spectrum Analysis Figure 1: Spectrum analyser comparison between the 324th-order Hamming FIR filter and 11th-order Butterworth IIR filter under white noise and audio stimulus.

Bode & Phase Angle Characterisation

Filter Bode Response and Phase Angle Plots Figure 2: Magnitude and phase Bode plots showing cutoff transition steepness and phase linearity across the audio frequency band.


MATLAB Filter Definition Excerpt

Excerpt from dsp_filter_design/Butterworth.m constructing the 11th-order discrete-time Butterworth low-pass filter object (44.1 kHz sample rate, 1,800 Hz cutoff) used in the crossover comparisons and Simulink model:

function Hd = Butterworth
%BUTTERWORTH Returns a discrete-time filter object.

Fs = 44100;  % Sampling Frequency (Hz)
N  = 11;     % Filter Order
Fc = 1800;   % Cutoff Frequency (Hz)

h  = fdesign.lowpass('N,F3dB', N, Fc, Fs);
Hd = design(h, 'butter');

Repository Structure & Modules

  • app_designer/: .mlapp source files and JSON configuration schemas for the Multi-Channel Telemetry Dashboard and PIC16F84A Instruction Explorer.
  • dsp_filter_design/: Filter object definitions (Butterworth.m, Hamming.m), acoustic crossover comparisons (Combined.m, New_Combined.m), Q15 fixed-point analysis (partg.m), biquad SOS decomposition (Part_h.m), and transition-width sweeps (test_widths.m).
  • simulink/: Final_Model_2025A.slx audio crossover simulation model with noise injection and spectral comparison.
  • hdl_export/: Automated MATLAB HDL Coder export scripts (export_hdl_IP.m, hdl_IP.m) and testbenches generating synthesisable VHDL/Verilog RTL filter cores.

Source Code & Academic Attribution

  • GitHub Repository: HarryRogers073/matlab-projects
  • Author: Harry Rogers (University of Brighton)
  • Environment: MATLAB, Simulink, DSP System Toolbox, HDL Coder
  • Attribution & Provenance:
    • Custom Apps & Scripts: The multi-channel telemetry GUI (HarryRogers_22835293_EO631_GUI_APP.mlapp), PIC16F84A Instruction Explorer (PIC16F84A_Instruction_Explorer.mlapp), Simulink model (Final_Model_2025A.slx), and DSP analysis scripts (Combined.m, New_Combined.m, partg.m, Part_h.m, test_widths.m) were designed and written by Harry Rogers.
    • Toolbox-Generated Filter Objects: Discrete filter objects (Butterworth.m, Hamming.m) and coefficient files (.fcf) were configured and exported using MathWorks Signal Processing and DSP System Toolboxes. MATLAB and Simulink are registered trademarks of The MathWorks, Inc.