How Buzzer works? Tone | Music -by Technowave G

Опубликовано: 18 Январь 2019
на канале: Technowave G
87
2

Link :https://www.arduino.cc/en/Tutorial/To...
Link : http://www.linuxcircle.com/2013/03/31...

Tone generates a square wave of the specified frequency (and 50% duty cycle) on a pin.
The library uses the hardware timers on the microcontroller to generate square-wave.
Tone accuracy is dependent on the timer prescalar. Frequency quantization occurs as the
frequencies increase per prescalar. Tone duration can be specified, otherwise the wave continues until a call to noTone(). The pin can be connected to a piezo buzzer or other speaker to play tones.
Only one tone can be generated at a time. If a tone is already playing on a different pin, the call to tone() will have no effect.
It is not possible to generate tones lower than 31Hz and it can go as high as 8 MHz, the human hearing range is typically as high as 20 kHz.

Buzzer is an electronic device commonly used to produce sound. A Piezo buzzer has a "Piezo disc" and an "oscillator" inside.
Piezo buzzer converts mechanical vibrations into electric signal or vice versa.
If we apply a variable frequency then the crystal vibrates and produce sound.
Hence in order to make the Piezo buzzer to make some noise we have to make the Piezo electric crystal to vibrate,
The pitch and tone of noise depends on crystal's vibration.
We can control the tone and pitch of buzzer by varying the frequency of the current.