This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

how to configure BUZZER IN NRF51 EVB

Hello everyone

i am trying to configure the buzzer int he development board inordert o create the buzzer beep sound i have configured the GPIO pin 14 fir the buzzer so in the pin 14 of the developement i connected the positive to 14 and negative to gnd like that i ahve to configure or something else any suggestion will be helpful

main.c

Parents
  • You can connect the buzzer directly to the pin as it is done on the mbed Application Shield. However be aware that the maximum current that can be sourced from any pin on the nRF51 is 5 mA. It may also be less (0.5mA) if the pin is not configured in high drive. For this reason I would suggest to use a transistor in between the nRF51 chip and the buzzer.

  • It is connected correct (I would suggest a transistor however). Run the PWM with a low duty cycle to avoid drawing to much current. You don't need to configure the gpio to run the PWM.

Reply
  • It is connected correct (I would suggest a transistor however). Run the PWM with a low duty cycle to avoid drawing to much current. You don't need to configure the gpio to run the PWM.

Children
No Data