Amperage control of a power tool motor is provided by pulse width
modulation of current from a power supply. The pulse width modulation may
be varied according to the determined motor current and measured power
supply voltage. The power supply may include a battery such as lithium
ion or nickel cadmium.