Interrupts

basically i want to generate sound wave, point it towards the wall and get the wave reflection record it via a microphone (biased and amplified) and save these readings in arduino or display them on the serial monitor and save it as a log file or something. Also getting the servo position into record would be great.

since i have to do sound analysis, i asked around and was suggested to use sine waves since using tone() would generate square wave which is not suitable for my purposes.

if it helps here is the link to my earlier post URGENT: Project Sound Camera (Need Guidance) - Project Guidance - Arduino Forum