Page 1 of 1

Buzzer constant sound

Posted: Fri Nov 14, 2014 9:59 pm
by fgrs
not sure whats going one I have finally managed to connect the buzzer and lights but the buzzer is always on unless I turn the beeper ON from the radio it starts beeping which is fine it also beeps during calibration but feels like the buzzer sound is inverted, anyone have any idea?

these are mine settings crius AIO v2 connected to A2 instead of pin 32

Code: Select all

#define OVERRIDE_BUZZERPIN_PINMODE          pinMode (A2, OUTPUT); // use A2 instead of d8
#define OVERRIDE_BUZZERPIN_ON               PORTF |= 1<<2 //PORTB |= 1;
#define OVERRIDE_BUZZERPIN_OFF              PORTF &= ~(1<<2); //PORTB &= ~1;

Re: Buzzer constant sound

Posted: Sat Nov 15, 2014 10:44 am
by sismeiro
Hi,

You can check the changes I made into the 2.3 code here http://www.multiwii.com/forum/viewtopic.php?f=8&t=4482. I also had the same problem with the buzzer being inverted but with a few changes in the code it was solved.

Regards,
Luis Sismeiro

Re: Buzzer constant sound

Posted: Sat Nov 15, 2014 1:38 pm
by fgrs
it was easier to make changes in the config only, had to swap those lines only

Code: Select all

  //#define OVERRIDE_BUZZERPIN_ON               PORTF |= 1<<2 //PORTB |= 1;
  #define OVERRIDE_BUZZERPIN_ON              PORTF &= ~(1<<2); //PORTB &= ~1;
  //#define OVERRIDE_BUZZERPIN_OFF              PORTF &= ~(1<<2); //PORTB &= ~1;
  #define OVERRIDE_BUZZERPIN_OFF               PORTF |= 1<<2 //PORTB |= 1;

Re: Buzzer constant sound

Posted: Sun Nov 16, 2014 8:35 pm
by sismeiro
fgrs wrote:it was easier to make changes in the config only, had to swap those lines only

Yep, the way you did it's easier. :)