The Buzzer deck contains a low profile piezo buzzer and has a 1-wire memory which enables the Crazyflie to automatically detect the buzzer. The deck can be installed both on the top and the bottom of the Crazyflie. For more information about how to mount an expansion deck please see the Getting started with expansion decks tutorial.
To be able to use the Buzzer deck you need to update the Crazyflie to the latest firmware. For more information on how to update the firmware, see the update firmware in the Crazyflie section in our getting started with Crazyflie 2.X tutorial.
When the Buzzer deck is installed, the Crazyflie 2.X will play sounds at various events, for instance when the battery is charged. The events are
- Start up
- Sensors calibrated
- Low battery
- Charging completed
- USB connected
- USB disconnected
To start out with the Buzzer deck the Crazyflie is pre-programmed with system sounds and some melodies. To play them you need to use the Python client and set up a connection with your Crazyflie. For more information about how to set up your Crazyflie and install the client go to Getting started with the Crazyflie 2.X.
In the client, go to the view menu and choose tabs. Check “parameters” to enable the tab.
Click the parameters tab and scroll down to sounds. In the effects row double click the number in the value column and type the number of the sound you want to play. You can find the list of sounds below
Here is a list of the pre-programmed sounds you can choose from:
|10||Star Wars||Who doesn’t love Star Wars!|
|12||Bypass||Change sound pitch by changing the value in the freq row|
|14||Tilt||Tilt the Crazyflie to play the sound|
Also check out the automated documentation of the parameters