Datasheet
19
Easy24-33 v6 Development System
MikroElektronika
page
15.0. Piezo Buzzer
Due to a built-in piezo buzzer, the development system is capable of emitting audio signals. For the piezo buzzer to operate normally
LW LV QHFHVVDU\WR JHQHUDWH DYROWDJH VLJQDO RI VSHFL¿HG IUHTXHQF\ 7KH YROWDJH VLJQDO LV JHQHUDWHG LQ WKH PLFURFRQWUROOHU E\ WKH
appropriate code written to its memory. Remember, when writing the voltage signal generation code, the piezo buzzer’s resonant
frequency is 3.8kHz. In addition, other frequencies in the range between 20Hz and 20kHz can be used, but the best performance is
provided by frequencies ranging between 2kHz and 4kHz. The voltage signal can be generated via the RB8 or RB9 microcontroller
pin. Jumper J16 is used to connect the piezo buzzer to the microcontroller pin used for voltage signal generation. In the example
shown in Figure 15-2, the voltage signal is generated through the RB8 pin.
Figure 15-1: Piezo buzzer
Figure 15-2: Piezo buzzer and microcontroller connection schematic
Piezo buzzer is connected to the microcontroller via the RB8 pin
Transistor Q12 is used
to amplify voltage
signal generated by the
microcontroller
Piezo buzzer’s resonant
frequency 3.8kHz