an electronic component that produces sound when electrical energy is applied to it
piezoelectric buzzer/piezo buzzer
It is widely used in electronic systems to generate beeps, alarms, and notification sounds
piezo buzzer
where do we commonly found the piezo buzzer?
what are the pros of piezo buzzer?
small
inexpensive
reliable
require very little power
what are the common uses of piezo buzzer?
warning, alarms, and alerts
notifications
indicators and feedback
what are the cons of piezo buzzer?
limited sound quality
limited volume range
susceptibility to environmental conditions
This command sets the mode of a specified pin on the Arduino board.
pinMode()
This command writes a digital value (HIGH or LOW) to the specified pin.
digitalWrite
This command generates a square wave of a specified frequency (in Hz) on the specified pin for a given duration (in milliseconds).
tone()
Determines the pitch of the sound generated by the buzzer, specified in Hertz (Hz).
frequency parameter
Increasing the frequency results in a higher pitched sound. For example, 1000 Hz produces a higher pitch than 500 Hz.
higher frequency
Decreasing the frequency results in a lowerpitched sound
lower frequency
Generates a square wave of the specified frequency functionalityon a designated pin for a set duration (in milliseconds).
functionality
Stops the generation of a tone on the specified pin.
notone()
what are the types of piezo buzzer?
contain an internal oscillator circuit that generates the required signal to drive the piezoelectric element. Produces sound when voltage is applied.
active buzzer
Do not have an internal oscillator circuit and require an external signal source to operate or create sound. Can produce different tones by changing the input frequency.
passive buzzer
what are the specifications of a piezo buzzer?