Hello,
I would like to compare two signals using normalized correlation, I need help with the code to do this using arduino. This is how I would like to do it
Generate and transmit a 40Khz signal through an object
Receive the signal & compensate for the theoretically calculated losses
compare the the received and compensated signal with the original generated signal.
I would like to assume that if the loses/ change in the received signal as equal to the calculated losses the normalized function will return a value very close to 1, else there loses are very different.
AdamMC:
Hello,
I would like to compare two signals using normalized correlation, I need help with the code to do this using arduino. This is how I would like to do it
Generate and transmit a 40Khz signal through an object
Receive the signal & compensate for the theoretically calculated losses
compare the the received and compensated signal with the original generated signal.
I would like to assume that if the loses/ change in the received signal as equal to the calculated losses the normalized function will return a value very close to 1, else there loses are very different.
Have you made any attempt to write your own code?
Or did you expect someone to write the whole thing for you.
And how many samples are you expecting to store - ie how much RAM might you need (given the Uno
has only 2k, Mega 8k, this might force using one of the more powerful Arduinos).