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 it1. Generate and transmit a 40Khz signal through an object2. Receive the signal & compensate for the theoretically calculated losses3. 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.
Why do this on an Arduino? It only involves calculation and would be much better suited for a PC - perhaps using MatLab.Pete
Please describe the object, and the "40 kHz signal" that is to be sent through the object: amplitude, total time, etc.
A pulsed square signal, 5V, 4uS