My objective is to use a single piezo as a transceiver and calculate the distance between the sensor and the object that sound echos from using time of fly. I use tone()
function or manually create square wave to the piezo, but after transmitting all I see on the oscilloscope screen is noise. Without Arduino there is not that much noise. How can I detect the echo?
\$\begingroup\$
\$\endgroup\$
14
tone()
function... \$\endgroup\$