Before you begin
Symptoms Does your Roborock S5 randomly undock, back up about half a meter, and then drive right back onto the dock to resume charging? Does it repeat this strange "dance" several times before eventually spinning 180 degrees and announcing Error 13 (complaining that the docking contacts need to be cleaned)? If you've cleaned the contacts and are still experiencing this, you're not alone. Here is the ultimate fix for an issue that standard troubleshooting doesn't solve. The TL;DR Fix The issue is likely caused by the ID pin resistance on your replacement battery's BMS (Battery Management System). Measure the resistance between the ID pin (Yellow wire) and GND (Black wire) on the battery plug. If it is not close to 82k ohms, you need to open the battery and solder a resistor in parallel to bring the value to roughly 82k ohms. What Didn't Work (My Troubleshooting Journey) I spent months trying every solution I could find on the internet. To save you time, here is everything I tried that did not work: Cleaning the charging contacts.Disassembling the docking station to check the internal contacts.Replacing the capacitor in the charging station (swapped the 68uF for an 82uF 450V Low ESR capacitor).Replacing the P185 motherboard fuse inside the vacuum.Rebuilding the battery pack with brand-new Samsung 35E cells (this ruled out dead or degraded cells). I was about to replace the charging MOSFET and the charging controller, but I realized I was heading in the wrong direction. The Root Cause: The Battery ID Pin The problem started when I bought a 3rd replacement battery. Ironically, it worked perfectly for a few months before this error started. To test the vacuum's charging hardware, I temporarily swapped back to my old, worn-out (second) battery. The Roborock charged it without a single complaint or Error 13! This proved the vacuum and dock were fine; the issue was entirely inside the new battery. I decided to investigate the battery pinout: VCC (Red), Thermal (White), ID (Yellow), and GND (Black). Many sources say the ID wire just signals to the motherboard that a battery is connected. However, when I measured the resistance between the ID pin and GND on my three different batteries, I found wildly different values: Oldest Original Battery: 10k ohmsSecond Battery (Worked fine): 82k ohmsThird Battery (Error 13 problem): 620k ohms The Conclusion: The ID wire does more than just detect the battery. The Roborock uses that specific resistance value to identify which battery is connected and assigns a charging profile to it. My theory is that the vacuum's charging controller was pushing too much current (>1.85A) to the 3rd battery. This temporarily overheated the P185 fuse, cutting power from the dock, which the Roborock misinterpreted as a "bad charging contact" (Error 13).