This invention more particularly relates to a method and apparatus which will detect the type of battery connected to a circuit of the battery operated equipment on the basis of a predetermined voltage potential supplied at a test terminal of the battery and which will select one or more operating parameters for the using or charging equipment to optimize battery performance.