2020-07-02 07:05 AM
Hello,
I want to DSP an audio signal to create guitar effect(s), and someone pointed me the Nucleo boards,
- are they the right choice for DSP ?
- if yes, which have a narrow/small footprint board (similar to teensy 3.6 or RPI zero)
the product selector is not really helping for that matter
thanks for the time you'll spend on this question
(https://www.st.com/en/evaluation-tools/stm32-nucleo-boards.html#products)
Phil
2020-07-03 03:37 PM
It's up to you whether to use somebody else's code or write your own. I have implemented many different sound generation/signal processing algorithms using bare-metal f730s. For example, a single f730 running at 216Mhz with a 26Khz sample rate can calculate 2 8 channel vocoders in real-time. That is 4x8 4 pole biquad filters and 2×8 envelope followers and multipliers. No problem.
2020-07-03 03:50 PM
Also, wavetable synthesis is mearly another way of talking about DDS. It's not complicated at all and can be implemented with just a few lines code. Read about FM operators. Chowdry was able to make music with punch cards and a PDP-8 altho not in real-time. Now you can do it real-time with a $5 chip.
2020-07-03 10:40 PM
one of those ways of overcoming those memory challenges is to get a board with on board sdram, the f4* , f7* has pretty good support for them, some boards has on board 8 MB sd ram chips. those would make memory intensive tasks significantly easier. you can do malloc etc. malloc on small sram systems e.g. 64k, 128k tend to be challenging and in 20k sram is 'wishful thinking' at best, the stack and heap would have used most of that.
2020-07-04 02:10 AM
the teensy 3.6 has a 12 bits resolution, but apparently it does not keep them from bringing tons of noise, making these DAC barely usable, guess I'll have to try a board to figure it out
2020-07-04 02:13 AM
wow dude... that's the answer I was looking for
you mean the NUCLEO-L412KB ?
2020-07-04 02:22 AM
lol, I am currently checking how to bare metal the sh#t out of an RPI zero in C/ASM
2020-07-04 02:27 AM
I dont mind bare metal, indeed the isue is to have something that has memory, speed and decent IO's
another challenge is to find a board(narrow & small in my case) and if going bare metal, finding math libraries
going baremetal on a RPI means finding USB libraries too
2020-07-04 02:28 AM
so one can't do 44khz ?
2020-07-04 02:29 AM
nice... any ready made board that does that ?
2020-07-04 08:00 AM
the slower the sampling frequency you can get away with, the more processing time you have (and the more power you can save). I use 16KHz sampling rate. The highest note on the guitar is 1318Hz (E6 - 24th fret). Sounds ok to me - but then again, my hearing is probably not what it used to be....