I have made some progress on my recent project:
High Frequency Piezo Driver
I am wanting to increase the output frequency from 1.5KHz - 2.8KHz (manufacturer specs) to somewhere around 18KHz - 20KHz, I took DVDdoug's advice suggesting that the frequency could be changed by lowering the value of the capacitor (assuming it was an RC circuit) which did work somewhat (0.1uF to 22nF) it ended up sounding like a telephone, then i swapped a 3Mohm -> 1Mohm which sounded more like a 56K modem (the second half) and finally down to a 470Kohm resistor and these all have managed to speed up the frequency a fair bit, so i think i am on the right track but now i want to be able to get a decent reading of the frequency as i change components without the piezo's connected. Obviously a scope would be the way to go but i do not have one.
I have de-soldered the piezo's and when i put 5V's to the input i was surprised to hear it making noise (i think this is now due to the transformers acting like speakers, i wasn't expecting that and spent a few seconds trying to look under the IC's for a a hidden buzzer
)
So now, i can work with the circuit without having the sound on, now, i do not have a scope, and i am not sure how to connect this circuit to the line in of my sound card to use audacity (although sounds like a good option), so my main question here is:
Is it possible to use an arduino or an ESP8266 (if i need a faster clock) which i have on hand to get a rough idea of the output frequency?
I have soldered two pins onto one of the piezo outputs and have tried a simple PulseIn() sketch that counts the microSeconds between LOW->HIGH and have tried both a 3.3V and 5V supply to the board but i don't think this method is correct and have the following results:
3.3V gave around 85 microSeconds (~11,000Hz)
5V gave around 115 microSeconds (~ 8,700Hz)
- these two values seem proportional but i am not sure why..
Is PulseIn the wrong method?
Is it a limitation of the UNO (ie clock speed)?
Is there another way?
I am just trying to use what i have on hand so i understand if i am barking up the wrong tree but just looking for some guidance..
Also, the weird thing i have noticed is that the output to the piezo's after a transistor and transformer (which i assumed would be increasing the voltage) is at 0.24V on my meter with an input voltage of 5V to the board but maybe this is a bad measurement due to the signal oscillating, can someone shed some light on this? (i thought this was a boost converter circuit?)
Thanks in advance!


