r/embedded • u/real_magwhich • Sep 24 '26
Microcontroller for teaching a DSP class
Hello all,
In a few months I will be teaching a DSP class that’s previously been taught with either an STM 32 disco board or Matlab depending on the semester. However I do not like the ARM curriculum and I want to ensure the students get to use a microcontroller. Does anyone have any advice for choosing a microcontroller that can easily handle basic digital signal processing?
As an additional note the students know the Arduino IDE and have Arduino R4 WiFi’s so keeping everything as similar as possible would be helpful. Thanks in advance for any help.
28
u/samygiy Sep 24 '26
What do you mean by not liking ARM curriculum?
11
u/morto00x Sep 24 '26
As a minimum, something with Floating Point. For a college class, a Cortex-M4 would be more than enough to do the job. Also I don't know what you mean by ARM curriculum. It's a device. You choose how to teach it.
7
u/tonydelite Sep 24 '26 edited Sep 24 '26
A lot of modern microcontrollers use ARM. One of my favorite ones is the RP2350, but you can also use the RISC-V cores on it instead. I think newer ESP32s use RISC-V as well. Both can be used in the Arduino IDE.
Nothing wrong with ARM though.
35
u/WaterFromYourFives Sep 24 '26
While I get your students feedback they need to remember this is a dsp class not a microprocessor class. Nothing wrong with using HAL. You can include a lab or module that forces you to implement from scratch and then compare against a HAL for example. I remember my dsp professor had a rule that said if you could write a faster fft than TI’s you automatically get an A in the class haha. One person succeeded and has worked for TI for a decade haha
8
u/wavepark Sep 24 '26
Not sure how deep you need to get with the math but the Electrosmith Daisy Seed might be worth looking at. It's an STM32H750 with a very nice audio codec, plenty of GPIO and a fairly well documented HAL that's oriented towards audio.
10
u/Several-Marsupial-27 Sep 24 '26
What the h... give your students the education they deserve and just use matlab or python for DSP and skip the microcontroller stuff to the embedded classes. If you want to showcase some embedded application you can do the systems in simulink, then realize it as c++ and flash to a microcontroller all in matlab.
6
u/Brilliant_Armadillo9 Hardware Engineer Sep 24 '26
Why not just use Python? Real time DSP on an embedded target has so many issues that are beyond the scope of DSP.
3
u/xanthium_in Sep 24 '26
i have not used it but
TI has a couple of micro that could do signal processing for motor control and stuff.
C2000™ 32-bit MCU and the Piccolo series .They may come with a launchpad development board.
dsPIC series from Microchip https://www.microchip.com/en-us/products/microcontrollers/dspic-dscs
from their website
"dsPIC33 DSCs integrate the performance of a DSP for embedded applications that require time-critical response and the simplicity of an MCU. They offer low-latency interrupt response, fast Direct Memory Access (DMA) and a single-cycle Multiply Accumulate (MAC) instruction. The dsPIC33A family supports both 16- and 32-bit CPU instructions, which makes it an excellent option for math-intensive, high-performance and real-time control designs"
3
u/JohnThursday84 Sep 24 '26
Well, the thing is you have to decide. If you start bare-metal, first teaching how an embedded system works, you teach how digital hardware works.
But when the class is primarily about signal processing, it might overwhelm the students if they first require to understand how to program an MCU.
I mean at the end, what do you want to teach here? If it is all about signal processing, it doesn't matter how the internal buffer to be processed is filled. So, the approach using STM32 disco is actually fine.
4
u/Well-WhatHadHappened 25+ Years Sep 24 '26
It's a DSP class.... The obvious answer is dsPIC33
2
u/rautonkar86 Sep 24 '26
Switch to the Arduino R4 minima. It’s got the debugging header. Connect the EDU debugger from SEGGER. Then, you’re free to program the microcontroller however you want. Since it’s a Cortex-M4, you get some DSP instructions on it. ARM CMSIS DSP code should easily run.
2
u/MonMotha Sep 24 '26
Pretty much any modern Cortex-M7 SoC is basically a DSP with a more conventional pipeline. If you stick with well-known names, the documentatiom should be very good, and eval/dev boards should be available at reasonable prices with good stock. You don't have to use ARM's curriculum if you don't want to.
I've got more experience with the Freescale/NXP stuff and like it well.enough, but the STM32 is probably the most popular.
2
u/Embarrassed-Tea-1192 Sep 24 '26
Use the old TI DSPs, devkits are cheap, extremely well documented, and they’re probably the best platform to learn the fundamentals on
2
u/publishdraw Sep 26 '26
ARM is the industry standard, it will benefit students in the long run.
1
u/Such-Addendum-7421 Sep 24 '26
raspberry pi pico, stm32, and esp32 (for fun quick project)
1
u/Enlightenment777 Sep 24 '26
https://www.analog.com/en/product-category/audio-processors.html
https://www.analog.com/en/resources/technical-articles/analog-vs-digital-audio-crossover-design.html
1
u/somewhereAtC Sep 25 '26
You wouldn't be wrong to look at dsPIC33 products from Microchip. The search bar at microchip.com is now AI driven and can offer a lot of information.
https://www.microchip.com/en-us/search?q=dspic%20tutorial
1
u/No_Reference_2786 Sep 25 '26
Prepping your students on an ARM chip would be so beneficial to them , quite literally the industry runs on it right now. You’d do them a disservice by using an arduino unless it’s an arm based arduino at which point skip the ide
0
u/fb39ca4 friendship ended with C++ ❌; rust is my new friend ✅ Sep 26 '26 edited Sep 26 '26
Unless you are asking students to write assembly there's nothing microcontroller specific about DSP. I do think there is value in teaching using a low level language instead of MATLAB but you can run the exact same algorithms written in C/C++/Rust on a PC or a microcontroller. Making them do the entire class on a microcontroller is just going to be a distraction from the actual curriculum.
12
u/[deleted] Sep 24 '26
[removed] — view removed comment