Buzzer PCB: Driving Sounders and Piezo Elements
Two Kinds of Sounder
A buzzer produces a tone, and the two families available work differently enough that the drive circuit, the layout and the acoustic design all follow from the choice.
A magnetic sounder contains a coil, a magnet and a diaphragm, and it behaves like a small loudspeaker: apply an alternating current and the diaphragm moves. It is loud, robust and inexpensive, and it needs an oscillating drive signal because the mechanical assembly itself does not oscillate. It draws more current than the alternative and its impedance is low, typically tens of ohms.
A piezo sounder contains a ceramic disc bonded to a metal plate. Applying a voltage bends the disc, and applying an alternating voltage makes it vibrate. It draws very little current at a given sound pressure, but it needs a higher drive voltage, typically tens of volts for full output, and it is a capacitive load whose impedance falls as the frequency rises.
The third possibility is the self drive or active sounder, which contains the oscillator inside the package and needs only a DC supply and a transistor. It costs more and gives less control, and it is the right answer where the design has no spare pin, no software and no need for a variable tone.
Drive Circuits
Single transistor and a feedback winding. The classic magnetic sounder circuit uses a transistor with a winding on the coil that provides positive feedback. The circuit self oscillates and produces a loud tone from a handful of components. It is simple and it works, and its frequency is set by the mechanical resonance of the sounder, which is also its limitation: the tone cannot be changed in software.
Microcontroller drive through a transistor. Where the frequency has to be controlled, the microcontroller produces the waveform and a transistor or a MOSFET switches the sounder. The switching device has to handle the peak current of a magnetic sounder, which can be several times the average, and a freewheeling diode is required across an inductive load.
Piezo drive from two pins. A piezo element can be driven from two GPIO pins in antiphase, which doubles the effective voltage without any external component. It is the cheapest way to drive a piezo and it is common in small devices where the sound level requirement is modest.
Piezo drive through a bridge. Where the full output is required, the piezo is driven from an H bridge or a pair of transistors, which doubles the voltage across the disc and doubles the sound pressure. The trade is more components and more radiated noise.
A resonant step-up stage. A piezo is a capacitor, and it can be driven through an inductor chosen so that the combination resonates at the drive frequency. The voltage across the disc rises well above the supply, and the sound pressure rises with it, at the cost of a tight tolerance on the piezo capacitance and the inductor.
Matching the Drive to the Load
The most common design mistake is driving the sounder at the wrong frequency. Both types have a mechanical resonance at which the sound pressure peaks, and the output away from that frequency can be fifteen or twenty decibels lower.
For a magnetic sounder the resonance is defined by the diaphragm and the housing, and it is given on the datasheet with a tolerance. For a piezo, the resonance is defined by the disc and by the acoustic cavity behind it, which means the housing changes the result: a piezo element measured on the bench and mounted in a sealed enclosure behaves differently, because the air behind the disc is part of the spring.
Two practical consequences follow. The drive frequency is set to the measured resonant frequency of the assembled product rather than to the datasheet value, and the acoustic cavity is designed with the sounder rather than around it. A small, sealed chamber of the right volume raises the output; a large open space behind the element wastes it. Our notes on PCB design and layout cover the board side of the layout.

Layout and Electrical Considerations
Keep the drive loop small. A magnetic sounder draws a pulse of current on every cycle, and the loop from the supply capacitor through the switch and the coil radiates. Keep the capacitor close to the coil and the loop area small.
Separate the sounder supply. A magnetic sounder can draw hundreds of milliamperes on peaks, which will move the supply rail of a microcontroller sharing the same trace. Feed it from its own trace or its own regulator, and place the decoupling at the coil rather than at the processor.
Provide the freewheeling path. An inductive sounder needs a diode across it, otherwise the switching device sees a voltage spike that is defined by the coil inductance and the switching speed, not by the supply.
Consider the acoustic port. The sound has to escape the enclosure through an opening, and a small hole with a long path forms a Helmholtz resonator that colours the sound. Place the port in front of the diaphragm and keep the path short.
Allow for the mechanical mounting. A sounder is often mounted with a rubber grommet or a foam gasket that seals it against the housing, and the board needs a pad area and a clearance for that. Our notes on PCB assembly describe how the through hole and surface mount parts are placed.
The Amplifier and the Signal Chain
Where the product also produces speech or music, the same board carries a small amplifier and the sounder becomes a loudspeaker. In that case the design follows audio practice: separate the analogue supply and ground, keep the feedback network short, place the output filter next to the amplifier and route the speaker pair as a tight pair to reduce the loop area.
Where the buzzer is only an alarm, the design is a switching problem, and the priorities invert: the transistor, the diode and the decoupling matter most, and the acoustic design decides whether the alarm is actually audible.
What a Buzzer Board Costs
The board itself is usually a small, simple single or double sided circuit, so the cost is dominated by the sounder and the assembly rather than by the laminate. As an indication, a small control board carrying a sounder and its driver falls in the range of a few cents to a few dollars per piece in volume depending on the sounder and the board area, and the sounder itself often costs more than the board it sits on.
Where the sound is a safety function, as in a smoke alarm or a medical device, the sound pressure level is specified and tested, and the test cost becomes visible: each unit is measured in a defined acoustic environment or, more commonly, a sample is measured against the specification and the production is controlled by the components. Our notes on PCBA testing describe the test methods, and our notes on quality management describe the process control.

Applications
- Appliances. Washing machines, ovens, microwave ovens and refrigerators, where the buzzer reports an end of cycle or a key press.
- Alarms and safety devices. Smoke and gas detectors, where the sound level and the reliability are regulated.
- Medical instruments. Infusion pumps and monitors, where the alarm tone is part of the user interface and the volume is specified.
- Automotive. Indicator ticks, parking sensor warnings and belt reminders, mostly driven from the body controller.
- Industrial control. Panel sounders and machine state indicators, often louder and more robust than a consumer part.
- Consumer electronics. Toys, timers and small appliances, where a self drive sounder and a single transistor are enough.
Design Practice
- Choose the type from the requirement. Magnetic for loud and cheap, piezo for low current, active for the simplest possible drive.
- Drive at the resonant frequency of the assembly. Measure it in the housing rather than trusting the datasheet.
- Provide the freewheeling diode. An inductive sounder without one will eventually destroy the switching device.
- Keep the sounder current out of the logic supply. It is a pulse load, and it will move a shared rail.
- Design the acoustic cavity. The volume behind the element and the size of the port are part of the acoustic design, not an afterthought.
- Test the sound level. Where the sound is a safety function, it is measured rather than assumed.
FAQ
What is the difference between an active and a passive buzzer? An active buzzer contains its own oscillator and needs only a DC supply. A passive one needs an alternating drive signal from the circuit.
Can a microcontroller drive a buzzer directly? A piezo element can usually be driven from two GPIO pins in antiphase. A magnetic sounder draws too much current and needs a transistor.
Why is my buzzer quieter than expected? Almost always because it is driven away from its resonant frequency or because the acoustic cavity around it is wrong.
Does the board design affect the sound? Yes. The supply decoupling, the drive loop area, the mounting and the acoustic port all change the level and the quality of the tone.
Conclusion
A buzzer board is a small switching circuit attached to an acoustic design. Choose magnetic or piezo from the current, the volume and the control you need; drive it at the resonant frequency of the assembled product; keep the pulse current out of the logic supply; and design the cavity and the port with the sounder rather than around it. Our notes on PCB manufacturing cover the board itself, which is usually as simple as it looks.



