<?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>How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60781/how-to-generate-music-with-pwm</link><description>Hi, 
 
 I would like to control a piezo driver using GPIO pin on nRF52840 DK. 
 I&amp;#39;ve read posts about this kind of application. But still confused about how to set up PWM to generate music signal. 
 Can anyone help? What is the best example I should start</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 29 Apr 2020 09:12:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60781/how-to-generate-music-with-pwm" /><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/247256?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 09:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d689d9-d51d-4181-98f5-edc416802bdc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;thingy 52 shows how to produce sound from the nRF52. You can find the FW and the HW files for the platform &lt;a href="https://www.nordicsemi.com/Software-and-tools/Prototyping-platforms/Nordic-Thingy-52/Download#infotabs"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-c3426c5ccc3c4e47ad675f079193f358/pastedimage1588151598671v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/247250?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 09:04:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4c440b6-aaad-4bac-92f3-85f797edee86</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;again, &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;are&amp;nbsp;&lt;span&gt;one asking for &lt;strong&gt;free&lt;/strong&gt; help!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;don&amp;#39;t expect people to have to google the stuff in your question just to find out what you&amp;#39;re talking about.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/247242?ContentTypeID=1</link><pubDate>Wed, 29 Apr 2020 08:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a7b00bf-e561-403a-9b03-db1b7ed5bed0</guid><dc:creator>Jxq</dc:creator><description>&lt;p&gt;Can you please copy and paste and google?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/246986?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 07:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23ea1155-7b74-415f-a7b1-a2ae83fdbb84</guid><dc:creator>awneil</dc:creator><description>[quote userid="88640" url="~/f/nordic-q-a/60781/how-to-generate-music-with-pwm/246985"]The part no. of piezo driver is&amp;nbsp;PAM8904[/quote]
&lt;p&gt;Go on - give a link!&lt;/p&gt;
&lt;p&gt;You&amp;#39;re the one asking for free help - make it easy for people to help you...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/246985?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 07:43:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4299a83e-25a6-452b-8c7d-fecc21018c49</guid><dc:creator>Jxq</dc:creator><description>&lt;p&gt;Hi Awneil,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I believe I&amp;#39;ve already&amp;nbsp;got the theory behind the PWM and waveform.&lt;/p&gt;
&lt;p&gt;Yes, I have questions about how to configure a music unit in an nRF52840.&lt;/p&gt;
&lt;p&gt;The part no. of piezo driver is&amp;nbsp;PAM8904. Sorry for the confusion, what I need is not a song or a music, it&amp;#39;s more like a tune or a sound.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to generate music with PWM?</title><link>https://devzone.nordicsemi.com/thread/246980?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 07:25:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3416a6e-3482-443c-8097-a2aacd7de6cd</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Are you asking about the general principles of how PWM can be used to synthesise a waveform, or just the specific details of how to configure the PWM unit in an nRF52840 ?&lt;/p&gt;
&lt;p&gt;Obviously, you will need to understand the former before moving on to the latter.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.google.com/search?q=pwm+audio"&gt;https://www.google.com/search?q=pwm+audio&lt;/a&gt;&lt;/p&gt;
[quote userid="88640" url="~/f/nordic-q-a/60781/how-to-generate-music-with-pwm"]a piezo driver [/quote]
&lt;p&gt;What, exactly, do you mean by that?&lt;/p&gt;
&lt;p&gt;Give a part number and/or link to the product.&lt;/p&gt;
&lt;p&gt;Note that many cheap piezo sounders are resonant and will not reproduce a wide range of frequencies - so they are not suitable for music.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>