Piezo Buzzer Circuit. You can also use tone pin frequency duration function. They work by using a piezo crystal a special material that changes shape when voltage is applied to it.
You can find them in wristwatches cars medical devices sirens panic alarms and like so. The loop routine will make this run again and again making a short beeping sound. When a voltage is introduced in the circuit the transistor conducts operating the piezo element across the buzzer coil however this also leads to the grounding of the base of the transistor through the center tap of the piezo element this instantly switches off the transistor and in turn the piezo also switches off releasing the base of the transistor.
Internal circuit of piezo buzzer converting force into electricity using piezoelectric transducer.
In this tutorial you will learn how to use a buzzer or piezo speaker with arduino. You can find them in wristwatches cars medical devices sirens panic alarms and like so. Hence why it is called a piezo buzzer. Piezo buzzers are simple devices that can generate basic beeps and tones.