Buzzer constant sound

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
fgrs
Posts: 6
Joined: Sat Nov 09, 2013 3:19 am

Buzzer constant sound

Post 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;

sismeiro
Posts: 173
Joined: Tue Feb 21, 2012 12:33 pm

Re: Buzzer constant sound

Post 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

fgrs
Posts: 6
Joined: Sat Nov 09, 2013 3:19 am

Re: Buzzer constant sound

Post 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;

sismeiro
Posts: 173
Joined: Tue Feb 21, 2012 12:33 pm

Re: Buzzer constant sound

Post 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. :)

Post Reply