Battery assembly process automatic control