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.

  • actually i can manage all the buttons push and buzzer beep sound after pressing the button but the actual main problmr is the pwm pulses are not getting created in both channels i am using this function

    app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(158UL,6,7);//6.3KHz

    when i connect the buzzer in two pins only the pin 6 is producing beep sound but the pin 7 showing 2.9V and if i connect the buzzer to that pin it is not producing any beep sound in the buzzer can you tell me what are the other things do i have to add or modify in ordert o create beep on both pins

Reply
  • actually i can manage all the buttons push and buzzer beep sound after pressing the button but the actual main problmr is the pwm pulses are not getting created in both channels i am using this function

    app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(158UL,6,7);//6.3KHz

    when i connect the buzzer in two pins only the pin 6 is producing beep sound but the pin 7 showing 2.9V and if i connect the buzzer to that pin it is not producing any beep sound in the buzzer can you tell me what are the other things do i have to add or modify in ordert o create beep on both pins

Children
No Data
Related