Hi
I am making a test board which has to test the audio output (very short audio) of a device.
The audio does not have to be checked very precisely, just that the audio somehow ressemble the output.
For example - I attached a picture of:
* Top = samples read from the ADC on the test board (plotted on plotvar.com)
* Bottom = audio played from the device (from the oscilloscope)
If a human had to check, I would simply look at the two and say "yea they look similar" - that is good enough for me.
My question: how can I do that check with an MCU (without using an external computer)?
There are about 700 8-bit samples to process. I have:
* In RAM the 700 fresh samples just recorded
* In Flash memory I can have 700 pre-recorded or FFT values, etc. - anything to compare it to
Thank you!
Simon
PS: I previously asked about the setup (see here:
https://www.eevblog.com/forum/beginners/basic-adc-setup-with-mcu/ ), and thought I would be able to simply compare sample by sample (with a threshold) between the values from the ADC and pre-recorded samples. I am not actually too far but I think it would be better with a "proper" comparison using something like FFT.