I have an AVR atmega328P MCU that generates 5V square wave 2-4Khz and I would like to connect to it a no name 10mm piezoelectric passive sounder I picked at a local surplus store. It measures as 10nF but don't know its inductance. I read somewhere that the MCU needs protection because mechanical impacts on the piezo, will send high voltage back to the MCU and damage it.
I am looking for a simple way to safely connect the piezo the MCU. Any suggestion how to do it? For example is this a safe and reasonable way? Should I add a serial resistor between the diodes and the piezo to limit the current due to the piezo's capacitance?
![](http://i.imgur.com/8oaenhC.jpg)