Hello, I would like know if it is possible to play a buzzer using the Low-power PWM Library ? I am using the nrf51 DK and Softdevice130. The SDK I use is version SDK V 12.3
Joseph Ayuk
Hello, I would like know if it is possible to play a buzzer using the Low-power PWM Library ? I am using the nrf51 DK and Softdevice130. The SDK I use is version SDK V 12.3
Joseph Ayuk
Note that "buzzer" is usually taken to mean a device which internally generates its own tone - so you just apply power to it, and goes Buzzzzzzzzzz or Beeeeeeeeeeeep or whatever.
You don't want one of those!
What you need is usually called "speaker" (or, sometimes, a "sounder")
Note that "buzzer" is usually taken to mean a device which internally generates its own tone - so you just apply power to it, and goes Buzzzzzzzzzz or Beeeeeeeeeeeep or whatever.
You don't want one of those!
What you need is usually called "speaker" (or, sometimes, a "sounder")
Yeah Exactly, It is a speaker I want to use to play a .wav file
Hi Joseph
As mentioned by Andrew the PWM driver is a much better option than the low power PWM library. It is documented here.
I would also strongly suggest looking at the nRF52 series instead of the nRF51 series, as the nRF52 devices have dedicated PWM modules with DMA support, making it much easier to playback a wave file from RAM (assuming you are fine with 8-bit sound).
Best regards
Torbjørn