As more of a proof of concept rather than anything else, I'd like to make a DIY aroma diffuser using a piezo element with a 1.7mHz resonant frequency.
I tried generating a 1.7mHz square wave with the Uno and am running into 2 problems:
1.) The waveform is rather messy when looking at it through the oscilloscope - I can use a capacitor to smooth this out but the result is more of a triangle wave than a square wave.
2.) More importantly, this waveform could not possibly power the piezo element, as it requires a much higher Vpp to diffuse water. Note: While I can't find the specifications anywhere, I have been able to find some YouTube videos of people using these elements with success around +/- 24V.
So: My idea of a solution was to make a full H-bridge out of TIP127's and use an external 24Vdc power supply - which hopefully in theory would give me the +/- 24V I'm looking for.
Is this a viable solution? If so, how would I control the H-bridge with the Arduino Uno, and would I require any additional IC's?
Or, should I try going a different route?
Thank you! John