Patent ID: 8779683

Claim:
An electronic circuit for determining a type and/or size of a battery in a portable light and controlling an operating condition of a light source of the portable light comprising: a circuit measuring a voltage of the battery when the battery is in the portable light; a processor for determining the voltage of the battery at a first time when the battery is placed into the portable light; said processor applying a predetermined load to the battery for a predetermined time when the battery is placed into the portable light and determining the voltage of the battery during the predetermined time; said processor determining the difference between the voltage of the battery at the first time when the battery is placed into the portable light and the voltage of the battery during the predetermined time; said processor setting an operating condition of the light source based upon the difference between the voltage of the battery determined at the first time when the battery is placed into the portable light and the voltage of the battery determined during the predetermined time; and a memory in which the operating condition of the light source set by the processor when the battery is placed into the portable light is stored, wherein the light source is operated at the operating condition stored in the memory until the battery is removed from the portable light.