<?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:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Afnan Yusuf on Medium]]></title>
        <description><![CDATA[Stories by Afnan Yusuf on Medium]]></description>
        <link>https://medium.com/@afnanyusufpp?source=rss-258314f4fa46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*IGxtIedKknCtx_CT9ZrMMQ.png</url>
            <title>Stories by Afnan Yusuf on Medium</title>
            <link>https://medium.com/@afnanyusufpp?source=rss-258314f4fa46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:42:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@afnanyusufpp/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Are We Becoming Less Creative as Technology Becomes More Accessible?]]></title>
            <link>https://medium.com/@afnanyusufpp/are-we-becoming-less-creative-as-technology-becomes-more-accessible-574d13f378c8?source=rss-258314f4fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/574d13f378c8</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[curiosity]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[brain-rot]]></category>
            <dc:creator><![CDATA[Afnan Yusuf]]></dc:creator>
            <pubDate>Tue, 21 Jul 2026 16:18:07 GMT</pubDate>
            <atom:updated>2026-07-21T16:18:07.397Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology has never been more accessible.</p><p>Today, almost anyone can order electronic components online, download open-source designs, generate code with AI, or fabricate custom parts with tools that were once available only to professionals.</p><p>This is undoubtedly a good thing. It has lowered the barrier to learning, accelerated innovation, and made engineering accessible to millions of people.</p><p>But it has also made me wonder about something else.</p><p><strong><em>What happens to creativity when many of the constraints disappear?</em></strong></p><h3>Creativity Often Starts Where Convenience Ends</h3><p>Throughout history, limited resources have forced people to think differently.</p><p>When the ideal solution wasn’t available, they improvised.</p><p>When a required component couldn’t be found, they redesigned the circuit.</p><p>When the right material wasn’t available, they built with whatever they had.</p><p>These weren’t necessarily better solutions — they were simply the only solutions available.</p><p><em>And in searching for them, people developed intuition that couldn’t be downloaded or generated.</em></p><h3>Convenience Changes the Questions We Ask</h3><p>Today’s engineering workflow looks very different.</p><blockquote>Need a circuit?</blockquote><p>Order the exact parts.</p><blockquote>Need a motor driver?</blockquote><p>Use a ready-made module.</p><blockquote>Need software?</blockquote><p>Search GitHub or ask an AI assistant.</p><blockquote>Need an enclosure?</blockquote><p>find an existing model.</p><p><em>Each of these tools saves time. That’s exactly what they’re supposed to do.</em></p><p>But together they also change the nature of problem solving.</p><p>Instead of asking,</p><blockquote><strong><em>“How can I build this with what I have?”</em></strong></blockquote><p>we often ask,</p><blockquote><strong><em>“What’s the fastest existing solution?”</em></strong></blockquote><p>Neither question is wrong.</p><p>But they exercise different kinds of thinking.</p><h3>A Small Observation</h3><p>One of the most valuable lessons many engineers learn early isn’t electronics or programming.</p><p>It’s <strong>improvisation</strong>.</p><p>Building with limited tools often means discovering solutions that were never part of the original plan.</p><p>A missing component leads to a redesign.</p><p>An unavailable material leads to a different construction method.</p><p>A limitation becomes an opportunity to experiment.</p><p>Ironically, some of these ideas never emerge when the perfect solution is already available.</p><h3>AI Is the Latest Example</h3><p>The shift is perhaps most visible with AI.</p><p>A few years ago, solving a programming problem usually involved reading documentation, experimenting, making mistakes, and gradually understanding why something worked.</p><p>Today, an AI assistant can often produce a working starting point in seconds.</p><p>This is incredibly useful.</p><p>But it also removes part of the learning process if we stop asking <em>why</em> the solution works.</p><p>The challenge isn’t AI itself.</p><p>The challenge is making sure convenience doesn’t replace curiosity.</p><h3>This Isn’t About Rejecting Technology</h3><p>Technology has given us opportunities that previous generations could only dream about.</p><p>We shouldn’t ignore those advantages.</p><p>The goal isn’t to make engineering harder.</p><p>It’s to recognize that some of the skills developed under constraints — experimentation, adaptation, and resourcefulness — are still worth practicing, even when they’re no longer necessary.</p><p>Sometimes choosing the harder path teaches something the easier path never will.</p><h3>Final Thoughts</h3><p><em>Perhaps creativity has never depended on having more tools.</em></p><p>Perhaps it has always depended on having just enough limitations to force us to think differently.</p><p>As technology continues to remove barriers, the challenge may no longer be gaining access to better tools.</p><p>It may be remembering to occasionally solve problems without immediately reaching for them.</p><blockquote>Thanks for taking the time to read. If you have thoughts, feedback, or a different perspective, feel free to get in touch.</blockquote><blockquote><strong>Email:</strong> <a href="/service/mailto:contact@afnanyusuf.com">contact@afnanyusuf.com</a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=574d13f378c8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DJI Osmo Mobile 3, Repair/Fix]]></title>
            <link>https://medium.com/@afnanyusufpp/dji-osmo-mobile-3-weird-fix-287e2f25632c?source=rss-258314f4fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/287e2f25632c</guid>
            <category><![CDATA[dji]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[repair]]></category>
            <category><![CDATA[disassembly]]></category>
            <category><![CDATA[gimbal]]></category>
            <dc:creator><![CDATA[Afnan Yusuf]]></dc:creator>
            <pubDate>Fri, 01 May 2026 12:54:24 GMT</pubDate>
            <atom:updated>2026-05-13T01:11:22.650Z</atom:updated>
            <content:encoded><![CDATA[<p>My DJI Osmo Mobile 3 smartphone gimbal suddenly started behaving strangely.<br>One axis would aggressively swing all the way to one side or the other instead of stabilizing properly. At first, I was convinced it had to be an electronics issue — maybe a sensor failure, encoder issue, or some firmware-related fault.</p><p>So naturally, I opened it up.</p><p>And that was an adventure on its own.</p><p>The Osmo Mobile 3 is <em>not</em> designed to be service-friendly. Opening it leaves permanent marks. But curiosity won.</p><p>Once inside, everything looked normal. No burnt components, no broken flex cables, no obvious signs of damage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GzpUCYvhdImZiuRybhKSwQ.jpeg" /><figcaption>DJI osmo mobile 3 disassembly</figcaption></figure><p>But after closer inspection, I finally spotted the real issue:</p><p>The permanent magnet inside the BLDC motor for the Z-axis had come loose.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t8G1H98X9NfiKn0qUY9QJA.jpeg" /><figcaption>DJI OM3 z axis</figcaption></figure><p>Honestly, it was one of those faults that is very esasy to overlook and disregard</p><p>Finding the problem was only half the challenge.<br>Fixing it became even trickier because I had to remove the encoder magnet during the repair… and I forgot to mark its original orientation 😅</p><p>That meant a lot of trial and error:</p><ul><li>Reassembling</li><li>Testing motion range</li><li>Disassembling again</li><li>Adjusting magnet position</li><li>Repeating the process until the motor response and stabilization felt correct</li></ul><p>Eventually, after several attempts, it finally worked perfectly again.</p><p>Looking back, this repair taught me something important:<br>You can learn a lot by opening up devices like this and admire its engineering and take inspirations from it.</p><p>Feel free to reach out to me by email or through my website and share your ideas, experiences, I am always happy to collaorate with similar minded people.</p><p>Email: contact@afnanyusuf.com<br>Website: <a href="https://afnanyusuf.com/">afnanyusuf.com</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=287e2f25632c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Cheap Plug That Nearly Turned My 3D Printer Into a Shock Hazard]]></title>
            <link>https://medium.com/@afnanyusufpp/the-cheap-plug-that-nearly-turned-my-3d-printer-into-a-shock-hazard-928ce75c802b?source=rss-258314f4fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/928ce75c802b</guid>
            <category><![CDATA[electrical-wiring]]></category>
            <category><![CDATA[electrical-engineering]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[hardware]]></category>
            <category><![CDATA[shock]]></category>
            <dc:creator><![CDATA[Afnan Yusuf]]></dc:creator>
            <pubDate>Tue, 31 Mar 2026 13:20:48 GMT</pubDate>
            <atom:updated>2026-03-31T13:20:48.806Z</atom:updated>
            <content:encoded><![CDATA[<p>A few days ago, I learned a lesson that every maker, engineer, and DIY enthusiast should know:</p><p>Never cheap out on mains power components.</p><p>I had a power cable that did not include an earth pin, so I decided to replace the plug with one of those inexpensive 3‑pin tops you can find almost anywhere. It seemed harmless. After all, it was just a plug.</p><p>Everything worked fine… until I was using my 3D printer.</p><p>The moment I touched it, I felt a mild electric shock.</p><p>Not enough to seriously hurt me, but enough to instantly make me stop and think:</p><p>“Why is there earth leakage on the chassis?”</p><p>I unplugged the printer and started investigating.</p><p>The first thing I did was measure the voltage between earth and phase on the cable. To my surprise, instead of the expected full mains voltage, the meter showed only around 110 V AC — roughly half of the actual line voltage.</p><p>That immediately made me think there must be a broken wire somewhere between the plug I had fitted and the other end of the cable.</p><p>So I disconnected everything and measured directly at the source side.</p><p>This time, the reading showed full mains voltage.</p><p>Now I was confused.</p><p>The cable continuity was perfect. There was no broken wire. There was no loose connection. Yet somehow, the earth line was behaving strangely and the problem kept appearing whenever I plugged it back in.</p><p>At this point I had spent far longer on this than I expected. I tested multiple sockets. Same issue. I checked the cable again. Still fine. The readings made no sense.</p><p>Finally, out of frustration, I decided to do something unusual.</p><p>I opened the 3‑pin plug while it was plugged into the socket and carefully measured the contact points inside.</p><p>And then I found it.</p><p>The earth pin inside the cheap plug was not actually touching the earth contact in the socket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3NvAPExasSA4-Z7oA2bNXw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ZUdRrStnbTobPfBbICC4A.jpeg" /><figcaption>Image showing voltage in the ac socket, and in the plug terminal</figcaption></figure><p>The pin was floating almost perfectly in the center, missing the contact completely.</p><p>From the outside, everything looked normal. The plug fit perfectly. The earth pin looked aligned. But internally, it was never making contact.</p><p>That is why the earth line was “floating” and why I was measuring strange voltages like 110 V instead of a solid connection.</p><p>I even tried different sockets, but the issue followed the plug.</p><p>The problem was not my wiring. The problem was the cheap plug itself.</p><p>What makes this even more dangerous is that this type of fault is extremely difficult to notice. Most people would assume the earth connection is fine simply because the plug has an earth pin.</p><p>But a pin existing is not the same as a pin working.</p><p>In equipment like 3D printers, power supplies, metal enclosures, and workshop tools, the earth connection is often the only thing standing between a harmless fault and a dangerous shock.</p><p>That day, a very cheap component taught me a very expensive lesson:</p><p>Saving a few rupees on mains power hardware is never worth it.</p><p>Always buy good quality plugs, sockets, and cables. Always test earth continuity. And never assume a connection is safe just because it looks correct from the outside.</p><p>Sometimes the smallest and cheapest part in the system can become the biggest hazard.</p><p>If you have ever run into a strange electronics failure, an unexpected design flaw, or a lesson learned the hard way, I would love to hear about it. Some of the most interesting engineering stories come from the smallest mistakes and the weirdest problems.</p><p>Feel free to reach out to me by email or through my website and share your ideas, experiences, or suggestions for future stories.</p><p>Email: contact@afnanyusuf.com<br>Website: <a href="https://afnanyusuf.com/">afnanyusuf.com</a></p><p>I am always looking for interesting real-world engineering problems to explore and write about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=928ce75c802b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Issue on SH1107 128x128 OLED Modules Without a Reset Pin]]></title>
            <link>https://medium.com/@afnanyusufpp/the-mysterious-issue-on-sh1107-128x128-oled-modules-without-a-reset-pin-0c2208af56ba?source=rss-258314f4fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/0c2208af56ba</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[embedded-systems]]></category>
            <dc:creator><![CDATA[Afnan Yusuf]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 14:15:41 GMT</pubDate>
            <atom:updated>2025-10-23T14:29:06.902Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’ve ever worked with the SH1107 128x128 OLED display and found yourself frustrated by garbled output or a screen that won’t clear — especially after a power interruption — this post is for you. This deep-dive documents a non-obvious behavior of the SH1107 module when the reset pin is inaccessible, and shares troubleshooting insights that could save hours of debugging.</p><h3>Encountering the “Invalid Mode” Phenomenon</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5GWgpntlcBH-7enoOEeSlw.jpeg" /><figcaption>image doesn’t do this justice, the top part of the display scrolls (updates creating a rapid scrolling effect)</figcaption></figure><p>While prototyping with the SH1107 OLED module, a peculiar issue surfaced: whenever the display’s power (VCC) was interrupted and quickly restored, the screen entered an invalid state. The display showed random or corrupted characters and, crucially, would not update or clear — even if software commands to clear the screen were sent.</p><p>At first, this seemed like a standard initialization error. However, the usual solutions — like reinitializing the display in code or sending extra clear commands — had zero effect. Searching forums and datasheets produced no direct answers, and the troubleshooting rabbit hole was deep.</p><h3>Identifying the Root Cause</h3><p>After extensive experimentation, a consistent pattern emerged:</p><ul><li>The issue occurs only when the display is powered OFF and ON again within a brief “window.”</li><li>If the display is not fully powered down, but instead retains a charge (likely due to residual voltage from circuit capacitors or board layout quirks), it fails to fully reset its internal logic.</li><li>The display enters a mode where data sent to it is ignored, and attempts to clear the display are ineffective.</li><li>Only a full power cycle — where all residual voltage disappears — restores normal operation.</li></ul><p>This led to a key realization:</p><blockquote>Without a functional RESET pin, the SH1107 cannot recover from partial power loss.</blockquote><h3>Why Does This Happen?</h3><p>The SH1107 controller relies on a proper reset sequence after power-up. Normally, this is accomplished with a hardware RESET pin, or by ensuring absolutely clean power-off before re-powering the module. If capacitors in the power supply or PCB retain charge, the device may only partially shut down, leaving memory or register states corrupted.</p><p>In modules where the RESET pin is not exposed (common in many inexpensive breakout boards), there is no way to trigger a clean reset except via a complete power removal.</p><h3>How To Fix It In Practice</h3><p>If you encounter the described behavior:</p><ul><li>Ensure that VCC is fully discharged when powering off the module.</li><li>Remove power and wait longer (several seconds) for all capacitors to discharge.</li><li>On some boards, disconnecting power briefly is not enough — try physically disconnecting the module or adding a drain resistor across VCC/GND to speed up discharge.</li><li>If you need rapid cycling, consider modifying the module (if possible!) to expose the RESET pin. This allows you to trigger a proper hardware reset via your microcontroller or manual intervention.</li><li>If hardware changes aren’t possible, architect your project to avoid rapid power cycling. Integrate a deliberate “power-down” period between off/on cycles.</li></ul><h3>Key Takeaways For Developers</h3><ul><li>Not every display issue is a software bug — sometimes, hardware quirks like residual voltage and missing reset lines are to blame.</li><li>Datasheets may not warn about this scenario — designers assume the RESET pin is available and used.</li><li>When debugging persistent display errors, test for power-cycling artifacts and watch for partially-discharged modules.</li></ul><h3>Final Thoughts</h3><p>This issue consumed countless hours of development time, and documentation is scarce. By sharing the solution, the goal is to help others avoid needless frustration and understand the importance of a clean reset when working with SH1107-based OLED modules — especially those without an accessible RESET pin. If you found this post helpful, share it with others working with OLED or similar display modules!</p><p>Have you faced similar embedded hardware quirks? Share your stories and strategies below!</p><p>If you want to get in touch or have any questions, feel free to email me at <a href="http://contact@afnanyusuf.com/">contact@afnanyusuf.com.</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0c2208af56ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building My Own Washing Machine Controller with Arduino Nano]]></title>
            <link>https://medium.com/@afnanyusufpp/building-my-own-washing-machine-controller-with-arduino-nano-c5c3085ab458?source=rss-258314f4fa46------2</link>
            <guid isPermaLink="false">https://medium.com/p/c5c3085ab458</guid>
            <category><![CDATA[electronics]]></category>
            <dc:creator><![CDATA[Afnan Yusuf]]></dc:creator>
            <pubDate>Thu, 23 Oct 2025 13:58:43 GMT</pubDate>
            <atom:updated>2025-10-23T13:58:44.785Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Note:<br>This project was created nearly four years ago when I was just beginning to deep dive into embedded systems. As a result, the code may not be fully organized, optimized, or follow best practices in structure and documentation. Some parts may have inconsistencies or lack extensive comments. However, it reflects the learning journey and foundational skills that formed the basis for more advanced projects later on.</blockquote><h3>When a fried PCB became an opportunity to learn embedded systems</h3><p>Four years ago, my washing machine stopped working. Not the mechanical kind of failure you can fix with a wrench, but the worst kind — the control board was completely fried. One moment it was running fine, the next moment, nothing. Just a dead, expensive appliance taking up space in my laundry room.</p><p>I called a repair technician who confirmed my fears: the PCB needed replacement, and it would cost between ₹2,000 to ₹3,500 depending on availability. For a washing machine that was already several years old, spending that much on repairs seemed wasteful. A new washing machine would cost ₹12,000-₹15,000, but I wasn’t ready to throw away a perfectly good mechanical system just because of some fried electronics.</p><p>That’s when I had an idea: What if I could build my own controller?</p><p>My DIY Solution:</p><ul><li>Arduino Nano (CH340 version): ₹170 — ₹220</li><li>4-Channel 5V Relay Module: ₹130 — ₹170</li><li>TM1637 4-Digit Display: ₹40 — ₹80</li><li>Push buttons (3x): ₹30</li><li>Miscellaneous (wires, connectors, power supply): ₹150</li><li>Total: ₹520 — ₹650</li></ul><h3>Smart Component Choices: Where I Saved Money</h3><h3>1. Arduino Nano</h3><p>The first smart choice was selecting the Arduino Nano</p><ul><li>Smaller footprint: Perfect for fitting inside the washing machine’s control panel</li><li>Lower cost: The Nano with CH340 chip costs ₹170–220</li><li>functionality: Based on ATmega328P</li><li>Breadboard friendly: Easy to prototype and test</li></ul><p>The CH340 USB-to-serial chip version was particularly cost-effective compared to FTDI versions, saving an additional ₹200–300 without compromising functionality.</p><h3>2. Relays Instead of TRIACs: The Budget-Friendly Choice</h3><p>One of the most critical decisions was using mechanical relays instead of TRIACs (solid-state relays) to control the high-voltage components. Here’s why this made financial sense:</p><p>Relay Advantages:</p><ul><li>Cost: A 4-channel 5V relay module costs ₹130–170, while equivalent TRIAC-based solid-state relays cost ₹800–1,500</li><li>High current capacity: Can handle 10A loads easily, perfect for washing machine motors</li><li>Double-pole switching: Both live and neutral can be switched for added safety</li><li>Simple drive circuit: Direct microcontroller control without complex gate driving circuits</li><li>Easy troubleshooting: You can hear the relay click, making debugging simple</li></ul><p>Relay Trade-offs:</p><ul><li>Mechanical wear (but rated for 50,000–100,000 cycles — decades of use for a washing machine)</li><li>Slightly slower switching (not an issue for washing machine cycles)</li><li>Audible clicking (actually useful for debugging!)</li></ul><p>For a washing machine that cycles only a few times per day, relays were the perfect choice. TRIACs are better for applications requiring rapid switching (like dimmers), but completely overkill and unnecessarily expensive for washing machine control.</p><h3>3. TM1637 Display: Simple Yet Effective</h3><p>Instead of using expensive LCD displays or multiple seven-segment displays requiring 12+ connections, I chose the TM1637 4-digit 7-segment display module:</p><p>Cost Benefits:</p><ul><li>Price: ₹40–80 for the complete module</li><li>Only 2 control wires: Saves on microcontroller pins and wiring complexity</li><li>Built-in driver IC: No need for additional driver circuits</li><li>Perfect for timers: Built-in colon separator ideal for displaying wash cycle time</li></ul><p>The TM1637 gave me exactly what I needed — time display and status codes — at a fraction of the cost.</p><h3>The Design: Breaking Down the System</h3><p>My washing machine controller manages three main components through relays:</p><ol><li>Main Motor: For washing agitation and spinning</li><li>Drain Motor: For water removal</li><li>Inlet Solenoid Valve: For water filling</li></ol><h3>Hardware Architecture</h3><pre>Arduino Nano (Brain)<br>    ↓<br>Relay Module (Switching)<br>    ↓<br>┌─────────────┬──────────────┬────────────────┐<br>│             │              │                │<br>Main Motor  Drain Motor  Inlet Valve    TM1637 Display<br>(Wash/Spin) (Drainage)   (Water Fill)   (User Feedback)</pre><h3>The Control Interface: Three Buttons</h3><p>I kept the user interface deliberately simple with just three buttons:</p><ul><li>The buttons were used to start the machine in different modes/ full auto/ spin only, wash only, or start filling water, there were controlled by various combination (long press, short press etc)</li></ul><p>This minimalist approach reduced component count, simplified wiring, and made the system more reliable. No complex touchscreens, no fragile membrane switches — just robust tactile buttons that cost ₹10 each.</p><h3>nite state machine (FSM) to manage the complete wash cycle:</h3><h3>The Secret Sauce: Non-Blocking Code</h3><p>Instead of using Arduino’s delay() function (which freezes the entire program), I implemented non-blocking timers using the TaskScheduler library. This allows:</p><ul><li>Simultaneous monitoring of all safety sensors</li><li>Responsive button controls even during cycles</li><li>Real-time display updates</li><li>Emergency stop at any moment</li></ul><p>This approach is what separates hobby projects from professional-grade embedded systems.</p><h3>4. PlatformIO Development Platform</h3><p>Using PlatformIO instead of Arduino IDE didn’t save money on components, but saved countless hours in development:</p><ul><li>Proper library management</li><li>Better code organization</li><li>Integrated debugging</li><li>Version control friendly</li></ul><h3>Safety First: The Non-Negotiables</h3><p>While I cut costs on components, I never compromised on safety:</p><h3>Electrical Safety Measures</h3><ol><li>Lid switch integration: Prevents motor operation when door is open</li><li>Properly rated relays: Used 10A relays for 5A motor loads (100% safety margin)</li><li>Isolated relay modules: Optocoupler isolation between Arduino and high voltage</li><li>Fused power supply: 5A fuse on main power line</li><li>Waterproof enclosure: Control box mounted above water level</li><li>Ground fault protection: All metal parts properly grounded</li></ol><h3>Software Safety Features</h3><ul><li>Emergency stop button with highest priority</li><li>Timeout protection on all cycles</li><li>State validation before motor activation</li><li>Drain verification before spin cycle</li><li>Maximum cycle duration limits</li></ul><p>Total safety components cost: ₹200 — absolutely worth it compared to the risk of electrical hazards.</p><h3>The Build Process: From Prototype to Production</h3><h3>Phase 1: Breadboard Prototype</h3><ul><li>Tested all relay switching</li><li>Verified button functionality</li><li>Debugged display output</li></ul><h3>Phase 2: Code Development</h3><ul><li>Implemented state machine</li><li>Added timing calibration</li><li>Tested safety interlocks</li><li>Created multiple wash programs</li></ul><h3>Phase 3: Integration</h3><ul><li>Assembled permanent circuit on perfboard</li><li>Mounted control box in washing machine</li><li>Connected all washing machine components</li></ul><h3>Phase 4: Testing &amp; Calibration</h3><ul><li>Ran multiple complete cycles</li><li>Calibrated water fill times</li><li>Adjusted motor timings</li><li>Fine-tuned spin cycle</li><li>Load testing with actual laundry</li></ul><p>Total development time: 1weeks</p><h3>Four Years Later: The Results</h3><p>My DIY washing machine controller has been running flawlessly for over four years. Here are the real-world results:</p><h3>Reliability</h3><ul><li>Zero component failures in 4 years</li><li>Approximately 1,500+ wash cycles completed</li><li>Relays still clicking strongly</li><li>Display bright and clear</li></ul><h3>Performance</h3><ul><li>Equivalent or better cleaning than original controller</li><li>More customizable cycle options</li><li>Lower water and energy consumption</li></ul><h3>Replicating This Project: A Practical Guide</h3><p>Want to build your own washing machine controller? Here’s what you need to know:</p><h3>Essential Skills (Learnable in Weeks)</h3><ul><li>Basic electronics (Ohm’s law, voltage, current)</li><li>Arduino programming (C/C++)</li><li>Soldering (practice on scrap first)</li><li>Multimeter usage</li><li>Safety awareness (most important!)</li></ul><h3>Development Tools (Free)</h3><ul><li>PlatformIO IDE (or Arduino IDE)</li><li>TM1637Display library</li><li>TaskScheduler library</li><li>PushButton library</li><li>USB cable for programming</li></ul><h3>Time Investment</h3><ul><li>Learning basics: 1–2 weeks</li><li>Building prototype: 1 week</li><li>Code development: 1–2 weeks</li><li>Integration and testing: 1 week</li><li>Total: 4–6 weeks (part-time)</li></ul><h3>Safety Prerequisites</h3><p>⚠️ Critical: Do NOT attempt if you’re not comfortable with:</p><ul><li>High-voltage AC wiring</li><li>Reading circuit diagrams</li><li>Using multimeters</li><li>Following electrical codes</li></ul><h3>Your Turn: Will You Take the Challenge?</h3><p>Four years ago, I stood in front of a broken washing machine with a choice: pay someone else to fix it, throw it away, or learn something new. I chose learning, and it changed my relationship with technology.</p><p>You have broken appliances. You have the internet. You have time. The only question is: will you choose dependency or empowerment?</p><p>The components cost ₹650. The knowledge is free (thanks, internet!). The satisfaction is priceless.</p><p>What’s your next DIY repair project?</p><h3>Resources &amp; Next Steps</h3><h3>GitHub Repository</h3><p>Complete source code, schematics, and documentation:<br><a href="https://github.com/Afnan-Yusuf/Washing_Machine_Controller">github.com/Afnan-Yusuf/Washing_Machine_Controller</a></p><p><em>This article was written to inspire, educate, and empower. If it helped you, please share it. If you have questions, the comments are open. If you build something similar, I’d love to hear about it. Together, we can build a culture of repair, reuse, and self-reliance.</em></p><p>Happy Making! 🔧⚡🧺</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c5c3085ab458" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>