A method and apparatus to automatically reverse the motor of a power tool,
such as a dispensing gun or similar tool. In some constructions, a
controller automatically reverses the direction of plunger movement and
removes the plunger from contact with the back wall of a cartridge. The
controller has a trigger switch that is coupled to a power source, such
as a battery, and includes a main power on/off switch and a
potentiometer. A protection or secondary switch is coupled in parallel to
the main power on/off switch. A power supply circuit and a commutator are
each coupled to the main and secondary switches. An overload sensor is
coupled to the commutator. The controller includes a programmable device
that is coupled to the power supply circuit, the potentiometer, the
commutator, and the overload sensor. The programmable device is operable
to sense actuation and deactuation of the main power on/off switch, read
an electromotive force from the potentiometer, and, upon sensing
deactuation of the main switch, send a control signal to the commutator
to reverse current flow therethrough for a predetermined amount of time,
and deactuate the secondary switch when the predetermined time has
lapsed.