FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

How to Fix Roborock S5 Error 13 (Random Undocking & Charging Loop)

Symptoms: Does your Roborock S5 randomly...

iFixit Library Xiaomi Roborock Robotic Vacuum Cleaner Moderate 30 minutes Guide 216134
Open the authorised source
Licensed iFixit integration

This attributed iFixit guide is displayed through Fixonic's recorded commercial API permission. iFixit remains the independent source and author of the procedure.

Guide overview

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).

Step 1

Test the Battery (No Disassembly Required!)

  • You can find out if this fix applies to you without opening the battery. Simply remove the battery from the vacuum and look at the connector plug. Using your multimeter, measure the resistance by touching your probes to the metal contacts inside the plug for the Yellow wire (ID) and the Black wire (GND).
  • If your reading is around 82k ohms, your battery ID is fine, and your issue might be elsewhere.
  • If your reading is unusually high (like my 620k ohms) or significantly different from 82k, proceed to Step 2.
  • Safety Warning: For the next steps, you will be working near live Lithium-Ion cells. Be extremely careful not to short-circuit the battery terminals with your tools or soldering iron.
Step 2

Open the Battery Pack

  • Disassembling most 3rd-party replacement batteries is simple. Peel back or puncture the sticker on the top and bottom to reveal two screws. Unscrew them, release the plastic locking tabs, and safely open the casing to expose the cells and the BMS (Battery Management System) board.
Step 3

Locate the Solder Pads

  • Look at the BMS board where the wiring harness connects. Identify the solder pads for the Yellow wire (ID) and the Black wire (GND).
Step 4

Solder an Additional Resistor

  • Your goal is to bring the total resistance between ID and GND to approximately 82k ohms. You will need to solder a standard resistor across the Yellow and Black pads (in parallel with the existing hidden surface-mount resistor).
  • My Math: My battery measured 620k ohms. I soldered a 100k ohm resistor across the pads.
  • "(100k in parallel with 620k results in roughly 86k ohms, which is close enough to the 82k target)."
Step 5

Reassemble and Test

  • Tuck the wires back in safely, snap the plastic case together, insert the screws, and reinstall the battery into your Roborock.