thank you for taking your time to read, im hoping someone can help me out!
I am looking to drive a piezo transducer at its resonant frequency(20khz) to generate sound waves. I am doing an application similar to sonar technology.
I was looking into how to drive the transducer and I thought i would have to generate and feed it sin waves with its resonant frequency. I have access to an Arduino DUE, i was looking into how to do so and it seemed a bit complicated.
I was curious if anyone had any experience driving a piezo and if it would be possible to do so with just square waves. Or if they have experience generating sine waves of any frequency within an arduino please let me know! Thank you all for your time and help!