Page 1 of 1

Help with buzzer setup for voltage alarm

Posted: Thu Jan 15, 2015 9:40 am
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?

Re: Help with buzzer setup for voltage alarm

Posted: Thu Jan 15, 2015 9:49 pm
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!

Re: Help with buzzer setup for voltage alarm

Posted: Mon Feb 16, 2015 10:35 pm
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 ??

Re: Help with buzzer setup for voltage alarm

Posted: Thu Feb 19, 2015 9:32 pm
by QuadBow
Have you defined BUZZER ?
Have you connected the BUZZER to the right port?
Is your BUZZER a piezo type?