diff --git a/docs/Buzzer.md b/docs/Buzzer.md index 5d362f5003..209ffb8bd0 100644 --- a/docs/Buzzer.md +++ b/docs/Buzzer.md @@ -20,3 +20,16 @@ Example of a known-working buzzer. http://www.rapidonline.com/Audio-Visual/Hcm1205x-Miniature-Buzzer-5v-35-0055 +## Connections + +### Naze32 + +Connect a supported buzzer directly to the BUZZ pins. Observe polarity. + +### CC3D + +Buzzer support on the CC3D requires that a buzzer circuit be created to which the input is PA15. +PA15 is unused and not connected according to the CC3D Revision A schematic. +Connecting to PA15 requires careful soldering. + +See the CC3D - buzzer circuir.pdf for details. diff --git a/docs/Wiring/CC3D - buzzer circuit.pdf b/docs/Wiring/CC3D - buzzer circuit.pdf new file mode 100644 index 0000000000..4bfbd7b55b Binary files /dev/null and b/docs/Wiring/CC3D - buzzer circuit.pdf differ diff --git a/src/main/target/CC3D/target.h b/src/main/target/CC3D/target.h index c5ee97ed3b..4163ceda8e 100644 --- a/src/main/target/CC3D/target.h +++ b/src/main/target/CC3D/target.h @@ -29,6 +29,11 @@ #define GYRO #define INVERTER +#define BEEP_GPIO GPIOA +#define BEEP_PIN Pin_15 // PA15 (Beeper) +#define BEEP_PERIPHERAL RCC_APB2Periph_GPIOA + + // #define SOFT_I2C // enable to test software i2c // #define SOFT_I2C_PB1011 // If SOFT_I2C is enabled above, need to define pinout as well (I2C1 = PB67, I2C2 = PB1011) // #define SOFT_I2C_PB67