<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46427/buzzer-sound-with-low-power-pwm-library</link><description>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</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Apr 2019 12:46:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46427/buzzer-sound-with-low-power-pwm-library" /><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/183466?ContentTypeID=1</link><pubDate>Wed, 24 Apr 2019 12:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84d08b9b-300c-41b1-92cd-1bc355a4a6e6</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Joseph&lt;/p&gt;
&lt;p&gt;As mentioned by Andrew the PWM driver is a much better option than the low power PWM library. It is documented &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.3.0/lib_pwm.html?cp=5_4_7_3_24"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;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).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182863?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 09:35:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8d6a911-ef50-4356-9589-505a1f944a6a</guid><dc:creator>Joseph Ayuk</dc:creator><description>&lt;p&gt;Yeah Exactly, It is a speaker I want to use to play a .wav file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182857?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:50:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc71d82c-9579-40eb-86ef-648900d5a583</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I don&amp;#39;t know - you&amp;#39;ll have to investigate ...&lt;/p&gt;
&lt;p&gt;What do you mean by, &amp;quot;suitable&amp;quot;.&lt;/p&gt;
&lt;p&gt;What kind of &amp;quot;buzzer&amp;quot; &lt;em&gt;(sic?)&lt;/em&gt; are you using?&lt;/p&gt;
&lt;p&gt;Clearly, it&amp;#39;s not going to give you CD quality!!&lt;/p&gt;
&lt;p&gt;I&amp;#39;d also missed that you&amp;#39;re using nRF51. The nRF52&amp;nbsp;are more powerful, so would have a better chance; they also have I2S ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182855?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:46:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ce8e0b8-92b1-4a21-85e0-40e04d4b7abf</guid><dc:creator>Joseph Ayuk</dc:creator><description>&lt;p&gt;Thanks for your reply &lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt; but can the PWM Driver or PWM Library play a suitable melody like maybe the Pirate of Carribean theme on my buzzer ? I really doubt that. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182854?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffbde558-bdfc-44ea-bca1-0d83e77342c0</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Note that &amp;quot;&lt;em&gt;buzzer&lt;/em&gt;&amp;quot; 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.&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t want one of those!&lt;/p&gt;
&lt;p&gt;What you need is usually called &amp;quot;&lt;em&gt;speaker&lt;/em&gt;&amp;quot; (or, sometimes,&amp;nbsp; a &amp;quot;sounder&amp;quot;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182853?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d3f3dff-1d41-4aaf-9e33-b789a23c825c</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;IIRC, the &amp;quot;&lt;span&gt;Low-power PWM Library&amp;quot; does all its cycle-to-cycle updates in software - so is not suitable for&amp;nbsp;constantly varying duty cycles like this.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I suggest looking at the &amp;#39;PWM Driver&amp;#39; or &amp;#39;PWM Library&amp;#39; examples instead&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;The PWM Library Example demonstrates the use of the pulse-width modulation library by generating waveforms over a GPIO. &lt;strong&gt;The GPIO pin could drive a small speaker, for example&lt;/strong&gt;&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/pwm_example.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/pwm_example.html&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182850?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:350ba258-c2aa-40a3-baff-af9b4720ccf8</guid><dc:creator>Joseph Ayuk</dc:creator><description>&lt;p&gt;I want to play a suitable melody on a speaker connected to my nrf51 dk. I am doubting if the PWM library will satisfy my needs. Is it possible to use a .wav file to play a melody on my speaker connected to the board ? Besides usng Low-power pwm library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buzzer Sound with Low-Power PWM Library</title><link>https://devzone.nordicsemi.com/thread/182848?ContentTypeID=1</link><pubDate>Sat, 20 Apr 2019 08:04:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:597428c7-51db-4788-a934-6bf656f8fc8b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;What do you mean, &amp;quot;&lt;span&gt;play a buzzer&amp;quot; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you just want a tone, you don&amp;#39;t need PWM at all - just a timer.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>