A quick note, I had asked a similar question around driving an external buzzer previously: Driving external piezo buzzers
This is a question in regards to driving an internal buzzer, so not a transducer. The part number for the buzzer is SMA-21-S.
Here is what I had in mind:
So drive the FET through an MCU and buzzer turns on and vice versa.
The specification for the buzzer says :
Supply is 3.8mA. In the event the gate voltage is high, Buzzer2_N is at roughly gnd potential (ignoring Rdson.) You will then have 24V on the positive terminal and 0V on the negative terminal. Buzzer is on.
When the gate is open, you have 24V on the + and Buzzer2_N is at 24V as well since no path for current flow, so the buzzer is off as no potential difference.
Is this correct? Would this circuit work? Should I improve it or change something here? Is there anything in regards to layout with buzzers I should be aware of? Are these electrically noisy?