Help with buzzer setup for voltage alarm

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
histo
Posts: 5
Joined: Mon Jan 12, 2015 11:21 am

Help with buzzer setup for voltage alarm

Post by histo »

Alright, finally I have voltage feedback/divider working on my Multiwii. I can't seem to get a buzzer/piezzor speaker working for voltage alarm though.

I'm using a multiwii pro 2.0 from readytoflyquads and have my voltage/vbat on A14. I've tried the buzzer on A15 and D8 and uncommented the #define buzzer and pin override but can't seem to get any output. I've changed the voltage alarms to higher levels to try to test but no sound is produced.

Just looking for any tips and or ideas to get it going. Also if anyone knows what is the PORT C and PORT B code in the buzzer section of the config.h?

QuadBow
Posts: 532
Joined: Fri Jan 04, 2013 10:06 am

Re: Help with buzzer setup for voltage alarm

Post by QuadBow »

HI histo,

Your flight controller is a MEGA, the related section in def.h reveals that the BUZZERPIN matches to digital pin D32 (due to the Arduino naming scheme) or PORTC5 (due to teh Atmel naming scheme). D8 is only valid for the PROMINI, a smaller flight controller. A2 is only applied, if you have uncommented the OVERRIDE_BUZZERPIN_XXX definitions.

You are right, furthermore you have to uncomment #define BUZZER and that should be all you have to do.

Have fun!

captainanthony
Posts: 10
Joined: Thu Feb 13, 2014 6:38 am

Re: Help with buzzer setup for voltage alarm

Post by captainanthony »

Hi I am struggling with the exact same problem .........just can't get a beep out of the buzzer .........I have assigned v-bat to A14 ...... Now The power meter is working on GUI .............. did you ever get resolution ??

QuadBow
Posts: 532
Joined: Fri Jan 04, 2013 10:06 am

Re: Help with buzzer setup for voltage alarm

Post by QuadBow »

Have you defined BUZZER ?
Have you connected the BUZZER to the right port?
Is your BUZZER a piezo type?

Post Reply