I have a question about piezoelectric component and microcontroller connection circuit.
I use 7BB-20-6L0 Murata piezo. Here is the datasheet - Link
Here is my current variant:
Is this schematic correct and safe? Are all this components necessary? (Is there any need in D1 and R2?)
And one more moment...
What should be done in this case in order to get maximum safety?
Thank you in advance!!