<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Mod to programmatically disable speaker whine&#x2F;hiss.]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/61/noise-on-speaker">Noise on speaker</a></p>
<p dir="auto">Hi all,</p>
<p dir="auto">I've been working on porting the <a href="https://www.pjrc.com/teensy/gui/index.html" target="_blank" rel="noopener noreferrer nofollow ugc">Teensy Audio Library</a> to M5Stack to allow full (&amp; easy) audio synthesis.</p>
<p dir="auto"><img src="/assets/uploads/files/1539790995536-img_0656-2-resized.jpg" alt="0_1539790993131_IMG_0656-2.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">However the background whine/hiss from the speaker when no audio is being played is <em>very</em> annoying (and quite loud on my M5Stack).</p>
<p dir="auto">My suggested modification in this case is to put a wire from Pin 1 of the speaker amplifer to GPIO5.</p>
<p dir="auto"><img src="/assets/uploads/files/1539790907398-img_0655-2-resized.jpg" alt="0_1539790903732_IMG_0655-2.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">Then it's just a simple case of <code>digitalWrite(5, HIGH);</code> to turn on the amplifier, and <code>digitalWrite(5, LOW);</code> to turn off the amplifier.</p>
<p dir="auto">There seems to be a 30-100ms delay for the amplifier to turn on, and very little delay for it to turn off so I sadly can't get my audio library to automatically turn the amplifier on/off because I would miss the beginning of any new audio playback.</p>
<p dir="auto">So I've just attached the amplifier control to <code>BtnA</code> for manual control so I can at least turn off the noise.</p>
<p dir="auto">Good luck to anyone else attempting this mod! :)</p>
]]></description><link>https://community.m5stack.com/topic/367/mod-to-programmatically-disable-speaker-whine-hiss</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:01:37 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/367.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 17 Oct 2018 15:53:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Thu, 26 Sep 2019 15:39:07 GMT]]></title><description><![CDATA[<p dir="auto">It is probably better not to connect PIN 1 of the NS4148 but pin 3 the buck converter EA3036 to pin 5 since otherwise you have a bigger power consumption. You could also remove R23 in that case.</p>
]]></description><link>https://community.m5stack.com/post/5742</link><guid isPermaLink="true">https://community.m5stack.com/post/5742</guid><dc:creator><![CDATA[funghy]]></dc:creator><pubDate>Thu, 26 Sep 2019 15:39:07 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Fri, 01 Mar 2019 19:31:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/macaba" aria-label="Profile: macaba">@<bdi>macaba</bdi></a> Nice. I was trying all the way to avoid noise on speaker and none of luck. Then trying using this method and it's works! Thanks</p>
]]></description><link>https://community.m5stack.com/post/3172</link><guid isPermaLink="true">https://community.m5stack.com/post/3172</guid><dc:creator><![CDATA[masrodjie]]></dc:creator><pubDate>Fri, 01 Mar 2019 19:31:44 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Mon, 22 Oct 2018 14:45:51 GMT]]></title><description><![CDATA[<p dir="auto">Hello,<br />
Maybe you can port this teensy dalek voice sketch to m5stack<br />
Thank you in advance.</p>
<p dir="auto"><a href="https://pastebin.com/dYf49wp5" target="_blank" rel="noopener noreferrer nofollow ugc">https://pastebin.com/dYf49wp5</a></p>
]]></description><link>https://community.m5stack.com/post/1794</link><guid isPermaLink="true">https://community.m5stack.com/post/1794</guid><dc:creator><![CDATA[Nifkuzyaire]]></dc:creator><pubDate>Mon, 22 Oct 2018 14:45:51 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Sun, 21 Oct 2018 10:14:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/calin" aria-label="Profile: Calin">@<bdi>Calin</bdi></a> Hold your ear on the "mute" speaker. There is still noise with your code.</p>
<p dir="auto">THX for the hardware mod suggestion.</p>
]]></description><link>https://community.m5stack.com/post/1783</link><guid isPermaLink="true">https://community.m5stack.com/post/1783</guid><dc:creator><![CDATA[PlayTheGame]]></dc:creator><pubDate>Sun, 21 Oct 2018 10:14:41 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Sun, 21 Oct 2018 07:03:46 GMT]]></title><description><![CDATA[<p dir="auto">You can mute the speaker very easy from code.<br />
Just call<br />
<code>dacWrite (25,0);</code></p>
]]></description><link>https://community.m5stack.com/post/1780</link><guid isPermaLink="true">https://community.m5stack.com/post/1780</guid><dc:creator><![CDATA[Calin]]></dc:creator><pubDate>Sun, 21 Oct 2018 07:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Sat, 20 Oct 2018 08:43:14 GMT]]></title><description><![CDATA[<p dir="auto">Hello, I just flashed it and it works. Thankx :-)<br />
Do you use a software sigma-delta-DAC or the internal 8 Bit DAC?<br />
Probably you can add a second example which shows a little bit of the sound qualities of the lib.</p>
]]></description><link>https://community.m5stack.com/post/1774</link><guid isPermaLink="true">https://community.m5stack.com/post/1774</guid><dc:creator><![CDATA[ChrisMicro]]></dc:creator><pubDate>Sat, 20 Oct 2018 08:43:14 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Fri, 19 Oct 2018 13:02:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cbrightly" aria-label="Profile: cbrightly">@<bdi>cbrightly</bdi></a> <a href="https://github.com/macaba/ESP32AudioLibrary" target="_blank" rel="noopener noreferrer nofollow ugc">https://github.com/macaba/ESP32AudioLibrary</a></p>
<p dir="auto">Initial commit of ESP32/M5Stack audio library done. Not that many objects yet, I'll be adding more as time allows.</p>
]]></description><link>https://community.m5stack.com/post/1765</link><guid isPermaLink="true">https://community.m5stack.com/post/1765</guid><dc:creator><![CDATA[Macaba]]></dc:creator><pubDate>Fri, 19 Oct 2018 13:02:28 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Thu, 18 Oct 2018 13:22:21 GMT]]></title><description><![CDATA[<p dir="auto">Yep! It'll be going on GitHub at some point.</p>
<p dir="auto">It won't be compatible with the the original audio objects from the Teensy library;</p>
<ol>
<li>I've moved over to <code>float</code> datatype for audio samples (it makes certain audio algorithms so much easier) so I've been slowly porting across the objects when I use them.</li>
<li>I've added some functionality that lets you get more detailed CPU reporting.</li>
</ol>
<p dir="auto">You can see my handy 'Amp on/off' control now:<br />
<img src="/assets/uploads/files/1539868919725-adaacef8-3324-46f7-a94e-ae38e249f3e7-image-resized.png" alt="0_1539868916364_adaacef8-3324-46f7-a94e-ae38e249f3e7-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.m5stack.com/post/1758</link><guid isPermaLink="true">https://community.m5stack.com/post/1758</guid><dc:creator><![CDATA[Macaba]]></dc:creator><pubDate>Thu, 18 Oct 2018 13:22:21 GMT</pubDate></item><item><title><![CDATA[Reply to Mod to programmatically disable speaker whine&#x2F;hiss. on Thu, 18 Oct 2018 00:15:43 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/macaba" aria-label="Profile: macaba">@<bdi>macaba</bdi></a> I will have to look into this! Do you plan on sharing any of your work porting the audio libraries from the Teensy over to the M5Stack / ESP32?</p>
]]></description><link>https://community.m5stack.com/post/1747</link><guid isPermaLink="true">https://community.m5stack.com/post/1747</guid><dc:creator><![CDATA[cbrightly]]></dc:creator><pubDate>Thu, 18 Oct 2018 00:15:43 GMT</pubDate></item></channel></rss>