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

how to increase the buzzer loudness

Hello everyone ,

i am trying to increase the sound of the buzzer so can anyone suggest me do i ahve to increase the supply voltage or do i have to modify the dutycycle of the buzzer , i really dont ahve any idea how to achieve this without adding any audio amplifier circuit any suggestions or ideas will be really helpful for me to move forward

Thank you

pwm_volt.c

Parents Reply
  • A transistor can be very small, like the SOT-23 package. If the buzzer draws too much current from the gpio pin, the voltage will drop and so will the sound level. You can configure the gpio for high drive with this code:

    NRF_GPIO->PIN_CNF[PWM_PIN] |= (GPIO_PIN_CNF_DRIVE_H0H1 << GPIO_PIN_CNF_DRIVE_Pos);
    

    You should also rather sink current than source current, see here. This means the connection will be: VCC->BUZZER->GPIO

Children
No Data
Related