MisterBill2
- Joined Jan 23, 2018
- 27,587
OR, use a CD4049 and get a lot more volume and not need a mosfet . and have symetrical drive for the piezo sounder. And it can run on 5, 9, 12, 0r even 15 volts. Also, that IC is cheap and sourced by many different makers so it is always available. And it can be held in the low current standby mode with the switch closed. If it needs to be pulsed thrn you will need to add the 4093 quad nand. Still cheaper and simpler than any 555 circuit.Did you consider MrBill2 suggestion in post #59?
You wouldn't need a 555. Setup the a NAND as a "gated" oscillator so it can be enabled or disabled. The duty cycle will be near 50%.
Use a CD4093B Quad Nand gate, it can also be used for debouncing the switch and can run at 9v. Use a mosfet to drive the piezo.

