Products
-
-
- Accessories
- Breakout boards
This is an old revision of the document!
The buzzer deck contains a low profile piezo buzzer and have a 1-wire memory which enables the Crazyflie to automatically detect the deck.
The deck is designed to be installed either on the top or the bottom of the Crazyflie.
Drivers for the buzzer are integrated in the Crazyflie 2.0 firmware.
Buzzer expansion deck schematic.
Changing the sounds requires modifications to the firmware. The code for the sounds is located in src/sound_cf2.c.
A sequences is defined in the .notes member of the Melody struct. The notes are defined as tuples of a note (pitch) and duration. A sequence must be ended with the end marker.
The effects are defined in the effects array. Each entry takes a function to call and related parameters. To add a new melody, use the melodyplayer function for the .call member and assign your Melody struct to the .melody member.