buzz3 2.0.0.0
|
Buzz 3 Click is a compact add-on board that contains a sounder driver that produces higher volume with a lower current. This board features the PAM8904,
a piezo-sounder driver with an integrated Multi-Mode charge pump boost converter from Diodes Incorporated.
We provide a library for the Buzz3 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Buzz3 Click driver.
buzz3_cfg_setup
Config Object Initialization function. buzz3_init
Initialization function. buzz3_default_cfg
Click Default Configuration function. buzz3_pwm_start
This function starts the PWM module output. buzz3_set_gain_operating_mode
The function set gain operating mode of the PAM8904 piezo sounder driver with integrated charge pump boost converter on Buzz 3 click board. buzz3_play_sound
This function plays sound on buzzer. This example demonstrates the use of Buzz 3 click boards with PAM8904 for play the Imperial March.
PAM8904 is piezo-sounder driver with an integrated Multi-Mode charge pump boost converter from Diodes Incorporated.
The demo application is composed of two sections :
Initializes GPIO, set AN and RST pin as outputs, begins to write a log. Initialization driver enables - GPIO and configures the appropriate MCU pin for sound generation, also write log.
Plays the Imperial March melody. Also logs an appropriate message on the USB UART.
The minimal PWM Clock frequency required for this example is the frequency of tone C6 - 1047 Hz. So, in order to run this example and play all tones correctly, the user will need to decrease the MCU's main clock frequency in MCU Settings for the certain architectures in order to get the required PWM clock frequency.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.