Buzzer Driver Circuit Design Guide
A buzzer is a small load that is easy to drive badly. The two common types behave quite differently, one draws a current pulse with a large inductive kick and the other looks like a capacitor, and using the wrong drive circuit produces a quiet sound, a damaged driver or a board that resets every time the alarm sounds.
Types of Buzzer and How They Differ
A magnetic buzzer contains a coil and a diaphragm, and it behaves as an inductor with a resistance. It draws a continuous current while it sounds, it produces an inductive kick when the drive is removed, and its volume is roughly proportional to the drive current. It is the louder of the two at low voltages.
A piezo buzzer contains a ceramic disc bonded to a metal plate, and it behaves as a capacitor. It draws almost no steady current but requires a higher voltage to produce a useful sound, and its output is proportional to the voltage rather than to the current. It is thinner and lighter, and it uses less power for a given sound level in some designs.
Both types are available as indicators with a built in oscillator, which sound when a direct voltage is applied, or as transducers that require an external drive signal. The distinction matters because an indicator contains its own drive circuit and should not be fed with a modulated signal, while a transducer must be driven at its resonant frequency to produce a loud output.
Drive Voltage and Current
The rated voltage of the buzzer is the voltage at which its sound level is specified, and driving it well below that produces a weak sound while driving it above shortens its life. Since buzzers are typically driven from a supply that is close to the rating, the driver has to drop very little voltage in the on state.
magnetic buzzer current is the parameter that sets the driver. A typical device draws between ten and thirty milliamperes, which is within the rating of a small transistor or a logic level MOSFET, but the resistance of the driver and of the wiring reduces the voltage available to the buzzer and therefore the sound level.
piezo buzzer current is small but the voltage requirement is high. Some devices need twenty volts or more for full output, which requires a step up circuit rather than a simple transistor. A piezo driven from a logic supply produces a quiet click rather than a tone, which is a frequent surprise when a design is changed from a magnetic to a piezo device.

Driving a Magnetic Buzzer
The driver is a transistor or a MOSFET that switches the low side of the buzzer, with the high side connected to the supply. The base or gate resistor sets the drive current, and the device has to be in saturation while the buzzer is sounding, or it will dissipate power and heat up.
The connection to the supply should be short and direct, and a decoupling capacitor close to the buzzer keeps the switching current out of the rest of the rail. A buzzer that draws thirty milliamperes at a kilohertz draws a series of current pulses that will disturb a shared supply unless the local capacitor supplies them.
Where the sound level has to be adjustable, the drive is usually pulse width modulated rather than varied in amplitude. Modulation at a frequency above the audible range produces a smooth variation in level, while modulation within the audible range produces a tone that beats with the buzzer sound and is usually objectionable.
Driving a Piezo Buzzer
A piezo element is driven with an alternating voltage at its resonant frequency, and the drive circuit therefore has to produce a square wave rather than a constant voltage. Driving it from two logic outputs in opposite phase doubles the voltage across the element and is a simple way to increase the sound level without a step up circuit.
resonant frequency is the frequency at which the element produces its maximum output, and it is specified with a tolerance. Driving the element slightly off resonance reduces the sound level considerably, so the drive frequency should be adjustable or should be set to the measured resonance of the actual device rather than to the nominal value.
The element is capacitive, so the current is proportional to the rate of change of voltage rather than to the voltage itself. A fast square wave draws a larger current pulse than a slow one, and a series resistor is often used to limit that current at the cost of a slower edge and a lower output. The choice follows from the drive circuit and from the capacitance of the element.

Back EMF and Protection
back emf is the voltage that the coil of a magnetic buzzer produces when the driver turns off. The current cannot stop instantly, so the coil forces the voltage at its terminals to rise until something conducts, and without a path that voltage can exceed the rating of the driver by a large factor.
A diode across the coil, reverse biased while the buzzer sounds, provides the path. The current then circulates through the coil resistance and the diode until it decays, which is slow enough to be inaudible in most applications. Where the decay time matters, a diode in series with a zener gives a faster decay at the cost of a higher voltage on the driver.
The diode should be placed close to the buzzer, not at the driver, so that the loop carrying the decaying current is as small as possible. A long connection between the buzzer and the diode turns that loop into an antenna, and a buzzer driven at a kilohertz with a long inductive loop radiates at that frequency and at its harmonics.
A piezo buzzer has no coil and therefore no back emf, but it can still produce a transient when it is driven with a square wave, because the element is capacitive and the drive circuit has to charge and discharge it at every transition. The current pulse is limited by the driver and by any series resistor rather than by a diode.
Sound Level, Frequency and Enclosure
The sound level quoted in a datasheet is measured at a defined distance, usually ten centimetres, and in a free field. Mounting the buzzer inside an enclosure changes the level considerably, and the change can be an increase or a decrease depending on the acoustic path and on the resonances of the cavity.
A buzzer mounted on a flexible surface loses energy into that surface, while one mounted on a rigid panel radiates more effectively. An opening in front of the buzzer is necessary for the sound to escape, and the size and position of that opening control the level and the frequency response as much as the buzzer itself.
Where a specific tone is required, the drive frequency is chosen to match the resonant frequency of the buzzer as mounted rather than as supplied. Measuring the sound level at several frequencies with the product assembled identifies the actual resonance, and the drive is then set to that value. The difference between the nominal and the actual resonance is often a few hundred hertz.
Layout and Power Supply
The buzzer current is pulsed, so the supply trace should be wide enough to carry it without a significant drop and the decoupling capacitor should be close to the device. The trace width calculation in trace width and current applies to the buzzer supply in the same way as to any other load, and the sizing for higher currents is described in current capacity.
Keep the buzzer wiring away from analogue inputs and from sensor signals. A kilohertz square wave coupling into a high impedance node appears as an offset or as a tone in the measurement, and the coupling is capacitive, so distance and separation are the effective remedies.
The driver transistor should be placed close to the buzzer so that the high current path is short, and its return should go directly to the supply ground rather than through a shared signal return. The methods for tracing and reducing the resulting interference are described in our article on EMI suppression design.
Verification and Common Faults
Verify the drive with a scope at the buzzer terminals rather than at the driver output. The voltage at the buzzer is what produces the sound, and a driver that switches correctly but is loaded by a long thin trace will produce a lower level than expected. Checking both the amplitude and the frequency at the device confirms that the design is delivering what the specification assumes.
A buzzer that is quieter than specified usually has a drive frequency away from resonance, a supply voltage below the rating, or a driver that is not fully saturated. Measuring the voltage across the driver in the on state distinguishes the third case immediately, because a saturated device drops only a fraction of a volt.
A board that resets when the buzzer sounds has a supply problem rather than a buzzer problem. The current pulse is disturbing the rail, and the fix is a local capacitor at the buzzer together with a review of the supply trace. Confirming the fault by monitoring the rail while the buzzer operates is the first step, and it usually takes less time than replacing the buzzer.
FAQ
Can I drive a buzzer directly from a microcontroller pin? For a small piezo element, sometimes, within the pin current rating. A magnetic buzzer draws more current than a port pin can supply and needs a transistor.
Do I need a diode with a piezo buzzer? Not for back emf, because there is no coil. The drive circuit still has to handle the capacitive current at each transition.
Why is my buzzer quieter inside the enclosure? The cavity and the mounting surface affect the acoustic output. Providing an opening in front of the device and mounting it on a rigid surface usually recovers the level.



