I have a Piezo buzzer that has an internal transducer so is able to take 24VDC and work. This one has a continuous sound. Just a beeeeeeeeeeeeeeeeeeeeeeeee...
I have a 24V output that needs to power an alarm sound (has to be piezo). The alarm has to be On/Off, a beep beep beep. Not particularly concerned about the exact frequency, or sound, or even how long the beep and pause is for. Just has to be a beep, and preferably customizable if required.
I thought of using an ATTiny but then I need a switching regulator to provide 5V to the microcontroller, and then another power transistor to run the buzzer. That makes 3 fairly large components (footprint is important) and the price goes over £10. I thought of 555 but definitely, the footprint is too large because even the 555 won't take 24V.
I cannot for the life of me figure out how to make the buzzer switch on and off, like a slow flip-flop, or PWM maybe, without using a microcontroller.
By the way, THIS and THIS is exactly what I am talking about. I will definitely use these for my application, but I need to figure out how to make a continuous one pulse. Or even better, how to take just a regular Piezo element (without internal transducer) and get any frequency I want out of it, with as few components as possible. I can do it with an ATTiny as mentioned above, but running it 24V introduces two additional components.
I highly appreciate any help I can get.