The issue arises when a Roomba robot of a user fails to charge with error 5 which means that any of the charging modules (charging cable, dock, battery, motherboard, charging terminals, etc.) of the Roomba robot are not working. You can fix the Roomba error 5 by cleaning the terminals of the battery/dock or charging the battery with a laboratory power supply (as discussed below) but before that, make sure the charging cable (connecting the dock to the power source) is not faulty.

Clean the Contacts of the Battery and Terminals

You may encounter the Roomba robot charging error 5 if the terminals of the battery or dock have accumulated carbon (or dust) over them. In this context, cleaning the contacts of the battery and dock terminals may solve the problem. If the issue persists, then check if putting the Roomba unit on charge (until its Clean button flashes green) by directly connecting the power cable (without dock) solves the problem. You can also try a laboratory power supply to directly charge the battery and check if that resolves the error 5 (if your battery was deeply discharged).  If error 5 is still there, then you may have to use a replacement battery. Even if that did not work, then the home unit or the motherboard of the Roomba robot may have been damaged and you may have to replace them (one by one).

How to Fix Error 14 or 1-4 on Roomba (Roomba is Not Detecting an Installed Bin)How to Fix Error Code 17 on Roomba (Roomba Cannot Complete Cleaning)Troubleshoot Roomba Charging Error 1 (The Battery Is Not Detected)How to Fix “A problem caused the program to stop working correctly” Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 22Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 90Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 60Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 98Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 66Fix  Roomba Charging Error 5  Charging System isn t Working Correctly  - 24