connection for piezo buzzer

Thread Starter


Joined Oct 23, 2011
how do i connect the piezo buzzer in my circuit consisting of a microcontroller? i have attached the circuit diagram. its a quiz buzzer.this is a circuit i am mounting on a pcb. the seven segment display works properly and gives me the output. the problem with the circuit is that the piezo buzzer does not work in the circuit though it is in a working condition. one terminal of the piezo buzzer is connected to the pin 32 of AT89C51 and the other to +5V. do i need to connect any capacitor?
i hav attached the code too
please do reply...
thank you



Joined Dec 19, 2007
Is it a Piezo element or a active Piezo buzzer. If it's an active buzzer you just pull the output low to activate it. If it's a Piezo element, you have to pulse the output make it work.