UNDERSTANDING BATTERY MANAGEMENT SYSTEMS BMS IN LITHIUM BATTERIES