Design of battery management system for purifier