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 Reply
  • With this code you will get a short circuit, and as explained in another post, you should not connect to pins together and use the pwm driver on both. Are you sure that the buzzer is able to make higher sound at this voltage? Could you try with a transistor or a function generator that can deliver enough current? If the buzzer makes to little sound at Vcc, you will have to have more voltage.

Children
No Data
Related