<?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" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[Irregular Shed]]></title><description><![CDATA[Where Steve writes words about things, basically]]></description><link>https://twindx.com/</link><image><url>https://twindx.com/favicon.png</url><title>Irregular Shed</title><link>https://twindx.com/</link></image><generator>Ghost 5.118</generator><lastBuildDate>Tue, 20 Jan 2026 16:23:44 GMT</lastBuildDate><atom:link href="https://twindx.com/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[GAH!]]></title><description><![CDATA[<p>A catastrophic hardware failure at my server hosting company has seen my dedicated server become utterly, unrepairably destroyed. And with it, unsurprisingly, my blog.</p><p>I&apos;m hoping I can find the backup I made when I changed Ghost versions... otherwise there&apos;s going to be a lot of</p>]]></description><link>https://twindx.com/coming-soon/</link><guid isPermaLink="false">67ddab639a9f0400d8854db5</guid><category><![CDATA[News]]></category><dc:creator><![CDATA[steve]]></dc:creator><pubDate>Fri, 21 Mar 2025 18:09:39 GMT</pubDate><media:content url="https://images.unsplash.com/photo-1533158039493-c4a60b44ad33?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDN8fHZvbWl0fGVufDB8fHx8MTc0MjU4MTAxNnww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" medium="image"/><content:encoded><![CDATA[<img src="https://images.unsplash.com/photo-1533158039493-c4a60b44ad33?crop=entropy&amp;cs=tinysrgb&amp;fit=max&amp;fm=jpg&amp;ixid=M3wxMTc3M3wwfDF8c2VhcmNofDN8fHZvbWl0fGVufDB8fHx8MTc0MjU4MTAxNnww&amp;ixlib=rb-4.0.3&amp;q=80&amp;w=2000" alt="GAH!"><p>A catastrophic hardware failure at my server hosting company has seen my dedicated server become utterly, unrepairably destroyed. And with it, unsurprisingly, my blog.</p><p>I&apos;m hoping I can find the backup I made when I changed Ghost versions... otherwise there&apos;s going to be a lot of relying on Wayback Machine to get things roughly how they were.</p>]]></content:encoded></item><item><title><![CDATA[Fixing the DAC on a Wemos S2 Mini]]></title><description><![CDATA[A post where Steve uses 500 words more than necessary to describe how to improve the DAC on an S2 Mini board.]]></description><link>https://twindx.com/fixing-the-dac-on-a-wemos-s2-mini/</link><guid isPermaLink="false">67df3b084eac5f0070e71fd0</guid><category><![CDATA[Hardware]]></category><dc:creator><![CDATA[steve]]></dc:creator><pubDate>Wed, 08 Mar 2023 00:00:00 GMT</pubDate><media:content url="https://twindx.com/content/images/2025/03/20230308_155633-1.jpg" medium="image"/><content:encoded><![CDATA[<img src="https://twindx.com/content/images/2025/03/20230308_155633-1.jpg" alt="Fixing the DAC on a Wemos S2 Mini"><p>A delightfully specific post title, and we&apos;ll get to it in a moment after some preamblic verbiage.</p><p><em>(Pre-preamble: this is the first post I recovered thanks to Wayback Machine and Google Photos following my complete server fail.)</em></p><h2 id="preamble">Preamble</h2><p>I&apos;ve decided that 8-bit microcontrollers need to be dead to me. What&apos;s the point of persevering with, say, an Arduino Pro Mini, with its lack of power and useful peripherals (not to mention no USB port) when, for the same price, I could be using a more efficient 32-bit offering with both bells&#xA0;<em>and</em>&#xA0;whistles?</p><p>For reasons I started going into, then got bored writing (and figured out any potential reader would get&#xA0;<em>more</em>&#xA0;bored than me), my development boards of choice are now the Raspberry Pi Pico and the S2 Mini (ostensibly by Wemos, but it looks like there&apos;s many more clones about than originals). Both are crazy cheap - the Pi Pico is &#xA3;4.30 locally, and I got five S2 Minis delivered from China for just under &#xA3;12 - super capable and CircuitPython compatible.</p><h2 id="post-preamble">Post-preamble</h2><p>The S2 Mini has two built-in 8-bit DACs in its arsenal, and it was that fact that made me turn my back on the Arduino Pro Mini I&apos;d started a project with. However, Wemos followed the chip manufacturer&apos;s designs and a questionable choice made one of the DACs more or less useless. An external pull-up resistor to Vcc on the pin the DAC is tied to means that, instead of a range of (roughly) 0-3.3V, you get a range of 1.65-3.3V on this one. This annoyed me enough to not only try and do something about it, but also document what I did. (Yes, this page is that document.)</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://twindx.com/content/images/2025/03/image-6.png" class="kg-image" alt="Fixing the DAC on a Wemos S2 Mini" loading="lazy" width="1062" height="411" srcset="https://twindx.com/content/images/size/w600/2025/03/image-6.png 600w, https://twindx.com/content/images/size/w1000/2025/03/image-6.png 1000w, https://twindx.com/content/images/2025/03/image-6.png 1062w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">R4 is the problem.</span></figcaption></figure><p>Researching a little further, I found that&#xA0;<a href="https://learn.sparkfun.com/tutorials/esp32-s2-thing-plus-hookup-guide/hardware-overview?ref=twindx.com" rel="noreferrer">Sparkfun&apos;s board</a>&#xA0;with this chipset on has a solder jumper/bridge on the back which allows you to disconnect the resistor on this pin, which allows you to get proper DAC capabilities.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://twindx.com/content/images/2025/03/image-1.png" class="kg-image" alt="Fixing the DAC on a Wemos S2 Mini" loading="lazy" width="936" height="751" srcset="https://twindx.com/content/images/size/w600/2025/03/image-1.png 600w, https://twindx.com/content/images/2025/03/image-1.png 936w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Evidence of a potential fix.</span></figcaption></figure><p>So, with that in mind, it looks as if you can safely remove that resistor and the chip will keep working. Given they were around &#xA3;2.40 each, I figured it was worth tracking down the resistor and disabling it in some way, and writing off the cost if it went wrong.</p><h2 id="how-to-fix-it">How to fix it</h2><p>Using a multimeter in conjunction with the schematic and the nice hi-res photos of both sides of the board on&#xA0;<a href="https://www.wemos.cc/en/latest/s2/s2_mini.html?ref=twindx.com" rel="noreferrer">the Wemos site</a>, I tracked down R4.</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://twindx.com/content/images/2025/03/image-5.png" class="kg-image" alt="Fixing the DAC on a Wemos S2 Mini" loading="lazy" width="1096" height="857" srcset="https://twindx.com/content/images/size/w600/2025/03/image-5.png 600w, https://twindx.com/content/images/size/w1000/2025/03/image-5.png 1000w, https://twindx.com/content/images/2025/03/image-5.png 1096w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">It&apos;s that teeny tiny resistor that we need to deal with.</span></figcaption></figure><p>And so I removed it with my&#xA0;<a href="https://www.engineertools-jp.com/ns030406?ref=twindx.com" rel="noreferrer">Micro Nippers</a>, as carefully as possible so as to not hit the capacitor just beside, or leave any debris behind. (There was no way I was going to do that with a soldering iron.)</p><figure class="kg-card kg-image-card kg-card-hascaption"><img src="https://twindx.com/content/images/2025/03/image-3.png" class="kg-image" alt="Fixing the DAC on a Wemos S2 Mini" loading="lazy" width="1578" height="888" srcset="https://twindx.com/content/images/size/w600/2025/03/image-3.png 600w, https://twindx.com/content/images/size/w1000/2025/03/image-3.png 1000w, https://twindx.com/content/images/2025/03/image-3.png 1578w" sizes="(min-width: 720px) 720px"><figcaption><span style="white-space: pre-wrap;">Surgery complete.</span></figcaption></figure><p>And now...? Now I have two 8-bit DACs that work identically, and everything else is just as it was. Great success!</p><h2 id="tldr">TL;DR</h2><p>To get DAC2 to function normally on a Wemos S2 Mini (and its clones), very carefully use a pair of decent quality side cutters to remove/destroy the resistor circled in the image above, between the USB-C port and the ESP32-S2 chip. I&apos;m not responsible if you break your board, because you&apos;re using&#xA0;<a href="https://www.techspray.com/5-ways-to-spot-a-counterfeit-tool-before-you-buy-it?ref=twindx.com" rel="noreferrer">counterfeit Plato side cutters</a>&#xA0;or something like that. (And sorry for waffling on and on.)</p>]]></content:encoded></item></channel></rss>