Play some tunes
How it works
Sometimes LED feedback isn’t enough, like when you’re flying around in a lab and living room. With the Buzzer deck you’ll get audio feedback on system events, like low battery or charging completed. Or why not create your own melodies that will play while you’re buzzing around. If you’re tapped out on creativity there are already a few melodies pre-programmed that you can use.
- Low profile piezo buzzer for tone and melody generation
- Automatic detection of deck via 1-wire memory
- Weight: 1.8g
- Size (WxHxD): 25x27x4mm
- Designed for mounting above or under the Crazyflie 2.X
- Based on CMT-1203-SMT
Changing the sounds
Changing sounds in firmware
Changing the sounds requires modifications to the firmware. The code for the sounds is located in sound_cf.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.
- Start here
- Buyers guide
- Development overview
- Getting help
- Expansion decks of the Crazyflie 2.X
- Getting started with the Buzzer deck
If you have any further questions please contact email@example.com