Asee peer logo

A Low-Cost Platform for Teaching Real-Time Digital Signal Processing

Download Paper |

Conference

2024 ASEE Annual Conference & Exposition

Location

Portland, Oregon

Publication Date

June 23, 2024

Start Date

June 23, 2024

End Date

July 12, 2024

Conference Session

Innovative Laboratory Approaches in ECE Education

Tagged Divisions

Electrical and Computer Engineering Division (ECE) and Experimentation and Laboratory-Oriented Studies Division (DELOS)

Permanent URL

https://peer.asee.org/46452

Request a correction

Paper Authors

biography

Joseph P. Hoffbeck University of Portland

visit author page

Joseph P. Hoffbeck is a Professor of Electrical Engineering at the University of Portland in Portland, Oregon. He has a Ph.D. from Purdue University, West Lafayette, Indiana. He previously worked with digital cell phone systems at Lucent Technologies.

visit author page

Download Paper |

Abstract

The STM32F746G-DISCO Discovery kit from STMicroelectronics was chosen as the hardware platform to support a junior/senior electrical engineering real-time digital signal processing (DSP) course. The board features a STM32F746NG microcontroller with an Arm Cortex-M7 core with a floating-point unit and DSP instructions. The board includes a debugger, stereo audio line-in/line-out, two built-in digital microphones, speaker output, a built-in LCD touchscreen, a user pushbutton, and a user-controlled LED. The board can be programmed in C and assembly using several programs including STM32CubeIDE, which is a free program available for Windows, macOS, and Linux.

The course is an elective in the electrical engineering program and is taken by juniors and seniors. The prerequisites for the course are signals and systems and data structures. The course is a lecture course with no accompanying laboratory, but since the board is relatively inexpensive, a board was loaned to each student for the duration of the semester. So, students had full access to the board, and they wrote and tested DSP algorithms as homework assignments.

The author wrote starter code that demonstrates a few real-time DSP algorithms (stereo passthrough, lowpass filter, highpass filter, and reverb) and serves as a starting point for the students when they write their own programs. The starter code includes several features that make working with the board more convenient such as a menu that makes it easy to switch between different algorithms and to select the input source (either line-in or the built-in microphones). It displays an input level meter, which is helpful for setting the input gain. It has mechanisms for setting the input and output gain and measuring the gain of a filter. It also includes an indicator that alerts the user if their DSP algorithm is taking too long and is violating the real-time schedule. The starter code is available for free from the author.

The course assignments include exploring the demonstration algorithms and writing and testing several real-time DSP algorithms including mono passthrough, record and playback, generate sinusoids, finite impulse response (FIR) filters, infinite impulse response (IIR) filters, and Discrete Fourier Transform (DFT). The course also includes a project where each student selects an algorithm to implement and test on their own.

This paper describes the advantages and disadvantages of using the STM32F746G-DISCO Discovery kit to teach real-time DSP. The features of the starter code are described along with how they support the students’ learning. The course learning objectives and assignments are discussed. A student survey was given to assess the effectiveness of using the board to teach real-time DSP, and the results of the survey are discussed in the paper.

Hoffbeck, J. P. (2024, June), A Low-Cost Platform for Teaching Real-Time Digital Signal Processing Paper presented at 2024 ASEE Annual Conference & Exposition, Portland, Oregon. https://peer.asee.org/46452

ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2024 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015